Skip to content
Agentmart
Submit a tool

token-economy

Always-apply token discipline for LLM coding agents.

Skill by sowltech

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sowltech-token-economy

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Always-apply token discipline for LLM coding agents. Keeps context small, batches work, avoids re-reads, truncates tool output, and manages context-window headroom so every task spends the fewest tokens without losing the audit trail. Local-model-aware (route mechanical steps to a local LLM when available, apply in-session discipline when not).

Use cases: ml, security, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/token-economy

What's inside

Skill name
token-economy
Description
Always-apply token discipline for LLM coding agents. Keeps context small, batches work, avoids re-reads, truncates tool output, and manages context-window headroom so every task spends the fewest tokens without losing the audit trail. Local-model-aware (route mechanical steps to a local LLM when available, apply in-session discipline when not).
License
MIT
Instructions
51 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • README.md
  • SKILL.md
  • run.sh
  • token_economy_guard.sh

SKILL.md (first lines)

# Token Economy — Always-Apply Discipline

The goal is not terseness for its own sake. It is to spend the fewest tokens while keeping the
agent aligned to a single source of truth and preserving the audit trail.

## The 7-point protocol (apply every non-trivial task)

1. **Scope before reading.** State the smallest set of files/lines the task needs; read only those.
2. **Locate first, full-read second.** Search/grep to find, then read the top match with an
   explicit line range — not the whole file.
3. **Batch independent work.** Group independent tool calls into one step; group edit + validate +
   log into one bounded pass. One verification pass, not per-step re-checks.
4. **Truncate tool output at the source.** Pipe noisy commands through `head`/`cut`/`tail`/`grep -c`.
   Never let a large dump land in context.
5. **Reuse canonical artifacts.** Cite the existing doc/summary/log entry instead of restating it.
6. **Do not re-derive settled facts.** If it is already in the conversation or a project doc,
   reference it — do not re-read or re-explain.
7. **Single audit pass.** Append one audit entry per bounded unit of work, not one per sub-step.

## Local-model routing (optional)

- **Local model available** (`$LOCAL_LLM_URL` reachable): push mechanical sub-steps (scans, greps,
  status loops, simple classification) to the local model; keep synthesis in the premium session.
- **Local model unavailable:** do not wait on routing. Apply the protocol in-session — because the
  mechanical work now runs in the premium session, discipline matters more, not less.

Probe the compute endpoint itself, not a router/proxy in front of it — a proxy can report healthy
while the model host is down.

## Context headroom (act before the window forces a summarize)

Headroom is the margin before the harness must auto-summarize (a silent, lossy compaction).

- **Green:** work normally.
- **Tightening:** stop re-reading, summarize findings, prefer sub-agents for noisy fan-out.
- **Low:** checkpoint now — one audit entry + a compact handoff (state + next action) so a
  summarize loses nothing, then offload remaining noisy work to a sub-agent or fresh session.

Measure **live** context (bytes since the last compaction boundary in the transcript), not raw
transcript size — the transcript is cumulative and keeps growing after every compaction.

## Finish self-check

- [ ] Read only what was needed (line ranges, not whole files)?
- [ ] Truncated every noisy command?
- [ ] Batched independent calls and validated once?
- [ ] One audit entry?
- [ ] Cited canonical docs instead of restating them?
- [ ] Headroom checked; checkpointed if low?

From sowltech/operator-os-installation-pack, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 5, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sowltech

Cite this page

token-economy skill. Agent Mart. https://agentmart.dev/skills/sowltech-token-economy (last updated 2026-10-24)