claude command and its login. You set up no API key and no model endpoint (the web address of a model API): the first session writes Monot's settings file, ~/.monot/extract.toml.# memory plugin for
A new session gets the goal, ticket, PR, commands and last answer from the last session on the same branch.
No API key, no model endpoint: Monot runs on the claude command you already use.
curl -fsSL https://raw.githubusercontent.com/rajnandan1/monot/main/install.sh | sh
claude plugin marketplace add rajnandan1/monot
claude plugin install monot@monotInstall 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
A made-up example: what Monot adds 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.
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. The first block is the handoff record of the branch: its goal, its identifiers (exact names such as tickets, PRs and paths), the last ask and the last answer. The last block, a header line and one memory line, is the recalled memory. Each memory has an address, a stable ID such as github.com/acme/exporter/windows-runner-timeout, that Claude can use to read the whole memory.
# without monot
It does not know the ticket, the pull request, the commands that worked, or what you asked last. So you type it all again in your first few prompts.
You type four prompts before the work starts.
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. You did not type any of it again.
# how it works
Monot is a Claude Code plugin and one Rust binary, monot. The plugin holds hooks, which Claude Code runs at fixed moments, and an MCP server, which gives Claude tools. Every hook and the MCP server run the binary.
~/.monot/repos/github.com/acme/exporter/ ├── windows-runner-timeout.md # a fact └── handoffs/ ├── abc-12-empty-rows.md # one record per branch └── retired/ # not updated for 7 days
main and master are never tasks, so they get no record. A / in the branch name becomes -- in the file name. The record is plain Markdown. If you add your own section by hand, Monot keeps it.
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 the constants in src/index.rs. The score says how well a memory matches the prompt. A higher score is a better match. A memory with a lower score still passes when it shares a ticket ID, a PR number or a path with the prompt.
recall reads a memory by its address, or searches past the gate remember stores a new fact forget deletes one fact that Monot wrote stats shows one row of counts per day
You do not call the tools yourself. You tell Claude, for example, “remember that the Windows runner kills tests after 60 s”, and Claude calls remember.
decision what someone decided, and why preference how you want the work done pointer where something lives: a path and a symbol name state the status or the next step of a ticket, PR or branch gotcha surprising behavior that someone found
Each fact that Monot writes has one of these five types. A state fact expires 14 days after Monot writes or replaces it.
# what monot leaves out
Monot adds little on purpose, so Claude's context stays small. The bar is the gate from figure 4. If no memory clears it, recall adds nothing. A pick can add one more memory per prompt, chosen by an LLM in the background, and rules 04 and 05 apply to it too.
# memory layers
A memory's scope is the set of sessions that can recall it. A handoff record belongs to one task: one branch of one repo. Facts, the short memories that Monot writes, and Claude Code's built-in memory (the memory files that Claude Code itself keeps for a project) belong to the repo, so every branch and every worktree (a checkout of the repo in its own folder) can recall them. Global memories belong to no repo, so every repo can recall them.
~/.monot/ and the built-in memory, made-up names
a session on branch abc-12-empty-rows
Each route below adds text to Claude's context. The session follows the branch that its worktree is on. If one session switches the branch, every session in that worktree moves to the new task.
recall tool reads a whole memory or searches past the gate; remember and forget store or delete a fact.# where your data goes
Extraction and picks are on by default, and they are the only parts of Monot that send your text off your machine: both send it to Anthropic. Extraction sends the short form of each finished session (your prompts, Claude's text and one line per tool call), with the stored memories that are most like its new facts, so that Monot does not store one fact twice. A pick asks an LLM (a large language model, such as Claude) to choose one memory for your prompt: it is one more claude -p call per prompt. The call sends your prompt, the session so far, and the names and descriptions of stored memories. When your prompt has 10 words or fewer besides file paths, it also sends the text of a document that the prompt names. By default, a context window makes at most 10 pick calls, and the pick_cap line in ~/.monot/extract.toml changes that limit. Both run through claude, the command that runs Claude Code. With a Claude plan login they cost nothing extra; with an Anthropic Console login they are billed as API usage. To turn extraction off, add the line extract = false to ~/.monot/extract.toml. Sessions that run while extraction is off still wait for extraction, and the worker sends them when you delete that line. To turn picks off, set pick = false in the same file. To turn Monot's hooks off for one session, start Claude with MONOT=0 claude. The update check of a release build also goes online: when a session starts, at most once in 24 hours, it asks github.com for the latest release. It runs claude plugin update to update the Monot plugin, and while the plugin is older than the binary, a later session start can run that command again within the 24 hours. It sends no prompt, memory or session text. extract = false and pick = false do not stop it, and MONOT_UPDATE=0 does.
claude command and its login. You set up no API key and no model endpoint (the web address of a model API): the first session writes Monot's settings file, ~/.monot/extract.toml.~/.monot/index.db, is a local SQLite file and only a cache.monot runs every hook and the MCP server. Claude Code starts them, so you run no service of your own.[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.MONOT=0 claude to turn Monot's hooks off for one session. Its MCP tools still answer when Claude calls them.# install
Run the three commands in your terminal, or paste the prompt into Claude Code and it runs them for you. The prompt also checks the machine, the PATH and the result. 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 and puts the binary at ~/.local/bin/monot, so ~/.local/bin must be on your PATH.
# 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@monotInstall 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.