Agent Janitor — AI skill for Claude Code
menu bar janitor for AI-agent dev macs: tracks process lineage before launchd reparenting destroys it, flags orphaned dev servers with interaction evidence, reaps only with consent.
How to install Agent Janitor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kingbootoshi/agent-janitor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Janitor does
menu bar janitor for AI-agent dev macs: tracks process lineage before launchd reparenting destroys it, flags orphaned dev servers with interaction evidence, reaps only with consent.
Alternatives in AI
- Vibeproxy — Native macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys n 3.3k ★
- Omnara — by Ishaan Sehgal - A command center for AI agents that syncs Claude Code sessions across terminal, web, and mo 2.6k ★
- Claude Usage Tracker — Native macOS menu bar app for tracking Claude AI usage limits in real-time 2.2k ★
README
agent-janitor

Orphan-process janitor with session attribution for AI-agent dev workstations. Watches every user process, remembers who spawned what before macOS reparents orphans to launchd, flags leftovers with evidence, and reaps only what is provably dead.
Fully local. No network calls, no LLM, no telemetry - nothing leaves your machine. The daemon is a deterministic sensor and actuator; judgment stays with you (or the agent you already talk to, reading `janitor flags`).
The problem: coding agents (Claude Code, Codex, and friends) spawn dev servers, shells, and helpers that outlive their sessions. macOS reparents them to launchd, their history evaporates, and RAM fills with week-old `python -m http.server` processes nobody remembers. Generic RAM cleaners solve the wrong problem - green memory pressure is healthy macOS behavior. The real fix is lineage: know who spawned what, prove nothing interacts with it, then reap with consent.
components
| binary | role |
|---|---|
janitord |
LaunchAgent daemon. Scans every 5s via proc_pid_rusage/libproc, ranks by phys_footprint, persists lineage + time-series samples to SQLite, evaluates flag rules, listens for memory-pressure transitions, serves a unix socket API. ~13MB footprint. |
AgentJanitorMenu |
Menu bar app (broom icon, dims when clean). Flags grouped by process type + project with bulk actions. Per-flag: Keep (instance / project 30d), Terminate, Force Kill, Dismiss. Memory Breakdown submenu reconciles Activity-Monitor-style totals. |
janitor |
CLI: status, top, flags, keep, kill, dismiss, log, mode. |
agent-session |
Optional exec wrapper: agent-session --kind claude -- claude ... registers the session root with the daemon before execvp'ing the real CLI, improving lineage attribution for that session tree. |
flag rules
httpServerOrphan- python -m http.server, 4h+, parent dead, no ttydevToolStale- vite / bun-watch / bu
Related Skills
TokenBar
AI token usage & quota monitor for the macOS menu bar — native Swift, Liquid Glass, 3D contribution graph. Tra
Skill Frontmatter Behaviour Validation
This command starts the structured process of validating and recording the observed behaviours of skill's fron
Scoville UI Anti AI Slop
Agent Skill for framework-aligned UI implementation, accessibility, interaction, and rendered evidence, with o
ClaudeCode Launchpad CLI
9 Windows & macOS 2-minute installer for Claude Code — auto-installs Node.js, Git & Claude Code; two-line live
PriceyApp
MacOS Status bar app that tracks, monitors your Claude Code AI usage costs in real-time and compares them to h
Usage
macOS menu bar & Windows tray app pinning Claude Code, Codex & Antigravity quota, burn rate, and cost to your
Related Agents
Discovery Voice
Voice-powered client discovery call assistant. Tracks unknowns, suggests follow-up questions, detects red flag
Ops Updater Agent
You are an ops update sub-agent. Your job is to process files in the .update/ inbox and integrate their conten
Clarity Reviewer
First-contact reader clarity reviewer for academic papers. Reads the paper as a reader who knows nothing of th