Documentation Index
Fetch the complete documentation index at: https://docs.automagik.dev/llms.txt
Use this file to discover all available pages before exploring further.
Directory Commands
Agent directory management — register, remove, list, and edit agent entries.genie dir add
Register an agent in the directory.
Terminal
Options
| Flag | Description | Default |
|---|---|---|
--dir <path> | Agent folder (CWD + AGENTS.md) | Required |
--repo <path> | Default git repo | — |
--prompt-mode <mode> | Prompt mode: append or system | append |
--model <model> | Default model (sonnet, opus, codex) | — |
--roles <roles...> | Built-in roles this agent can orchestrate | — |
--global | Write to global directory instead of project | — |
genie dir rm
Remove an agent from the directory.
Terminal
genie dir ls
List all registered agents or show details for a specific agent.
Terminal
genie dir edit
Update fields on an existing agent entry.
Terminal
genie dir sync
Sync directory entries from filesystem agent folders into the PostgreSQL registry.
genie agent register
Register an agent locally and auto-register in Omni (if configured).
| Option | Description |
|---|---|
--dir <path> | Agent folder (CWD + AGENTS.md) |
--repo <path> | Default git repo |
--prompt-mode <mode> | Prompt mode: append or system |
--model <model> | Default model (sonnet, opus, codex) |
--roles <roles...> | Built-in roles this agent can orchestrate |
--global | Write to global directory |
--skip-omni | Skip Omni auto-registration |
Terminal
genie init agent
Scaffold a new agent in the workspace. Creates the agent directory structure with default configuration files.
Three related commands, one clear split:
genie init agent <name>— scaffolds the files (SOUL.md, HEARTBEAT.md). Use this when starting from scratch.genie dir add <name> --dir <path>— registers an existing folder in the directory. Use this when the agent already lives on disk.genie agent register <name>— registers locally and in Omni for cross-channel messaging. Use this when the agent should reply on WhatsApp, Slack, etc.
Scope
Agent entries can be stored at two levels:| Scope | Location | Use case |
|---|---|---|
| Project | .genie/directory.json | Agents specific to this repo |
| Global | ~/.genie/directory.json | Agents available across all repos |
--global to target the global directory.
See also
Agents (concept)
How agents, roles, and providers relate.
Spawn & Lifecycle
Spawn the agents you’ve registered here.
Item Registry
Share agent definitions across machines via the registry.
Messaging
Message a registered agent from the CLI.