AgentToolHub
Skill

caveman-compress

caveman-compress — a Claude Code skill from juliusbrussee/caveman

Features

  • ✓Reduces output tokens by ~75%
  • ✓Maintains full technical accuracy
  • ✓One-line install for ease
  • ✓Supports文言文 mode for concise commits
  • ✓Cuts input tokens by ~46% in each session
  • ✓Explore more at [GitHub](https://github.com/juliusbrussee/caveman)

Installation Guide

Pick your agent. One command. Done.

| Agent | Install |
|-------|---------|
| Claude Code | claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@caveman |
| Codex | Clone repo → /plugins → Search "Caveman" → Install |
| Gemini CLI | gemini extensions install https://github.com/JuliusBrussee/caveman |
| Cursor | npx skills add JuliusBrussee/caveman -a cursor |
| Windsurf | npx skills add JuliusBrussee/caveman -a windsurf |
| Copilot | npx skills add JuliusBrussee/caveman -a github-copilot |
| Cline | npx skills add JuliusBrussee/caveman -a cline |
| Any other | npx skills add JuliusBrussee/caveman |

Install once. Use in every session for that install target after that. One rock. That it.

What You Get

Auto-activation is built in for Claude Code, Gemini CLI, and the repo-local Codex setup below. npx skills add installs the skill for other agents, but does not install repo rule/instruction files, so Caveman does not auto-start there unless you add the always-on snippet below.

| Feature | Claude Code | Codex | Gemini CLI | Cursor | Windsurf | Cline | Copilot |
|---------|:-----------:|:-----:|:----------:|:------:|:--------:|:-----:|:-------:|
| Caveman mode | Y | Y | Y | Y | Y | Y | Y |
| Auto-activate every session | Y | Y¹ | Y | —² | —² | —² | —² |
| /caveman command | Y | Y¹ | Y | — | — | — | — |
| Mode switching (lite/full/ultra) | Y | Y¹ | Y | Y³ | Y³ | — | — |
| Statusline badge | Y⁴ | — | — | — | — | — | — |
| caveman-commit | Y | — | Y | Y | Y | Y | Y |
| caveman-review | Y | — | Y | Y | Y | Y | Y |
| caveman-compress | Y | Y | Y | Y | Y | Y | Y |
| caveman-help | Y | — | Y | Y | Y | Y | Y |

[!NOTE]

Auto-activation works differently per agent: Claude Code uses SessionStart hooks, this repo's Codex dogfood setup uses .codex/hooks.json, Gemini uses context files. Cursor/Windsurf/Cline/Copilot can be made always-on, but npx skills add installs only the skill, not the repo rule/instruction files.

>
¹ Codex uses $caveman syntax, not /caveman. This repo ships .codex/hooks.json, so caveman auto-starts when you run Codex inside this repo. The installed plugin itself gives you $caveman; copy the same hook into another repo if you want always-on behavior there too. caveman-commit and caveman-review are not in the Codex plugin bundle — use the SKILL.md files directly.

² Add the "Want it always on?" snippet below to those agents' system prompt or rule file if you want session-start activation.

³ Cursor and Windsurf receive the full SKILL.md with all intensity levels. Mode switching works on-demand via the skill; no slash command.

⁴ Available in Claude Code, but plugin install only nudges setup. Standalone install.sh / install.ps1 configures it automatically when no custom statusLine exists.

<details>
<summary><strong>Claude Code — full details</strong></summary>

The plugin install gives you skills + auto-loading hooks. If no custom statusLine is configured, Caveman nudges Claude to offer badge setup on first session.

bash
claude plugin marketplace add JuliusBrussee/caveman
claude plugin install caveman@caveman

Standalone hooks (without plugin): If you prefer not to use the plugin system:

bash
# macOS / Linux / WSL
bash <(curl -s https://raw.githubusercontent.com/JuliusBrussee/caveman/main/hooks/install.sh)

# Windows (PowerShell)
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/main/hooks/install.ps1 | iex

Or from a local clone: bash hooks/install.sh / powershell -File hooks\install.ps1

Uninstall: bash hooks/uninstall.sh or powershell -File hooks\uninstall.ps1

Statusline badge: Shows [CAVEMAN], [CAVEMAN:ULTRA], etc. in your Claude Code status bar.

  • Plugin install: If you do not already have a custom statusLine, Claude should offer to configure it on first session

  • Standalone install: Configured automatically by install.sh / install.ps1 unless you already have a custom statusline

  • Custom statusline: Installer leaves your existing statusline alone. See [hooks/README.md](hooks/README.md) for the merge snippet
  • </details>

    <details>
    <summary><strong>Codex — full details</strong></summary>

    macOS / Linux:

  • Clone repo → Open Codex in the repo directory → /plugins → Search "Caveman" → Install

  • Repo-local auto-start is already wired by .codex/hooks.json + .codex/config.toml
  • Windows:

  • Enable symlinks first: git config --global core.symlinks true (requires Developer Mode or admin)

  • Clone repo → Open VS Code → Codex Settings → Plugins → find "Caveman" under local marketplace → Install → Reload Window

  • Codex hooks are currently disabled on Windows, so use $caveman to start manually
  • This repo also ships .codex/hooks.json and enables hooks in .codex/config.toml, so caveman auto-activates while you run Codex inside this repo on macOS/Linux. The installed plugin gives you $caveman; if you want always-on behavior in other repos too, copy the same SessionStart hook there and enable:

    toml
    [features]
    codex_hooks = true

    </details>

    <details>
    <summary><strong>Gemini CLI — full details</strong></summary>

    bash
    gemini extensions install https://github.com/JuliusBrussee/caveman

    Update: gemini extensions update caveman · Uninstall: gemini extensions uninstall caveman

    Auto-activates via GEMINI.md context file. Also ships custom Gemini commands:

  • /caveman — switch intensity level (lite/full/ultra/wenyan)

  • /caveman-commit — generate terse commit message

  • /caveman-review — one-line code review
  • </details>

    <details>
    <summary><strong>Cursor / Windsurf / Cline / Copilot — full details</strong></summary>

    npx skills add installs the skill file only — it does not install the agent's rule/instruction file, so caveman does not auto-start. For always-on, add the "Want it always on?" snippet below to your agent's rules or system prompt.

    | Agent | Command | Not installed | Mode switching | Always-on location |
    |-------|---------|--------------|:--------------:|--------------------|
    | Cursor | npx skills add JuliusBrussee/caveman -a cursor | .cursor/rules/caveman.mdc | Y | Cursor rules |
    | Windsurf | npx skills add JuliusBrussee/caveman -a windsurf | .windsurf/rules/caveman.md | Y | Windsurf rules |
    | Cline | npx skills add JuliusBrussee/caveman -a cline | .clinerules/caveman.md | — | Cline rules or system prompt |
    | Copilot | npx skills add JuliusBrussee/caveman -a github-copilot | .github/copilot-instructions.md + AGENTS.md | — | Copilot custom instructions |

    Uninstall: npx skills remove caveman

    Copilot works with Chat, Edits, and Coding Agent.

    </details>

    <details>
    <summary><strong>Any other agent (opencode, Roo, Amp, Goose, Kiro, and 40+ more)</strong></summary>

    npx skills supports 40+ agents:

    bash
    npx skills add JuliusBrussee/caveman           # auto-detect agent
    npx skills add JuliusBrussee/caveman -a amp
    npx skills add JuliusBrussee/caveman -a augment
    npx skills add JuliusBrussee/caveman -a goose
    npx skills add JuliusBrussee/caveman -a kiro-cli
    npx skills add JuliusBrussee/caveman -a roo
    # ... and many more

    Uninstall: npx skills remove caveman

    Windows note: npx skills uses symlinks by default. If symlinks fail, add --copy: npx skills add JuliusBrussee/caveman --copy

    Important: These agents don't have a hook system, so caveman won't auto-start. Say /caveman or "talk like caveman" to activate each session.

    Want it always on? Paste this into your agent's system prompt or rules file — caveman will be active from the first message, every session:

    text
    Terse like caveman. Technical substance exact. Only fluff die.
    Drop: articles, filler (just/really/basically), pleasantries, hedging.
    Fragments OK. Short synonyms. Code unchanged.
    Pattern: [thing] [action] [reason]. [next step].
    ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift.
    Code/commits/PRs: normal. Off: "stop caveman" / "normal mode".

    Where to put it:
    | Agent | File |
    |-------|------|
    | opencode | .config/opencode/AGENTS.md |
    | Roo | .roo/rules/caveman.md |
    | Amp | your workspace system prompt |
    | Others | your agent's system prompt or rules file |

    </details>

    Reviews