Relying on a model to decide what to remember is unreliable in both directions: it saves trivia and forgets the thing you said twice. Capture moves the trigger into the runtime — a commit, the end of a session — and moves the judgement back to you.
Install the hooks
# once, with your deployment URL and token
node scripts/memo-capture.mjs configure --url https://memo.uno --token memo_...
# in any repository you want commit summaries from
node scripts/memo-capture.mjs install-git
# in a repository you use Claude Code in
node scripts/memo-capture.mjs install-claude
# or for every project
node scripts/memo-capture.mjs install-claude --globalThe git hook summarises each commit into repository-scoped code memory. The Claude Code Stop hook reads the session transcript, keeps only your own recent messages and proposes durable personal memories. Exact duplicates are skipped before they are sent.
What is sent
- Commit message, changed paths and a short diff excerpt — never the whole repository.
- Your own messages from the session — never the assistant's output, and never the full transcript.
- Nothing at all when a hook finds no durable statement.
Credentials live in ~/.memo/config.json with 0600 permissions. Set MEMO_CAPTURE_DISABLED=1 to turn capture off without uninstalling, and MEMO_DEBUG=1 to print what a hook would send.
Reviewing
Captures arrive as pending. The Inbox lists them with a category, a source and an age; you can edit the text, change the category, then approve or discard one at a time or in bulk. Approving a capture runs it through the resolver, so approving a duplicate merges instead of creating a second memory.
Hooks installed before Memo was renamed still work: the old MEMEX_* variables, ~/.memex/config.json and scripts/memex-capture.mjs path are read as fallbacks.
Network notes
If your network needs a proxy to reach the deployment, pass --proxy http://host:port to configure and the script routes through curl. On Node 24+, NODE_USE_ENV_PROXY=1 with HTTPS_PROXY also works.