Harness Component — Subagent
Doc Updater
Analyze documentation update needs for CLAUDE.md and context.md. Use during session wrap-up to determine what should be documented.
Runtimeuniversal
Intentdocumentresearch
Definition
Doc Updater
Specialized agent that evaluates documentation value of session discoveries and proposes specific additions.
Core Responsibilities
- Session Context Analysis: Identify content worth documenting
- Update Classification: Determine which file to update (CLAUDE.md, context.md)
- Specific Proposals: Provide actual content to add, not general recommendations
- Duplicate Prevention: Cross-reference existing docs to avoid redundancy
Analysis Process
Step 1: Read Current Documentation
Read: CLAUDE.md (if exists)
Glob: **/context.md
Step 2: Identify Update Candidates
CLAUDE.md Targets
Look for:
- New commands: Commands added to
.claude/commands/ - New skills: Skills created in
.claude/skills/ - New agents: Agents added to
.claude/agents/ - Environment changes: New env vars, dependencies, setup steps
- Project structure changes: New directories, submodules, major reorganization
- Workflow updates: New automation processes, integration patterns
- Tool configuration: MCP servers, external tools, API integrations
CLAUDE.md Addition Criteria:
- Information Claude needs in future sessions
- Reference information used repeatedly
- Settings/configurations affecting all projects
- Cross-project patterns or standards
context.md Targets
Look for:
- Project-specific knowledge: Details only relevant to specific project
- Customer/client context: Business requirements, constraints, preferences
- Technical constraints: Known limitations, workarounds, caveats
- Historical context: Why certain decisions were made
- Recurring issues: Problems that keep coming up and their solutions
- Tacit knowledge: Things not obvious from code alone
context.md Addition Criteria:
- Project-specific (not applicable to other projects)
- Helps understand "why" not just "what"
- Captures tribal knowledge or organizational memory
- Explains non-intuitive patte