
✂️ Tersio — Token Saver & Usage Tracker

Token saver & usage tracker for coding agents: Caveman, RTK, Ponytail, Headroom, pstack, CodeGraph, and a gain dashboard — one-command combos over one shared extension tree.
🎯 What this is, and why you would use it
Coding agents bill you per token. Three of the costs you never asked for:
- Replies carry filler. The same three sentences, plus a greeting, a hedge, a recap, and a "hope this helps".
- Shell output is noise. A failing test prints hundreds of lines to reach the four that matter.
- The rules repeat every turn. Your agent re-reads its instructions on every single turn.
Tersio installs into Oh My Pi, Pi, Pi-in-go, OpenCode, DeepSeek Harness, Codex, and Claude Code, and cuts those costs:
| Mode | What it does for you |
|---|
| 🪨 Caveman | Shorter replies. Answer first, filler gone, and code, commands, paths, and errors stay exact. |
| 🗜️ RTK | Condensed shell output, every signal kept. A failing test still names the test, the assertion, and the line. |
| 🧠 Ponytail | Leaner code. YAGNI: no feature, option, or abstraction nobody asked for, and the shortest diff that still works. |
| 🥔 pstack | Rigor mode. It applies a design principle when the moment fits, and owns the approach, the check, and the design. Opt-in, on its own switch. |
| 🍃 Headroom | Headroom shrinks tool output, file reads, and history. Opt-in; Tersio reads its savings and never turns it on for you. |
| 🕸️ CodeGraph | A local code graph of symbols, callers, and dependencies, so the agent asks for the blast radius of a change instead of reading whole files. On by default. |
| 🧩 Combo | One command sets Caveman, RTK, and Ponytail, at three strengths. |
| 📊 Dashboard | What you spent, per model and per day. |
⚡ Getting Started
All install paths in one table, with update and remove commands: INSTALL.md.
Default (macOS/Linux) — one line. Installs the CLI via npm, then runs the main installer (scope + Combo preset menus) in the same pass:
curl -fsSL https://github.com/KurutoDenzeru/tersio/releases/latest/download/install.sh | sh
Windows — one line, the same pass through PowerShell:
irm https://github.com/KurutoDenzeru/tersio/releases/latest/download/install.ps1 | iex
Then run the CLI. Bare tersio opens a menu and asks which host to install into. Install one host directly, or let the host install the package itself:
| Host | Tersio install | Host-native install |
|---|
| Codex | tersio install --host codex | codex plugin marketplace add KurutoDenzeru/tersio or codex plugin add tersio@tersio |
| Claude Code | tersio install --host claude | /plugin marketplace add KurutoDenzeru/tersio then /plugin install tersio@tersio |
| OpenCode | tersio install --host opencode | opencode plugin add @krtclcdy/tersio |
| Oh My Pi | tersio install --host omp | omp plugin install @krtclcdy/tersio |
| pi | tersio install --host pi | pi install npm:@krtclcdy/tersio |
| DeepSeek Harness | tersio install --host dsh | dsh plugin --profile web add npm:@krtclcdy/tersio |
| Pi-in-Go (PiG) | tersio install --host pig | pig install npm:@krtclcdy/tersio |
One-off use without installing:
npm exec --yes --prefer-online --package=@krtclcdy/tersio@latest -- tersio install
Requirements