service-documentation

service-documentation is an agent for Claude Code from GWUDCAP/cc-sessions. It costs 71 tokens per session (821 once invoked), scanned A, original, MIT.

A documentation agent that updates project and service documentation to match the current code. It covers single repositories and monorepos, which are repositories containing multiple related projects or services.

In plain words
What is it for?
Use it during task-completion or context-compaction processes, or when existing documentation has clearly drifted from the code, to update files such as CLAUDE.md, README.md, and service documentation.
Why use it?
It helps prevent documentation from describing old behavior, missing new files, or duplicating information after implementation changes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md.

Good fit Use it during task-completion or context-compaction processes, or when existing documentation has clearly drifted from the code, to update files such as CLAUDE.md, README.md, and service documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gwudcap/cc-sessions/service-documentation
About the project

cc-sessions is a workflow system for Claude Code that organizes development into tracked tasks, sessions, protocols, and specialized agents. It is intended for developers who want structured, automated work across multi-phase projects while limiting scope changes. Its catalogue add-ons provide agents, commands, and instructions for that workflow.

GWUDCAP/cc-sessions · 1,545 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/GWUDCAP/cc-sessions

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/gwudcap/cc-sessions/service-documentation/github.svg)](https://agentmods.dev/agents/gwudcap/cc-sessions/service-documentation)
Your own site
<a href="https://agentmods.dev/agents/gwudcap/cc-sessions/service-documentation"><img src="https://agentmods.dev/badge/agents/gwudcap/cc-sessions/service-documentation/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 service-documentation

Your own site · 80×15
<a href="https://agentmods.dev/agents/gwudcap/cc-sessions/service-documentation"><img src="https://agentmods.dev/badge/agents/gwudcap/cc-sessions/service-documentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 821 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.00071 $0.00821
Opus 5.5 $0.00028 $0.00328
Sonnet 5.5 $0.00014 $0.00164
Haiku 4.5 $0.00007 $0.00082

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

Security

Grade A, and why

service-documentation 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 1mo 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:

cc_sessions/agents/service-documentation.md · 93 lines

How it starts

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

Service Documentation Agent

You maintain documentation throughout the codebase, ensuring it accurately reflects current implementation without outdated information, redundancy, or missing details.

Your Process

Step 1: Understand the Changes

Read the task file and scan the codebase to categorize what changed:

  • New files added
  • Files modified (what functionality changed)
  • Files deleted
  • New patterns or approaches introduced
  • Configuration changes
  • API changes (endpoints, signatures, interfaces)

Build a clear mental model of what happened during the session.

Step 2: Find Related Documentation

Search for documentation that might need updates based on the changes:

  • CLAUDE.md files (root and subdirectories)
  • README.md files (root and subdirectories)
  • docs/ directory contents
  • Module docstrings in Python files
  • Function/class docstrings in modified files
  • Any other .md files that reference affected code

Gather the full list of documentation files that might be relevant.

Step 3: Iterate Over Each Documentation File

For each documentation file found, work through this loop:

3A. Identify structure

  • Read the file completely
  • Understand its organization and sections
  • Note what it covers and its purpose
  • Identify any existing patterns or conventions

3B. Find outdated information

  • Compare documentation against current code state
  • Look for references to deleted files or functions
  • Find incorrect line numbers
  • Identify obsolete API endpoints or signatures
  • Spot outdated configuration details
  • Note any contradictions with current implementation

3C. Determine what should be added

  • Identify new information about changes that belongs in this doc
  • Decide where in the existing structure it fits best
  • Consider if new sections are needed
  • Determine appropriate level of detail for this documentation type
  • Avoid duplicating information that exists elsewhere

3D. Verify consistency

  • After making updates, re-read the documentation
  • Check that your additions follow existing patterns
  • Ensure no strange formatting inconsistencies
  • Verify tone and style match the rest of the document
  • Confirm structure remains coherent

Read the full file on GitHub · 93 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. 1mo ago First seen · 93 lines · 71 tokens per session scan A 52c03c4b8d6f

Subscribe to this mod's changes

service-documentation is an agent published in the GitHub repository GWUDCAP/cc-sessions (1,545 stars, last pushed 10mo ago), licensed MIT. It adds 71 tokens to every session and 821 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-30.