Nov 15, 2026
Cut Your Agent's Token Bill with the Chisle Ruleset
Chisle works two axes at once — terse prose and YAGNI-first code on the way out, tool-output compression on the way in — with committed benchmarks, losses included.
Coding agents pay rent in tokens: every tool output lands in context verbatim, and every answer gets billed by the line. Chisle is a 1k-star, zero-dependency MIT package that cuts the bill on both sides — terse prose and YAGNI-first code on the way out, tool-output compression on the way in — and it publishes its benchmarks with the runs it loses.
Why This Skill Matters
Most token advice is a CLAUDE.md paragraph you write once and never measure. Chisle ships as an installed ruleset plus a compression hook, and the README's benchmark images report what it bought: against the same model with no ruleset, 29% fewer billed output tokens, answers 45% shorter, oversized tool output 48% smaller, with accuracy 156 of 156 versus 154 of 156. A head-to-head race on one prompt put visible answer tokens at Chisle 530, caveman 604, ponytail 747, no ruleset 1,186. Every raw transcript is committed, losses included, and the method lives in docs/benchmarks.md.
The lineage is disclosed, not hidden: Chisle began as a merge of caveman and ponytail — its prose rules started from caveman and its code rules from ponytail — with headroom-style tool-output elision reimplemented as a hook with no proxy.
Installation
Preview first, then install:
npx chisle --dry-run # prints every file it would touch, changes nothing
npx chisle
npx chisle detects the agents on your machine and installs into each. Prefer the Claude Code plugin marketplace? The README documents that path too:
claude plugin marketplace add JayPokale/Chisle
claude plugin install chisle@chisle
Upgrading has one documented gotcha: plain npx chisle does not upgrade — every install path skips what is already present. Use npx chisle@latest --update, and run it once per repo for the agents that keep their rule file inside the project (Cursor, Windsurf, Cline, Kiro, Copilot, Antigravity).
Real Workflow: Install It and Work Normally
After install, Chisle is on automatically every session — no invocation needed. The output ruleset makes the agent write terse prose and, before writing code, climb an efficiency ladder stopping at the first rung that holds: 1 does this need to exist at all, 2 already in this codebase, 3 does the stdlib do it, 4 a native platform feature, 5 an already-installed dependency, 6 can it be one line, 7 only then the minimum code that works. The input-side compressor rewrites what comes back from tools: colour codes stripped, byte-identical repeats collapsed, the middle elided with the full output saved to a file, and the failing test and its error kept.
Day-to-day controls:
| Command | Effect |
|---|---|
| (nothing) | On automatically every session after install |
/chisle | Re-activate if you'd stopped it |
/chisle off | Deactivate |
stop chisle | Deactivate (ruleset and input-side compression) |
Real Workflow: Trim the Schemas You Pay For
Every request carries the schema of every loaded tool and a description of every skill, used or not. On Claude Code, npx chisle tools reads your own transcripts and shows each heavy tool's schema size next to how often you called it in the last 30 days:
npx chisle tools # report only, changes nothing
npx chisle tools trim # deny the heavy tools you have not used
npx chisle tools restore # remove exactly what trim added
trim writes whole-tool entries to permissions.deny in settings.json; it never denies core tools (Bash, Read, Edit, Write, Grep, Agent and the like) or MCP tools, and it leaves your own deny rules alone. On its own agentic suite, the docs report it cut cost per request by 10% with no trimmed tool ever needed. Check the cumulative savings any time with npx chisle --stats.
Tips
- Chisle ships to thirteen agents, with different depth per agent: Claude Code and Pi get both axes, live
/chisletoggling and a status badge; OpenCode gets both axes without the toggle; Copilot CLI gets both axes through its global instructions file and apostToolUsehook; Cursor, Windsurf, Cline, Kiro, Antigravity, Codex, Gemini and Copilot get the always-on ruleset; Hermes gets the skills as/chislecommands.npx chisle mcp wrapadds MCP tool-output compression to Cursor, Windsurf, Cline, Kiro, Gemini, Qwen Code, Copilot CLI, Antigravity, Codex and GitHub Copilot in VS Code. - Two dedicated commands audit your repo rather than your tokens:
/chisle-reviewfinds over-engineering, and/chisle-auditfinds bloated code and prose. - On Claude Code, Chisle reads the active output style and steps its prose rules aside when you run something like
/output-style Explanatory, and they return when you switch back to default. - The always-on sections (Persistence, Thinking Is Billed Too, Auto-Clarity, When NOT to be lazy, Boundaries) ship regardless of any section config.
When Not to Use This
- Your prompts are mostly one-liners. The docs' own FAQ carries a measured dissent: @enc0ded analysed 173 of their sessions and found injection overhead roughly cancelling the compressor's savings when the ruleset was re-sent on every resume and clear. That re-injection has since been fixed, but their wider point stands — prose is only about 25% of what the model emits, so the output-axis ceiling is lower than the headline suggests, and on a throwaway prompt the overhead still exceeds the saving.
- You need runtime configuration on a static-rules agent. Eight of the thirteen agents (Cursor, Windsurf, Cline, Kiro, Antigravity, Codex, Gemini, Copilot) get flat rule files baked at build time, with no runtime config to read.
- Safety-critical rules are not up for compression: input validation, data-loss handling, security and accessibility are off the table by the FAQ's own wording.
See the leaderboard for more skills. Chisle's code rules started from ponytail — see the ponytail tutorial for that side of the family.