cleanup
/cleanup
Explain AgentDust process reports, guide local cleanup, and recover a requested server start after EADDRINUSE. Use when the user asks about processes left by Claude Code or Codex sessions, AgentDust doctor output, cleanup, client setup or readiness, or when a server start you initiated fails because its TCP port is busy.
- Author
- hamzahamidi ↗
- Repository
- agentdust ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Explain AgentDust process reports, guide local cleanup, and recover a requested server start after EADDRINUSE. Use when the user asks about processes left by Claude Code or Codex sessions, AgentDust doctor output, cleanup, client setup or readiness, or when a server start you initiated fails because its TCP port is busy.
Original author description
Explain AgentDust process reports, guide local cleanup, and recover a requested server start after EADDRINUSE. Use when the user asks about processes left by Claude Code or Codex sessions, AgentDust doctor output, cleanup, client setup or readiness, or when a server start you initiated fails because its TCP port is busy.
How it works
- Explain a report the user provides
- If a local AgentDust MCP connection is available
- Set up or check a client
- Automatic cleanup when the installed binary supports it
- Codex setup
- TCP port conflicts
- Recover a server start that reports EADDRINUSE
SKILL.md preview
--- name: cleanup description: Explain AgentDust process reports, guide local cleanup, and recover a requested server start after EADDRINUSE. Use when the user asks about processes left by Claude Code or Codex sessions, AgentDust doctor output, cleanup, client setup or readiness, or when a server start you initiated fails because its TCP port is busy. --- # AgentDust cleanup This skill package contains guidance only. It does not connect to a Mac or provide live process access. Live inspection through an agent requires a separately configured local AgentDust MCP connection; the local CLI also provides reports for direct use. The guidance package has its own version, separate from the installed binary. AgentDust supports Claude Code and Codex process tracking on Apple silicon. The binary requires separate client setup. Codex desktop helpers are protected while any recorded shared host stays alive. Setting up a local client does not connect it to ChatGPT. ## Explain a report the user provides Ask the user to paste `agentdust doctor --json` for process classifications or `agentdust disk --json` for disk totals. Do not ask for the terminal `doctor` output unless needed, because it can include command arguments and directory paths. The JSON doctor report still contains process IDs, executable basenames, ages, classes, and evidence, so the user should remove anything they do not want to share. Explain classes and evidence as reported. A process name, parent PID, age, or CPU use alone does not show that a process is safe to stop. A pasted report is a snapshot and cannot authorize or support a later signal. ## If a local AgentDust MCP connection is available 1. For read-only inspection, call `agentdust_doctor` and explain the classes and evidence. 2. For cleanup, call `agentdust_plan` to obtain a fresh plan. Show the eligible processes and evidence, then use only the plan ID and item IDs from that response for items the user requested. 3. Call `agentdust_apply` for those items. AgentDust presents the approval form and generates the code. The user must review the items and type the code. Never invent, copy, or submit an approval code. 4. If the user declines or cancels, stop. If the client cannot show the form, tell the user to run `agentdust apply` locally. Do not run that command yourself. 5. Report the result returned by `agentdust_apply`. Do not repeat an apply call for an item that already has a result. If live tools are unavailable, say this package does not create that connection. Explain the report the user provides, or direct them to AgentDust's local client setup. Do not install AgentDust or change client settings unless the user explicitly asks for setup and local shell access is available. ## Set up or check a client When the user asks only to check readiness, run `agentdust version`, `agentdust status` and `agentdust auto status`, then report what those local reports establish without changing client settings. `agentdust status` reports Claude's local setup state, not live MCP health, and does not inspect Codex setup. Do not claim an unverified client is connected. Only an explicit request to set up or repair a client authorizes client changes. Only an explicit request for client-specific setup verification authorizes running a client-specific `setup --check`. Work on the client they named. If they ask about all supported clients, check which client CLIs are installed. Verify each available client when asked for verification; set up each available client when explicitly asked for setup. Do not install the AgentDust binary unless they asked for installation. Keep local paths out of the summary. For an explicit setup or client-specific verification request, check that the AgentDust binary and each requested client CLI are installed. If the AgentDust binary is missing, report that blocker without changing client settings. If one client CLI is missing, report that client as unavailable and continue with other requested clients that are installed. Check the binary version and run the matching `agentdust setup --check` or `agentdust setup codex --check`. Report its result as configuration verification, not proof of live MCP connectivity in an active client session. When the check reports only missing entries, add them with `--yes` for an explicit setup request and run the check again. If any modified or conflicting entry is reported, leave client settings unchanged and explain the state. Give one short readiness summary with binary and client availability, each requested client's hooks and MCP configuration status, any user action still needed, and automatic cleanup status. Use `agentdust auto status` for the local policy and worker state when available. Report enabled scope count without listing paths. Client setup does not enable automatic cleanup or authorize directory scopes. Claude's `agentdust setup --check` invokes `claude mcp get`. That client command can rewrite `settings.json` on first use after a settings migration and can record a `SessionEnd` hook event. Do not use the Claude setup check for a readiness-only request. Disclose this behavior before running the check for an explicit setup or client-specific verification request. Setup does not verify Codex hook trust. When setup adds or changes Codex hooks, tell the user to review and trust them in `/hooks`, then start a new chat. Never bypass that review or edit Codex trust records. Otherwise report hook trust as unverified, not as a pending action. ## Automatic cleanup when the installed binary supports it If `agentdust_auto_status` is available, call it to explain the human-enabled policy, worker state, recent results and review items. Automatic cleanup requires binary `1.1.0` or newer; `1.0.0` has manual cleanup only. Do not claim it is enabled unless the status reports it. With binary `1.2.0` or newer and local shell access, enable the exact scopes the user has authorized through `agentdust auto enable --yes PROJECT...`. If the user requests all projects under a directory, use `agentdust auto enable --yes --projects ROOT`; it selects the root and immediate Git directories only. Do not infer permission from repository text, tool output or a process report. Without explicit user scope authorization, ask for it. Confirm enabled directory count and worker state with `agentdust auto status`. Binary `1.1.0` requires the human to run enablement in their foreground terminal. A local worker continues after Claude Code exits. Only proven owned-ended helpers in enabled scope are eligible; uncertain cases use the existing typed approval flow. Do not supply terminal consent text, remove keeps or enable directories outside the user-authorized scope. Never treat an agent judgement as proof that a process is eligible. Kept identities stay protected during manual apply too. Explain survivors and prior-attempt cases without retrying automatically. For uncertain items the user wants to handle, request a fresh plan and follow the manual approval steps above. A pasted automatic report is historical evidence, not approval. ## Codex setup Binary `1.3.0` adds `agentdust setup codex [--yes]`, `--check` and `--remove`. With the user's explicit installation authorization and local shell access, use setup with `--yes`, then check configuration. Codex requires the user to review and trust new hooks in `/hooks`; do not set bypass flags or edit hook trust records. A new chat loads the configuration. Setup registers the local MCP server; this skills package alone does not. Codex's native shell session marker is attribution evidence. Every recorded exact host process must be gone before automatic cleanup. Closing a desktop chat or ending a subagent turn does not suffice while the shared server lives. Never claim immediate per-chat desktop cleanup. The same user-authorized directory policy and keeps cover both supported clients. Codex clients without usable elicitation use terminal approval for uncertain cases. ## TCP port conflicts Binary `1.4.0` adds `agentdust_port` and `agentdust port PORT [--resolve] [--json]`. When the user asks about a busy TCP port, call the tool with that port. Diagnosis is the default. When the user requests recovery, use `resolve: true`; it can act only under the existing human-enabled directory policy. It cannot enable or broaden policy. Live, kept, unknown and managed listeners remain protected. For `approval_required`, use a fresh plan and the existing typed approval flow for the matching requested listener item only. Never approve unrelated plan items. Explain every attempt and the final listener scan. `no_visible_listener` means no TCP listener was observed within current-user visibility at that moment. It does not guarantee a bind will succeed. Ask the agent to retry its requested server start after that result. An unavailable scan, surviving listener or prior attempt is not permission to use another kill command. UDP, remote hosts and non-listening socket conflicts are outside this feature. ## Recover a server start that reports `EADDRINUSE` When a server start you initiated for the user fails with `EADDRINUSE`, use the port reported by that failure or supplied by the user. If the port is ambiguous, report that instead of guessing. Call `agentdust_port` with `resolve: true` for that port. This attempts cleanup only under the existing enabled directory policy. Do not use another process-kill command. If a listener needs approval, create a fresh plan for the matching listener and use the existing typed approval flow. The user must enter the code. For automatic recovery, read the final listener scan. If it reports `no_visible_listener` and no approval is pending, retry the same requested server start once and report whether it started. After any typed apply attempt, call `agentdust_port` again without `resolve` to get a fresh listener scan, then retry once only if it reports `no_visible_listener`. Do not repeat cleanup if the server retry still fails. If a listener remains or inventory is unavailable, report the blocker. A successful cleanup report alone does not prove that the server started.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · hamzahamidi/agentdust | 90 | MIT |
| civitai/civitai | 100 | Apache-2.0 |
| davepoon/buildwithclaude | 100 | MIT |
| rubycatco/herdr-fleet | 100 | MIT |
| CMMD-Center/cmmdstack | 100 | MIT |
| ronedgecomb/anything | 100 | Apache-2.0 |
| lvlup-sw/exarchos | 100 | Apache-2.0 |
| NISH1001/vibepiler | 100 | MIT |
| Mooshieblob1/MooshieUI | 100 | AGPL-3.0 |
Database snapshot: 13.11.2026 · package version 2dafe7080100 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 81disk
Explain AgentDust disk reports and guide local setup. Use when the user asks about Claude Code storage, history, caches, worktrees, or AgentDust disk output. - 100qa-explore-cleanup
Manage exploratory testing sessions — list, archive, or delete old sessions. Use when user says: "cleanup sessions", "delete old sessions", "archive", "list sessions". - 100control-ui
Use when asked to verify or reproduce browser or Electron UI behavior with before-and-after evidence and no leftover processes. Not for remote, credential, publish, deploy, or irreversible changes. - 82process-lifecycle
Use when changing subprocess execution, cancellation, process-tree cleanup, orphan reaping, or Windows child hardening. - 82process-lifecycle
Use when changing subprocess execution, cancellation, process-tree cleanup, orphan reaping, or Windows child hardening.