archcore init
archcore init is the one command that turns any repository into an Archcore-aware project. Run it once per repo.
cd your-projectarchcore initWhat it does
Section titled “What it does”-
Creates
.archcore/with a defaultsettings.json:{"sync": "none"} -
Auto-detects installed coding agents by looking for known configuration directories and files:
Agent Detected by Claude Code .claude/directoryCursor .cursor/directoryGitHub Copilot .github/copilot-instructions.mdfileGemini CLI .gemini/directoryOpenCode opencode.jsonfile or.opencode/directoryCodex CLI .codex/directoryRoo Code .roo/directoryCline .clinerules/directoryIf no agents are detected,
initfalls back to Claude Code configuration so you have something to work with. -
Writes MCP config for every detected agent. The exact file location depends on the agent — see agent integrations for the full table.
-
Installs session hooks for agents that support them (Claude Code, Cursor, Copilot, Gemini CLI). Hooks inject a summary of your
.archcore/documents into the agent’s context at session start.
After init
Section titled “After init”Your project looks like this:
your-project/├── .archcore/│ └── settings.json├── .mcp.json # Claude Code MCP config (example)├── .claude/│ └── settings.json # session hook└── src/...From here:
- Create your first document by asking your agent to record a real decision — see Quick start.
- Validate structure with
archcore status. - Check full health with
archcore doctor.
Re-running init
Section titled “Re-running init”Safe to re-run. It will:
- Leave existing
.archcore/settings.jsonuntouched. - Re-apply MCP and hook configs (idempotent writes).
- Pick up any newly-installed agents.
Related commands
Section titled “Related commands”archcore mcp install— install MCP config without touching anything else.archcore hooks install— install hooks without touching anything else.archcore status/archcore doctor— check structure after init.
See commands for the full reference.
Next steps
Section titled “Next steps”- Quick start — create your first document.
- MCP server — what
initwires up. - Hooks — what the session-start hook actually does.