Caveman: Token CompressionΒΆ
Caveman is a token-compression plugin installed via make install-skills. It reduces output token consumption through progressively terser communication styles. make install-skills copies the skills from the repository pinned as INFINITO_SKILLS_REPOSITORY in the generated .env (override via custom.env, see docs/contributing/customize.md); the skills repository pins every skill in its skills-lock.json and also supports global installs via its own make install. This works universally across all supported agents: Claude Code, Codex, Gemini CLI, Cursor, Copilot, Windsurf, Cline, and more.
Default ModeΒΆ
Agents MUST operate in /caveman lite mode by default. Lite keeps grammar and readability intact while still reducing output size.
Startup NotificationΒΆ
At the start of every conversation, before doing any other work, the agent MUST display the following block verbatim (substituting the active mode if it has been changed by the user):
[caveman: lite] Switch: /caveman full Β· /caveman ultra Β· /caveman wenyan-lite Β· /caveman wenyan Β· /caveman wenyan-ultra Β· stop caveman
Mode ReferenceΒΆ
Command |
Style |
Use when |
|---|---|---|
|
Professional brevity, grammar intact |
Default: balanced readability |
|
Fragment-based, drops articles |
Context growing, prefer brevity |
|
Maximally compressed, telegraphic |
Context critical, every token counts |
|
Classical Chinese, semi-formal |
Alternative compression style |
|
Full classical Chinese terseness |
Deep compression, classical style |
|
Extreme classical compression |
Maximum reduction |
|
Normal prose |
User explicitly requests full output |
Tier Progression: Token Budget GuidanceΒΆ
As the conversation grows, the agent MUST proactively suggest a higher tier. Base the estimate on observable signals: message count, response sizes, and whether context compression has been triggered by the system.
Approximate token budget consumed |
Action |
|---|---|
< 20 % |
Stay on current tier. No suggestion needed. |
β₯ 20 % |
Recommend upgrading from lite β full |
β₯ 50 % |
Recommend upgrading from full β ultra |
β₯ 75 % |
Strongly recommend ultra (or a wenyan variant); warn that context is running low |
Suggestions MUST be short, inline, and non-blocking. Example:
[caveman: lite | ~30 % context used β consider /caveman full]
The agent MUST NOT interrupt work to ask about tier changes. Recommendations appear as a single line at the start of the next response after the threshold is crossed.