--- name: af-status description: | Show ArcheFlow status — current/last run, active agents, findings. User: "/af-status" --- # ArcheFlow Status 1. Read `.archeflow/state.json` if it exists. Extract: task, phase, cycle, workflow, active agents, findings count, start time. 2. If `state.json` does not exist, read the latest entry from `.archeflow/events/index.jsonl`. Extract run_id, task, last event type, timestamp. 3. Calculate duration from start time to now (or to completion time if run finished). 4. Report as a compact table: | Field | Value | |-------|-------| | Run | `` | | Task | `` | | Phase | `` | | Cycle | `` | | Workflow | `` | | Findings | `` | | Duration | `` | 5. If no `state.json` and no `index.jsonl`, say: "No active or recent ArcheFlow runs."