AI R MCP server
io.github.pro-target/ai-r·v0.4.2·3 starsRead local AI agent sessions (Claude Code, Codex, OpenCode, Antigravity, Pi): intents, plans, tools
3 stars22 downloads/wk
Reviews
Write oneNobody has reviewed AI R yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
AI R tools (16)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
aggregateRoll a list of row dicts up by ``group_by`` — the generic stats verb.
detect_currentReturn the current runtime identity (session + agent) from env/fs.
diffStitch edit rows into a per-file chronological diff — the diff verb.
find_file_editsFind every file edit across sessions, cross-agent by default.
find_tool_callsFind every tool call across sessions, cross-agent by default.
get_bodyReturn the on-demand body for an event / plan ``id``.
incidentslist_sessionsnetworkplanqueryquotesread_sessionsearch_sessionssession_diffReconstruct *what the agent changed* in one session — without git.
session_stats
Public scan report
scanner v0.1.9 · 2026-09-25 · same rubric, same numbers if you re-run it
- Code scan67 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How AI R compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 4,460 AI and agents servers
- Tools
- 16
- the typical AI and agents server has 6
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 3
- more than 75% of 2,711 AI and agents servers
- Downloads a week
- 22
- more than 8% of 1,538 AI and agents servers with a package
What its tools let an agent do: 16 read
Install AI R in Claude Code, Cursor or VS Code
claude mcp add ai-r -- uvx agent-session-reader
What the publisher says
From the AI R repository's README, as published. We do not edit it. Read it on GitHub
<!-- mcp-name: io.github.pro-target/ai-r -->
ai-r
English | Русский | 中文 | 日本語 | Español
An agent reported "done." There's nothing to check it against.
ai-r reads the session history of any of the five coding agents and lets a fresh agent cold-check what git can't answer:
dangerous (and roll it back if it did), what it actually changed, what it cost;
- did it lie, did it break anything — did it keep its word, did it run anything
behind the edit.
- why it went that way — under which plan, with what intent, and whose hand was
Across our own corpus — 1600+ sessions of five agents in 20+ projects — that's
how we found 312 risky commands (rm -rf, curl|sh, git push --force): the
agent caught and rolled back two itself; the other 310 ran silently — git
won't show them.
git shows what made it into the code; ai-r shows whether you can trust how the agent got there. Read-only: no LLM calls, no network.
Quick example — an agent asks about history
The primary mode is MCP: an agent (Claude, Codex, …) calls ai-r directly and asks about history in plain language. For example — pull the plan the previous agent settled on, drafts discarded:
Show me the plan from the last session — final only, no intermediate revisions.
→ plan(session=…, kind="final") → get_body(id, shallow=true)
plan: "Migrate auth to JWT: 1) extract the check…"
dropped_drafts: 2 ← two drafts the agent threw away along the way
session: a3f… (claude)Fast edit attribution — one terminal command, across every agent at once:
ai-r find-file-edits auth.py --since 2026-06-012026-06-03 codex auth.py "add a refresh token" edit
2026-06-07 claude auth.py "extract the check into middleware" editWhat hurts
the plan in one shape, the edits in another.
- "Done, I did X per plan Y" — with nothing to check it against: the agent keeps
did the other agent already try?"
- You switched agents mid-task and lost the thread. There's nowhere to ask "what
what request.
- An edit shows up in a file — and it's unclear which agent made it, and on
One cause: every agent writes its history its own way — Claude and Codex in JSONL, OpenCode in SQLite, Antigravity in "brain" directories, Pi in per-project JSONL. Five formats, five layouts — together they don't reconcile.
The promise
ai-r folds all five into one read-only interface. Point any agent — or a script, or yourself — at any session, no matter which tool recorded it. One query shape per agent; format differences are normalized inside the parsers.
Even with a single agent it works: you audit your own Claude history (or Codex…). The five formats are so your history doesn't break when you switch tools — not a requirement to have all five.
As a source for RAG
In an "LLM + external data source" setup (RAG), ai-r is the source — more precisely, a retrieval layer over agent sessions. For a query it returns not a slice of log but parsed entities: the plan, the intent, the authorship of an edit — with a reference to the body the agent can pull if it needs it.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
AI R: common questions
- Is AI R MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the AI R safety report
- How do I install AI R?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does AI R need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is AI R maintained?
- The last commit was 40 days ago (2026-09-25). The latest release is v0.4.2.
- What can I use instead of AI R?
- Servers from other publishers that do the same job: Agent-Native Plan MCP server, SuperCompress MCP server and Watch Skill MCP server.
- How does AI R compare with other AI and agents MCP servers?
- safety score 92/100 (higher than 90% of 4,460 AI and agents servers); tools 16 (the typical AI and agents server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to AI R
Same job from other publishers: the closest match first, then the best rated.
- Agent-Native PlanStructured visual plans and PR recaps with diagrams, prototypes, annotations, and sharingnot reviewedEstablishedA
- SuperCompressCompress coding-agent context ~64%. Hosted Neural Keep MCP for Cursor/Claude/Codex.not reviewedEstablishedB
- Watch SkillWatch video and live sessions, keep timestamped evidence, and verify an agent's own work.not reviewedEstablishedB
- OpenWorkProofVerifiable agent evidence; opt-in Codex guard and reference SOC alert review.not reviewedEstablishedA
- three.ws BillingAn agent's account economics — plan quotas, metered usage, invoices, receipts, and earnings.not reviewedEstablishedB