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 agent register
Register an agent locally and auto-register in Omni (if configured).
Terminal
genie init agent
Scaffold a new agent in the workspace. Creates the agent directory structure with default configuration files.
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.