CLI Commands
oak init
Section titled “oak init”Initialize Open Agent Kit in the current project. Creates the .oak directory structure with configuration, agent command directories, and Codebase Intelligence data.
Options:
| Flag | Description |
|---|---|
--agent, -a | Choose AI agent(s) — can be specified multiple times (claude, copilot, codex, cursor, gemini, windsurf) |
--language, -l | Choose language(s) for code intelligence — can be specified multiple times |
--force, -f | Force re-initialization |
--no-interactive | Skip interactive prompts and use defaults |
Examples:
# Interactive mode with multi-select checkboxesoak init
# With specific agent and languagesoak init --agent claude --language python --language typescript
# Multiple agentsoak init --agent claude --agent copilot
# Add agents to existing installationoak init --agent cursoroak upgrade
Section titled “oak upgrade”Upgrade Open Agent Kit templates and agent commands to the latest versions.
What gets upgraded:
- Agent commands: Updates command templates with latest features
- Feature templates: Replaced with latest versions
- Agent settings: Smart merge with existing settings (your custom settings are preserved)
Options:
| Flag | Description |
|---|---|
--commands, -c | Upgrade only agent command templates |
--templates, -t | Upgrade only RFC templates |
--dry-run, -d | Preview changes without applying them |
--force, -f | Skip confirmation prompts |
Examples:
oak upgrade --dry-run # Preview changesoak upgrade # Upgrade everythingoak upgrade --commands # Upgrade only commandsAI Agent Skills
Section titled “AI Agent Skills”Skills provide specialized capabilities to your AI agent:
- project-governance — Create and maintain project constitutions, agent instruction files, and RFC/ADR documents
- codebase-intelligence — Semantic search, impact analysis, and database queries against the Oak CI database
oak skill list # List available skillsoak skill install <n> # Install a skilloak skill remove <n> # Remove a skilloak skill refresh # Refresh all installed skillsLanguage Parsers
Section titled “Language Parsers”Add language support for better code understanding:
oak languages list # List parsers and statusoak languages add python javascript # Add parsersoak languages add --all # Install all 13 languagesoak languages remove ruby php # Remove parsersSupported languages: Python, JavaScript, TypeScript, Java, C#, Go, Rust, C, C++, Ruby, PHP, Kotlin, Scala
Codebase Intelligence
Section titled “Codebase Intelligence”These commands manage the daemon lifecycle. Once the daemon is running, use the Dashboard for configuration, search, and memory management.
oak ci start # Start the daemonoak ci start -o # Start and open dashboard in browseroak ci stop # Stop the daemonoak ci restart # Restart the daemonoak ci status # Show daemon status and index statisticsoak ci sync # Sync daemon after OAK upgrade (re-indexes if needed)oak ci reset # Clear all indexed dataoak ci logs -f # Follow daemon logsoak ci port # Show the daemon's port numberoak ci backup # Create a backupoak ci restore # Restore from backupProject Removal
Section titled “Project Removal”oak remove # Remove OAK configuration and files from the projectThis removes .oak/, agent command files, and agent settings. It does not remove user content in oak/ (RFCs, constitution, etc.) or the CLI tool itself.