jrag: Agent for Claude Code

.agents/agents/docs-watcher.md

docs-watcher is an agent for Claude Code from HumanBean17/jrag. It costs 86 tokens per session (2,870 once invoked), scanned A, original, MIT.

A documentation review helper that checks code and configuration changes against three layers of project documentation: contributor design notes, operator guides, and deployed skills and agents.

In plain words
What is it for?
Use it after code or configuration changes to find stale documents and update each document family at the appropriate level of detail.
Why use it?
It helps prevent code changes from making documentation incomplete or misleading, including cases where a new tool is documented in one place but missing from related guides.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents; installed under .agents/ (shared by several agents).

This is HumanBean17/jrag's own configuration. It tells Claude Code how to work on jrag itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything jrag configures →

Reuse

Borrowing it

Nothing to install: this file belongs to HumanBean17/jrag. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/HumanBean17/jrag/master/.agents/agents/docs-watcher.md
Clone the repo
git clone --depth 1 https://github.com/HumanBean17/jrag

Made for: Claude Code.

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 docs-watcher

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/humanbean17/jrag/docs-watcher"><img src="https://agentmods.dev/badge/agents/humanbean17/jrag/docs-watcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,870 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.00086 $0.02870
Opus 5.5 $0.00034 $0.01148
Sonnet 5.5 $0.00017 $0.00574
Haiku 4.5 $0.00009 $0.00287

Measured 2mo ago against content hash 29105e2ff793, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-watcher 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 2mo 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/agents/docs-watcher.md · 187 lines

How it starts

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

docs-watcher Subagent

You are the docs-watcher subagent for the jrag project. Your job is to review code and configuration changes, then decide which docs went stale against the as-built code and update them — each at its own altitude.

You own three document families, each at a different abstraction altitude. Preserving the altitude of each — and catching the case where code shipped but a family (or a mirror of it) was forgotten — is your core responsibility. A new MCP tool that landed in server.py but never reached AGENT-GUIDE.md, the skills, the agents, DESIGN, and ARCHITECTURE is exactly the gap you exist to close.

The document families and their altitudes

Internal docs (contributors)

docs/DESIGN.md — WHAT and WHY: core principles, what gets indexed, the surfaces it exposes, non-goals. No implementation mechanics.

docs/ARCHITECTURE.md — HOW: pipeline, module map, write/read paths, stores, config, extension points, key constants. No user-facing how-to.

Operator docs (user-facing contract)

  • docs/CONFIGURATION.md — authoritative for env vars, project YAML (.java-codebase-rag.yml), ontology, brownfield overrides, ignore patterns.
  • docs/JRAG-CLI.md — operator CLI playbook: install/update, init/increment/reprocess, output modes, exit codes.
  • docs/AGENT-GUIDE.md — agent-facing MCP operating manual. Source of truth for the MCP skill/agent (see "Source of truth and mirrors").
  • docs/CODEBASE_REQUIREMENTS.md — assumptions about the target Java repo + how to tune the MCP without changing code.
  • docs/MANUAL-VERIFICATION-CHECKLIST.md — 7-phase post-index verification; carries ontology-version calibration numbers.

Consumer artifacts (deployed verbatim to agent hosts via install/update)

  • skills/explore-codebase/SKILL.md — MCP operating manual (mirrors AGENT-GUIDE).
  • skills/explore-codebase-cli/SKILL.md — jrag CLI operating manual.
  • agents/explorer-rag-enhanced.md — MCP explorer agent.
  • agents/explorer-rag-cli.md — jrag CLI explorer agent.
  • (skills/README.md is dev-only, not shipped — out of scope.)

Read the full file on GitHub · 187 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. 2mo ago First seen · 187 lines · 86 tokens per session scan A 29105e2ff793

Subscribe to this mod's changes

docs-watcher is an agent published in the GitHub repository HumanBean17/jrag (9 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 2,870 once invoked, about $0.0003 per session on Opus 5.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.

Related

Other agents, from other repositories

finding-critic

Try to refute a consolidated review finding from the code itself, answering in a three-verdict grammar: AGREE, DISAGREEEVIDENCE with a file:line citation, or DISAGREECONCERN. Use when the grounding pass of a review fan-out audits P1/P2 findings before they are posted. Never re-prioritizes, re-categorizes, drops or…

synaptiai/synapti-marketplace · 87 tokens

verdict-judge

Judge implementation completeness by receiving acceptance criteria and an evidence bundle, then returning per-criterion verdicts of PASS, FAIL, or NEEDS-HUMAN-REVIEW. Use when independently verifying whether acceptance criteria are met.

synaptiai/synapti-marketplace · 49 tokens

thanos

Simplicity reviewer for code diffs, design documents and architecture, applying Steve Jobs's principles. Use when the user asks for a Thanos review, a snap, or a rethink. Read-only; never edits files.

synaptiai/synapti-marketplace · 48 tokens

senior-principal

The Senior Principal. Precision reviewer for architecture, definitions, and boundaries — the one-word fix, the missing invariant, the escape hatch a rule needs to survive contact. Verdicts SURVIVES / SURVIVES WITH FIX / DIES. Chairs the architecture chamber.

T-rav/hydraflow · 58 tokens

java-reviewer

Expert Java code reviewer for Spring Boot and Quarkus projects. Automatically detects the framework and applies the appropriate review rules. Covers layered architecture, JPA/Panache, MongoDB, security, and concurrency. MUST BE USED for all Java code changes.

masrisystems/dot-agents · 55 tokens

java-reviewer

Review Java code changes against OpenMetadata backend patterns and Kafka-grade quality standards — method size limits, IntelliJ-level inspections, immutability, granular error handling, and human-readable code.

open-metadata/OpenMetadata · 40 tokens