Project Intelligence Runtime for AI Coding Tools
Contorium is a local-first system that preserves and reconstructs software project intelligence across AI coding environments.
It works with:
- Cursor
- Claude Code
- Codex
- Gemini CLI
- VS Code
- Any MCP-compatible runtime
Instead of repeatedly re-explaining architecture, decisions, and project state in every session, Contorium maintains a shared Project Intelligence Layer that all tools can access.
Git stores code history
Contorium stores project intelligence history
It captures not just what changed, but:
- Why it changed
- What decisions were made
- What the project is trying to become
- How it evolved over time
CIL is the user-facing intelligence system.
It does not execute tasks.
It answers questions.
User Query
↓
Query Router
↓
Cognitive Kernel
↓
Engines (Event · Decision · State · Graph)
↓
Formatter
↓
Response
| Question | System |
|---|---|
| What happened? | History Engine |
| Why was this done? | Decision Center |
| What should I do next? | Action Engine (suggestions only) |
| What is this project? | Story / Essence |
| What was state at a time? | Time Travel (Snapshot) |
| What is MCP? | Knowledge Graph |
| Is the project healthy? | Cognitive Health |
contorium ask "Why was MCP added?"
contorium ask "What happened this week?"
contorium ask "What was the state on 2024-06-18?"Other tools:
contorium health
contorium entity mcp
contorium dna --copy
contorium questionsPIL is the storage layer (source of truth).
It is deterministic and fully local.
It stores:
- STATE (current project state)
- INTENT (project goals)
- DECISION (architectural decisions)
- WHY (decision rationale)
- TIMELINE (evolution history)
- IMPACT (dependency relationships)
- PROVENANCE (origin tracking)
- CONFIDENCE (reliability signals)
All data is stored under:
.contora/
It does not answer questions.
It only stores structured intelligence.
- PIL → facts (deterministic)
- CIL → cognition (interpretation)
- LLM → optional explanation layer
Contorium is built around three unified operations:
Record project intelligence.
contorium capture focus
contorium capture note
contorium capture decisionRead project intelligence.
contorium inspect state
contorium inspect decision
contorium inspect timeline
contorium inspect graph
contorium inspect healthExport intelligence for AI continuity.
contorium transfer context
contorium transfer intelligence
contorium transfer handoff| Mode | Purpose | Size |
|---|---|---|
| Context | Resume in new AI chat | small |
| Handoff | Continue active session | compact |
| Intelligence | Full project export | deep analysis |
Query Layer (Ask)
│
Query Router
│
Cognitive Kernel (CIL)
│
┌──────────────┬──────────────┬──────────────┐
▼ ▼ ▼
Event Engine Decision Engine State Engine
│ │ │
└───────┬──────┴──────┬──────┘
▼ ▼
Action Engine Knowledge Graph
│
▼
IDE · MCP · CLI · Dashboard
│
▼
PIL (.contora/)
Contorium runs across three equal environments:
| Runtime | Role |
|---|---|
| IDE | Workspace intelligence |
| MCP | AI agent interface |
| CLI | Terminal operations |
All share:
@contora/state-core.contora/local intelligence repository
Contorium structures project intelligence across dimensions:
- STATE → what exists now
- INTENT → what is the goal
- DECISION → what was chosen
- WHY → reasoning behind decisions
- TIMELINE → when things changed
- IMPACT → what is affected
- PROVENANCE → where data came from
- CONFIDENCE → reliability level
- Project History Exploration
- Decision Center (ADR + conflicts)
- Time Travel (snapshot replay)
- Entity Knowledge Graph
- Cognitive Health Analysis
- Project Story / Essence
- Project DNA
- Suggested Questions
All intelligence is stored locally:
.contora/
Example structure:
.contora/
├── state.json
├── intent/
├── timeline/
├── graph/
├── events/
├── decisions/
├── health.json
├── config/
│ └── llm.json
No cloud dependency. No vendor lock-in.
Contorium does NOT require LLMs.
But supports optional enhancement for:
- Why explanation
- Story generation
- Essence compression
- DNA summarization
- Suggested questions
{
"provider": "openai",
"model": "gpt-5",
"enabled_modules": [
"why",
"story",
"essence",
"dna"
]
}Contorium is not:
- an autonomous coding agent
- a task execution system
- a project manager
- a recommendation engine
It does not execute actions.
It preserves and explains project intelligence.
npm install -g @contorium/mcp
claude mcp add --scope project contorium -- npx @contorium/mcpgit clone https://github.com/ContoriumLabs/contorium.git
cd contorium
npm install
npm run compile
npx contorium init .
npx contorium ask "What is this project?"- Install extension
- Open workspace
- Set Focus
- Use Ask Contorium
- Transfer Context when switching AI sessions
Cognitive runtime dashboard includes:
- Live cognition view
- Decision governance
- Debug trace
- Project history
- Health stream
- Cursor
- Claude Code
- Codex
- Gemini CLI
- VS Code
- MCP-compatible tools
Website: https://www.contorium.dev
GitHub: https://github.com/ContoriumLabs/contorium
MIT / See LICENSE