# Keep Claude Code’s findings between sessions

Canonical: [Keep Claude Code’s findings between sessions](https://contextingo.com/guides/keep-claude-code-findings-between-sessions)

Locale: en

Purpose: Each Claude Code session starts with an empty context. How Contextingo’s hook saves findings and decisions as you work and loads them next session.

Content updated: 2026-10-26

Source revision: content.ts 2026-10-26

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/guides.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

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.

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`.

## Questions

### 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.
