Claude Code-ready. Codex-native. MCP everywhere.
Cut AI coding context without cutting the work.
Ashlr swaps noisy read, grep, edit, and shell output for compact MCP tools. Claude Code gets slash commands, redirects, and a status line; Codex gets plugin packaging, skills, and nudge hooks.
Multi-host by design
Native Codex support, not a compatibility footnote.
The same file. 79% fewer tokens.
Three mechanisms. Every file read, every grep, every byte accounted for.
ashlr doesn't compress with magic. It wraps the high-volume tools AI coding hosts already use, applies three concrete techniques at call time, and writes every saving to a local ledger you can audit.
snipCompact head + tail truncation.
Large files come back as head + tail with an elision marker for the middle — the parts agents actually scan. Typical 60 KB source file arrives as ~9 KB. A single call saves ~51 KB.
Genome-aware grep.
When a .ashlrcode/genome/ is present, ashlr__grep returns pre-summarized sections instead of raw ripgrep output. The agent gets the understanding it needs, not the noise.
Live counter. Every saving. Every session.
Every tool call appends to a local ledger under ~/.ashlr/stats.json. The status line ticks up within ~550 ms of each call. Sessions are keyed by the host session id when available, with ASHLR_SESSION_ID as an override, so concurrent terminals never collide.
MCP tools
The 54-tool router, grouped by the work it saves.
The landing page shows selected tools from the router catalog. The full reference covers every MCP tool, parameter, and host-specific behavior.
tree
View project structure in one call with directory sizes, file counts and optional LOC. Honors .gitignore in git repos; skips common build and dependency directories otherwise.
ashlr__readread
Read files instead of native Read with compact head/tail or AST summaries. Pass bypassSummary:true for full content, or startLine/endLine for an unsummarized range.
ashlr__diff_semanticdiff semantic
Summarize refactors instead of raw git diff with heuristic AST-aware rename, signature and formatting detection. Use instead of ashlr__diff for refactors; falls back to compact diff.
ashlr__prpr
Fetch a GitHub PR as a compact review summary: header, reviews, unresolved comments and checks. Read-only; never approves, comments or merges.
ashlr__genome_statusgenome status
Show pending proposals and recent mutations for the current genome. Compact report suitable for inline context.
ashlr__bashbash
Run commands instead of native Bash for verbose output. Compresses stdout above 2 KB and summarizes common commands; stderr stays intact. Refuses catastrophic patterns; use ashlr__read for cat.
Free forever. Cloud when you need it.
The free tier is the product. Pro adds hosted infrastructure — it does not remove or degrade anything in Free.
The full plugin — every tool, every skill, no strings.
- +54 MCP tools + Codex skills + 39 slash commands
- +Local genome scribe loop
- +Per-session token ledger
- +Codex + Cursor + Goose support
Cloud infra for one developer who wants sync and speed.
- +Everything in Free
- +Cloud LLM summarizer
- +Cross-machine stats sync
- +Live auto-updating badge
Shared genome and org-level visibility for engineering teams.
- +Everything in Pro
- +Shared encrypted team genome (E2E + vclock)
- +Org savings dashboard
- +SSO + SCIM + audit log
Questions
For agents and humans
Start with the agent index or the full agent reference. The short answers are below.
How does an agent start?
Install the package, call the JSON CLI, and register the MCP server for Claude Code, Cursor, or Codex. The copy-paste steps are in the agent index.
Does it need an account?
No account required. The local tools and the savings ledger run on your machine.
Does it send code anywhere?
The MCP server runs locally. Telemetry is off unless you opt in. File contents go back to the host that called the tool, the same way a built-in read would.
Ecosystem
Part of an agent-run software factory
Phantom and its sibling repos 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.
- 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 · This project. 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 a 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 this repo directly: they branch, commit, open pull requests and merge on green under the rules in AGENTS.md.