init¶
Initialize rp1 in a repository and prepare it for workflow use.
Synopsis¶
Description¶
rp1 init is the normal entry point for bringing rp1 into an existing
repository. It prepares the project, detects supported hosts, installs
integrations where automatic setup is available, and prints the next actions.
Options¶
| Option | Short | Description |
|---|---|---|
--yes |
-y |
Accept safe defaults without prompting |
--interactive |
-i |
Force interactive mode even without a TTY |
Host Support¶
| Host | Detected by init |
Instruction file | Automatic integration setup |
|---|---|---|---|
| Claude Code | Yes | CLAUDE.md |
Yes |
| OpenCode | Yes | AGENTS.md |
Yes |
| GitHub Copilot CLI | Yes | AGENTS.md |
Yes |
| Codex | Yes | AGENTS.md |
No, run rp1 install codex after init |
Use Installation and Host Setup when you need the full setup path for a specific host.
What Gets Configured¶
Project Directories¶
init prepares the standard rp1 layout:
Instruction File¶
rp1 adds project guidance to the instruction file your host reads:
- Claude Code:
CLAUDE.md - OpenCode:
AGENTS.md - Codex:
AGENTS.md - GitHub Copilot CLI:
AGENTS.md
Those files tell the host how to load project context and invoke rp1 workflows.
Ignore Defaults¶
The recommended setup keeps project context shareable while treating local work artifacts as disposable:
- Track
.rp1/context/ - Ignore
.rp1/work/ - Ignore
.rp1/context/meta.json - Ignore
.rp1/settings.toml
Git Ignore Presets¶
rp1 init uses the recommended ignore defaults unless you choose a different
setup during interactive initialization. The presets all keep .rp1/project_id
shareable so Arcade and rp1 can recognize the same project across clones and
worktrees.
Examples¶
Standard Setup¶
Non-Interactive Setup¶
Use non-interactive setup for automation, dev containers, and fresh checkouts where you want repeatable defaults.
Typical Next Steps¶
After init, the normal path is:
- Restart the detected host tool so it reloads rp1.
- Run any host-specific install command that
initprinted. - Generate project context.
- Start your first workflow or open Arcade.
| Host | First context command |
|---|---|
| Claude Code | /knowledge-build |
| OpenCode | /rp1-base-knowledge-build |
| Codex | $rp1-base-knowledge-build |
| GitHub Copilot CLI | /rp1-base-knowledge-build |