ashlr

ashlr__bash

Token-efficient bash execution. Auto-compresses long stdout, summarizes common commands, refuses catastrophic patterns.

Server: ashlr-bashservers/bash-server.ts

A token-efficient replacement for Claude Code's built-in Bash tool. Long stdout is auto-compressed; common commands like git log, ls, and npm list return compact structured summaries instead of raw output. Catastrophic patterns (rm -rf /, DROP TABLE, etc.) are refused before execution. stderr is never compressed — errors always reach the agent intact.

Tools exposed

ToolDescription
ashlr__bashRun a command and return compressed output
ashlr__bash_startStart a long-running process in the background
ashlr__bash_stopStop a background process by ID
ashlr__bash_tailTail output from a background process
ashlr__bash_listList all running background processes

Input schema — ashlr__bash

FieldTypeRequiredDescription
commandstringyesShell command to execute
cwdstringnoWorking directory (default: cwd)
timeoutnumbernoTimeout in ms (default: 30000)
descriptionstringnoHuman-readable label shown in the status line

Output format

Returns stdout (compressed if over threshold) followed by stderr if non-empty:

$ git log --oneline -20
abc1234 feat: add genome propose loop
def5678 fix: snip threshold off-by-one
...
[truncated — 847 additional lines]

Example

Use ashlr__bash to run: git log --oneline -50
  • ashlr__diff — token-efficient git diff, more structured than raw bash
  • ashlr__logs — read log files with severity filtering

On this page