Monot · memory for Claude Code

Monot

10 min read Original article ↗

# memory plugin for Claude Code

Stop repeating yourself to Claude.

Monot writes down what each session learned and brings it back when it matters, and only then.

No API key, no model endpoint: Monot runs on the claude command you already use.

[ sh ]

curl -fsSL https://raw.githubusercontent.com/rajnandan1/monot/main/install.sh | sh
claude plugin marketplace add rajnandan1/monot
claude plugin install monot@monot

[ prompt ]

Install Monot, the memory plugin for Claude Code, on this machine. Show me each command before you run it.

1. Run `uname -sm`. Monot supports only macOS on Apple silicon, which prints `Darwin arm64`. If it prints anything else, stop and tell me.
2. Run the install command: `curl -fsSL https://raw.githubusercontent.com/rajnandan1/monot/main/install.sh | sh`
3. Check that `~/.local/bin` is on my PATH. If it is not, ask me before you edit any shell profile.
4. Run `monot version`. It must print a version number.
5. Run `claude plugin marketplace add rajnandan1/monot`.
6. Run `claude plugin install monot@monot`.
7. Tell me to restart Claude Code or start a new session, because the hooks load when a session starts.
8. Tell me how to check the install: open a session in a git repo, on a branch other than main or master. Send one prompt and wait for the answer. Then run `find ~/.monot/repos -path '*/handoffs/*.md'`. It must list a handoff record for that branch.

macOS on Apple silicon, with Claude Code logged in. install guide

# monot in 42 seconds, with sound

In the film: a new session starts blank, so you type it all again. With Monot, the branch's handoff record comes back, each finished session leaves short facts, and at most 3 memories reach each prompt. One Rust binary, no API key.

A made-up example. Yesterday a session worked on ticket ABC-12 on the branch abc-12-empty-rows. Today you open a new session in the same repo and send one prompt.

youpick up ABC-12, the Windows job still times out

monot adds this before claude reads your prompt

Handoff record for branch abc-12-empty-rows, last written 2026-09-30T17:42:08Z by an earlier session on this task (github.com/acme/exporter/handoffs/abc-12-empty-rows). It reflects what was true then; check the working tree before acting on it.

## Goal
Fix ABC-12 so exports stop failing on empty rows
## Identifiers
tickets: ABC-12
prs: #48
paths: src/export.rs, tests/export.rs
commands:
- cargo test export
## Last ask
open the PR and wait for CI
## Last answer
Opened #48. CI passes except the Windows job, which times out in `cargo test export`. Next: find out why Windows is slow.
Recalled memories from earlier sessions (Monot). They reflect what was true when written. Full text: mcp__plugin_monot_monot__recall with the address.
- gotcha 2026-09-28 github.com/acme/exporter/windows-runner-timeout: The Windows CI runner kills any single test that runs longer than 60 s.
  • first blockThe handoff record of the branch: its goal, its identifiers (exact names such as tickets, PRs and paths), the last ask and the last answer.
  • last blockA recalled memory. Its address, such as github.com/acme/exporter/windows-runner-timeout, lets Claude read the whole memory.

# without monot

A new session starts blank.

It does not know the ticket, the pull request, the commands that worked or your last ask, so you type them again.

without monot

  • we're on ABC-12, exports fail on empty rows
  • the PR is #48, CI passes except the Windows job
  • it times out in cargo test export
  • find out why Windows is slow

You type four prompts before the work starts.

with monot

  • pick up ABC-12, the Windows job still times out

Claude starts with the PR number, the failing command and a likely cause: the Windows runner kills any test that runs longer than 60 s.

# how it works

Plain files and one binary.

Monot is a Claude Code plugin whose hooks and MCP server all run one Rust binary, monot. Claude Code starts it, so you run no service of your own.

  • ~/.monot/repos/github.com/acme/exporter/
    • windows-runner-timeout.mda fact
    • handoffs/
      • abc-12-empty-rows.mdone record per branch
      • retired/not updated for 7 days

main and master get no record. A / in the branch name becomes --. A section that you add by hand stays. Handoff records in the docs

MAX_LINES  3      # the most memories on one prompt
MAX_CHARS  1040   # about 400 tokens
GATE       1.50   # the lowest score that passes
MIN_ROWS   10     # with fewer memories stored, inject nothing

The names are constants in src/index.rs. A memory with a score under 1.50 still passes when it shares a ticket ID, a PR number or a path with the prompt. The gate in the docs

# what monot leaves out

A recalled memory has to clear the bar.

Monot adds little on purpose, so Claude's context stays small. The bar is the gate: if no memory passes it, recall adds nothing.

  1. A fixed cap.At most 3 memories per prompt, about 400 tokens in all.
  2. A measured threshold.A score of 1.50, or a ticket, PR or path that your prompt names. The eval scripts, which measure recall, chose 1.50.
  3. Quiet until it has enough.With fewer than 10 stored memories, or on a prompt under 4 words with no ticket, PR or path, recall adds nothing.
  4. Out-of-date memories stay out.A state fact expires after 14 days. A pointer drops when its file or code symbol is gone.
  5. No repeats.A memory comes once per context window (all the text that Claude sees at one time), never back to the session that wrote it, and never when it only repeats a path your prompt names.

A pick, one more memory per prompt that a model chooses in the background, skips the gate, but “out-of-date memories stay out” and “no repeats” still hold for it. Every recall rule in the docs

# memory layers

Each session has a scope.

A session's scope is every memory of its repo, plus global memories. A handoff record belongs to one branch, and a fact to the whole repo.

~/.monot/ and the built-in memory (made-up names)

  • ~/.monot/
    • global/global memories
    • repos/github.com/acme/one owner, two repos
      • exporter/the repo's facts, one file per fact
        • windows-runner-timeout.mda gotcha
        • export-header-format.mda decision
        • handoffs/one handoff record per branch
          • abc-12-empty-rows.mdbranch abc-12-empty-rowshandoff
          • feat--x.mdbranch feat/x: a / becomes --reaches the session only when a prompt names a ticket in it, or a document (.md, .txt …) that it mentions
          • mainno record: main and master are never tasks
          • retired/records with no update for 7 days; never injected
      • web/sibling repo: same owner
        • handoffs/abc-40-login.mda record of webreaches the session only when a prompt names a ticket in it, or a document that it mentions; for tickets, the docs linked below give one more condition
  • ~/.claude/projects/<slug>/memory/exporter's built-in memory; Monot only reads it

a session on branch abc-12-empty-rows

Incoming routes add text to Claude's context. The session follows its worktree's branch.

  • handoffThe record of its own branch, when a new session continues the task. Once per context window.
  • recall, each promptAt most 3 memories from exporter's facts, the built-in memory and global/, chosen by the gate.
  • picksOne more memory per prompt from the same places, chosen by a model in the background.
  • mcp toolsWhen Claude calls them: read, search, store or delete.
  • extractionAfter the session ends, new facts go to exporter/.
Figure 7. Monot's folders as a tree, and the routes by which each part reaches one session.

In the docs: when a record reaches a session, and branches and worktrees.

# where your data goes

Your memories live in plain files on your machine.

Three parts of Monot send data off your machine. Each one has its own switch.

What goes online, what it sends, where, and how to turn it off
goes onlinewhat it sendstoturn it off
extractionon by default
  • The short form of each finished session: your prompts, Claude's text and one line per tool call.
  • The stored memories most like its new facts, so that Monot does not store a fact twice.
Anthropic, through your own claude command
  • extract = false in ~/.monot/extract.toml.
  • Sessions that run while it is off wait. Monot sends them when you delete that line.
pickson by default
  • Your prompt, the short form of the session so far, and the names and descriptions of stored memories.
  • When the prompt has 10 words or fewer besides file paths and names a document, such as a .md file, the text of that document.
  • By default, at most 10 pick calls per context window. A pick_cap line in the same file changes it.
Anthropic, through your own claude command pick = false in the same file.
update checkrelease builds only (the binary that the install command downloads)
  • No prompt, memory or session text.
  • When a session starts, at most once in 24 hours, the check asks for the latest release.
  • The check runs claude plugin update to update the plugin.
github.com
  • MONOT_UPDATE=0.
  • extract = false and pick = false do not stop it.
  • With a Claude plan login, extraction and picks cost nothing extra. With an Anthropic Console login, they are billed as API usage.
  • The first session writes the settings file, ~/.monot/extract.toml.
  • MONOT=0 claude turns Monot's hooks off for one session. Its MCP tools still answer when Claude calls them.
  • Nothing else leaves your machine. The full list is in the docs.

~/.monot/Memories and handoff records, as plain Markdown files. index.db is a local SQLite cache.

[REDACTED]

  • Monot replaces each secret, such as an API key, with [REDACTED:<rule-id>].
  • It does this before it writes a handoff record, and before extraction or a pick sends text to Anthropic.
  • The rules come from gitleaks, a secret scanner.

no model waitClaude's answer never waits for a model call from Monot. A pick runs in the background.

# install

Three commands install Monot.

Run three commands in your terminal, or paste one prompt into Claude Code and it runs them for you.

  • You need macOS on Apple silicon. You need no Rust and no API key.
  • The first command checks the SHA-256 hash of the latest release.
  • It puts the binary at ~/.local/bin/monot, so ~/.local/bin must be on your PATH.
  • The prompt also checks the machine, the PATH and the result.

[ sh ]

# Download the latest release of the monot binary into ~/.local/bin.
curl -fsSL https://raw.githubusercontent.com/rajnandan1/monot/main/install.sh | sh

# Add this repo as a plugin marketplace, so Claude Code can find the plugin.
claude plugin marketplace add rajnandan1/monot

# Install the plugin: the hooks and the MCP server. They all run the binary.
claude plugin install monot@monot

[ prompt ]

Install Monot, the memory plugin for Claude Code, on this machine. Show me each command before you run it.

1. Run `uname -sm`. Monot supports only macOS on Apple silicon, which prints `Darwin arm64`. If it prints anything else, stop and tell me.
2. Run the install command: `curl -fsSL https://raw.githubusercontent.com/rajnandan1/monot/main/install.sh | sh`
3. Check that `~/.local/bin` is on my PATH. If it is not, ask me before you edit any shell profile.
4. Run `monot version`. It must print a version number.
5. Run `claude plugin marketplace add rajnandan1/monot`.
6. Run `claude plugin install monot@monot`.
7. Tell me to restart Claude Code or start a new session, because the hooks load when a session starts.
8. Tell me how to check the install: open a session in a git repo, on a branch other than main or master. Send one prompt and wait for the answer. Then run `find ~/.monot/repos -path '*/handoffs/*.md'`. It must list a handoff record for that branch.