/install agent-harness-doctor
Agent Harness Doctor
Based on Anthropic's "Effective Harnesses for Long-Running Agents" and ClawHub's agent-harness-architect, this skill automatically diagnoses and hardens your OpenClaw harness.
The 8 Dimensions
| Dimension | What it checks | Why it matters |
|---|---|---|
| Session Bridge | Is there a structured state file (agent-progress.json) that survives restarts? |
Without this, every session starts blank |
| Fixed Startup Sequence | Does the agent have a mandatory first N steps (read bridge, smoke test, etc.)? | Prevents skipping crucial initialization |
| Smoke Test | Does the agent verify environment (network, API keys, disk) before tasks? | Catches failures early |
| Atomic Checkpoint | After each task, does agent commit/save state? | Ensures progress isn't lost |
| Output Self-Verification | Before saying "done", does agent validate the result? | Prevents false completions |
| State File Format | Is state stored as JSON (not Markdown) to resist accidental edits? | Markdown is too easy for LLM to mangle |
| Multi-Agent Protocol | If multiple agents, is there clear message passing? | Avoids race conditions and confusion |
| Fallback Plan | Does agent have a Plan B if a dependency fails? | Increases robustness |
Usage
Run Diagnostic
tool("agent-harness-doctor", "harness_check", {"fix_apply": []})
Output includes:
{
"summary": {
"score": 6.5,
"grade": "B",
"weakest_dimension": "Session Bridge"
},
"dimensions": [
{
"id": "session_bridge",
"name": "Session Bridge",
"score": 2,
"max": 10,
"finding": "No agent-progress.json file found",
"recommendation": "Create agent-progress.json with lastSession, taskTracking, environmentStatus sections",
"p0": true
},
...
],
"plan": {
"P0": ["create_session_bridge", "fix_startup_sequence"],
"P1": ["add_smoke_test", "enable_atomic_checkpoint"],
"P2": ["output_verification_gate", "multi_agent_protocol"]
}
}
Auto-Apply P0 Fixes
tool("agent-harness-doctor", "harness_check", {"fix_apply": ["create_session_bridge", "fix_startup_sequence"]})
The tool will:
- Create
agent-progress.jsonin workspace root with template - Update
AGENTS.mdorCLAUDE.mdto include a fixed startup sequence section - Log changes made
Apply Single Fix
tool("agent-harness-doctor", "apply_fix", {"fix_id": "create_session_bridge"})
Fixes Implemented
create_session_bridge— generatesagent-progress.jsonwith schema v1.0fix_startup_sequence— inserts mandatory startup steps into AGENTS.md (if present)add_smoke_test— adds pre-task environment check (gateway status, API connectivity)enable_atomic_checkpoint— adds post-task commit templateoutput_verification_gate— injects self-check prompt into system instructionsstate_json_format— migrates existing state files from MD to JSONfallback_plan_template— adds fallback handling patterns to AGENTS.md
Integration with Memory Stack
If memory-stack-core is installed, harness doctor will:
- Check WAL and buffer health as part of "Session Bridge" score
- Recommend enabling WAL auto-capture if missing
- Verify buffer threshold is set appropriately
Pricing
$99 one-time. Includes:
- Unlimited diagnostics
- Auto-fix application
- Future dimension additions
Based on ClawHub's agent-harness-architect skill, extended with auto-fix capabilities.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-harness-doctor - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-harness-doctor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Harness Doctor 是什么?
Automated audit and fix for OpenClaw agent harnesses. Scans your setup, scores on 8 dimensions (Session Bridge, Startup Sequence, Smoke Test, Atomic Checkpoi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 87 次。
如何安装 Agent Harness Doctor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-harness-doctor」即可一键安装,无需额外配置。
Agent Harness Doctor 是免费的吗?
是的,Agent Harness Doctor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent Harness Doctor 支持哪些平台?
Agent Harness Doctor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Harness Doctor?
由 NeroAgent(@neroagent)开发并维护,当前版本 v1.0.0。