{
  "id": "aoe",
  "name": "Agent of Empires",
  "homepage": "https://github.com/agent-of-empires/agent-of-empires",
  "executables": [
    "aoe"
  ],
  "dotfiles": {
    "paths": [
      "~/.agent-of-empires/config.toml",
      "~/.agent-of-empires/profiles/*/config.toml",
      "[configHome]/agent-of-empires/config.toml",
      "[configHome]/agent-of-empires/profiles/*/config.toml"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Agent of Empires",
    "description": "Create a coding-agent session. Sandbox, multi-repo workspace and structured-view options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "subcommand": [
      {
        "path": [
          "add"
        ],
        "label": "Add a session",
        "source": [
          {
            "id": "src",
            "kind": "help",
            "url": "https://github.com/agent-of-empires/agent-of-empires/blob/main/src/cli/add.rs",
            "evidence": "aoe add --cmd claude         # Create a session running Claude Code\n    /// Project directory (defaults to current directory). Omit when\n    /// using `--scratch`.\n    /// Session title (defaults to folder name)\n    #[arg(short = 't', long)]\n    /// Command to run (e.g., 'claude' or any other supported agent)\n    #[arg(short = 'c', long = \"cmd\")]\n    /// Create session in a git worktree for the specified branch\n    #[arg(short = 'w', long = \"worktree\")]\n    /// Create a new branch (use with --worktree)\n    #[arg(short = 'b', long = \"new-branch\")]\n    /// Branch to base the new worktree branch on (use with --new-branch).\n    #[arg(long = \"base-branch\")]\n    /// name (use with --worktree). Outranks `--base-branch`, which\n    /// Automatically trust this repository's hooks and project-local MCP\n    #[arg(long = \"trust-hooks\")]\n    Or re-run with --trust-hooks, or use the terminal view\n    /// Launch the session immediately after creating\n    #[arg(short = 'l', long)]\n    launch: bool,\n    (--launch is a no-op for structured view sessions;\n    is given. Requires an interactive terminal. Ignored when --title is given.\n"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Project directory",
            "description": "Defaults to the current directory.",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "title",
            "label": "Title",
            "description": "Defaults to the folder name.",
            "type": "string",
            "option": [
              "--title"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "cmd",
            "label": "Agent command",
            "type": "string",
            "option": [
              "--cmd",
              "-c"
            ],
            "suggestions": [
              {
                "value": "claude",
                "label": "Claude Code"
              }
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "worktree",
            "label": "Worktree branch",
            "type": "string",
            "option": [
              "--worktree",
              "-w"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "new_branch",
            "label": "Create new branch",
            "description": "Use together with a worktree branch.",
            "type": "boolean",
            "option": [
              "--new-branch",
              "-b"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "base_branch",
            "label": "Base branch",
            "type": "string",
            "option": [
              "--base-branch"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "trust_hooks",
            "label": "Trust repository hooks",
            "type": "boolean",
            "option": [
              "--trust-hooks"
            ],
            "effect": "exec",
            "sources": [
              "src"
            ]
          },
          {
            "id": "launch",
            "label": "Launch immediately",
            "type": "boolean",
            "option": [
              "--launch",
              "-l"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "session",
            "label": "New session",
            "fields": [
              "path",
              "title",
              "cmd",
              "launch"
            ],
            "required": []
          },
          {
            "id": "worktree",
            "label": "Session in a new worktree",
            "set": {
              "new_branch": [
                true
              ]
            },
            "fields": [
              "path",
              "title",
              "cmd",
              "worktree",
              "new_branch",
              "base_branch",
              "launch"
            ],
            "required": [
              "worktree"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "title",
              "cmd",
              "launch"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "worktree",
              "new_branch",
              "base_branch",
              "trust_hooks"
            ]
          }
        ]
      }
    ]
  }
}
