Use RTK and Caveman with agnostic-ai
RTK shortens terminal command output before the agent reads it. Caveman makes the agent answer in fewer words. agnostic-ai sets up either. In our small test, combining them saved no extra cost (results).
Turn them on
Add the names to builtins in agnostic-ai.yaml, next to any you already use:
version: 1
targets: [claude]
builtins: [rtk]
Both are off by default; list both with builtins: [rtk, caveman]. Then run:
agnostic-ai sync
| Built-in | Adds | Notes |
|---|---|---|
rtk | A hook in .claude/settings.json (a command Claude Code runs before each shell command) | Claude Code only; Bash tool on macOS or Linux, not PowerShell |
caveman | SKILL.md in .claude/skills/caveman/ and in every other tool that supports skills | Type /caveman to start. License and notices: upstream |
- agnostic-ai installs neither program. Install RTK from its guide; without it, commands run as normal.
- Preview an RTK rewrite without running it:
agnostic-ai doctor rtk --command 'git status'.
What happens on a command
Claude asks to run: git status
RTK changes it to: rtk git status
Claude checks its permission rules on the new command
RTK runs it and returns shorter output
Claude checks the changed command, so an "ask first" rule for git status needs a twin for rtk git status (tested cases).
If you already use RTK or Caveman
- Keep one copy. If RTK is already on for all projects, two hooks can run on one command; leave the built-in off or remove your own copy first.
- A project hook identical to the RTK one is taken over by agnostic-ai, and removing
rtklater deletes it. Save a copy first to keep it.
Turn them off
- Say
stop cavemanto get normal answers again in this session. - Remove the name from
builtinsand runagnostic-ai sync. Usebuiltins: []to turn off all built-ins. disabled: truehas no effect on the RTK hook.
A copy you installed yourself, outside agnostic-ai, needs its own removal.
Share with a team
The example packs offer RTK and Caveman as packs instead of built-ins. Use one or the other for each tool. Caveman can also run as a program that shortens command output; the built-in does not turn that on. In our test, RTK cut one failing test log from 23,865 to 240 bytes and Caveman cut nothing more. See the details before using both programs. We ran 24 short debugging sessions in Claude Code 2.1.295 with RTK 0.51.0 and All 24 answers were correct. On a short command RTK does not shorten, RTK did not help. These are price estimates from a small test, not your bill; measure a full task in your project. See the full results and the investigation.Distinguish the Caveman program and read the test results
Caveman's output shrinking is separate
Test results
claude-haiku-5-5:Turned on Cost on larger tasks Speed RTK Lowest Slower in 4 of 6 runs Caveman No saving Slower in all 6 Both More than RTK alone Slower in all 6