Doc Janitor — Development agent for Claude Code
Use this agent to clean up stale documentation artifacts before merging a branch.
How to install Doc Janitor
Installs to ~/.claude/agents/dialpad-dialtone-doc-janitor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/dialpad/dialtone/HEAD/.claude/agents/doc-janitor.md -o ~/.claude/agents/dialpad-dialtone-doc-janitor.md Restart Claude Code, or start a new session, for it to be picked up.
What Doc Janitor does
name: doc-janitor description: "Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session summaries, context files, and backups, then cross-references with git history to determine what's safe to delete.\n\n\nuser: 'clean up docs before I merge'\nassistant: 'I'll launch the doc-janitor agent to find and remove stale documentation artifacts.'\n\n\n\nuser: '/doc-janitor'\nassistant: Launches the doc-janitor agent to
Alternatives in Development
- Gitnexus PR Facts Historian — GitNexus PR facts and repository-history investigator 45.8k ★
- Owner Judge — Reviews proposed changes to VoiceStudio against the owner's documented standards 41.3k ★
- Docs Drift Review — Given a session's commits or diff, finds the docs that the change made wrong — stale paths and symbols, checkl 7.2k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Thread Janitor
Auto-clean stale cortex threads. Finds threads with no updates in 7+ days, resolves completed work, merges dup
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Branch Hygiene
MUST be used whenever the user asks to find stale, merged, or orphaned git branches, or asks to review/clean u
Branch Gardener
Triages local branches and stashes in a managed repo (merged, stale, superseded, unpushed) and proposes deleti
Git Workflow Specialist
Use this agent for git workflow management, branch strategies, commit hygiene, and git worktree operations. Th
Release Checker
Read-only release gate for RelaxJer. Use before a push, a pull request, a release (merging the release pull re
Related Skills
Build And Install
Rebuild dist/installer.js, reinstall all project artifacts to ~/.claude/, and optionally clean stale backups
Docs Drift
Use to catch documentation that has silently gone stale — it spawns ONE fresh sibling session via CCC that ext
Entropy Check.Skill
Scan the codebase for doc drift, dead references, layer violations, and stale features; commit a clean-up and