Oco Claude Plugin
OCO Claude Code plugin β safety hooks, skills, agents, and MCP tools for any project
Ask AI about Oco Claude Plugin
Powered by Claude Β· Grounded in docs
I know everything about Oco Claude Plugin. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Open Context Orchestrator (OCO)
Intelligent orchestration middleware for IDE-based coding assistants.
OCO sits between your IDE, an LLM, local tools, and context sources. It decides at each step whether to respond, retrieve context, call a tool, verify a result, or stop β producing structured decision traces for full auditability.
Claude Code Plugin
Install OCO as a Claude Code plugin in any project β one command:
npx oco-claude-plugin install # project-level
npx oco-claude-plugin install --global # all projects
npx oco-claude-plugin status # check installation
npx oco-claude-plugin uninstall # clean removal
What you get:
- Safety hooks β blocks destructive commands, protects sensitive files, detects loops, enforces verification before completion
- 5 skills β
/oco-inspect-repo-area,/oco-investigate-bug,/oco-safe-refactor,/oco-trace-stack,/oco-verify-fix - 3 agents β
codebase-investigator,patch-verifier,refactor-reviewer - MCP tools β composite codebase search, error tracing, patch verification, findings collection
Plugin-only mode (Node.js only, no build required): hooks, skills, agents, and basic MCP tools work immediately. No API key required.
Full mode (requires Rust toolchain + OCO source repo):
install the oco binary (cargo install --path apps/dev-cli) for indexed search,
stack trace mapping, and task delegation via MCP.
Architecture
ββββββββββββββββ ββββββββββββββββββββββββββββββββββββ βββββββββββββββ
β VS Code Ext ββββββΊβ Orchestrator Core (Rust) ββββββΊβ ML Worker β
β (TypeScript)β β ββββββββββββββ ββββββββββββββ β β (Python) β
ββββββββββββββββ β β Policy Eng β β Planner β β βββββββββββββββ
β β Context Engβ β (DAG gen) β β
ββββββββββββββββ β β Code Intel β ββββββββββββββ€ β βββββββββββββββ
β Claude Code ββββββΊβ β Tool RT β β GraphRunnerβ ββββββΊβ LLM APIs β
β (MCP/Hooks) β β β Retrieval β β (parallel) β β β (any) β
ββββββββββββββββ β β Verifier β β LlmRouter β β βββββββββββββββ
β ββββββββββββββ ββββββββββββββ β
β MCP Server Agent Teams β βββββββββββββββ
ββββββββββββββββββββββββββββββββββββ β SQLite β
βββββββββββββββ
Orchestration v2 β Emergent Plan Engine
Medium+ tasks get a unique ExecutionPlan (DAG of steps) generated by the Planner. No templates β plans emerge from task, repo context, and available capabilities.
Request β Classifier β Trivial/Low: flat action loop
β Medium+: Planner β DAG β GraphRunner
βββ Parallel step execution (tokio::spawn)
βββ Observable plans (DAG overview, progress bar, per-step events)
βββ Hard step count enforcement per complexity tier
βββ Verify gates after implementation steps
βββ Replan on failure (max 3 attempts, budget pre-check)
βββ Multi-model routing (opus/sonnet/haiku per step)
βββ Effort-level routing (low/medium/high per step)
βββ Agent Teams (Mesh/HubSpoke/Pipeline topologies)
βββ HTTP hooks for Claude Code event integration
βββ MCP elicitation for interactive decisions
βββ Cooperative cancellation + per-step budget limits
Rust Crates (15)
| Crate | Role |
|---|---|
shared-types | Domain types, ExecutionPlan DAG, CapabilityRegistry, TeamCoordinator, ElicitationRequest, EffortLevel |
shared-proto | Protobuf definitions (gRPC IPC) |
policy-engine | Deterministic action selection, budget enforcement, zero-limit guards |
code-intel | Tree-sitter parser, symbol indexer |
retrieval | SQLite FTS5, vector search, hybrid RRF ranking |
context-engine | Context assembly, dedup, step-scoped filtering |
planner | DirectPlanner (trivial) + LlmPlanner (Medium+ DAG generation) |
orchestrator-core | GraphRunner (DAG execution), LlmRouter (multi-model + effort), AgentTeamsExecutor |
tool-runtime | Shell/file executors |
verifier | Test/build/lint/typecheck runners |
telemetry | Tracing, event recording |
mcp-server | Axum HTTP + MCP server, Claude Code HTTP hook endpoints |
dev-cli | CLI binary with Terminal/JSONL/Quiet renderers |
architecture-tests | Crate dependency DAG enforcement, layer violation detection |
Key Principles
- Emergent orchestration β each plan is unique, generated from task + repo + capabilities
- Provider-agnostic β works with Anthropic, Ollama, or any LLM API
- Local-first β no cloud dependencies required
- Auditable β every decision produces a structured trace
- Observable β plan DAG overview, live progress bar, per-step lifecycle events, verify gate results
- Bounded β explicit token, time, and tool-call budgets with per-step cancellation and step count limits
- Deterministic policy β no LLM calls for routing decisions
- Multi-model routing β opus for architecture, sonnet for implementation, haiku for exploration
- Effort-level routing β automatic
--effortselection per step role, budget-aware downgrade - Agent Teams native β Mesh, HubSpoke, Pipeline topologies with runtime enforcement
- Interactive decisions β MCP elicitation for replan confirmation, architecture choices, verify gate failures
- Event-driven UI β core emits structured events, CLI renders via pluggable renderers
Stack
| Layer | Technology |
|---|---|
| Core runtime | Rust 1.85+ (edition 2024), Tokio, Axum |
| Orchestration | DAG planner, GraphRunner, LlmRouter, Agent Teams |
| Storage | SQLite + FTS5 |
| Code analysis | Tree-sitter (regex fallback) |
| IPC | gRPC / Protobuf |
| IDE extension | TypeScript, VS Code API |
| Claude Code | MCP bridge, hooks, skills, agents |
| ML worker | Python, Sentence Transformers |
| Telemetry | tracing + OpenTelemetry |
Getting Started
Prerequisites
- Rust 1.85+ (edition 2024)
- Node 20+ (for Claude Code plugin)
- Python 3.11+ and uv (optional, for ML worker)
- pnpm (optional, for VS Code extension)
Build from source
git clone https://github.com/hoklims/oco.git
cd oco
# Build all Rust crates
cargo build
# Run the test suite (421+ tests)
cargo test
# Run the CLI
cargo run -p oco-dev-cli -- --help
Optional components
# Python ML worker (embeddings & reranking)
cd py/ml-worker && uv sync
# VS Code extension
cd apps/vscode-extension && pnpm install
Quick usage
oco index ./my-project # Index a workspace
oco search "auth handler" --workspace . # Full-text search
oco run "fix the login bug" --workspace . # Orchestrate (live trace)
oco serve --port 3000 # Start HTTP/MCP server
oco doctor --workspace . # Check health
oco eval scenarios.jsonl # Run evaluations
oco runs list # List past runs
oco runs show last # Replay last run's trace
Output modes
oco doctor # Human: colors, spinners, icons
oco --format jsonl doctor # Machine: 1 JSON event per line
oco --quiet doctor # Quiet: only final result/errors
Configuration
Runtime config in oco.toml. See examples/oco.toml for a documented template.
LLM Providers
| Provider | Config | Requirements |
|---|---|---|
claude-code | provider = "claude-code" (default) | claude CLI on PATH |
stub | provider = "stub" | None |
anthropic | provider = "anthropic" | ANTHROPIC_API_KEY env var |
ollama | provider = "ollama" | Local Ollama at localhost:11434 |
Documentation
- Architecture overview
- Architecture Decision Records
- Feature specifications
- Claude Code integration
- Contributing
- Security policy
Contributing
See CONTRIBUTING.md for setup instructions, conventions, and workflow.
