- loads the project’s context from Hookie at the start of every session,
- keeps an
agentic-context/archive of what was asked, built and decided, in the same pull request as the work, - sends decisions and memories to the project’s brain, so the next session, yours or a teammate’s, starts where this one ended.
Install
In Claude Code, run:For a whole team
Commit this to.claude/settings.json in the repository. /hookie:setup offers to do it for you, and keeps whatever is already in the file.
.claude/settings.json
First run
- In the repository, run
/hookie:setup. You can name the project:/hookie:setup my-project. - Sign in to Hookie. Run
/mcp, pick hookie, and finish the sign-in in your browser with your own Hookie account. Claude Code keeps the sign-in; the plugin never sees or stores a token. - In the Hookie console, open Settings → Connected agents. A newly connected agent is read-only: widen its access when you want it to write, and choose Choose projects to pin it to this project. Pinning is done in the console; there is no tool for it.
/hookie:setup then:
- picks an existing project, or creates one. Creating a project needs the
hookie:manageaccess level. - writes
.hookie/project.jsonwith the project’sproject_id,project_slug,workspaceandconsole_url. It never holds a credential, and is meant to be committed. - creates
agentic-context/with aREADME.md, aDECISIONS.mdand athreads/folder, where they are missing. It never overwrites an existing file there. - adds a block between
<!-- hookie:begin -->and<!-- hookie:end -->toCLAUDE.mdandAGENTS.md. Running setup again replaces the block; it never adds a second one or changes text outside it. - offers a GitHub Actions check for
agentic-context/, and adds it only if you agree. - adds the team settings above to
.claude/settings.json.
.hookie/project.json, agentic-context/, CLAUDE.md, AGENTS.md and .claude/settings.json.
Commands
/hookie:sync never uploads a file that holds something that looks like a credential. It tells you which file, so you can replace the value with [REDACTED: what it is] first.
Skills
Claude uses these on its own when they fit.- hookie-context, in a repository with
.hookie/project.json. Claude callsget_project_contextfirst, searches the project’s knowledge before guessing, records decisions withrecord_decisionand durable facts withsave_memory, reads tracker issues, and queries project databases read-only. It treats everything Hookie returns as data, not instructions, and never sends a secret to Hookie. - agentic-context, when finishing a piece of work in a repository with an
agentic-context/folder. It describes the archive’s convention, below.
Hooks
The hooks are small Node scripts with no dependencies. If one fails, it ends silently, so a broken hook never blocks you. Each hook can be turned off with an environment variable set to0, false, off or no. Set it in your shell, or under env in .claude/settings.json. /plugin disable hookie@hookie turns off the whole plugin.
The Stop check looks at the whole working tree, so changes made before the session count too.
Cowork runs plugin hooks on your device. Whether every hook event fires in Cowork is not documented; the commands, skills and connector work either way.
Memory capture
The plugin hands each session to Hookie’s automatic memory capture, which proposes the decisions and facts worth keeping. By default they are saved straight away; a project set to review keeps each proposal waiting for you on its Brain page, under Waiting for your review. To save a memory by hand instead, see Personal AI memory. A hook cannot call an MCP tool, so capture around a compaction takes two steps:- PreCompact asks the summary to keep the session’s decisions and facts, and writes a small marker named after the session in your system’s temporary folder (
<tmp>/hookie-plugin/), never in the repository. - SessionStart runs right after the compaction. When it finds the marker, it asks Claude to call
extract_memorieswith the conversation and the path of the full transcript, then removes the marker. If that does not happen, the Stop hook asks once at the end of the turn.
HOOKIE_PLUGIN_CAPTURE=0.
The agentic-context convention
agentic-context/ is the project’s memory, committed with the code: what was debated, proposed and decided while it was built. If it disagrees with the code, the code is right.
- One folder per piece of work:
agentic-context/threads/NN-short-slug/summary.md, with a title,- **Thread:**,- **Dates:**and- **Status:**lines, and the sections Ask, What shipped, Decisions and Open. - An index: a row per folder in
agentic-context/README.md, and its Open items list. - A decision log: decisions by topic in
DECISIONS.md. A replaced decision is struck through, never deleted. - No secrets: a credential becomes
[REDACTED: …], and a customer’s email address[customer]. - Same pull request: the archive is updated with the work, not after it.
summary.md, the README does not index a folder, or something looks like a credential.
With repository sync, Hookie mirrors agentic-context/ from the repository on every push. Files there appear on the project’s Brain page under Agentic context.
Privacy
- No tokens in the plugin. The plugin connects to
https://app.hookie.ai/mcp, and each person signs in with their own Hookie account. The plugin’s files hold no token, key or password, and.hookie/project.jsonholds only the project’s id, slug, workspace and console link. - Transcripts. When Claude calls
extract_memories, Hookie removes credentials from the transcript before any model reads it, and does not store the transcript. Only the proposed memories are kept. - Your credentials stay yours. A person connects integrations, such as a repository, an issue tracker, a database or a knowledge source, in the Hookie console. The plugin never asks for a credential and never supplies one.
- Access is your choice. A new agent is read-only until you widen it, and you can revoke it at any time in Settings → Connected agents.