ashlr

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

  1. Install the CLI and the MCP command.
  2. Call ashlr-plugin tools --json and ashlr-plugin stats --json.
  3. Register ashlr-mcp for Claude Code, Cursor, or Codex. Snippets are in the repository llms-full.txt and on llms-full.txt.

What the tools change

  1. 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.
  2. Search can use a project genome when .ashlrcode/genome/ exists. Without one, it falls back to a shorter ripgrep result.
  3. An edit returns a diff summary instead of the whole file.

Install

npm install -g ashlr-plugin
ashlr-plugin tools --json

Claude Code plugin:

curl -fsSL https://plugin.ashlr.ai/install.sh | bash

See Install for Codex, Cursor, and Goose.

What's included

LayerWhat you get
54 MCP toolsToken-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 surfacesClaude Code status line, Codex MCP/CLI savings, local stats ledger
Genome loopAuto-extracts architectural knowledge into .ashlrcode/genome/
Savings badgeEmbeddable 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.

RepoRole
PhantomThe engineering agent workbench: one CLI (phm), a JSON interface and an MCP gateway that run the agent fleet.
Phantom SecretsAgents 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.
LocusIdentity pinning: CLI commands, MCP tools and agent sessions are sealed to one pinned account.
LexiconA personal voice lexicon that fixes the names speech-to-text gets wrong before they reach the agent.
Ashlr StackConfigures supported services from the terminal or an agent and records credentials in Phantom Secrets.
Ashlr MDAn 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.

On this page