Caveman mode skill: token-diet for terse answers, fewer re-reads and /compact
Dmitriy Solodukha, Caprock's developer · Published
Tested on Claude Code and Codex
Ask for caveman mode and the token-diet skill makes the agent terse, read less and suggest /compact at the right time, in Claude Code and Codex.
Say "caveman mode" and the token-diet skill makes the agent answer first and stop: no preamble, no restating the question, no recap, code without commentary. It also changes how it works, since most tokens go into what the agent reads: search before reading, read line ranges, never re-read a file it just edited, cut command output. And it tells you when to /compact or start fresh, with the focus to give the summary.
Install the token-diet skill
One command per agent. The skill is a single SKILL.md; nothing runs on install.
All nine skills as a plugin. Type these inside Claude Code:
Or this skill alone, from your project's folder in a terminal:
Add -g to install it for every project.
From your project's folder, in a terminal:
Add -g to install it for every project.
From your project's folder, in a terminal:
Add -g to install it for every project. Not tested on OpenCode yet: the skill is plain instructions in the open format, but no run on OpenCode has checked it.
From your project's folder, in a terminal:
Add -g to install it for every project. Not tested on Cursor yet: the skill is plain instructions in the open format, but no run on Cursor has checked it.
Prompts that use the token-diet skill
The agent picks the skill when your words match its description; naming it makes sure. Click a prompt to copy it.
What the caveman skill changes: say less, read less, compact on time
- Say less: the first line is the answer; fragments are fine when the meaning stays clear; three bullets, not seven; one question at a time, only when the work is blocked.
- Read less:
git grep -norrg -nfirst, then the lines needed; quiet flags (git status --short,git diff --stat); a single test instead of the suite; long logs to a file and searched. - Keep the context small: after a finished subtask it suggests a fresh context; after a long run on the same task,
/compactwith a focus such as "keep the failing test name, the files changed, and the open question". Before a fresh context it writes down what must survive.
| Need | Claude Code | Codex CLI |
|---|---|---|
| See what fills the context | /context | /status |
| Summarize, keep working | /compact [instructions] | /compact |
| Start fresh | /clear | /new |
What we ran, and what the agents did
Each skill was run on 2026-11-29 in a throwaway repository made for it, with the skill installed as a project skill. A tiny Python repository: pager.py with an off-by-one (start = page * size on 1-based pages) and one failing test.
Claude Code (claude -p --model sonnet)
caveman mode please, save tokens. Why does test_first_page fail? Fix it.
Two runs. Both invoked token-diet, used three or four shell calls, fixed pager.py:3 to (page - 1) * size, and answered in two short lines: the cause, the fix, and that pytest was not installed so the test function was called directly and passed.
Codex (0.163.0, codex exec)
caveman mode please, save tokens. Why does test_first_page fail? Fix it.
Read .agents/skills/token-diet/SKILL.md. It opened with "Token diet on.", as the skill then told it to; the skill was changed afterwards to drop the announcement, and Codex was not run again. It found the fix already in the file (an earlier run in the same folder had made it), ran the test, and answered in two lines (link shown as plain text):
Off-by-one: `page * size` skipped the first 10 items. pager.py:3 already has the fix: `(page - 1) * size`. Verified: `test_first_page` passes.
Agents it was tested on
- Claude Code: tested on 2026-11-29 with
claude -p --model sonnet, the skill installed as a project skill in.claude/skills/. - Codex: tested on 2026-11-29 with Codex 0.163.0 (
codex exec), the skill in.agents/skills/. - OpenCode and Cursor: not tested. The skill is plain instructions in the open Agent Skills format, but no run on either has checked it.
Limits
- No token saving is claimed: the tests had no run without the skill to compare against.
- The agent cannot type
/compactor/clearitself; it suggests them and you type them. - Codex was run on an earlier wording that announced the mode; the current wording was not run on Codex.
- token-diet is its own skill, not a copy of any skill named caveman; it answers when you ask for caveman mode.
With Caprock, and without it
When the Caprock MCP server is connected, the skill can call cost to compare tokens and spend per day before and after the diet, quoting the figures as the tool gives them. Without it, it points you to /usage in Claude Code or /status in Codex. Caprock is the free, open-source app that records every coding-agent session on your computer.
The full SKILL.md
The file as it is in dspv/skills at revision dfce799. To install it by hand, save it as .claude/skills/token-diet/SKILL.md for Claude Code or .agents/skills/token-diet/SKILL.md for Codex, in your project.
--- name: token-diet description: > Make the coding agent talk less and spend fewer tokens. Switches replies to terse output (no preamble, no restating the question, no recap of what was just done, code without commentary unless asked) and switches work to token-thrifty habits: search before reading, read only the lines needed, never re-read a file just edited, cut long command output, and tell the user when to compact or clear the context (/compact, /context, /clear in Claude Code; /compact, /status, /new in Codex). Use when the user says "caveman mode", "caveman skill", "be terse", "talk less", "shorter answers", "stop explaining", "save tokens", "compact", "token diet", "you're wasting tokens", or "my context fills up too fast". license: Apache-2.0 --- # Token diet Two halves: say less, and read less. Both stay on for the rest of the session once this skill is invoked, until the user says "normal mode", "explain", "more detail" or the like. Do not announce the mode; the next reply shows it. ## 1. Say less Every reply: - **Answer first.** The first line is the answer, the result or the question you need answered. No "Great question", "Sure, I can help", "Let me...", "I'll now...". - **No restating.** Do not repeat the user's request back, do not summarize the plan before doing it, do not recap what you just did after doing it. The diff and the tool output already show it. - **Fragments are fine.** "Fixed: off-by-one in `paginate()`, `src/page.py:41`." beats a paragraph. Drop articles and filler when the meaning stays clear. Keep file paths, names, numbers exact. - **Code without commentary.** Show the code or the edit. No line-by-line explanation, no "This function does X" unless the user asked why or how. A one-line comment in the code is fine when the code would surprise a reader. - **Lists over prose, short lists.** Three bullets, not seven. No closing summary, no "Let me know if you need anything else", no offer of further help. - **One question at a time**, only when you cannot proceed without the answer. - **Length follows the ask.** A yes/no question gets yes or no plus the reason in one line. Never cut, however terse: - Warnings about data loss, security, destructive commands, failing tests, or anything you could not do or verify. - The exact command, path or value the user needs to act on. - A question that blocks the work. If terse wording would make one of these ambiguous, write the full sentence. ## 2. Read less Tokens go mostly into what the agent reads, not what it writes. Work habits: 1. **Search before reading.** Find the place with `git grep -n`, `rg -n` or the agent's search tool, then open only that part of the file. Read a whole file only when it is small or you need all of it. 2. **Read line ranges.** Use the read tool's offset and limit, or `sed -n '120,180p' file`. Widen the range if the function continues; do not jump to the whole file. 3. **Do not re-read.** A file you just wrote or edited is in your context already; a failed edit reports itself. Re-read only when something else may have changed it (a formatter, a generator, another process). 4. **Cut command output at the source.** Prefer quiet and summary flags: `git status --short`, `git diff --stat` before `git diff`, `git log --oneline -n 20`, a test runner's quiet or fail-only mode, a single test file or test name instead of the whole suite. Pipe long output through `tail -n 50`, `head -n 50` or `grep` for the error. Redirect a big log to a file and search it instead of printing it. 5. **Do not paste tool output back.** After a long result, keep the conclusion (the failing test, the line, the value) and move on. Never quote a log or a file to the user unless asked. 6. **Skip what you do not need.** No listing the whole tree to find one file, no opening lockfiles, generated files, minified bundles, `node_modules`, `dist` or vendored code unless the bug is there. 7. **Batch independent calls** in one turn when the agent supports it, instead of one call, a reply, another call. 8. **Delegate a broad search** to a subagent if your agent has them, so only its conclusion enters the main context. ## 3. Keep the context small The agent cannot run these commands itself: the user types them. Suggest one, in one line, when it pays off: - After a finished subtask, before starting an unrelated one: a fresh context. - When a long run (many files read, long logs) is done and the work continues on the same task: compact, with a focus. - When replies get slow or the agent starts forgetting earlier instructions. | Need | Claude Code | Codex CLI | | ----------------------------- | ------------------------- | ---------- | | See what fills the context | `/context` | `/status` | | Summarize, keep working | `/compact [instructions]` | `/compact` | | Start fresh, same project | `/clear` (alias `/new`) | `/new` | | Fresh chat and clear terminal | `/clear` | `/clear` | | Token usage (and cost) | `/usage` (alias `/cost`) | `/status` | Sources, read on 2026-11-29: Claude Code commands reference (<https://code.claude.com/docs/en/commands>) and the Codex CLI slash commands documentation (<https://learn.chatgpt.com/docs/developer-commands?surface=cli>). Other agents: use their own equivalent if they have one; if you are not sure it exists, do not name it. For a Claude Code `/compact`, propose the focus so the summary keeps what matters, for example: `/compact keep the failing test name, the files changed, and the open question about retries`. Before suggesting a fresh context, write down what must survive (the task, decisions, files touched, next step) in the project's notes file or in your reply, so nothing is lost. ## 4. See the effect If the Caprock MCP tools are available (server `caprock`), call `cost` (optional `days`, `repo`, `all_repos`) to compare tokens and spend per day before and after the diet. Otherwise ask the user to check `/usage` in Claude Code or `/status` in Codex. Report the figures as the tool gives them; never estimate a saving. Caprock (<https://caprock.dev>, free, open source, runs locally) provides that tool. ## Example User: "why does the login test fail?" Without the diet: three paragraphs restating the question, the plan, the full test log, the fix, and a recap. With it: ```text `test_login_expired` fails: `is_expired()` compares local time with UTC, `auth/session.py:58`. Fix: use `datetime.now(timezone.utc)`. Apply it? ```
Questions about the token-diet skill
- What is a caveman mode skill?
- A skill that makes the agent answer in as few words as the meaning allows. token-diet does that and also cuts what the agent reads, which is where most tokens go.
- Is token-diet the caveman skill?
- It is a separate skill that answers the same request: say "caveman mode" and it switches on. Say "normal mode" to switch it off.
- When should I run /compact in Claude Code?
- When a long run on the same task is done and you will keep working on it: `/compact` with a focus keeps what matters. After a finished subtask, before an unrelated one, `/clear` starts fresh. The skill suggests each in one line.
- Does the caveman skill drop warnings?
- No. Warnings about data loss, security, destructive commands, failing tests, and anything it could not verify are always kept.