Project overview
bg-janitor targets macOS leftovers after AI tools close: orphaned children, sandbox-protected processes, port-holding gateways, and KeepAlive LaunchAgents. Its playbook distinguishes unsandboxed signal delivery, safe multi-PID handling in zsh, and launchctl unload -w for agents that immediately return after kill. Because the commands can terminate processes or disable startup services, confirm the target before applying them.
Repository facts
- Primary language
- Shell
- License
- MIT
- Repository updated
- Jun 28, 2026
- Default branch
- main
Resource types
General skill
Use cases
Productivity and office
Platforms
Claude Code, Codex, and more
Runtime
Command lineDesktop
Capabilities
Tool use