Skip to content

Keep what Claude Code found from one session to the next

Every Claude Code session starts with a fresh context window. CLAUDE.md carries your fixed rules, but what Claude Code found, decided or tried during a session is gone unless it was saved somewhere. Contextingo’s Claude Code hook makes saving and reading part of every session.

Updated by Contextingo. Verified with Claude Code and Codex CLI.

Steps

How to set it up.

  1. Install the connection and the hook

    Run the setup command from Project → Connect. Besides the MCP server it installs a small hook in your own Claude folder (~/.claude/hooks/contextingo.mjs). Restart Claude Code once so it loads the hook.

    npx contextingo init <code>
  2. A new session starts from the project

    When a session starts, the hook asks Claude Code to load the Contextingo tools and read the project knowledge once, in brief, and to tell you what matters most for the work.

  3. Saving happens while you work

    Every prompt carries a short reminder to save new decisions, findings and failed attempts with context_upsert. At the end of a turn that changed files or committed without saving anything, the hook sends the turn back once with what is missing, and does the same for a save the server refused.

  4. Nothing is lost when the chat is compacted

    Right after Claude Code compacts a long chat, the hook asks it to save from the summary what would otherwise be lost, and to leave a checkpoint.

  5. A resumed session picks up the changes

    When you resume a session, the hook asks Claude Code to fetch only what changed since its last sync token, so corrections made by teammates in the meantime reach it.

  6. After a commit, a handoff

    When a turn commits, pushes or deploys without a checkpoint, the hook asks for session_checkpoint with a summary, next steps and open questions. It works without an issue or session_start.

Stop explaining your project to every new chat.

  • Findings, decisions and failed attempts are saved while your AI works, not lost with the chat
  • The next chat, teammate or tool starts from them, so nobody briefs anyone
  • A person accepts the work, with the CI results already fetched

Free to start, no credit card. Pro and Team start with 14 days free.

Questions

Good to know.

Does Claude Code forget what happened before /compact?

Partly. After a compaction Claude Code reads the project-root CLAUDE.md again from disk, and nested CLAUDE.md files and path rules load again when they are needed. What was only said in the chat survives only as far as the summary keeps it (Claude Code memory documentation, October 2026). That is why the hook asks Claude Code, right after a compaction, to save from the summary the decisions, findings and failed attempts others need, and to leave a checkpoint.

How is this different from Claude Code’s auto memory?

Auto memory is notes Claude Code writes for itself on one machine. Contextingo keeps project records that every teammate’s AI reads, with a status, a source and a history, and a person can confirm them.

Does the hook send my code anywhere?

No. The hook is a local script with no key and no network access. It only adds instructions for Claude Code; Claude Code itself decides what to save over MCP.

How do I update the hook?

Run npx contextingo update. It replaces the installed hook with the current one; no setup code is needed.

More guides

Nothing learned is lost. Nothing unchecked is done.