harness-documentation-maintainer

harness-documentation-maintainer is an agent for coding agents from Intense-Visions/harness-engineering. It costs 32 tokens per session (14,104 once invoked), scanned A, original, MIT.

A documentation checker that compares written guides with the current source code and reports where they no longer match.

In plain words
What is it for?
Use it after completed code changes, during review, or for regular documentation checks. It also checks whether important parts of the code have supporting documentation.
Why use it?
It helps prevent developers and coding agents from following stale instructions after features, fixes, or refactoring change the code.

Agent

Part of the harness-claude plugin — 85 skills, 89 commands, 17 agents, 4 hooks, 4 MCP servers shipped together

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.

agentmods
npx agentmods add agents/intense-visions/harness-engineering/harness-documentation-maintainer
Clone the repo
git clone --depth 1 https://github.com/Intense-Visions/harness-engineering

Or install harness-claude, the plugin that ships this one along with the rest of its 85 skills, 89 commands, 17 agents, 4 hooks, 4 MCP servers.

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-documentation-maintainer

README.md
[![agentmods](https://agentmods.dev/badge/agents/intense-visions/harness-engineering/harness-documentation-maintainer.svg)](https://agentmods.dev/agents/intense-visions/harness-engineering/harness-documentation-maintainer)
Your own site
<a href="https://agentmods.dev/agents/intense-visions/harness-engineering/harness-documentation-maintainer"><img src="https://agentmods.dev/badge/agents/intense-visions/harness-engineering/harness-documentation-maintainer.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 14,104 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.14104
Opus 5 $0.00016 $0.07052
Sonnet 5 $0.00006 $0.02821
Haiku 4.5 $0.00003 $0.01410

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

Security

Grade A, and why

harness-documentation-maintainer 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.

.antigravity-extension/agents/harness-documentation-maintainer.md · 1,294 lines

How it starts

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

Role

Detect documentation drift, validate doc coverage, align docs with code changes, run full documentation health pipeline

Skills

  • detect-doc-drift
  • align-documentation
  • harness-knowledge-mapper
  • validate-context-engineering
  • harness-docs-pipeline

Steps

  1. Run harness check-docs (always)
  2. Run harness validate (always)
  3. Run harness scan (always)

Methodology

Detect Doc Drift

Detect documentation that has drifted from code. Find stale docs before they mislead developers and AI agents.

When to Use

  • After completing a feature, bug fix, or refactoring
  • During code review — check if the changed files have associated docs that need updating
  • As a periodic hygiene check (weekly or per-sprint)
  • When on_post_feature or on_doc_check triggers fire
  • When onboarding reveals confusion caused by outdated documentation
  • NOT during active development — wait until the code is stable before checking docs
  • NOT for writing new documentation from scratch (use align-documentation instead)

Process

Phase 1: Scan — Run Drift Detection

  1. Run harness check-docs to identify all documentation issues. Capture the full output.

  2. Run harness cleanup --type drift for a deeper analysis that cross-references code changes against documentation references.

  3. Check for stale constraints. Run detect_stale_constraints alongside drift detection to find architectural constraints that no longer match the codebase.

  4. Optionally, run git diff against a baseline (last release, last sprint, etc.) to identify which code files changed. This helps prioritize — docs for recently changed files are most likely to be drifted.

Graph-Enhanced Context (when available)

When a knowledge graph exists at .harness/graph/, use graph queries for faster, more accurate drift detection:

  • query_graph — find documents edges where the target code node has changed since the doc node was last updated

Read the full file on GitHub · 1,294 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 First seen · 1,294 lines · 32 tokens per session scan A c49459f2ea7e

Subscribe to this mod's changes

harness-documentation-maintainer is an agent published in the GitHub repository Intense-Visions/harness-engineering (20 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 14,104 once invoked, about $0.0002 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.