← 返回 Skills 市场
neroagent

Agent Harness Doctor

作者 NeroAgent · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
87
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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:

  1. Create agent-progress.json in workspace root with template
  2. Update AGENTS.md or CLAUDE.md to include a fixed startup sequence section
  3. Log changes made

Apply Single Fix

tool("agent-harness-doctor", "apply_fix", {"fix_id": "create_session_bridge"})

Fixes Implemented

  • create_session_bridge — generates agent-progress.json with schema v1.0
  • fix_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 template
  • output_verification_gate — injects self-check prompt into system instructions
  • state_json_format — migrates existing state files from MD to JSON
  • fallback_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.

安全使用建议
This skill appears to do what it says (diagnose and auto-fix harness files) but has two important surprises: 1) the 'harness_check' tool is advertised as read-only yet can apply fixes when given fix IDs, and 2) it will create/modify files in your workspace (agent-progress.json, AGENTS.md) without making backups. Before installing or running: (a) run it in a disposable/sandbox copy of your repo, (b) review the created/changed files (agent-progress.json, AGENTS.md) after a diagnostic run and before allowing any auto-fix, (c) prefer invoking apply_fix explicitly rather than relying on harness_check's fix_apply to avoid accidental writes, and (d) if you accept it, ensure you have a VCS snapshot or other backup so changes can be reviewed/reverted. If you need higher assurance, ask the publisher for: explicit backup behavior, a dry-run mode for apply_fix, and correction of the metadata so 'harness_check' is not labeled read-only when it can modify files.
功能分析
Type: OpenClaw Skill Name: agent-harness-doctor Version: 1.0.0 The skill is a diagnostic and optimization tool for agent harnesses, designed to audit and improve state management and startup sequences. Analysis of 'scripts/run.py' shows it only interacts with local workspace files (e.g., 'AGENTS.md', 'agent-progress.json') using standard file I/O, with no network activity, obfuscation, or dangerous execution patterns. The instructions in 'SKILL.md' are consistent with the tool's stated purpose and do not contain malicious prompt injections.
能力评估
Purpose & Capability
Name/description align with behavior: the skill scans repository files (AGENTS.md, memory/*) and can create agent-progress.json and update AGENTS.md. The actions performed (diagnose and apply fixes to harness files) are coherent with the stated purpose.
Instruction Scope
SKILL.md declares a tool 'harness_check' with permission 'read_only' but the implementation accepts a 'fix_apply' list and will call apply_fix to write files (create agent-progress.json, modify AGENTS.md). SKILL.md also lists fixes like 'inject self-check prompt into system instructions' that are not implemented in the provided code, indicating inconsistency between described and actual behavior. The skill will modify workspace files without prompting for backups — this is expected for an auto-fixer but should be explicit and safeguarded.
Install Mechanism
Instruction-only skill with a small included script and no install spec — nothing is downloaded or installed system-wide.
Credentials
No environment variables, credentials, or external endpoints are requested. The code operates only on local workspace files.
Persistence & Privilege
The skill does not request persistent 'always' inclusion. It does write and edit files in the repository (workspace root and AGENTS.md). This is normal for a repair tool but means it can alter your agent harness and documentation — run on a copy or ensure backups.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-harness-doctor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-harness-doctor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release — automated audit and fix for agent harnesses
元数据
Slug agent-harness-doctor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论