harness-doctor

harness-doctor is a skill for Codex from PromptPartner/agentsmith. It costs 74 tokens per session (743 once invoked), scanned A, original, MIT.

A diagnostic workflow for checking whether an Agentsmith harness is installed and working correctly in a project. It checks instructions, settings, skills, hooks, verification, and unnecessary duplication.

In plain words
What is it for?
Use it after installation or self-update, or when you want to check the project’s harness setup, managed rules, agent configuration, hooks, and verification.
Why use it?
It identifies setup problems and gives a concrete fix for each finding. It also distinguishes unknown optional capabilities from actual installation failures.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it after installation or self-update, or when you want to check the project’s harness setup, managed rules, agent configuration, hooks, and verification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/promptpartner/agentsmith/harness-doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PromptPartner/agentsmith --skill harness-doctor
Clone the repo
git clone --depth 1 https://github.com/PromptPartner/agentsmith

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harness-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/promptpartner/agentsmith/harness-doctor/github.svg)](https://agentmods.dev/skills/promptpartner/agentsmith/harness-doctor)
Your own site
<a href="https://agentmods.dev/skills/promptpartner/agentsmith/harness-doctor"><img src="https://agentmods.dev/badge/skills/promptpartner/agentsmith/harness-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harness-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/promptpartner/agentsmith/harness-doctor"><img src="https://agentmods.dev/badge/skills/promptpartner/agentsmith/harness-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 12
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00743
Opus 5 $0.00037 $0.00371
Sonnet 5 $0.00015 $0.00149
Haiku 4.5 $0.00007 $0.00074

Measured 5d ago against content hash ac2db7a7a437, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

harness-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/harness-doctor/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Harness doctor — is the harness healthy?

Confirm the harness is wired correctly, in plain language, with a concrete fix per finding.

When this fires

"is my harness set up right / healthy?" / "harness doctor" / after an install or a --self-update.

Identify the target

Use the agent named by the operator or the explicit AGENTSMITH_AGENT value. Never infer the active agent from this skill's install path: portable canonical content may be copied into a required client adapter such as .claude/skills. Without an explicit agent, run the common project checks and label agent-specific capabilities as unknown.

Fast path — if the Agentsmith CLI is available

Run agentsmith doctor, adding --agent <id[,id...]> when the target is known. If the command is not on PATH, use .agentsmith/agentsmith on macOS/Linux or .agentsmith\\agentsmith.cmd on Windows. Report instructions, actual safety, skills, MCP/config, hooks/scanner, and runtime helpers separately. For instructions, report the effective global/project/nested chain, fingerprints, managed core metadata, and combined/duplicate token estimates. An unsupported optional capability does not make instruction discovery unhealthy, and a duplicate core is a warning rather than permission to rewrite it.

Fallback — self-contained project checks

Check each; report pass, or a one-line fix:

  • Rules: canonical AGENTS.md is present and contains the AgentSmith BEGIN/END managed block. When a target requires a generated instruction adapter such as CLAUDE.md, compare its managed content with AGENTS.md. Fix: update the intended agent through the Agentsmith installer.
  • Configuration: validate only the declared target's native configuration. For Claude, check .claude/settings.json and/or settings.local.json. For Codex, validate .codex/config.toml when present and the managed config.toml under CODEX_HOME (or the user's .codex directory when that variable is unset). Never treat one client's configuration as proof of another's.
  • Skills and hooks: inspect the shared .agents/skills pack first, then any genuinely required client adapter and the target's declared hook integration. Never report hook parity for a client that only discovers instructions or skills.
  • .harness/verify.conf exists AND has a real phase — not just the sanity :: placeholder. Fix: edit it to list this project's real checks.
  • Runtime helpers: agentsmith verify --list succeeds without requiring Bash or WSL.
  • Leanness: use the compatibility report's static-context measurement for canonical AGENTS.md, and report the line/token budget. Over budget → move prose into a skill or doc, not more core/.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +1 lines ac2db7a7a437
  2. 9d ago First seen · 49 lines · 74 tokens per session scan A 818a6188df2c

Subscribe to this mod's changes

harness-doctor is a skill published in the GitHub repository PromptPartner/agentsmith (185 stars, last pushed 4d ago), licensed MIT. It adds 74 tokens to every session and 743 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.