MCP Compression Proxy (New)
Copium now includes an MCP proxy mode that acts as a transparent compression layer between your AI coding tool and upstream MCP servers.
Key capabilities:
- Tool description compression (70-90 percent reduction)
- Tool schema compression (~57 percent reduction)
- Tool response compression (60-95 percent reduction)
- Session deduplication for repeated tool definitions
- Progressive tool disclosure with on-demand schema expansion
Quick start:
copium mcp proxy install
copium mcp proxy serve
Helpful commands:
copium mcp proxy detect
copium mcp proxy status
copium mcp proxy uninstall
See docs/mcp-proxy.md for setup and configuration details.
Cross-Agent Context Sharing (New)
Copium is now the context layer for multi-agent systems. Agents don't share context
across sessions, tools, or each other — until now. SharedContext compresses what moves
between agents, persists it across sessions, and makes it searchable.
Key capabilities:
- Persistent SharedContext: SQLite-backed storage that survives proxy restarts.
- Agent Provenance: Track which agent created/modified each context entry.
- Conflict Resolution: Configurable strategies (last-write-wins, confidence, priority, merge).
- Semantic Search: Vector-based search over all shared context entries.
- Audit Trail: Full operation log for enterprise compliance.
- Framework Integrations: CrewAI, LangGraph, OpenAI Agents SDK, AutoGen, Agno, Strands.
- Zero-Code Proxy Mode: Any agent routing through the proxy shares context automatically.
from copium import SharedContext
ctx = SharedContext(persistent=True)
# Agent A stores output (compressed + persisted)
ctx.put("research", big_output, agent="researcher")
# Agent B gets compressed version (~80% smaller)
summary = ctx.get("research")
# Semantic search across all shared context
results = ctx.search("database migration findings", top_k=5)
See:
guides/shared-context.md
copium/shared_context/ (PersistentStore, VectorIndex, ConflictResolver, AuditLog)
copium/integrations/ (crewai, openai_agents, autogen, langchain, agno, strands)
Pre-Compaction Data Loss Prevention (New)
Copium now prevents the silent data loss caused by auto-compaction in agentic tools.
When Claude Code, Cursor, or Codex fires auto-compaction, critical context is destroyed:
reasoning chains, architectural decisions, file relationships, and user intent. Copium's
new compaction hooks preserve this state and make recovery automatic.
Key capabilities:
- Input-Priority Compression: User messages (high entropy) preserved; tool outputs compressed.
- Entropy-Based Scoring: Information density scoring for intelligent compression scheduling.
- Incremental Checkpointing: Gradual state saves every N tool calls (no cliff).
- Claude Code Hook Integration: Native PreCompact/PostCompact hook bridge.
- CCR Safety Net: All compression remains reversible via
copium_retrieve.
See:
guides/compaction-prevention.md
copium/hooks/ (InputPriorityHooks, IncrementalCheckpointHooks, claude_code)
Agent Context Management (New)
Copium now includes a Smart Zone based agent-aware context lifecycle in copium/agent_context/.
Key capabilities:
- Smart Zone budget enforcement to keep context in high-quality ranges.
- Phase detection: orientation, exploration, implementation, verification.
- Value-aware and content-type-aware compression scheduling.
- Orientation cache to reduce first-turn tool-call overhead.
- Context health monitoring and recommendations for long sessions.
See:
guides/agent-context-management.md
docs/agent-context-management.md
Position-Aware Compression (Lost in the Middle)
Initial implementation work has started for position-aware compression to reduce
"lost in the middle" degradation in long contexts.
Implemented in this iteration:
- Rust
position_aware transform module with zones, scoring, and configuration.
- Python
position_aware module parity helpers.
- SmartCrusher planner helper for position-aware keep-order optimization.
- Unit tests covering zone classification, weighting, and bookend reordering.
This is an opt-in foundation. Default behavior remains unchanged when
position weighting is disabled.
Quality Preservation (New)
Copium now includes a comprehensive quality preservation framework in copium/quality/.
The community's #1 concern with context compression: "Does it break my agent's answers?"
Our answer: verifiable, benchmarked, auditable proof that quality is preserved.
Key capabilities: