26 lines
891 B
Markdown
26 lines
891 B
Markdown
---
|
|
name: af-status
|
|
description: |
|
|
Show ArcheFlow status — current/last run, active agents, findings.
|
|
<example>User: "/af-status"</example>
|
|
---
|
|
|
|
# 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 | `<run_id>` |
|
|
| Task | `<task description>` |
|
|
| Phase | `<current phase>` |
|
|
| Cycle | `<cycle number>` |
|
|
| Workflow | `<fast/standard/thorough>` |
|
|
| Findings | `<count>` |
|
|
| Duration | `<elapsed>` |
|
|
|
|
5. If no `state.json` and no `index.jsonl`, say: "No active or recent ArcheFlow runs."
|