← Open Source

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 + 8 more. Zero deps, published benchmarks including the runs it loses.

AI EngineeringTest & guardPrompt & ScaffoldJavaScript
Momentum
+3stars in 24 hours+0.2%
1.32k
Stars
88
Forks
+27
This week
13
Contributors
Created 2026-06-30 · Updated 2026-12-05 · #3182 today
Top developers
JayPokalelextizzaphod72
README

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

Shorter answers than caveman and ponytail. No accuracy lost.

npx chisle

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-314-direct/large-s2:

no ruleset: 132 lines, 1,307 answer tokensChisle: 60 lines, 577 answer tokens
class StateTransition:
    """Defines valid state transitions"""
    from_state: OrderState
    to_states: Set[OrderState]

class OrderStateMachine:
    # Define all valid transitions
    TRANSITIONS = {
        OrderState.CREATED: {OrderState.PAID, OrderState.CANCELLED},
        …
    }
    def __init__(self, order_id: str):
        …
        self.state_history = [(OrderState.CREATED, datetime.now())]
    def can_transition(self, target_state: OrderState) -> bool:
    def transition(self, target_state: OrderState) -> bool:
        """
        Attempt to transition to target_state.
        Returns True if successful, False if invalid.
        """
    def get_valid_transitions(self) -> Set[OrderState]:

…plus a StateTransition class nothing uses, example usage and tests, and "Key Design Decisions", "Why these transitions" and "Features" sections.

class OrderStateMachine:
    VALID_TRANSITIONS: Dict[OrderState, Set[OrderState]] = {
        OrderState.CREATED: {OrderState.PAID, OrderState.CANCELLED},
        OrderState.PAID: {OrderState.SHIPPED, OrderState.REFUNDED, OrderState.CANCELLED},
        …
    }
    def transition(self, target: OrderState) -> None:
        if target not in self.VALID_TRANSITIONS[self.state]:
            raise ValueError(
                f"Invalid transition: {self.state.value} → {target.value}"
            )
        self.state = target

Then a short example and a five-line list of the transitions.

One task with everything at once (releasered): tests pass at the v2.0.0 tag and fail six commits later, from two unrelated bugs. The agent runs a 517-test suite (27k-char log), reads the history and the diff since the tag, fixes two files and reruns until green. Cost as % of no ruleset, cached ruleset prompts not counted, no RTK; every run fixed both bugs.

Haiku 4.5 (5 runs)Sonnet 5.5 (3 runs)Opus 5.5 (3 runs)
no ruleset100%100%100%
caveman97%94%97%
ponytail102%104%102%
Chisle61%88%81%

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

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.

💖 Sponsor on GitHub (monthly or one-time) · ☕ Buy me a coffee

⭐ Star the repo: it costs zero tokens. · Follow @JayPokale for more tools.

MIT · Contributing · Began as a merge of caveman and ponytail (notices) · Command filters follow RTK's design

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store