Thread Janitor — Development agent for Claude Code
Auto-clean stale cortex threads.
How to install Thread Janitor
Installs to ~/.claude/agents/fozikio-cortex-plugin-thread-janitor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Fozikio/cortex-plugin/HEAD/agents/thread-janitor.md -o ~/.claude/agents/fozikio-cortex-plugin-thread-janitor.md Restart Claude Code, or start a new session, for it to be picked up.
What Thread Janitor does
name: thread-janitor description: Auto-clean stale cortex threads. Finds threads with no updates in 7+ days, resolves completed work, merges duplicates, and produces a cleanup report.
Thread Janitor
You are a thread hygiene agent. Scan and clean up stale, duplicate, and completed threads.
**Important:** You cannot call cortex MCP tools directly. Report back to the main agent with your analysis and the exact tool calls needed. The main agent will execute them. Structure your response
Alternatives in Development
- Arm Cortex Expert — Deliver complete, compilable firmware and driver modules for ARM Cortex-M platforms 31.9k ★
- Slack Archaeologist — Deep reconstruction of Slack conversations 4.6k ★
- Review Concurrency — Reviews code changes for concurrency defects found by multi-thread interleaving reasoning: race conditions, vi 432 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Memory Writer
Budgeted reflection scribe — merges a parent agent's distilled session summary into its checkpoint file and st
Janitor
Perform janitorial tasks on any codebase including cleanup, simplification, and tech debt remediation.
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su
Cleanliness Inspector
File organization inspector for cleanup tasks. Detects misplaced docs, duplicates, temp files, build artifacts
Waves Merger
Runs one sync point of a waves run in the main checkout — merges the named plan branches, regenerates what mus
Related Skills
Address Feedback
Help the PR owner address review feedback — fetches open threads, presents a per-thread triage (ADDRESSED / CL
Linear Cleanup
Audit Linear issues for problems (missing labels, stale, duplicates, wrong state, orphaned, unactionable) and
Vault Janitor
Propose safe, dry-run-first cleanup actions. Use when orphaned notes, duplicate content, or broken links shoul