Русский · Why (ELI5) · Full guide
A router next to Cursor / Claude / Continue: it asks “do you need a model at all?” before opening an expensive agent chat.
find / check / docs lookup → free tools & scripts
sort-of-AI bulk work → local LLM (Ollama, …)
wiring / design → expensive agent chat
No fine-tuning. No shipping your data for training. It “learns” by adding readable scripts/routes from telemetry — reviewable and revertible.
Reviews (model write-ups — optional reading)
|
greedy-token is a token-economy router for AI coding agents: it routes each task to the cheapest capable tier — Rust-powered — Claude Opus 4.8 |
|
I have reviewed this codebase three times now, hands on the code every time. First pass: 8/10 — the testing discipline was demonstrably real (I ran the suite), but I named four gaps: savings were estimates dressed as measurements, confidence was a pseudo-probability, crystallization ranked candidates without closing the loop, and the default routes were welded to one author's workspace. One release later, every gap was closed with verifiable engineering rather than cosmetics: baseline provenance ( — Fable 5 |
|
I see this is a project related to AI, but I am too dumb for this, so here is a recipe of Sancho-Pancho cake for you:
made the cake, cake 🍰 — Grok 4.5 |
Automated tests dashboard — live metrics + Allure 3 preview
| Link | What |
|---|---|
| Dashboard | pytest + MCP contracts |
| Awesome | drill-down by epic |
| CI | run + gh-pages |
Illustrative USD / month and wall-clock per call. Classical LLM = everything goes straight to a cloud / frontier chat. First matching tier wins. Per-call times are estimates vs a naive agent turn (time_saved_ms in MCP footer / report, v0.11+).
| Path | Use when | Don’t use for | Path · 1 eng | Classical · 1 eng | Save · 1 | Path · ×10 | Classical · ×10 | Save · ×10 | ~time · path | ~time · agent | ~time · save | Example |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tool (rg) | find text in the repo | edits / design | $0 | $30 | $30 | $0 | $300 | $300 | ~1s | ~20s | ~19s | find baseUrl in configurator-option-presets.html |
| python | a deterministic script already exists | open-ended “fix it” | $0 | $25 | $25 | $0 | $250 | $250 | ~1s | ~20s | ~19s | meta-audit configurator-boolean |
| rag | answer lives in patterns / docs | undocumented code | $0 | $15 | $15 | $0 | $150 | $150 | ~0.5s | ~15s | ~15s | which -D flag for baseUrl |
| ollama | bulk classify / light audit | precise wiring | $8 | $20 | $12 | $25 | $200 | $175 | ~5s | ~25s | ~20s | classify a list of skills |
| cursor | wiring, refactor, judgment | grep / bulk-copy | $40 | $40 | $0 | $400 | $400 | $0 | ~same | ~same | ~0 | change header behavior in one zone |
| classical LLM | baseline: big model for everything | — | $130 | $130 | — | $1,300 | $1,300 | — | ~same | ~same | — | paste a whole folder into chat |
| ★ TOTAL | with router vs without | — | $48 | $130 | ★ $82 | $425 | $1,300 | ★ $820 | — | — | ★ ~6 h · 1 / ~60 h · ×10 | headline: $ and time / month |
pip install "greedy-token[mcp]"
mkdir -p .cursor/rules
cp examples/cursor/mcp.json .cursor/mcp.json
cp examples/cursor/rules/greedy-token.mdc .cursor/rules/greedy-token.mdcSettings → MCP → greedy-token → Enable → Refresh → new Agent chat.
find baseUrl in configurator-option-presets.html
Expect free rg and a spent vs saved footer.
Full setup: Cursor · Claude · Continue
| Tool | Role |
|---|---|
greedy_token_search |
codebase search |
greedy_token_rag |
patterns / docs |
greedy_token_route |
which tier + why |
greedy_token_pipeline |
cheap multi-step chain |
greedy_token_usage |
stats (on request) |
greedy_token_crystallize |
draft / promote / reject a script |
greedy-token doctor
greedy-token run "find …" --execute
greedy-token report --since 7d
greedy-token hub serveRepeated work → crystallize into a script → next time 0 LLM. Details: guide · roadmap
License: MIT · v0.11.0

