vcc-hybrid
Compaction method and Pi extension that keeps a model-written state index for long agent
vcc-hybrid is an open-source agent for knowledge and memory. It is available on CLI and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Built with
- Pi
- Listing updated
About vcc-hybrid
Long agent sessions lose details when older messages are compacted into a summary. This project adds a short index beside a rule-based summary, with one line per topic stating the current state and the number of the source message it comes from. When the index is rewritten at each compaction, a model reads the previous index and the messages being compacted, so decisions that changed over time keep their latest version.
After compaction the agent can answer common questions from the index, or open a cited message or search the compacted history through a recall tool when a missing detail could change the answer. Benchmarks in the repository compare it against Pi's default summary and the pi-vcc rule-based extension on conversation recall and code repair tasks.
The work is aimed at developers who run long coding or research sessions in the Pi agent and want fewer wrong answers after compaction. It is installed as a Pi extension and configured through settings.json.
What it does
- State index per topic
- Keeps one line per topic with the current state and a reference to its source message.
- Rule-based summary
- Summarizes older messages by rule without a model call, leaving recent turns uncompacted.
- Message recall tool
- Lets the model search compacted messages or open a cited message by number.
- Pi slash commands
- Adds /compact keep:N, focus text for the index, and /vcc-hybrid state and recall commands.
- Configurable writer model
- Sets the model and thinking level used to write the index through settings.json.
Good for
- Keep decisions and dates accurate across a long coding session in Pi
- Resume a compacted repair task without re-reading the whole history
- Benchmark compaction methods on long-conversation recall tests
- Focus the compaction index on deployment constraints or other priorities
Pricing
Open source
Open source under MIT, run as a Pi extension.
vcc-hybrid FAQ
How do I install vcc-hybrid?
Run pi install git:github.com/choam2426/vcc-hybrid. If pi-vcc is installed, remove it first, since both together trigger a startup warning.
Which model writes the index?
It uses the current session's model and thinking level unless overridden in the vccHybrid settings in settings.json.
Does the index cost extra?
Yes, the index is written by a model call during compaction, so compaction takes longer than with the rule-based summary alone.
Where this comes from
- Description: written from the project's README.