Skip to content

Capture token-savings as core mission; automate usage visibility#2

Merged
zizzle6717 merged 1 commit into
claude/beautiful-bohr-Et4LXfrom
claude/tiny-code-token-savings-b4Zbw
Jun 8, 2026
Merged

Capture token-savings as core mission; automate usage visibility#2
zizzle6717 merged 1 commit into
claude/beautiful-bohr-Et4LXfrom
claude/tiny-code-token-savings-b4Zbw

Conversation

@rililive

@rililive rililive commented Jun 8, 2026

Copy link
Copy Markdown
  • README: replace tagline with token-efficiency focus; add "Token
    efficiency" section documenting what's automated (per-turn display,
    bounded tool output, concise prompts, effort control).
  • AGENTS.md: add "Token minimalism" section making automated savings
    a first-class design principle.
  • TODO.md: promote conversation compaction to top of backlog with a
    clear rationale (input tokens compound every turn); cross-reference
    getUsage() hook for threshold tracking.
  • AgentLoop: accumulate session-level token totals; expose via
    getUsage() so callers can act on them without manual tracking.
  • render.ts: display per-turn token counts automatically (↑ in ↓ out)
    — no configuration needed.
  • repl.ts: print cumulative session token total on exit.
  • systemPrompt: instruct the agent to be concise and prefer targeted
    reads; every output token has a cost.
  • Tests: cover getUsage() accumulation across single and multi-turn
    runs, and onUsage() rendering.

https://claude.ai/code/session_017GpDkpWRcYKmmuQAkZM5y4

- README: replace tagline with token-efficiency focus; add "Token
  efficiency" section documenting what's automated (per-turn display,
  bounded tool output, concise prompts, effort control).
- AGENTS.md: add "Token minimalism" section making automated savings
  a first-class design principle.
- TODO.md: promote conversation compaction to top of backlog with a
  clear rationale (input tokens compound every turn); cross-reference
  getUsage() hook for threshold tracking.
- AgentLoop: accumulate session-level token totals; expose via
  getUsage() so callers can act on them without manual tracking.
- render.ts: display per-turn token counts automatically (↑ in  ↓ out)
  — no configuration needed.
- repl.ts: print cumulative session token total on exit.
- systemPrompt: instruct the agent to be concise and prefer targeted
  reads; every output token has a cost.
- Tests: cover getUsage() accumulation across single and multi-turn
  runs, and onUsage() rendering.

https://claude.ai/code/session_017GpDkpWRcYKmmuQAkZM5y4
@zizzle6717 zizzle6717 merged commit e1b3155 into claude/beautiful-bohr-Et4LX Jun 8, 2026
2 checks passed
@zizzle6717 zizzle6717 deleted the claude/tiny-code-token-savings-b4Zbw branch June 8, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants