What is ashlr?
Open-source Codex and Claude Code plugin. Agents install the CLI, call it with JSON output, and register the MCP server. Opt-in telemetry.
ashlr is a Codex and Claude Code plugin that replaces high-volume Read, Grep, Edit, and Bash workflows with lower-token alternatives, tracks what it saves, and surfaces the ledger through MCP tools, CLI commands, Codex skills, and the Claude Code status line.
On the 2026-10-17 reference run, reads were about 75% smaller and greps about 27% smaller per call. Per-repo means on that run were about 60% on vercel/ai, about 63% on pandas, and about 55% on tokio. That is not a whole session. MIT-licensed. Telemetry is off by default and explicit opt-in only. Works with Codex, Claude Code, Cursor, Goose, and generic MCP hosts.
See savings math for the methodology.
How an agent uses it
- Install the CLI and the MCP command.
- Call
ashlr-plugin tools --jsonandashlr-plugin stats --json. - Register
ashlr-mcpfor Claude Code, Cursor, or Codex. Snippets are in the repositoryllms-full.txtand on llms-full.txt.
What the tools change
- Large supported JavaScript and TypeScript files can return an AST skeleton; other reads may return compacted or summarized content. Snip mode keeps the head and tail.
- Search can use a project genome when
.ashlrcode/genome/exists. Without one, it falls back to a shorter ripgrep result. - An edit returns a diff summary instead of the whole file.
Install
Claude Code plugin:
See Install for Codex, Cursor, and Goose.
What's included
| Layer | What you get |
|---|---|
| 54 MCP tools | Token-efficient file, search, edit, bash, SQL, HTTP, diff, logs, genome, GitHub |
| 39 slash commands + Codex skills | /ashlr-status, /ashlr-savings, /ashlr-tour, plus Codex doctor/savings/genome workflow skills |
| Status surfaces | Claude Code status line, Codex MCP/CLI savings, local stats ledger |
| Genome loop | Auto-extracts architectural knowledge into .ashlrcode/genome/ |
| Savings badge | Embeddable SVG you can drop into your repo README |
Part of the Ashlr ecosystem
ashlr is one of the open-source tools from Ashlr. Phantom and its ecosystem form an autonomous, code-first, agent-native software factory: agents do the engineering, the human sits as a passive board member, and the goal is open source RSI (recursive self-improvement). Each repo is a tool the agents use, and agents maintain each repo.
| Repo | Role |
|---|---|
| Phantom | The engineering agent workbench: one CLI (phm), a JSON interface and an MCP gateway that run the agent fleet. |
| Phantom Secrets | Agents use API keys without seeing them: phm_ placeholders are swapped back at a local proxy. |
| ashlr-plugin (these docs) | The efficiency layer: shorter tool output for Claude Code, Codex, Cursor and other MCP hosts, with a local savings ledger. |
| Locus | Identity pinning: CLI commands, MCP tools and agent sessions are sealed to one pinned account. |
| Lexicon | A personal voice lexicon that fixes the names speech-to-text gets wrong before they reach the agent. |
| Ashlr Stack | Configures supported services from the terminal or an agent and records credentials in Phantom Secrets. |
| Ashlr MD | An open-source desktop Markdown app with on-device AI. |
The plugin, Ashlr Stack and Locus share the companion handshake: ashlr-plugin --ashlr-handshake prints capabilities and health as JSON, so Phantom and other agents can discover the plugin without parsing --help.
Agents work on the repository directly: they branch, commit, open pull requests and merge on green under the rules in AGENTS.md. People are welcome too; see Contributing.