cavecrew
juliusbrussee/caveman
Delegate to compressed subagents—investigator, builder, reviewer—to keep main context lean across long sessions.
What is cavecrew?
Cavecrew provides three specialized subagent presets that perform the same work as vanilla Explore and edit agents, but emit compressed output (~60% smaller) so your main context lasts longer. Use it when you want to locate code, make surgical edits, or review diffs without burning tokens on verbose prose.
- Spawn cavecrew-investigator to locate symbol definitions, callers, and usage sites with file:line output
- Spawn cavecrew-builder for surgical 1–2 file edits with verification status
- Spawn cavecrew-reviewer to audit diffs and branches for bugs with severity-tagged findings
- Chain agents in sequence (locate → fix → verify) or in parallel for broad investigations
- Reduce subagent output by ~60% so main context survives longer sessions
How to install cavecrew
npx skills add https://github.com/juliusbrussee/caveman --skill cavecrewHow to use cavecrew
- 1.Install the skill via `npx skills add https://github.com/juliusbrussee/caveman --skill cavecrew`
- 2.When you need to locate code, ask the agent to delegate to `cavecrew-investigator` with your search query
- 3.For surgical edits on 1–2 files you already know, delegate to `cavecrew-builder` with the exact path:line
- 4.To review a diff or branch, delegate to `cavecrew-reviewer` with the target
- 5.Chain results: use investigator output to feed builder, then reviewer to verify the edit
Use cases
- Find all definitions and call sites of a function, then edit one and verify the change
- Locate test files for a module, review them for coverage gaps, then propose fixes
- Scout a codebase from multiple angles (defs vs callers vs tests) in parallel, then aggregate findings
- Audit a branch diff for bugs and regressions before merging
- Make a targeted edit to a known file without burning tokens on exploration
- Developers in long coding sessions who need to preserve context budget
- Teams doing multi-step refactors (locate → edit → review)
- Anyone working in large codebases where verbose agent output is wasteful
- Cursor and Claude Code users managing context across many delegations
cavecrew FAQ
Use cavecrew when you want the finding in ~1/3 the tokens. If you need prose, architecture commentary, or general feedback, use vanilla Explore or Code Reviewer instead.
Yes, if you already know the exact file and line range. If you don't, run investigator first or you'll waste tokens passing context to the builder.
Structured and terse: investigator returns `path:line — symbol — note`; builder returns `path:line-range — change` with verification status; reviewer returns `path:line: emoji severity: problem. fix.`
Yes. Parallel scout pattern: spawn 2–3 investigator calls with different angles (defs vs callers vs tests), then aggregate in main thread.
Don't use builder without knowing the file first. Don't chain investigator→builder for 5+ file refactors (builder will reject as too-big). Don't ask reviewer for architecture opinions—it returns findings only.
Full instructions (SKILL.md)
Source of truth, from juliusbrussee/caveman.
name: cavecrew
description: >
Decision guide for delegating to caveman-style subagents. Tells the main
thread WHEN to spawn cavecrew-investigator (locate code), cavecrew-builder
(1-2 file edit), or cavecrew-reviewer (diff review) instead of doing the
work inline or using vanilla Explore. Subagent output is caveman-compressed
so the tool-result injected back into main context is ~60% smaller — main
context lasts longer across long sessions.
Trigger: "delegate to subagent", "use cavecrew", "spawn investigator/builder/reviewer",
"save context", "compressed agent output".
Cavecrew = three subagent presets that emit caveman output. Same job as Anthropic defaults (Explore, edit-style agents, reviewer); difference is the tool-result they return is compressed, so main context shrinks per delegation.
When to use cavecrew vs alternatives
| Task | Use |
|---|---|
| "Where is X defined / what calls Y / list uses of Z" | cavecrew-investigator |
| Same but you also want suggestions/architecture commentary | Explore (vanilla) |
| Surgical edit, ≤2 files, scope obvious | cavecrew-builder |
| New feature / 3+ files / cross-cutting refactor | Main thread or feature-dev:code-architect |
| Review diff, branch, or file for bugs | cavecrew-reviewer |
| Deep code review with rationale + alternatives | Code Reviewer (vanilla) |
| One-line answer you already know | Main thread, no subagent |
Rule of thumb: if you'd want the subagent's output in 1/3 the tokens, pick cavecrew. If you'd want prose, pick vanilla.
Why this exists (the real win)
Subagent tool results get injected into main context verbatim. A vanilla Explore that returns 2k tokens of prose costs 2k tokens of main-context budget every time. The same finding from cavecrew-investigator returns ~700 tokens. Across 20 delegations in one session that's the difference between context exhaustion and finishing the task.
Output contracts
What main thread can rely on per agent:
cavecrew-investigator
<Header>:
- path:line — `symbol` — short note
totals: <counts>.
Or No match. Always file-path-first, line-number-attached, backticked symbols. Safe to grep with path:\d+.
cavecrew-builder
<path:line-range> — <change ≤10 words>.
verified: <re-read OK | mismatch @ path:line>.
Or one of: too-big. / needs-confirm. / ambiguous. / regressed. (terminal first token).
cavecrew-reviewer
path:line: <emoji> <severity>: <problem>. <fix>.
totals: N🔴 N🟡 N🔵 N❓
Or No issues. Findings sorted file → line ascending.
Chaining patterns
Locate → fix → verify (most common):
cavecrew-investigatorreturns site list.- Main thread picks 1-2 sites, hands paths to
cavecrew-builder. cavecrew-revieweraudits the diff.
Parallel scout (when investigation is broad):
Spawn 2-3 cavecrew-investigator calls in one message (different angles: defs vs callers vs tests). Aggregate in main thread.
Single-shot edit (when site is already known):
Skip investigator. Hand exact path:line to cavecrew-builder directly.
What NOT to do
- Don't use
cavecrew-builderwhen you don't already know the file. Spawn investigator first or main thread will eat tokens passing context. - Don't chain
cavecrew-investigator → cavecrew-builderfor a 5-file refactor. Builder will returntoo-big.and you'll have wasted a turn. - Don't ask
cavecrew-reviewerfor "general feedback" — it returns findings only, no architecture opinions. UseCode Reviewerfor that. - Don't expect prose. Cavecrew output is structured, sometimes terse to the point of cryptic. If a human will read it directly, paraphrase.
Auto-clarity (inherited)
Subagents drop caveman → normal English for security warnings, irreversible-action confirmations, and any output where fragment ambiguity could be misread. Resume caveman after.
Related skills
More from juliusbrussee/caveman and the wider catalog.
caveman
Cut token usage ~75% with caveman-mode responses — full technical accuracy, zero fluff
caveman-commit
Ultra-compressed commit messages in Conventional Commits format—terse, exact, why-focused.
caveman-review
Ultra-compressed code review comments: location, problem, fix. One line per finding.
caveman-compress
Compress memory files into caveman-speak to save input tokens while preserving code and structure.
caveman-help
Quick-reference card for caveman modes, skills, and commands—display on demand.
caveman-stats
Display real token usage and estimated savings for your Claude Code session.