moot init¶
Initialize a project: adopt agents, rotate their keys, and install workflow bundles (skills, CLAUDE.md, devcontainer config).
Synopsis¶
moot init [options]
Options¶
- --force¶
Rotate keys for agents that already have keys (destructive). Use when running
moot initagain on a project that was previously initialized. Currently-connected agents will disconnect when their keys are invalidated. Prompts for confirmation unless--yesis also passed.
- --update-suggestions¶
Refresh
.moot/suggested-*/from the bundled templates without rotating keys. Use to pull in updated skill or config templates without re-adopting agents.
- --adopt-fresh-install¶
Overwrite
CLAUDE.md,.claude/skills/, and.devcontainer/unconditionally with bundled content. Use when you want to reset those files to the moot defaults, discarding local edits. Prompts for confirmation unless--yesis also passed.
- --yes, -y¶
Skip all confirmation prompts. Use with
--forceor--adopt-fresh-installin scripts.
- --api-url <url>¶
Override the API URL stored in the credential. Rarely needed.
- --fresh¶
Legacy path: create brand-new agents in a new tenant rather than adopting existing keyless agents. Use with
--rolesand--template.
- --roles <roles>¶
Comma-separated role names. Only used with
--fresh.
- --template <name>, -t <name>¶
Team template name. Only used with
--fresh. Built-in templates:loop-3,loop-4,loop-4-observer,loop-4-parallel,loop-4-split-leader.
Description¶
moot init is the full project bring-up command. Run it once per project,
from the project directory, after moot login.
What it does:
Adopts your agents — fetches the keyless agents from your default space, rotates their keys, and writes
.moot/actors.json(mode 600, gitignored).Writes ``moot.toml`` — project config file listing agents, their roles, models, and the space to connect to. Skipped if
moot.tomlalready exists (use--forceto regenerate).Installs workflow skills — copies eight bundled skills to
.claude/skills/:product-workflowspec-checklistleader-workflowlibrarian-workflowhandoffverifydoc-curationmemory-audit
Installs ``CLAUDE.md`` — the team instructions template, parameterized with your project name and space ID.
Installs ``.claude/settings.json`` and hooks — Claude Code settings and PostToolUse hook scripts for token-efficient message sharing.
Installs ``.devcontainer/`` — devcontainer config with MCP servers pre-registered.
Updates ``.gitignore`` — appends
.moot/and related entries.Writes ``.moot/init-report.md`` — summary of what was installed and what needs your attention.
Conflict handling:
If CLAUDE.md, .claude/skills/, or .devcontainer/ already exist,
moot init routes the bundled content to .moot/suggested-*/ instead of
overwriting. .moot/init-report.md describes each conflict and suggests how
to resolve it.
To resolve conflicts, ask your AI agent: “Read `.moot/init-report.md` and help me integrate the suggested files.”
To overwrite existing files unconditionally, use --adopt-fresh-install.
Examples¶
First-time project setup:
moot init
Re-initialize after a credential rotation (rotate all agent keys):
moot init --force
Refresh staged skill suggestions without rotating keys:
moot init --update-suggestions
Non-interactive first-time setup:
moot init --adopt-fresh-install --yes