From pua
Lists active PUA agent/team processes with PID, age, and status. Scans loop state files and active-agent records to classify agents as ACTIVE, STALE, or ORPHAN.
How this command is triggered — by the user, by Claude, or both
Slash command
/pua:team-statusThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# PUA Team Status — 活跃 agent 清单 职业球队需要上场阵容表。这个命令列出所有"还在场上"的 agent 及其年龄。 ## 执行步骤 1. 确保 `~/.claude/pua/` 存在: 2. 扫描 loop state 文件: 3. 扫描 legacy 相对路径(向后兼容): 4. 扫描 active agents 记录(若 PostToolUse hook 已记录): 5. 输出表格格式: 6. 若发现 STALE/ORPHAN,追加提示: > 🧹 发现 N 个孤儿状态。建议执行 `/pua:reap-orphans` 批量清理。 ## 判定规则 - **ACTIVE**:mtime < 30min - **STALE**:30min ≤ mtime < 2h - **ORPHAN**:mtime ≥ 2h 或无对应活跃 session ## 无活跃 team 时 > [PUA TEAM STATUS] 没有活跃 agent。球队下班。
职业球队需要上场阵容表。这个命令列出所有"还在场上"的 agent 及其年龄。
确保 ~/.claude/pua/ 存在:
mkdir -p "$HOME/.claude/pua"
扫描 loop state 文件:
ls -la "$HOME/.claude/pua/"loop-*.md 2>/dev/null || echo "NO_LOOP"
扫描 legacy 相对路径(向后兼容):
test -f .claude/pua-loop.local.md && ls -la .claude/pua-loop.local.md || echo "NO_LEGACY"
扫描 active agents 记录(若 PostToolUse hook 已记录):
test -f "$HOME/.claude/pua/active-agents.json" && \
jq -r '.agents[] | "\(.id) | spawn=\(.spawn_time) | status=\(.status)"' \
"$HOME/.claude/pua/active-agents.json" || echo "NO_AGENTS_FILE"
输出表格格式:
| Type | ID / File | Age | Status |
|---------|-----------------------------------|----------|-----------|
| loop | loop-<session>.md | 00:05:23 | ACTIVE |
| loop | .claude/pua-loop.local.md | 01:34:11 | ⚠️ STALE |
| agent | p8-backend | 00:12:04 | RUNNING |
| orphan | loop-<dead>.md | 02:15:00 | 🧟 ORPHAN |
若发现 STALE/ORPHAN,追加提示:
🧹 发现 N 个孤儿状态。建议执行
/pua:reap-orphans批量清理。
[PUA TEAM STATUS] 没有活跃 agent。球队下班。
npx claudepluginhub y1024/pua --plugin pua/team-statusLists active PUA agent/team processes with PID, age, and status. Scans loop state files and active-agent records to classify agents as ACTIVE, STALE, or ORPHAN.
/teamLists active team agents with their roles, modules, and current intents. Supports human-readable output and --json for machine-readable format.
/team-statusShows a status table of parallel development agents in the current team session, including task progress, agent state, and overall completion percentage.
/team-statusDisplays the current state of an active agent team including members, tasks, and progress. Accepts optional flags --tasks, --members, and --json to filter output.
/listLists all available agents grouped by category (Development, Operations, etc.) with priorities and active status. Supports filtering by type or active.
/agentsLists registered agents with ID, model, last heartbeat as relative time, and status (online/offline/stale). Normal to show one agent in single-machine setups.