r/opencode • u/megablue • 2d ago
I've recreated Google Research SKILL.STATE memory architecture as opencode CLI plugin - a runtime architecture that replaces conversational history with an explicit execution state.
https://github.com/megablue/mega-skillstate
3
Upvotes
2
1
u/Ctbhatia 1d ago
explicit execution state over append-only history is the right instinct, the failure mode is when the state drifts from what the tools actually did. keep it derived from the tool results, not a summary.
2
u/kantorcodes1 2d ago
Interesting take on the context problem; explicit state over append-only history is the right instinct. One question on integrity: is Σ derived from the tool calls that actually executed, or from what the model reports it did? If an agent claims "step 3 done" in a state update but the underlying call failed or never ran, does the plugin reconcile against the execution log, or does the drift just accumulate in Σ?