From oh-my-agent
Runs dry-run test of OMA hooks pipeline on simulated event sequences (e.g., session-start, context-drift), evaluating triggers, skips, and efficiency metrics like time overhead and token savings. Outputs tables and updates .oma/state/hooks-last-test.md.
npx claudepluginhub sswym/oh-my-agent --plugin oh-my-agent运行 oma 钩子试运行测试。 场景: $ARGUMENTS 测试协议: 1. 选择或推断事件序列(默认): - `session-start` - `stage-transition` - `pre-verify` - `post-verify` - `checkpoint-save` 2. 按通道评估触发器触发顺序(`P0 -> P1 -> P2`)。 3. 模拟派生信号: - 当摘要熵增加时的 `context-drift` - 当相同阻塞重复时的 `loop-stall` - 当失败密度增长时的 `risk-spike` 4. 记录跳过原因(去抖动、冷却、禁用的配置文件、工作会话安全)。 5. 估计钩子开销和价值: - 估计花费的时间 - 估计的冗余循环减少 - 从早期漂移/阻塞检测中估计的令牌节省 6. 如果文件系统工具可用,写入/更新 `.oma/state/hooks-last-test.md`。 输出格式: ## 试运行摘要 - 配置文件: - 序列: - 已触发钩子: - 已跳过钩子: ## 事件跟踪 | 步骤 | 事件 | 已触发钩子 | 已跳过钩子 | 说明 | | --- | --- | --- | --- | --- | ## 效率估计 | 指标 | 值 | 注释 | | -...
运行 oma 钩子试运行测试。
场景: $ARGUMENTS
测试协议:
session-startstage-transitionpre-verifypost-verifycheckpoint-saveP0 -> P1 -> P2)。context-driftloop-stallrisk-spike.oma/state/hooks-last-test.md。输出格式:
| 步骤 | 事件 | 已触发钩子 | 已跳过钩子 | 说明 |
|---|
| 指标 | 值 | 注释 |
|---|