Purpose ashlr-plugin is an open-source efficiency layer for coding agents, intended to replace higher-output built-in calls in Claude Code, Codex, Cursor, and other MCP hosts with more compact file reading, search, editing, and shell results, thereby leaving more context for the task itself. It is powered by @ashlr/core-efficiency and includes local savings tracking.
Key capabilities
- Provides 54 MCP tools, including ashlr__read, ashlr__grep, ashlr__edit, ashlr__bash, and others; the experimental tool ashlr__pipe is disabled by default and requires setting ASHLR_PIPE_ENABLE=1.
- Reading supports multiple modes: for large supported JavaScript/TypeScript files, it can return an AST skeleton; other reads can return compacted or summarized content; mode: "snip" selects head/tail compression; bypassSummary: true restores full file content; focused reads can also use 1-based inclusive line ranges.
- ashlr__grep requires ripgrep (rg) in PATH; file and search tools operate within allowed project roots.
- ashlr__edit accepts path, search, and replace and writes to the file.
- A local ledger records savings, viewable with ashlr-plugin stats --json or ashlr__savings.
- In Claude Code, PreToolUse hooks for Read, Grep, and Edit redirect eligible calls by default; ASHLR_HOOK_MODE=nudge only suggests, and off disables. The Bash hook only suggests ashlr__bash for supported verbose commands. Codex uses prompts rather than forced redirection; Cursor directly calls MCP tools.
- Claude Code also provides slash commands, a status bar (showing savings and other information), and a doctor self-check.
Usage Requires Node.js and Bun 1.3 or newer in PATH; no account is required. Install the CLI and MCP server: npm install -g ashlr-plugin.Then run ashlr-plugin tools --json . and you should see a JSON object containing count and a tools list, including ashlr__read and ashlr__grep. Next, add the MCP server configuration for the host and restart the host. The host starts ashlr-mcp via stdio. Configuration examples: Claude Code project file .mcp.json; Cursor project file .cursor/mcp.json; for Codex, add the corresponding block in ~/.codex/config.toml (matching ashlr-plugin codex-install --dry-run --json). For other hosts such as Goose, see ports/README.md and docs/multi-host-mcp.md. Verification: have the agent read README.md with ashlr__read, then run ashlr-plugin stats --json to view the local ledger; an unused installation returns an empty ledger. Troubleshooting: run doctor to check the installation (version, skills, commands, hooks), the configuration (plugin settings, MCP server entries), and whether each MCP server responds within 5 seconds; the exit code is 0 when everything is ok or warn, and 1 if any check fails.
Use cases Suitable for coding agent workflows using MCP hosts such as Claude Code, Codex, and Cursor, especially when you want to reduce the context consumed by tool output, need local statistics on savings, or use hook redirection and the status bar in Claude Code.
Limitations and notes
- The savings figures are the difference for a single tool call, not the total for an entire session. In the reference run, reads were about 75% smaller and grep about 27% smaller; the per-repository averages for the same run were about 60% for vercel/ai, 63% for pandas, and 55% for tokio.
- The MCP server runs on the machine that starts it, and tool results are returned to the host; output large enough to require summarization is sent to the first available LLM provider (Anthropic when ANTHROPIC_API_KEY is set or Claude Code login credentials exist, unless a reachable ASHLR_LLM_URL is set); ASHLR_LLM_PROVIDER=local or off keeps it local.
- Telemetry is off by default and is opt-in only when ASHLR_TELEMETRY=on.
- The local plugin is a free product; Pro ($12/month or $120/year) adds cloud summarization and cross-machine statistics; Team ($24/user/month, or $20/user/month billed annually, minimum 3 people) adds a shared encrypted genome. See docs/pricing.md for pricing and limits.
- Offline ONNX summarization requires installing onnxruntime-node separately (npm 11 does not run its install scripts by default).
- The plugin's own provider calls read the usual environment variables and keep the old defaults; only URL handling is tested, and it has not been tested against a specific gateway.
- For the Phantom integration, the plugin can run within the Phantom Secrets boundary; the fleet mod is provided only with the git plugin (the npm package does not include mods/), and some CLI contracts are still upstream proposals.
- The documentation does not provide further details on platform compatibility, effectiveness guarantees, or unlisted features.