From kagura-memory
Resume work by recalling recent session context from Kagura Memory Cloud
npx claudepluginhub kagura-ai/memory-cloud --plugin kagura-memoryRestore previous session context to quickly resume development work. Uses git state as the primary signal and Memory Cloud for supplementary context. ## Steps ### 1. Gather context (run in parallel) Run these three data-gathering blocks concurrently — they have no dependencies on each other. **Git state** (Bash): Use the branch name, recent commits, modified files, and uncommitted changes to infer what work is in progress. **GitHub issues** (Bash — skip if `gh` unavailable): **Memory Cloud** (MCP): If multiple contexts exist, pick the one most relevant to the current project. ...
/session-startStarts recording the current agent session to the project ledger, capturing coding sessions, decisions, and context for teammates. Displays transparency notice after completion.
/session-startStart a work session — pull latest, pick a Linear issue, brainstorm, plan, execute
Restore previous session context to quickly resume development work. Uses git state as the primary signal and Memory Cloud for supplementary context.
Run these three data-gathering blocks concurrently — they have no dependencies on each other.
Git state (Bash):
git branch --show-current
git log --oneline -5
git status --short
git diff --stat HEAD~3 2>/dev/null || true
Use the branch name, recent commits, modified files, and uncommitted changes to infer what work is in progress.
GitHub issues (Bash — skip if gh unavailable):
command -v gh >/dev/null 2>&1 && gh issue list --state open --limit 10 --json number,title,milestone --jq '.[] | "#\(.number) [\(.milestone.title // "no milestone")] \(.title)"' || echo "(gh CLI not available — skipping GitHub issues)"
Memory Cloud (MCP):
list_contexts()
If multiple contexts exist, pick the one most relevant to the current project. If unclear, ask the user.
Then recall recent memories (last 7 days). The 7-day window balances recency with coverage — long enough to span a typical work week including weekends, short enough to avoid stale context drowning out current work.
Calculate the date 7 days ago from today and use it as created_after filter. Run these recalls in parallel. Only the first query enables include_explore_hints — it covers broad session context where graph discovery adds value; the other two are narrow, targeted queries where explore hints would add overhead without benefit.
recall(context_id=..., query="session summary progress decision", k=5, filters={"created_after": "{7_days_ago_ISO8601}"}, include_explore_hints=true)
recall(context_id=..., query="blocker issue TODO pending", k=5, filters={"created_after": "{7_days_ago_ISO8601}"})
recall(context_id=..., query="dev environment troubleshooting workaround", k=3, filters={"type": "troubleshooting", "tags": ["dev-environment"]})
If issue numbers appear in the branch name, recent commits, or recalled memories (and gh is available):
gh issue view <number> --json title,state,body,labels
Display a concise summary:
## Session Context Restored
**Branch**: {current_branch}
**Uncommitted changes**: {yes/no, summary if yes}
**Context**: {context_name}
### Recent Work (from git)
{what the recent commits and changes indicate}
### From Memory Cloud
{relevant memories from last 7 days, if any}
### Open Issues
{open issues, prioritized by milestone}
### Suggested Next Steps
{based on git state + memories + issues, suggest what to work on}