Skip to content
JayPokalePublic

About

Cut your AI coding agent's token bill on three axes: terse prose, YAGNI-first code, and tool-output compression. Claude Code, Pi, Cursor, Codex, Gemini + 4 more. Zero deps, published benchmarks including the runs it loses.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1.1k stars

Watchers

4 watching

Forks

Latest commit

 

History

334 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chisle: fewer tokens in, fewer tokens out, same answers.

GitHub stars npm version npm downloads per month Works with 13 agents MIT license Buy me a coffee

English · Español · 한국어 · 简体中文 · 日本語

Chisle versus the same model with no ruleset: 29% fewer billed output tokens, answers 45% shorter, oversized tool output 48% smaller, accuracy 156 of 156 versus 154 of 156.

Fewer tokens than caveman and ponytail. No accuracy lost.

npx chisle

Chisle is free. Its benchmarks aren't. Saved you tokens? Buy me a coffee.

Same prompt, four rulesets, visible answer tokens: Chisle 530, caveman 604, ponytail 747, no ruleset 1,186. Chisle is 55% shorter than no ruleset.

See both answers

The prompt: "Implement an order state machine covering created, paid, shipped, delivered, cancelled and refunded, with the legal transitions enforced and invalid ones rejected." Excerpts from the verbatim committed answers in raw-nov-sidebyside/large-s2:

no ruleset: 121 lines, 1,186 answer tokensChisle: 62 lines, 530 answer tokens
class OrderStateError(Exception):
    """Raised when an invalid state transition is attempted."""
    pass

class Order:
    # Define valid transitions: state -> list of allowed next states
    VALID_TRANSITIONS = { … }
    def transition_to(self, next_state):
        """Transition to the next state. Raises OrderStateError if invalid."""
    def can_transition_to(self, next_state):
        """Check if a transition is allowed without performing it."""

…plus usage, tests, printed output and a recap of the transitions.

class OrderStateMachine:
    TRANSITIONS = {
        "created": {"pay", "cancel"},
        "paid": {"ship", "refund", "cancel"},
        …
    }
    def transition(self, event):
        if event not in self.TRANSITIONS[self.state]:
            raise ValueError(f"Cannot {event} from {self.state}. …")
        self.state = self.STATE_MAP[(self.state, event)]
        return self.state

Then a short usage block.

Claude Code benchmark, 25 tasks in one run, billed output tokens as percent of the same model with no ruleset. caveman 87%, ponytail 90%, Chisle 3.8.1 75%, Chisle 71%.

Every raw transcript is committed, losses included. Method and data · why we publish the losses

Animated illustration of the Chisle tool-output compressor: raw npm test output with colour codes, six identical lines and 172 passing lines becomes a short version with the codes stripped, the repeats collapsed, the middle elided with the full output saved to a file, and the failing test and its error kept.

The Chisle efficiency ladder. Before writing code, stop 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.

Animated terminal: npx chisle detects Claude Code, Gemini CLI, Codex, OpenCode, Copilot CLI and Cursor, installs into each, and prints Done.

Other ways to install
# Claude Code plugin marketplace
claude plugin marketplace add JayPokale/Chisle
claude plugin install chisle@chisle

# curl
curl -fsSL https://raw.githubusercontent.com/JayPokale/Chisle/main/install.sh | bash
# Windows
irm https://raw.githubusercontent.com/JayPokale/Chisle/main/install.ps1 | iex

Per-agent setup, upgrading and config: docs/usage.md.

Cheat sheet: npx chisle wires every agent; --dry-run previews; --uninstall puts everything back; /chisle off pauses it; /chisle-review finds over-engineering; /chisle-audit finds bloated code and prose; npx chisle tools shows tool schemas you pay for but never use; npx chisle mcp wrap trims MCP output in any agent.

GitHub stars over time

Chisle is free. Its benchmarks aren't. Every benchmark run costs real API money. Saved you tokens? Buy me a coffee.

⭐ Star the repo: it costs zero tokens.

Contributors

MIT · Contributing · Began as a merge of caveman and ponytail (notices)

About

Cut your AI coding agent's token bill on three axes: terse prose, YAGNI-first code, and tool-output compression. Claude Code, Pi, Cursor, Codex, Gemini + 4 more. Zero deps, published benchmarks including the runs it loses.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1.1k stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages