Files
anomalyco_opencode/packages/opencode
Aiden Cline 1327f85793 chore(opencode): compress todowrite tool prompt
Rewrites the TodoWrite tool description to reduce token usage by ~75%
(1,380 -> 337 words) while preserving all behavioral guardrails.

Trimmed:
- Eight full example blocks (4 use / 4 skip) with reasoning paragraphs
  reduced to one-line example summaries.
- Redundant framing prose and duplicated rules.

Preserved:
- All use / skip trigger conditions.
- Task states (pending, in_progress, completed, cancelled) and the
  one-in_progress-at-a-time invariant.
- Anti-hallucination rule: only mark completed after the work is
  actually done (including any required verification).
- Follow-up handling for both blocked and successfully completed tasks.

Clarified:
- 'Distinct steps or actions (not just 3 tool calls for a single
  conceptual step)' avoids triggering todos for simple multi-grep
  lookups.
- Preserve user-provided commands verbatim (flags, args, order).
2026-05-11 01:13:23 -05:00
..
2026-05-11 00:18:03 +00:00
2026-02-25 01:48:10 -05:00
2026-03-27 15:00:26 +01:00
2026-02-14 04:19:02 +00:00
2026-02-18 13:54:23 -05:00

js

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.