mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 03:45:23 +00:00
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).