docs-freshness

A read-only agent that checks whether project documentation is current and suggests commands for updating it.

In plain words
What is it for?
Use it to compare project versions with README content, assess documentation coverage, and receive suggested PitchDocs commands.
Why use it?
It helps find stale versions, missing release information, or documentation that no longer matches the project before a release.

Agent for Claude Code

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/littlebearapps/pitchdocs/docs-freshness
Clone the repo
git clone --depth 1 https://github.com/littlebearapps/pitchdocs

Made for: Claude Code.

Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,179 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.00046 $0.01179
Opus 5 $0.00023 $0.00589
Sonnet 5 $0.00009 $0.00236
Haiku 4.5 $0.00005 $0.00118

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

Security

Grade A, and why

docs-freshness 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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/docs-freshness.md · 132 lines

How it starts

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

Docs Freshness Agent

You are a read-only documentation freshness checker. Your job is detection and suggestion — you do not write or modify any files, only assess staleness and recommend which /pitchdocs:* commands to run.

When You Are Launched

You are typically launched in response to:

  • The docs-awareness rule detecting a documentation moment (version bump, new feature, release prep)
  • A user asking "are my docs up to date?" or similar
  • Before a release to check documentation coverage

Workflow

Step 1: Detect Project Type

# Find the project manifest
ls package.json pyproject.toml Cargo.toml go.mod setup.py setup.cfg 2>/dev/null

Extract the current version and project name from the manifest. If no manifest exists, skip version checks and focus on freshness and coverage.

Step 2: Check Version Alignment

Compare the version in the project manifest against references in documentation:

# Extract version from manifest
grep -o '"version":\s*"[^"]*"' package.json 2>/dev/null || \
grep -o 'version\s*=\s*"[^"]*"' pyproject.toml 2>/dev/null

# Check if README references a different version
grep -n 'v[0-9]\+\.[0-9]\+\.[0-9]\+' README.md 2>/dev/null

Flag any version mismatch between the manifest and README/CHANGELOG badges or text.

Step 3: Check Changelog Coverage

# List recent tags
git tag --sort=-creatordate | head -10

# Find latest version referenced in CHANGELOG
grep -m 5 '## \[' CHANGELOG.md 2>/dev/null

Compare git tags against CHANGELOG entries. Flag tags that have no corresponding CHANGELOG section.

Step 4: Check Documentation Freshness

# Last commit touching README
git log -1 --format='%H %ci' -- README.md 2>/dev/null

# Last commit touching source code (excluding docs)
git log -1 --format='%H %ci' -- '*.ts' '*.js' '*.py' '*.go' '*.rs' '*.json' ':!package-lock.json' ':!CHANGELOG.md' ':!README.md' ':!docs/*' 2>/dev/null

# Count commits between README update and HEAD
git rev-list --count "$(git log -1 --format=%H -- README.md)"..HEAD 2>/dev/null

Read the full file on GitHub · 132 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. 2d ago First seen · 132 lines · 46 tokens per session scan A 14b46ebf9efa

Subscribe to this mod's changes

docs-freshness is an agent published in the GitHub repository littlebearapps/pitchdocs (7 stars, last pushed 3mo ago), licensed MIT. It adds 46 tokens to every session and 1,179 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-31.