This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Repository navigation
v0.2.0
opencode2-todo v0.2.0
Restores the todowrite tool for OpenCode V2 and keeps the model's view of the todo list current every round.
Highlights
- Fresh per-round todo injection — a
session.contexthook re-reads the per-session todo store at prompt assembly and injects the current list as a system-context part. The model therefore re-reads the todos each round, including writes made between rounds without a newtodowritecall. - Compaction-proof for the model — even if compaction drops old
todowritetool results from the model's view, the injected snapshot still shows the current todos. (The TUI sidebar still reads the transcript and can go empty after compaction.) injectEveryRoundflag (defaulttrue) — keep thetodowritetool but skip per-round injection by setting it tofalse.- Tests — 27 tests passing across 2 files;
bun typecheckclean.
Install
npm install opencode2-todo (or reference the repo path for local dev), then add "opencode2-todo" to your plugins array.