| name | athena-status |
| description | 快速查看当前项目的 Athena 状态: stage / path / sprint / 进度 / 活动 worktree.
无副作用, 只读.
|
| effort | low |
/athena-status — 项目状态查询 (v9.6.4)
工作流
[ -d .ai_state ] || { echo "项目未 init, 先跑 /athena-init"; exit 1; }
echo "=== 项目状态 ==="
sed -n '/^---$/,/^---$/p' .ai_state/_index.md | head -50
slug=$(grep -oP 'current_sprint_slug:\s*"?\K[^"\n]*' .ai_state/_index.md | head -1)
if [ -n "$slug" ]; then
echo ""
echo "=== 当前 sprint: $slug ==="
ls .ai_state/sprints/$slug/ 2>/dev/null
if [ -d ".ai_state/sprints/$slug/reviews" ]; then
echo ""
echo "=== 最新 review ==="
ls -t .ai_state/sprints/$slug/reviews/*.md 2>/dev/null | head -1 | xargs tail -30 2>/dev/null
fi
if [ -f ".ai_state/sprints/$slug/cleanup-pass.md" ]; then
echo ""
echo "=== Cleanup pass ==="
tail -20 ".ai_state/sprints/$slug/cleanup-pass.md"
fi
fi
echo ""
echo "=== 活动 worktree ==="
grep -oP 'active_worktrees:\s*\K\[.*\]' .ai_state/_index.md | head -1
git worktree list 2>/dev/null
echo ""
echo "=== Compound 沉淀 ==="
for type in learning trick decision explore; do
count=$(ls .ai_state/compound/*-${type}-*.md 2>/dev/null | wc -l)
echo " $type: $count"
done
roadmap=$(grep -oP 'current_roadmap_slug:\s*"?\K[^"\n]*' .ai_state/_index.md | head -1)
if [ -n "$roadmap" ]; then
echo ""
echo "=== Roadmap: $roadmap ==="
cat .ai_state/roadmap/$roadmap/items.yaml 2>/dev/null
fi
echo ""
echo "=== Git ==="
git status -s
git log --oneline -5
输出示例
=== 项目状态 ===
version: "9.6.4"
path: "Feature"
stage: "impl"
current_sprint_slug: "2026-05-25-jwt-refresh"
...
=== 当前 sprint: 2026-05-25-jwt-refresh ===
brainstorm.md design.md checklist.yaml reviews/
subagent-log.md evidence.yaml tool-trace.jsonl
=== 活动 worktree ===
["worktree-jwt-refresh-impl"]
=== Compound 沉淀 ===
learning: 3
trick: 1
decision: 5
explore: 2
=== Roadmap: auth-system ===
[items.yaml]
不要做
- ❌ 不修改任何文件 (只读)
- ❌ 不触发任何 hook
- ❌ 不调度任何 subagent
联动
| 用户问 | 进什么 |
|---|
| "现在做到哪了" | /athena-status (这个) |
| "上次 sprint 怎么搞的" | grep .ai_state/sprints/ |
| "为啥之前决定用 X" | grep .ai_state/compound/decision-*.md |
| "回顾整个项目历史" | git log + .ai_state/sprints/ + .ai_state/compound/ |