Profile
Back to NewsBack
GitHub Trending 24 min
Reader Mode
altrace-dev-role/rashomon: Verify what your Claude Code agent actually did. Rashomon keeps an independent record of every tool call, subagent, failed command, and flags when the agent's summary says all tests pass but something failed. Open-source AI

altrace-dev-role/rashomon: Verify what your Claude Code agent actually did. Rashomon keeps an independent record of every tool call, subagent, failed command, and flags when the agent's summary says all tests pass but something failed. Open-source AI

rashomon

**AutoSteer for Claude Code: brief the agent before it writes, check the result after.**

AutoSteer hands your Claude Code agent what your repository already knows about the files a request touches, and tells you at the end of a turn whether a test or build passed after the last edit.

It never blocks the agent. The record is a folder on your machine; rashomon sends it nowhere and makes no network connection. The notes it gives the agent become part of the conversation, like anything else the agent reads.

AutoSteer

AutoSteer is rashomon's steering layer, and the direction the project is heading. Coding agents read and write code well, but in a large codebase they miss things: a caller in another package, a helper they should have reused, a convention the team settled last year.

AutoSteer's goal is to know those things and hand the agent the ones that matter for the task in front of it:

  • Architecture and dependencies: which parts of the code a change touches,
and what depends on them.
  • Conventions and past decisions: the rules your repository and your team
have already set.
  • Independent verification: after the work, rashomon reads its own record,
not the agent's account of it.
  • Learning: over time, keeping the guidance that helped and dropping what
did not.

The loop: know the project, understand the task, brief the agent, record what it does, verify the result, update what is known.

What works today

  • A note before the agent starts: the paths your request names, the rules a
spec you have trusted sets for them, and the checks to run before done.
  • The end-of-turn check: whether a test or build passed after the last edit,
and whether done was claimed without one.
  • In a repository you have indexed
(Index your repository): a brief drawn from the repository's own graph with each request, and for Go and Python a check of each edit against that graph.
  • A lesson you import and approve at a terminal can be sent to the agent.
Coming next
  • Learning your conventions from past sessions. Today you declare or import
them.
  • Keeping a long session's thread across a compaction or a restart.
  • More languages and Windows. Go and Python, macOS and Linux today.

Get started

Needs Claude Code 2.1.280 or later, on macOS or Linux. Installing needs no Go. In a terminal, not inside a Claude Code session:

curl -fsSL https://raw.githubusercontent.com/altrace-dev-role/rashomon/main/install.sh | sh rashomon watch

watch shows what installing does and asks Install? [y/N]; answer y, then use claude as usual. This installs the latest release, v1.0-AutoSteer: rashomon version prints 1.0-AutoSteer.

Or install it as a Claude Code plugin, in a terminal:

claude plugin marketplace add altrace-dev-role/rashomon claude plugin install rashomon@rashomon claude plugin enable rashomon@rashomon

Then use claude as usual. Enabling the plugin is your yes to what it records, so read What it records, and what it never stores first; the plugin stores that yes at its first session. claude plugin list shows Version: 1.0-AutoSteer. The plugin puts no rashomon on your PATH; where this README runs rashomon in a terminal, use ~/.claude/plugins/cache/rashomon/rashomon/1.0-AutoSteer/bin/rashomon, the path its first session prints. Use one route: watch refuses beside an enabled plugin.

Go 1.25 or later is needed only to build main yourself; a Go repository's graph has steps of its own (Index your repository):

go install github.com/altrace-dev-role/rashomon/cmd/rashomon@main rashomon watch

go install puts rashomon in $(go env GOPATH)/bin, which must be on your PATH.

What you'll see

When a request names a file in the project, the note rashomon gives the agent is shown to you above the reply. For the request in Try it:

※ rashomon told the agent: "rashomon record: preflight for this request from the repository; the request text is not kept. paths named: 'internal/parse/lexer.go' spec rules that apply: none gates before done: none; evidence for a done claim (inferred from the request): judgment_disclosed unknown: no spec found; no gate history for this project"

At the end of a turn that edited files or ran a test or build:

※ rashomon: verified - go test passed after the last edit. → rashomon report --session

When the agent says it is done and no test or build ran after its last edit:

※ rashomon: done was claimed; the record shows 1 file edited, no test or build run after the last edit. → rashomon report --session

!Claude says all tests pass; rashomon's end-of-turn line reports a recorded failure, and an excerpt of the report shows it

Try it in three steps

  1. Make a scratch Go project:
mkdir -p /tmp/rk-try/internal/parse && cd /tmp/rk-try printf 'module example.com/rktry\n\ngo 1.25\n' > go.mod printf 'package parse\n' > internal/parse/lexer.go
  1. Run claude, accept the folder trust prompt, and send
fix the zebracornflake check in internal/parse/lexer.go; reply in one sentence and run no tools. The note shown above appears before the reply.
  1. Type /exit, then check that no word of the request beyond the path was
kept. This prints only grep exit=1:

grep -rl zebracornflake "$(rashomon status | sed -n 's/^store: //p')"; echo "grep exit=$?"

The measurement holdout is opt-in: it is off unless you set RASHOMON_HOLDOUT=on or a trusted spec carries a holdout object. With CI set in the environment, no note is shown.

RASHOMON_STEER_ARM=off or steer forces the arm of a paired measurement run, and only on a lab store (one rashomon measure --prepare marked); on any other store it reads as unset, so a repository's settings cannot switch the holdout off with it.

Index your repository

The notes above need no setup. To also give the agent a brief drawn from your repository's own dependency graph, index the repository once:

rashomon graph index

That writes .rashomon/graph.jsonl in the repository, and .rashomon/graph.json, the configuration it inferred from your manifest files, when none is there.

A Go repository needs one step first. Its graph comes from pgraph, a second tool in this repository. The plugin carries pgraph and runs it in the background in a Git repository whose root holds go.mod. The install script and the go install route do not bring it: there, install it yourself. It is a Go module of its own and needs Go 1.26 or later:

go install github.com/altrace-dev-role/rashomon/pgraph/cmd/pgraph@main pgraph sync . rashomon graph index

pgraph sync writes .pgraph under the repository; deleting that directory forgets it. Without the sync, rashomon graph index stops and says no pgraph sync with a symbols file under this root; run pgraph sync.

A Python repository is indexed by rashomon graph index alone, by a reduced reader: definitions, imports and calls by name. In a Python repository, the brief of a unit at the first edit in it, the check after an edit and the keeping of the names each edit declares begin only once consent to this build is on file: at a terminal, a yes to this build's screen, which rashomon watch and rashomon consent show again; with the plugin, its first session on this build, which records that consent with a notice. Consent given to an earlier build alone never brings them to a Python edit.

The Python reader is a first version; the release notes list what it does not read yet.

Indexing changes what rashomon keeps for that repository. Read What it records, and what it never stores before you index one.

What a disagreement looks like

Here the tests failed while a helper agent (a subagent) looked through the code, yet the agent's closing message says the tests pass. The session is built by test/acceptance/readme_test.go, which feeds hook payloads through the real recorder, and that test fails if this excerpt and the render ever differ. This excerpt is rashomon report exactly as it renders that session:

the agent's account: "Done. I refactored ParseConfig and all tests pass." subagents: 1 agent-a41f (Explore): 3 declarations, 3 executions, 1 Bash (these calls do not appear in the main transcript) failed calls: 1 the final message contains none of these 43 words: fail, failed, failing, error, errors, couldn't, could not, unable, not able, didn't, did not, blocked and 31 more of 43 (--json lists them all) test runs: 1 (0 ok, 1 failed)

The first line quotes the agent; the rest is rashomon's own record. --chain shows which call failed. The report lists the failure words the summary does not use; it does not guess why.

How the notes reach the agent, and when they do not

What this build does today: it records every tool call the agent makes. Before the agent starts on a request, it tells the agent what the repository declares about the files the request names: the rules a spec you have trusted sets for them, and the checks to run before done. At the end of a turn it tells you whether a test or build passed after the last edit, and when done was claimed without one. It never blocks a call. The notes and the end-of-turn checks are its steering layer, AutoSteer. The note before the agent starts reaches it on every supported version; a note after a call that succeeded on Claude Code 2.1.280 and later; and a note after a failed call on Claude Code 2.1.304 and later. Where a note is not sent (an older version, a version that failed the delivery check or could not be read, a subagent's call, an SDK session, or a session whose surface could not be read, or an event whose notes are withheld as described next), one line per session tells you a note was built and not sent, such as:

rashomon: a note was built and not sent to the agent (Claude Code 2.1.280, PostToolUseFailure; delivery verified from 2.1.304): this version is older. Shown once per session.

At a turn end it also reads Claude Code's transcript in memory, and stores none of it, to check that each note it sent appears there. If a note is missing at two turn ends, it stores one small file, channel-evidence-, holding only the Claude Code version, and stops sending notes for that hook event until a delivery check passes or Claude Code is newer; the line above then tells you.

What it does not do yet: learn your architecture or conventions by itself. A lesson you import and approve at a terminal is sent with a prompt that carries no preflight note, at most one per prompt and each lesson once a session; it waits while a preflight note is sent, and with steering off or no agreement to steering notes it is shown to you and not sent. Finding lessons in past sessions is the next layer, and it is not in this build.

What it records, and what it never stores

The record is a folder on your machine: $RASHOMON_HOME, else $XDG_STATE_HOME/rashomon, else ~/.local/state/rashomon. This is the full list of what it keeps, word for word as the install screen's full view (rashomon consent --full) prints it:

STORED ON THIS MACHINE, NEVER SENT BY RASHOMON: for each tool call, the tool;
which agent made it; the program a command runs, its argument count and a
keyed digest of its input (never its text); the hostnames it names; the
transcript path; the permission mode; at record scope v5, the one a yes here
records, the working directory, the project root, the file an edit names and
the files a shell line may write, in the clear, and the SHA-256 of the file an
edit names as the call left it (never its content), where rashomon status
shows the scope and this build has no setting that leaves these out; how it
ended (outcome, exit code, interrupted or not, duration); and the time each
hook event first ran in a session. For a test or build line: the runner it ran
in and the pipe stage that hid its exit status, each one word from a closed
list the binary ships (never a word of the command); for a gate run, or
another command whose output holds a line a test runner prints about its run,
one closed word that classifies its output (a passing or failing summary, a
failure line, an empty run, the exit status the line printed for its runner as
pass or fail, or none found), and not the output, which is read in memory; one
bit, when true, that says the hook could not read where a shell line started
because a leading cd was one it does not read (never the directory it names);
in a note's steer line, where the outcome it rests on came from (the exit
status or the output's summary); and, when a prompt's preflight finds no spec,
one small hint that holds the turn's id and a keyed digest of the directory it
looked from, nothing else. At each turn end: the state of each test or build
check, a keyed digest of each claim sentence it checks in the agent's final
message (never the sentence), and the digest of the project spec
(.claude/rashomon/spec.json) whose rules it applied. For each call a project
spec rule matched or was checked against, and each accepted plan checked
against the spec's path rules, the rule's id in the clear; for such a plan,
three counts of what the check found and keyed digests of the paths it
covered, never a word of the plan. Each note it adds, word for word, except a
request's preflight note at record scope v4, which keeps a count of the paths
it named and keyed digests of them, and except the briefing after Claude Code
compacts the conversation, which quotes your earlier instructions to the agent
word for word; the record keeps only each quote's length and a keyed digest,
never your words. Your on and off switches (config.json), and for a project's
switch (summary_projects, steer_projects) the project's directory.

It never stores your prompts, the agent's messages, tool output, file contents or a spec file's text (of a spec, only its digest and its rules' ids, and, where edits are kept, the paths, patterns and symbols named by the rules each edit is checked against). It reads each prompt in memory to write the preflight note and keeps no word of it beyond the project paths and symbols the note names. rashomon report quotes the agent's final message from Claude Code's transcript without storing it. The one exception is opt-in: rashomon bodies on copies this project's transcripts into the store, and rashomon forget --bodies removes them.

In an indexed repository, once consent to this build is on file (at a terminal, a yes to its screen; with the plugin, its first session on this build), it also keeps what each edit declares, never the file's other text. Of a Go file: the names of the file's functions, types, methods, constants and variables, the first sentence of each one's doc comment, the names a function calls and the packages the file imports. Of a Python file: the names of the file's functions, methods and module constants, each with its kind and line; the names its code calls that the file defines or imports from the repository, with the line of each call; the repository's modules the file imports and the names it takes from them; and the file's module. Consent given to an earlier build alone keeps none of it for a Python file. An indexed repository is one with .rashomon/graph.jsonl at or up to four directories above the working directory, whoever wrote it: rashomon graph index writes one, and a cloned repository may carry one. It keeps them with the file's path and SHA-256 in one log per repository under the store's graph/ directory, beside the briefs and the conflict base each prompt writes there. For each such edit, the session's record also keeps why its unit's brief could not be given, when it could not (absent, stale or refused), with a keyed digest of the unit, and, where the edit is checked against the conflict base, the graph's commit, a keyed digest of the file and each conflict the edit leaves: its kind, its rule's id, a keyed digest of the conflict, and the unit and the symbol or file it is about, with the unit's path, or keyed digests of the two and no path where the record scope is v4. The size cap does not cover graph/: what it holds stays until rashomon purge.

Repository specs: trust and declared gates

A repository can declare rules for its paths in .claude/rashomon/spec.json:

{"rashomon_spec": 1, "rules": [{"id": "parse-owner", "kind": "protect_path",
  "why": "the parser belongs to the platform team",
  "hard_control": "code review by the platform team", "paths": ["internal/parse"]}]}

Its rules only flag to you until you trust the file at a terminal with rashomon spec trust .claude/rashomon/spec.json, which shows its digest and asks for the first 8 characters. In the next session, a request that names a path under internal/parse gets spec rules that apply: 'parse-owner' (trusted) 'the parser belongs to the platform team' in its note. An edit to the file untrusts it, and rashomon spec untrust .claude/rashomon/spec.json takes the trust back. rashomon does not enforce a rule; hard_control names what does.

A gate is a check that should pass after the last edit. Add one beside the rules, "gates": [{"id": "unit", "kind": "test", "argv": ["go", "test", "./..."]}], and trust the file again. The note then lists gates before done: 'go test' (trusted), and a turn that claims done after an edit with no gate run gets the done was claimed line.

rashomon also keeps each project's history of checks: a check run in two sessions within thirty days is required there. In such a project, the first edit after that check passed in a session gets a note at once:

※ rashomon told the agent: "rashomon record: gate 'go' exited 0 earlier in this session (2 min ago); this call then wrote 'internal/a.go'. No later run of the gate is recorded."

Common questions

Does it send anything anywhere? No. It makes no network connection and sends no telemetry. No package in the rashomon binary, its own or a dependency's, imports crypto/tls, net, net/http, net/http/httptrace or os/exec, and CI checks that on every pull request, every push to main and every release tag. The notes it adds become part of the conversation Claude Code sends to your model provider.

Can it break my agent? It never blocks a call, and its hooks exit 0 when something inside them goes wrong, so Claude Code carries on.

Why did a passing test not count? A pipe gives the line the exit status of its last command, so pytest -q | tail exits 0 whether the tests passed or not, and rashomon cannot take the pass from the exit status. When every stage after the runner is tail (without -c), tee or a bare cat, rashomon reads the runner's own summary line in the output, in memory, and counts that. It does this for pytest, go test, cargo test, jest and vitest. A pass from a piped make, npm run, yarn or pnpm still reads as hidden, because a pass line in their output belongs to one step, not the whole command; their own failure markers (make's *, npm ERR!, yarn's error Command failed, pnpm's ERR_PNPM) do read as a failure. A piped run read as failed this way, after an earlier green and edits between the two, raises the same regression note an unpiped failure does, at that call. The Stop line then names the runner and where the result came from, for example "python3 -m pytest passed after the last edit (read from its output; the pipe hid the exit status)". A run still reads as hidden when a later stage is any other command (head, grep, wc, sort, cut), when the output has no summary line (for example tail -3 cut it off), when the runner is one rashomon has no summary reader for, such as python3 -m unittest, and when || true or ; echo $? hides the status instead of a pipe. Running the tests unpiped, or asking the agent to in your CLAUDE.md, is no longer needed for the pipes above and still gives the exit status for the rest.

Is it a sandbox or a security tool? No. It does not stop or contain the agent, and it cannot stop a determined agent from changing its records.

How do I turn it off? In a terminal outside Claude Code, rashomon detach removes the hook entries and rashomon purge also removes the store; both are refused from an agent session. With the plugin, use /plugin.

How much disk does it use? At most 512 MiB of runs by default; the oldest runs go first, each leaving a gap record. RASHOMON_STORE_CAP_BYTES sets the cap in bytes, and 0 keeps everything. The store's graph/ directory is not counted and stays until rashomon purge.

Inside a sandbox

A sandbox that limits where Claude Code can write must allow rashomon's store, or nothing is recorded. With nono:

mkdir -p ~/.local/state/rashomon
nono run --profile claude --allow ~/.local/state/rashomon -- claude
rashomon report --nono-audit ~/.local/state/nono/audit/<nono session id>/audit-events.ndjson

The sandbox section has something to count only when nono filters the network. In v1.1.0, with nono's claude profile, which leaves the network unfiltered, the trail holds no network event at all, and the section reads 0 allowed, 0 denied however many hosts the session reached. From v1.2.0-alpha.1 on, and in main, it says the trail holds no network events instead. An allowed http:// request leaves nothing in the sandbox section. --chain still lists its host under the call if the command named it.

Commands

| Command | What it does | | --- | --- | | rashomon watch [--yes] [--show] | Show what installing does; after y on the terminal, install the hook entries. --show writes nothing; --yes installs without asking (never from an agent session) | | rashomon status [--json] | Say what is installed and what the store holds, writing nothing; --json gives the same as one object | | rashomon report [--session S\|last] [--json] [--chain] [--timeline] [--redact] [--nono-audit PATH] | Render every recorded session, or the one named (last: this project's newest with a checkpoint); a named session opens with a short story, an autosteer block and a knowledge block (what the project holds, and what the session found or invalidated), the tables below it; --redact covers both blocks | | rashomon digest [--session S] [--prompt P] [--last-assistant-message TEXT \| --stdin] | Print one turn's record as JSON, at most 8 KiB: what one prompt recorded; read-only | | rashomon backtest --sensor ID | Replay this project's transcript copies (rashomon bodies on) through this build's hooks and print each session's fires of steer pattern ID beside the live steer log's; only reads the store | | rashomon summary [on \| off] [--user \| --project] | Say, or set, whether the end-of-turn line prints its value line, for you (--user, the default) or for this project; on unless set off; refused from an agent session | | rashomon brief [DIR] | Print the brief a session starting in DIR (the working directory by default) is shown: instruction files, manifests, the test command, the spec, the task and the Go package directories, each line naming the file it came from; writes nothing | | rashomon graph index [DIR] | Build DIR/.rashomon/graph.jsonl (DIR is the working directory by default) from DIR/.rashomon/graph.json, first writing that configuration from the repository's manifest files when it is not there; a Go repository needs pgraph sync DIR first | | rashomon why [--session S\|last] [--json] [--redact] ID-PREFIX | Say why one note fired: its pattern and key, the state it ended in, the calls it cites and the gate or rule it came from; reads, writes nothing | | rashomon steer [off \| on] [--user \| --project] | Say whether the notes to your agent are on, or turn them off or on; off sends the agent no note and shows you what it would have said, while recording goes on; refused from an agent session | | rashomon steer on --repair | Replace a config.json that does not read, after asking on your terminal; until then the notes are off | | rashomon steer explain / rashomon steer log [--all] [--json] | Say why the last note was or was not printed, or list the last 20 decisions (--all: every one); never a note's text | | rashomon scorecard [--json] | Count what the notes did, by pattern: sent to the agent, shown to you only, held out, or not printed, and why; counts only | | rashomon measure --prepare [--home DIR] | Mark the store at DIR (default: this process's) as a measurement lab, the only store whose hooks honour RASHOMON_STEER_ARM; writes that one file | | rashomon measure pair --session ID --arm off\|steer [--home DIR] | Compare two sessions of a paired run, one per arm, from their records; counts only, writes nothing | | rashomon spec trust [PATH] / rashomon spec untrust [PATH] | Trust a repository spec at its current digest, or take that trust back; both refused from an agent session | | rashomon lessons [--json] | List this project's lessons by tier, proven first, each with the day it entered and its fires; a ledger written by anything but rashomon is said quarantined first | | rashomon learn | List this project's lessons: each one's tier, its labels and the 95% bound that moves it | | rashomon learn approve ID | Show lesson ID and a one-time code on the terminal; the lesson may reach the agent only once that code is typed back there | | rashomon learn import FILE | Add a shared lessons file's rows at proposed | | rashomon consent [UNIT [off]] | Show the install screen again and record consent; UNIT is bodies or share.outcomes; refused from an agent session, off included | | rashomon pause / rashomon resume | Stop and restart recording on this machine, leaving a record of the change; pause is refused from an agent session, resume is not | | rashomon forget --host H \| --since T \| --before T \| --bodies | Erase the calls that named a host, records by time, or this project's transcript copies | | rashomon bodies on \| off \| status | Copy this project's transcripts into the store at session end, stop, or count the copies; on and off are refused from an agent session | | rashomon spend [--days N] [--json] | Estimate what the last N days of Claude Code usage would cost at API list prices; writes nothing | | rashomon receipt on \| trailer \| note DIGEST | Print the git hooks that put a receipt on each commit, the trailer naming the latest checkpoint, or that checkpoint; runs no git | | rashomon share build outcomes --out FILE | Write counts of the notes given to the agent, by pattern; needs rashomon consent share.outcomes | | rashomon detach | Remove the hook entries, leaving everything else as found; refused from an agent session | | rashomon purge [--yes] [--binary] | Detach, then remove the store and the directories watch created; refused from an agent session | | rashomon version | Print the version: the module version for a go install build (for example 1.2.0-alpha.2.0.: Go reads no semantic version from the tag v1.0-AutoSteer), the release version for a release binary; a local go build in a clone prints the version Go derives from the last tag and the commit, and dev only when the build carries none |

rashomon --help lists the commands and their main flags.

Status

Early beta. The latest release is v1.0-AutoSteer, and main may be ahead of it. Release binaries are not signed, and there is no Homebrew formula. **Windows is not usable yet**: the release publishes Windows binaries, but watch quotes the installed command for a POSIX shell.

Contributing

Issues and pull requests are welcome; main changes only through a pull request with CI green. Report security issues through private vulnerability reporting, not a public issue; see SECURITY.md. Chat: Discord.

License

Apache 2.0. See LICENSE. Built by Altrace.

Chat with me