Use RTK and Caveman with agnostic-ai
RTK shortens the output of common terminal commands before the coding agent reads it. Caveman is a skill that asks the agent to answer in fewer words. agnostic-ai can set up either one. Use RTK to shorten command output, or Caveman for shorter answers; our small test found no extra cost saving from combining them (see test 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; use builtins: [rtk, caveman] for both. Then run:
agnostic-ai sync
- RTK adds a hook to
.claude/settings.json. A hook is a command Claude Code runs before each shell command. It works only in Claude Code, and only for the Bash tool on macOS or Linux, not PowerShell. - Caveman adds one file,
SKILL.md, to.claude/skills/caveman/and to every other tool that supports skills. Type/cavemanto start it. Caveman's license and notices are in its upstream repository.
agnostic-ai does not install either program. Install RTK with its install guide; without it, commands run as normal. To preview how RTK changes a command without running it, use 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
Because Claude checks the changed command, an "ask first" rule for git status needs a twin for rtk git status. See the tested permission cases.
If you already use RTK or Caveman
Keep only one copy. If RTK is already on for all your projects, two hooks can run for the same command, so leave the built-in off or remove your own copy first.
If your project already has a hook exactly like the RTK one, agnostic-ai takes it over, and removing rtk later deletes it. Save a copy first if you want 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 separate packs instead of built-ins. Use a pack or a built-in for each tool, not both. Caveman can also run as a program that shortens command output. The 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, so measure a full task in your own project before you choose. See the full results and the investigation.Distinguish the Caveman program and read the test results
Caveman's output shrinking is separate
caveman built-in does not turn that on. In our test, RTK cut one failing test log from 23,865 bytes to 240 bytes, and Caveman cut nothing more. See the details before using both programs together.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