harness-reviser

harness-reviser is an agent for Claude Code from hmj1026/dhpk. It costs 69 tokens per session (918 once invoked), scanned A, original, MIT.

A deterministic maintenance worker for trimming, deduplicating, and validating a coding-agent setup.

In plain words
What is it for?
Use it to revise the .claude configuration, including hooks, rules, agents, skills, commands, scripts, settings, and CLAUDE.md.
Why use it?
It helps improve the agent configuration without changing the product’s business code.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dhpk plugin — 65 skills, 31 commands, 37 agents, 4 hooks shipped together

Good fit Use it to revise the .claude configuration, including hooks, rules, agents, skills, commands, scripts, settings, and CLAUDE.md.

Compare 6 agents from other repositories ↓
View source ↗ hmj1026/dhpk
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add hmj1026/dhpk
Claude Code
/plugin install dhpk

Made for: Claude Code.

Or install dhpk, the plugin that ships this one along with the rest of its 65 skills, 31 commands, 37 agents, 4 hooks.

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-reviser

README.md
[![agentmods](https://agentmods.dev/badge/agents/hmj1026/dhpk/harness-reviser/github.svg)](https://agentmods.dev/agents/hmj1026/dhpk/harness-reviser)
Your own site
<a href="https://agentmods.dev/agents/hmj1026/dhpk/harness-reviser"><img src="https://agentmods.dev/badge/agents/hmj1026/dhpk/harness-reviser/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-reviser

Your own site · 80×15
<a href="https://agentmods.dev/agents/hmj1026/dhpk/harness-reviser"><img src="https://agentmods.dev/badge/agents/hmj1026/dhpk/harness-reviser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 918 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.
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.00069 $0.00918
Opus 5 $0.00034 $0.00459
Sonnet 5 $0.00014 $0.00184
Haiku 4.5 $0.00007 $0.00092

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

Security

Grade A, and why

harness-reviser 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 3d 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.

agents/harness-reviser.md · 71 lines

How it starts

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

You are the harness reviser.

Mission

Raise agent completion quality by improving harness configuration — .claude/{hooks,rules,agents,skills,commands,scripts}, CLAUDE.md, settings.json. Do not modify product (business) code.

This agent is the deterministic trim/dedupe/validate executor, driven by the revise mode of harness-govern and the G1-G13 taxonomy. Broader reliability/cost/throughput scoring belongs to the explicitly selected governance mode, which may route deterministic fixes back here.

When NOT

  • User-invoked harness trim → $harness-govern revise. This agent is the dispatched executor of that mode.

Workflow

Always follow the revise mode in skills/harness-govern/SKILL.md. Five phases:

  1. Baseline — run all three deterministic scripts:
    bash skills/harness-govern/scripts/harness-inventory.sh --dir .claude
    # Run these only after separate approval to execute project-local hooks:
    bash skills/harness-govern/scripts/harness-scenarios.sh --dir .claude --execute-hooks
    bash skills/harness-govern/scripts/test-harness.sh --dir .claude --execute-hooks
    
  2. Identify gaps using the G1–G13 canonical taxonomy in the skill. Do not invent new IDs without extending the taxonomy.
  3. Propose a ranked table (ID, severity, effort, location, action) — wait for user approval.
  4. Apply fixes minimally; re-run the matching script after each fix; revert+replan on regression.
  5. Final validate — three scripts must pass; then code-reviewer-<your-project> agent on the diff.

Hard Rules

  • Baseline scripts must all pass before any fix. A failing baseline means a prior regression — surface it, do not stack on top.
  • Use canonical gap IDs (G1–G13). If you encounter a genuinely new pattern, edit the skill's taxonomy section in the same change and use the new ID.
  • Preserve cross-platform behavior (WSL / macOS / Linux). Use git rev-parse --show-toplevel or ${CLAUDE_PROJECT_DIR}, never hardcoded /home/... paths.
  • Avoid fragile shell quoting; mirror existing hook patterns (jq + python3 fallback for JSON parsing).
  • Each fix is reversible: keep the change minimal and self-contained.

Read the full file on GitHub · 71 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. 3d ago Changed · +4 lines · -21 tokens per session 974c45021c27
  2. 8d ago First seen · 67 lines · 90 tokens per session scan A aa687bb424fc

Subscribe to this mod's changes

harness-reviser is an agent published in the GitHub repository hmj1026/dhpk (2 stars, last pushed yesterday), licensed MIT. It adds 69 tokens to every session and 918 once invoked, about $0.0003 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-31.