Unified Context Protocol (UCP)
A drop-in context system that makes AI coding assistants actually remember your project.
π― The Problem
AI coding assistants forget everything between sessions. You waste time re-explaining your project architecture, coding standards, and past decisionsβand agents often create conflicting or inconsistent work.
π‘ The Solution
UCP is a standardized governance layer that sits between your codebase and AI agents. It provides a file-system-based protocol for persistent context, enabling agents to:
- Read project state and history
- Write learnings and decisions
- Coordinate across sessions and tools
β¨ Key Features
| Feature | Description |
|---|---|
| π§ Smart Kernel v3.1 | High-speed boot with auto-fix for stale context, broken locks, and missing data |
| π Multi-Agent Support | Works with 8+ AI assistants via unified adapter |
| π€ Session Handoffs | Incomplete work is savedβnext session picks it up |
| π Auto-Maintenance | Agents self-correct: break stale locks, trigger audits, prune old learnings |
| π Monorepo Ready | Define sub-projects with scoped contexts |
| π§ Knowledge Persistence | Patterns, gotchas, and decisions survive across sessions |
| β‘ Context Budget System | Tiered loading prevents LLM context overload |
π /reset Command | Clear working context and start fresh |
π§ Supported AI Assistants
See Universal Adapter.
Cursor β’ Windsurf β’ Claude Code β’ GitHub Copilot β’ JetBrains AI β’ Aider β’ Gemini Antigravity β’ Generic LLMs
π What's Included
unified_context_protocol/
βββ boot.md # Agent entry point
βββ context/ # Project state (MASTER.md, tech.md, changelog.md...)
βββ knowledge/ # Persistent learnings & decisions
βββ bin/
β βββ workflows/ # audit, development, maintenance...
β βββ adapters/ # Per-agent integration guides
βββ archive/ # Historical context storage
π Quick Start
1. Install
Via CLI (Recommended):
npx corepackai install @corepackai/ucp
# OR for a full team setup:
npx corepackai install @corepackai/startup-team
Or Manual:
Copy the pack into your project's context directory (e.g., .context/ or .ai/).
2. Initialize
Tell your agent:
"Read bin/workflows/onboarding.md"
3. Audit
Tell your agent:
"Read bin/workflows/audit.md and audit this project"
Done! Your agents now have persistent, coordinated context.
π Why UCP?
- Escape vendor lock-in: Your context lives in version-controlled files, not proprietary cloud systems
- Tool-agnostic: Switch between AI assistants without losing context
- Human-readable: All files are markdownβyou can edit them directly
- Version-controlled: Commit your context alongside your code
π Documentation
| Resource | Description |
|---|---|
| User Guide | Detailed setup and usage for humans |
| boot.md | Agent entry point (boot protocol, structure) |
| CLI Guide | Automation tool instructions |
Installation
To install this package, run:
npx corepackai install @corepackai/ucp --bridgenpx corepackai install @corepackai/ucp --bridge