Skip to content

Record and read

Let agents read sessions

The skill every connected agent gets, what to ask it, and the optional MCP tool.

Your agents read sessions the way you do: glance, then open. Any agent can read any session, so Codex can read what Claude Code did, and the other way round.

wisdom connect and wisdom init give each agent a skill that teaches it to run these in its shell:

Terminal
wisdom glance # recorded sessions, newest first
wisdom glance latest # one session: its shape and every turn
wisdom open t3 --capture latest # turn 3, whole

The skill also teaches an agent to hand a bug or a follow-up to another session, in the background, with wisdom handoff --emit.

Running connect or init again updates the skill to match your Wisdom version, and so does starting an agent with wisdom track. wisdom doctor tells you if it’s missing or old.

Ask in plain words. The agent finds the session and the turn on its own.

  • Which session changed src/totals.ts, and was that on purpose?
  • Read the last Wisdom session. Did the tests pass before it said they did?
  • What did the Claude Code session try before it settled on this fix?
  • Which session wrote the last commit, and did it do what I asked?

For the last one, the skill uses wisdom glance --commit. It also tells your agents not to run wisdom guide unless you ask, since that calls a model on your account.

Here an agent checks a change against the request behind it:

Output
t3 in Add a one-line docstring to main() in jev_router/tool.py.
c4 Edit src/optim_jev/tools/jev_router/tool.py · ok · → p1
reply I added a one-line docstring to main().
p1 src/optim_jev/tools/jev_router/tool.py · modify · +2 −1 · observed during c4
def main() -> None:
- mode = sys.argv[1] if len(sys.argv) > 1 else ""
+ """Dispatch a JSON request from stdin to the handler named by argv[1]."""
+ mode =sys.argv[1] if len(sys.argv) > 1 else ""

The request and the reply both say “docstring”, but the diff shows the line below changed too. The agent sees the change, the request behind it, and where they differ.

Claude Code answering from the record with wisdom glance and wisdom open

An agent’s shell can cut output shorter than Wisdom’s own 80,000 characters: Claude Code saves all of it to a file, and Codex takes out the middle. The skill teaches agents to notice, and to read the rest in pages with --at and --from:

Terminal
wisdom open t3 --capture 3f9c2a71 --at 412 --from 1 | head -n 300
wisdom open t3 --capture 3f9c2a71 --at 412 --from 301 | head -n 300

complete at the end describes Wisdom’s answer, not what the agent’s shell showed of it.

A sandbox can let an agent read through a running service but not start a stopped one (Codex’s on Windows does this). The hooks normally start it first. If it isn’t running, run wisdom daemon start yourself, outside the sandbox.

Copy the wisdom-ledger skill in through that agent’s own skill mechanism. It only needs a shell in the project’s folder.

Most agents don’t need it. It’s for an agent without a shell, or if you’d rather give a tool than a command. One read-only tool, ledger, returns the same text as the CLI. It takes glance, open, capture, commit, from and at. It can’t start an agent or edit code. wisdom track already passes it to Claude Code and Codex. Starting it can start the background service.

To add it to another agent:

MCP settings
{
"mcpServers": {
"wisdom": {
"command": "wisdom",
"args": ["mcp", "--data", "/path/to/your-project/.wisdom"]
}
}
}