Labsco
MCP SERVER · OFFICIAL PROJECT

Ashlr Plugin

by ashlrai

Drop-in replacements for read, grep, edit and bash that return the same answer in far fewer tokens — with a running tally of what you saved.

Codebase Context Packing & CompressionOfficial source
Summary
The same work, with the bulky parts left out of the context window.

The maintainers put the cross-language saving at −57% against the built-in tools, measured on vercel/ai, pandas and tokio with a 95% confidence interval and a script you can run on your own repository. Treat that as their number, then check it on your code — the mechanism is plain enough either way: nothing here fetches less information, it just stops printing the parts the model was going to skip.

What it is

A tool set that stands in for a coding agent's high-volume built-ins. Large files come back as a compacted view plus a summary, greps route through a repository index when one exists, edits return a diff instead of the whole file, and shell output is compressed by command type.

What you get
  • ashlr__read — head, tail and an LLM summary for large files, with line numbers kept on code
  • ashlr__grep — retrieval against the repository genome when it exists, ripgrep with a summary when it does not
  • ashlr__edit and ashlr__multi_edit — search and replace returning only the diff, with near-miss candidates when a match fails
  • ashlr__edit_structural for AST-aware renames across files, with a shadowing guard and a dry run
  • ashlr__bash with per-command summarizers for git log, git diff, ls, ps, tsc, package installs and test output
  • ashlr__bash_start and its companions for starting, tailing, stopping and listing long-running commands
  • ashlr__tree, ashlr__glob, ashlr__ls and ashlr__orient for finding your way around a codebase
  • ashlr__sql, ashlr__http, ashlr__webfetch, ashlr__logs, ashlr__diff, ashlr__diff_semantic and ashlr__test
  • ashlr__issue, ashlr__pr, ashlr__issue_create, ashlr__issue_close, ashlr__pr_comment and ashlr__pr_approve — no merge, close or delete
  • ashlr__savings — session and lifetime token savings, broken down per tool
Requirements

Bun 1.3 or newer, installed before the plugin — check with bun --version. There is an install script for macOS and Linux and a PowerShell one for Windows. Claude Code additionally gets automatic redirects from the built-in tools, slash commands and a status line; Codex, Cline, Cursor, Claude Desktop, Goose and generic hosts get the tools and the accounting without those extras.

Setup effort

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