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 ★
- Rule Reviewer — Internal agent for reviewing draft rules 150 ★
- Continuity Editor — Maintains consistency across all story elements including timeline, character knowledge, world rules, and plot 44 ★
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
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su
PR Thread Resolver
Resolves a cluster of PR review threads grouped by file/topic. Dispatched in parallel by pr-resolve for indepe
Janitor
Perform janitorial tasks on any codebase including cleanup, simplification, and tech debt remediation.
Memory Writer
Budgeted reflection scribe — merges a parent agent's distilled session summary into its checkpoint file and st
Cleanliness Inspector
File organization inspector for cleanup tasks. Detects misplaced docs, duplicates, temp files, build artifacts
Related Skills
Database Cleanup Tool
Dedupes and enriches messy real estate agent contact databases: merges duplicates, fills in missing phone numb
Address Feedback
Help the PR owner address review feedback — fetches open threads, presents a per-thread triage (ADDRESSED / CL
Pantheon Consolidate
Find and merge duplicate or similar memory entries. /pantheon-consolidate scans for duplicates, shows preview,