← 返回 Skills 市场
njbrake

Agent of Empires

作者 njbrake · GitHub ↗ · v1.4.6 · MIT-0
cross-platform ✓ 安全检测通过
605
总下载
0
收藏
0
当前安装
18
版本数
在 OpenClaw 中安装
/install aoe
功能描述
Manage AI coding agent sessions via Agent of Empires (aoe)
使用说明 (SKILL.md)

Agent of Empires (aoe) Skill

Use aoe to create, manage, and monitor AI coding agent sessions (Claude Code, Codex, OpenCode, etc.) in tmux. Prefer aoe over raw tmux commands for agent management.

When to use this skill

  • Launching one or more AI coding agents on project directories
  • Monitoring agent progress (waiting vs running vs idle)
  • Capturing agent output for review
  • Organizing agents into groups or profiles
  • Setting up parallel worktree-based development

Do NOT use this skill for general tmux window/pane management unrelated to coding agents.

Core concepts

  • Session: An agent process running in a tmux session. Each session has an ID, title, tool (e.g. claude), and project path.
  • Group: A named folder for organizing sessions (supports nesting with /, e.g. backend/api).
  • Profile: A separate workspace with its own sessions and config. Use -p \x3Cname> globally or set AGENT_OF_EMPIRES_PROFILE.
  • Status: One of running, waiting, idle, stopped, error, starting, unknown.

Command reference

Adding sessions

# Add a session for the current directory
aoe add . -t "my feature"

# Add with group, launch immediately
aoe add /path/to/repo -t "API work" -g backend -l

# Add with specific tool
aoe add . -t "codex session" -c codex

# Add in a git worktree (parallel branch)
aoe add . -t "fix-123" -w fix/issue-123 -l

# Add in Docker sandbox
aoe add . -t "sandboxed" -s -l

# Add as sub-session of another
aoe add . -t "sub task" -P \x3Cparent-id>

# Enable YOLO mode (skip permission prompts)
aoe add . -t "yolo" -y -l

Listing sessions

# Human-readable list
aoe list

# JSON output for parsing
aoe list --json

# List across all profiles
aoe list --all

JSON output shape (aoe list --json):

[
  {
    "id": "a1b2c3d4-...",
    "title": "my feature",
    "project_path": "/home/user/project",
    "group_path": "backend",
    "tool": "claude",
    "status": "running",
    "profile": "default"
  }
]

Session lifecycle

aoe session start \x3Cid-or-title>
aoe session stop \x3Cid-or-title>
aoe session restart \x3Cid-or-title>
aoe session attach \x3Cid-or-title>   # interactive attach

Inspecting sessions

# Show session metadata
aoe session show \x3Cid-or-title> --json

# Capture tmux pane content (key for monitoring)
aoe session capture \x3Cid-or-title> --json
aoe session capture \x3Cid-or-title> -n 100 --strip-ansi
aoe session capture \x3Cid-or-title>   # plain text, good for piping

# Quick status summary
aoe status --json
aoe status -q   # just the waiting count (for scripting)

JSON output shape (aoe session capture --json):

{
  "id": "a1b2c3d4-...",
  "title": "my feature",
  "status": "waiting",
  "tool": "claude",
  "content": "... pane text ...",
  "lines": 50
}

JSON output shape (aoe session show --json):

{
  "id": "a1b2c3d4-...",
  "title": "my feature",
  "path": "/home/user/project",
  "group": "backend",
  "tool": "claude",
  "command": "claude",
  "status": "running",
  "profile": "default"
}

JSON output shape (aoe status --json):

{
  "total": 5,
  "running": 2,
  "waiting": 1,
  "idle": 1,
  "stopped": 1,
  "sessions": [...]
}

Auto-detection (inside a tmux pane)

When called from within an aoe-managed tmux session, identifier can be omitted:

aoe session show          # auto-detects current session
aoe session capture       # auto-detects current session
aoe session current --json

Renaming and organizing

aoe session rename \x3Cid> -t "new title"
aoe session rename \x3Cid> -g "new/group"

aoe group create mygroup
aoe group move \x3Cid-or-title> mygroup
aoe group list --json
aoe group delete mygroup --force

Profiles

aoe profile list
aoe profile create staging
aoe profile delete staging
aoe profile default staging   # set default
aoe -p staging list            # use inline

Worktrees

aoe worktree list
aoe worktree info \x3Cid-or-title>
aoe worktree cleanup -f

Removing sessions

aoe remove \x3Cid-or-title>
aoe remove \x3Cid-or-title> --delete-worktree --force

Workflow patterns

Single agent

aoe add /path/to/repo -t "feature X" -l
# ... wait ...
aoe session capture "feature X" --json

Parallel worktree agents

aoe add . -t "issue-100" -w fix/issue-100 -l
aoe add . -t "issue-101" -w fix/issue-101 -l
aoe add . -t "issue-102" -w fix/issue-102 -l
aoe status --json   # check all at once

Monitoring loop

Poll all sessions until none are running:

while true; do
  status=$(aoe status --json)
  waiting=$(echo "$status" | jq '.waiting')
  running=$(echo "$status" | jq '.running')
  if [ "$running" -eq 0 ] && [ "$waiting" -eq 0 ]; then
    echo "All agents finished"
    break
  fi
  echo "Running: $running, Waiting: $waiting"
  sleep 30
done

Capture and review

for id in $(aoe list --json | jq -r '.[].id'); do
  echo "=== $id ==="
  aoe session capture "$id" -n 100 --strip-ansi
  echo
done

Group operations via TUI

Groups are primarily managed through the aoe TUI (run aoe with no arguments). The TUI supports bulk start/stop/restart on groups. Use CLI commands above for scripted workflows.

安全使用建议
This skill is coherent with its purpose, but before installing/use: - Ensure the 'aoe' binary installed on your system comes from the official project (review the GitHub repo/releases or package manager) so you don't run a malicious binary. - Be aware that 'aoe session capture' reads tmux pane contents; captured output may include sensitive data (API keys, passwords, private files printed to terminal). Avoid capturing or sharing panes that might contain secrets. - Note 'aoe add -s' (Docker sandbox) and 'aoe add -y' (skip prompts) flags: review what sandboxing does in the aoe docs and avoid YOLO mode if you want prompts/consent. - Running aoe commands will act on local worktrees and may create/delete worktrees or containers when using options like --delete-worktree; double-check commands before running them in important projects. - Because this skill is instruction-only, the platform will not install aoe for you — install/inspect the aoe binary yourself from a trusted release and, if possible, review its source before use.
功能分析
Type: OpenClaw Skill Name: aoe Version: 1.4.6 The skill bundle provides documentation for the 'aoe' (Agent of Empires) CLI tool, designed to manage multiple AI coding agent sessions within tmux. The instructions in SKILL.md cover standard session management tasks such as adding, listing, monitoring, and capturing output from agents, as well as organizational features like groups and profiles. No indicators of malicious intent, data exfiltration, or prompt injection were found; the tool's capabilities (including a 'YOLO mode' to skip prompts) are consistent with its stated purpose of automating developer workflows.
能力评估
Purpose & Capability
Name/description (manage Agent of Empires sessions) matches the declared requirements: the skill is instruction-only and requires the 'aoe' binary and 'tmux'. Those binaries are appropriate and expected for the stated functionality.
Instruction Scope
SKILL.md stays within scope (adding/listing/starting/stopping sessions, capturing pane content, profiles, worktrees). It instructs capturing tmux pane content and auto-detecting sessions in-tmux, which is consistent with monitoring but can read arbitrary terminal output (potentially sensitive). The guide also references filesystem paths (project/worktree) but does not instruct reading unrelated system files or credentials.
Install Mechanism
No install spec is provided (instruction-only). This is low risk from the skill bundle perspective, but the user must separately install 'aoe' from a trusted source (homepage points to a GitHub repo).
Credentials
No required environment variables, secrets, or config paths are declared. The actions described (tmux pane capture, running local aoe commands) do not demand external credentials from the skill metadata.
Persistence & Privilege
Skill is not forced-always, does not request persistent platform privileges, and contains no instructions to modify other skills or system-wide agent settings. Autonomous invocation is allowed by default (platform behavior) but not combined with other concerning flags here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aoe
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aoe 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.4.6
No changes detected in this version. - No file or documentation updates. - Behavior and features remain unchanged from the previous release.
v1.4.5
No changes detected in this version. - Version 1.4.5 is functionally identical to the previous release. - No files were changed, and documentation remains the same. - There are no new features, bugfixes, or updates in this release.
v1.4.4
No user-facing changes in this release. - Version bump to 1.4.4 with no documentation or functional updates.
v1.4.3
No changes detected in this release. - Version 1.4.3 contains no updates to code or documentation.
v1.4.2
Version 1.4.2 of the aoe skill - No file changes were detected in this release. - Documentation and usage details remain unchanged from the previous version.
v1.4.1
No user-visible changes in this release. - No changes detected in documentation or functionality. - Version incremented to 1.4.1.
v1.4.0
- Removed the version field from the SKILL.md frontmatter. - No functional or command changes to the skill's description or usage.
v1.3.0
No file changes detected between versions 0.15.1 and 1.3.0. - Version bumped to 1.3.0 with no content changes. - No updates to commands, documentation, or features.
v1.2.0
No file changes detected. - Version incremented from 0.15.1 to 1.2.0 with no other modifications. - All documentation, commands, features, and descriptions remain unchanged.
v1.1.0
No changes detected for version 1.1.0. - The skill contents and documentation remain unchanged from the previous release.
v1.0.2
No changes detected in this release. - There were no file or documentation changes between the previous and current version.
v1.0.1
No user-visible changes in this release. - Version bump from 0.15.1 to 1.0.1, no other updates detected. - Documentation, commands, and usage remain unchanged.
v1.0.0
No changes detected from the previous version. - Initial public release. - Provides tools to manage and monitor AI coding agent sessions via Agent of Empires (aoe). - Features session creation, grouping, profiling, worktree support, and CLI/TUI workflows. - Extensive JSON output support for scripting and automation.
v0.18.1
No user-visible changes in this version. - Version bump: 0.18.1 (previously 0.15.1) - No file changes detected; functionality and documentation remain unchanged.
v0.18.0
No file changes detected for this version. - Version bumped to 0.18.0 - No user-visible changes or updates in SKILL.md - Safe to update; behavior remains unchanged
v0.17.1
No file changes detected. No user-facing changes in this version.
v0.17.0
No file changes detected in this release. - Version bump to 0.17.0 with no visible changes to documentation or code. - No new features, fixes, or updates introduced.
v0.16.0
- Initial public documentation of the Agent of Empires (aoe) skill for managing AI coding agent sessions in tmux. - Clarifies usage scenarios, core concepts (sessions, groups, profiles, statuses), and when not to use the skill. - Provides detailed command reference for session, group, profile, and worktree management, including JSON output shapes. - Includes practical workflow patterns and scripting examples for session monitoring and bulk operations. - Notes TUI features and integration.
元数据
Slug aoe
版本 1.4.6
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 18
常见问题

Agent of Empires 是什么?

Manage AI coding agent sessions via Agent of Empires (aoe). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 605 次。

如何安装 Agent of Empires?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aoe」即可一键安装,无需额外配置。

Agent of Empires 是免费的吗?

是的,Agent of Empires 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent of Empires 支持哪些平台?

Agent of Empires 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent of Empires?

由 njbrake(@njbrake)开发并维护,当前版本 v1.4.6。

💬 留言讨论