Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add chipi/agentic-ai-homelab --skill process-hygienegit clone --depth 1 https://github.com/chipi/agentic-ai-homelabWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/chipi/agentic-ai-homelab/process-hygiene)<a href="https://agentmods.dev/skills/chipi/agentic-ai-homelab/process-hygiene"><img src="https://agentmods.dev/badge/skills/chipi/agentic-ai-homelab/process-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/chipi/agentic-ai-homelab/process-hygiene"><img src="https://agentmods.dev/badge/skills/chipi/agentic-ai-homelab/process-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00100 | $0.00691 |
| Opus 5.5 | $0.00040 | $0.00276 |
| Sonnet 5.5 | $0.00020 | $0.00138 |
| Haiku 4.5 | $0.00010 | $0.00069 |
Grade A, and why
process-hygiene scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
process-hygiene
Killed builds, hung tests and OOMed ML jobs leave orphan processes behind (on macOS especially). Clean them
up before re-running, and clean up only what is yours: on a shared workstation other checkouts, projects
and agents run the same node, vite and playwright binaries.
What is yours
- A PID or process group you captured when you started it.
- A checkout-scoped mechanism:
docker composein that checkout, the repo's own cleaner. - Never
pkill,killallorpkill -f <pattern>. pgrep -f <pattern>also matches your own checking command (its command line contains the pattern). Confirm a PID withps -o pid,args -p <pid>before calling it a leftover, or use a pattern that cannot match itself (pgrep -f '[e]vh run').- Docker: compose-project scoped only; never
docker system/volume/image prune.
Full rules: workstation/DEVELOPER-SETUP.md, "Multi-agent safety rules".
The session reaper
A global SessionEnd hook, ~/.claude/hooks/session-reap.sh, runs when any session ends:
- It reaps that session's tool processes.
- It sweeps runaway
gh runpoll loops (while true; do gh run …; doneCI watchers that leak when a session dies and poll the GitHub API for days). - It sweeps orphaned
tail -f <file> | grep …watchers whose session and file are gone. - It is family-scoped by project-name prefix (on the Linux workstation,
/work/<project>/): anorrerysession never touches apodcastprocess.
Run it by hand, dry run first:
SESSION_REAP_DRY_RUN=1 bash ~/.claude/hooks/session-reap.sh <dir> # what it would stop
bash ~/.claude/hooks/session-reap.sh <dir> # stop them
In a repo, bash scripts/cleanup-worktree.sh [--stale-loops] [--dry-run] is the per-repo cleaner.
Habits that keep it clean
- Stop a background
tail -fwatcher by PID when you are done with it. - Never background a
gh runwatch loop without a bound:for i in $(seq …), notwhile true. - At the end of a work block, check for your own leftovers.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 52 lines · 100 tokens per session scan A d0e8fb8ac5e4
process-hygiene is a skill published in the GitHub repository chipi/agentic-ai-homelab (2 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 691 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.
process-hygiene compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| process-hygienechipi/agentic-ai-homelab | Skill | 2 | today | MIT | A | 100 | Claude Code |
| agent-sandboxruvnet/ruflo | Skill | 83k | today | MIT | A | 15 | Claude Code |
| github-actions-templateswshobson/agents | Skill | 43k | yesterday | MIT | A | 44 | Claude Code |
| tao-run-on-slurmNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 94 | Claude Code |
| cdf-orchestration-setupNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 105 | Codex |
| aiq-deployNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 27 | Claude Code |
| tao-run-on-brevNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 106 | Claude Code |