Exp status

From Chanw-research/claude-code-paper-writing · View interactive version

Exp status is an AI agent skill from the GitHub repository Chanw-research/claude-code-paper-writing. 查看所有运行中实验的状态,可选自动收集已完成实验并推进流水线

How to use this skill

Skill file

/exp-status

统一的实验状态监控入口。

扫描所有 running 实验,对每个实验执行实时状态检查(screen session / SSH),

输出状态表(alive / anomaly / completed),引导用户下一步操作。

与 /research --auto 配合时作为 CronCreate 调度的定期检查器:

当 pipeline 的所有实验都完成时,自动触发 /research --start-from stage4。

Inputs

自动触发 /research --start-from stage4,无需用户手动运行

Outputs

Wiki Interaction

Reads

Writes

Graph edges created

Workflow

前置:确认工作目录为 wiki 项目根(包含 wiki/、raw/、tools/ 的目录)。

Step 1: 收集目标实验列表

  1. 确定检查范围:
  1. 若无 running 实验:

```

No running experiments found.

```

Step 2: 逐实验状态检查

对每个目标实验并行(或依次)执行:

  1. 读取实验页面:从 wiki/experiments/{slug}.md 获取:
  1. 检查进程状态:
  1. 若 alive == true:
  1. 若 alive == false:
  1. 汇总结果:构建状态字典 {slug: {state, elapsed, latest_metric, anomalies}}

Step 3: 输出状态报告

# Experiment Status — {YYYY-MM-DD HH:MM}

### 🔄 Running ({N})
| Experiment | Elapsed | Latest | Env |
|-----------|---------|--------|-----|
| [[exp-foo-baseline]] | 2.3h | loss: 0.42 | local |
| [[exp-foo-validation]] | 1.1h | step: 1200 | remote (gpu1) |

### ⚠️ Anomaly Detected ({N})
| Experiment | Elapsed | Issue | Action |
|-----------|---------|-------|--------|
| [[exp-foo-ablation]] | 0.8h | NaN loss at step 500 | Run `/exp-run exp-foo-ablation --collect` to inspect |

### ✅ Completed — Pending Collect ({N})
| Experiment | Finished (estimate) |
|-----------|---------------------|
| [[exp-foo-sanity]] | session gone |

### 📦 Already Collected ({N})
| Experiment | Outcome |
|-----------|---------|
| [[exp-foo-old]] | succeeded |

---
### Actions

Collect all completed experiments at once:

/exp-status --collect-ready

Collect a specific experiment:

/exp-run exp-foo-sanity --collect

Pipeline progress (if in /research):

/exp-status --pipeline {pipeline-slug}

追加日志:

python3 tools/research_wiki.py log wiki/ \
  "exp-status | running: {N}, anomaly: {M}, pending-collect: {K}"

Step 4: --collect-ready 自动收集(若指定)

对每个 completed_pending_collect 实验,调用 /exp-run --collect:

Skill: exp-run
Args: "{slug} --collect"

依次(不并行,避免并发写入 wiki)收集每个完成的实验。

收集完成后,重新输出更新的状态报告。

Step 5: --auto-advance Pipeline 推进(若同时指定 --pipeline 和 --auto-advance)

  1. 检查 pipeline 完成条件:
  1. 若条件不成立(仍有 running 或 pending-collect 实验):
  1. 若条件成立(所有实验已 completed):

a. 输出通知并触发 Stage 4:

```

✅ All experiments completed for pipeline {slug}!

Advancing to Stage 4 (Verdict & Iteration)...

```

```bash

python3 tools/research_wiki.py log wiki/ \

"exp-status | pipeline {slug}: all experiments done, advancing to stage4"

```

```

Skill: research

Args: "--start-from stage4"

```

Constraints

Error Handling

Dependencies

Skills(via Skill tool)

Tools(via Bash)

Claude Code Native

Called by

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.