Skip to content

CLI Overview

CLI

The Archcore CLI builds structured, git-native context for AI coding agents. It reads .archcore/, validates documents, builds the relation graph, and exposes it to every supported agent through MCP and session hooks.

Use the CLI when you want a minimal, direct integration — or when you’re using an agent the plugin doesn’t support yet.

  • Your coding agent is GitHub Copilot, Gemini CLI, OpenCode, Codex CLI, Roo Code, or Cline — the plugin does not ship for these hosts yet, but the CLI’s MCP integration does.
  • You want the smallest possible install (one binary, eight MCP tools, done).
  • You’re scripting Archcore in CI, pre-commit hooks, or other non-interactive contexts.
  • You want to understand how the full system works before adding the plugin layer on top.
  • archcore init — creates .archcore/, detects coding agents, writes MCP config and session hooks for each.
  • archcore mcp — starts the MCP server that agents launch as a subprocess.
  • archcore validate / archcore status / archcore doctor — check structure, frontmatter, and relation graph health.
  • archcore hooks — install/run session-start hooks per agent.
  • archcore config — read/write .archcore/settings.json.

The CLI integrates with eight coding agents out of the box. MCP works with all eight; session hooks work with four of them.

AgentMCPHooks
Claude CodeYesYes
CursorYesYes
GitHub CopilotYesYes
Gemini CLIYesYes
OpenCodeYes
Codex CLIYes
Roo CodeYes
ClineManual

For the full matrix and per-agent config paths, see Agent integrations.

  • Install — curl installer (macOS/Linux/WSL) or PowerShell (Windows).
  • Quick start — initialize a project and create your first document.
  • Commands — full reference for every archcore subcommand.
  • MCP server — how agents connect and what tools they get.