{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "mksglu-context-mode--resume-after-context-compaction",
 "repo": "mksglu/context-mode",
 "repo_url": "https://github.com/mksglu/context-mode",
 "repo_slug": "mksglu-context-mode",
 "title": "Pick up a coding task after the chat compacts",
 "page_title": "How to pick up a coding task after the chat compacts with Context Mode",
 "summary": "Keep edits, tasks, and decisions in SQLite so the agent can recover them after compaction.",
 "who": "A developer on a multi-hour refactor who loses track of which files and tasks were in progress after the agent compacts the conversation.",
 "problem": "When the conversation compacts, the agent forgets which files it was editing, what tasks are open, and what the user last asked for.",
 "outcome": "After compaction the agent retrieves the relevant events through BM25 search and continues the same task.",
 "steps": [
  "Install Context Mode with the Claude Code plugin steps from the README.",
  "Work on the task so that file edits, git operations, and decisions are recorded.",
  "When the session compacts, let the agent continue in the same session.",
  "If you need the earlier data in a later session, start that session with `--continue`, because without it previous session data is deleted immediately."
 ],
 "agent_prompt": "After a context compaction in the <project-name> repo, use context-mode to search the session events for the last edited files and open tasks. List them and ask me to confirm before continuing the work.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README says previous session data is deleted unless you use --continue, so plan which sessions you want to keep before starting a new one.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Claude Code v1.0.33+ for the plugin install, or Node.js >= 22.5 (or Bun) for the Gemini CLI setup",
  "An existing AI coding agent session in a project you want to work on"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mksglu-context-mode/resume-after-context-compaction/",
 "md": "https://dedupedai.com/use-cases/mksglu-context-mode/resume-after-context-compaction/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mksglu-context-mode--resume-after-context-compaction.json",
 "api_version": "v1"
}
