ashlr__bash
Token-efficient bash execution. Auto-compresses long stdout, summarizes common commands, refuses catastrophic patterns.
Server: ashlr-bash — servers/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
| Tool | Description |
|---|---|
ashlr__bash | Run a command and return compressed output |
ashlr__bash_start | Start a long-running process in the background |
ashlr__bash_stop | Stop a background process by ID |
ashlr__bash_tail | Tail output from a background process |
ashlr__bash_list | List all running background processes |
Input schema — ashlr__bash
| Field | Type | Required | Description |
|---|---|---|---|
command | string | yes | Shell command to execute |
cwd | string | no | Working directory (default: process.cwd()) |
timeout_ms | number | no | Kill after N ms (default 60000) |
compact | boolean | no | Auto-compress long output (default true) |
bypassSummary | boolean | no | Skip LLM summarization of long output |
Output format
Output starts with the command echo and ends with a footer giving the exit code, elapsed time and bytes saved by compaction. Common commands get a structured summary. Here git log is trimmed to the 10 most recent commits:
Other long stdout keeps its head and tail, with an elided-bytes marker in the middle ([... 7,293 bytes of output elided ...]). stderr follows stdout under its own marker, uncompressed:
Example
Related tools
ashlr__diff— token-efficient git diff, more structured than raw bashashlr__logs— read log files with severity filtering