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
- Omnara — by Ishaan Sehgal - A command center for AI agents that syncs Claude Code sessions across terminal, web, and mo 2.6k ★
- onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★
- Slotstream — Run a 105 GB AI model on a Mac that can't hold it 396 ★
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
Vibe Gauge
🧠 Native macOS menu-bar dashboard for AI coding: Claude / Codex / Gemini / Grok quotas with sleep-aware usage
VibeGauge
🧠 Native macOS menu-bar dashboard for AI coding: Claude / Codex / Gemini / Grok quotas with sleep-aware usage
Switcher
One harness, all your AI accounts. Switch Claude Code, Codex and Claude Desktop between your own subscriptions
Skill Frontmatter Behaviour Validation
This command starts the structured process of validating and recording the observed behaviours of skill's fron
Authored
An agent skill for Codex and Claude that preserves writing-process evidence and helps writers respond to AI-de
Syrtis
AI token usage & quota monitor for the macOS menu bar — native Swift, Liquid Glass, 3D contribution graph. Tra
Related Agents
Apple UI Designer
Visual and theme redesigns in current Apple design language (macOS 27 / iOS 26+ Liquid Glass, vibrancy, system
Ops Updater Agent
You are an ops update sub-agent. Your job is to process files in the .update/ inbox and integrate their conten
Sub Pricing
Internal subagent. Called by hormozi-orchestrator only. Sets value-anchored pricing, destroys objections, and