r/opencode • • 17m ago

Release: The Agentic Collaboration Framework (ACF) and Intelligent Context Management (ICM), on an OpenCode v2 fork (MIT)

Context compaction is an event that injures an agent's understanding. Each compaction loses detail, and the agent has to recover from it. Repeat it and the loss compounds.

Intelligent Context Management (ICM) replaces compaction. The working agent assesses what it needs for the work ahead and why, then keeps material verbatim, distills tool output, compresses finished work, releases what no longer serves, or leaves its context as it is. Edits change what the model sees, not the saved history. ICM selects content itself only for model input limit overflow protection.

ICM is part of the Agentic Collaboration Framework (ACF), a multi-agent framework for long-horizon work that spans many sessions, where a problem has to be modeled before it can be solved. You work with one primary agent, the Principal. It delegates to Partners, Associates and Assistants, and checks and integrates their work against its working-model, its evolving model of the problem. ACF's instructions are protocols that agents enact as processes, not a rule for each case.

Both run on acf-opencode, our fork of OpenCode v2. Upstream OpenCode v2.2.5 had no place to keep a context plugin's decisions with the session; the fork adds an API that keeps them and applies them whenever the session's history is loaded for the model. It also adds a session Interlink tool, so Principals in different sessions can message and task each other.

The ICM README describes the system, includes an exploratory replay study with its limits, and says what hasn't been measured: https://github.com/DefendTheDisabled/intelligent-context-management

ACF: https://github.com/DefendTheDisabled/agentic-collaboration-frameworkContext compaction is an event that injures an agent's understanding. Each compaction loses detail, and the agent has to recover from it. Repeat it and the loss compounds.

Intelligent Context Management (ICM) replaces compaction. The working agent assesses what it needs for the work ahead and why, then keeps material verbatim, distills tool output, compresses finished work, releases what no longer serves, or leaves its context as it is. Edits change what the model sees, not the saved history. ICM selects content itself only for model input limit overflow protection.

ICM is part of the Agentic Collaboration Framework (ACF), a multi-agent framework for long-horizon work that spans many sessions, where a problem has to be modeled before it can be solved. You work with one primary agent, the Principal. It delegates to Partners, Associates and Assistants, and checks and integrates their work against its working-model, its evolving model of the problem. ACF's instructions are protocols that agents enact as processes, not a rule for each case.

Both run on acf-opencode, our fork of OpenCode v2. Upstream OpenCode v2.2.5 had no place to keep a context plugin's decisions with the session; the fork adds an API that keeps them and applies them whenever the session's history is loaded for the model. It also adds a session Interlink tool, so Principals in different sessions can message and task each other.

The ICM README describes the system, includes an exploratory replay study with its limits, and says what hasn't been measured: https://github.com/DefendTheDisabled/intelligent-context-management

ACF: https://github.com/DefendTheDisabled/agentic-collaboration-framework

1 Upvotes

0 comments sorted by