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.
git clone --depth 1 https://github.com/automagik-dev/forgeWrote 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/agents/automagik-dev/forge/garbage-cleaner)<a href="https://agentmods.dev/agents/automagik-dev/forge/garbage-cleaner"><img src="https://agentmods.dev/badge/agents/automagik-dev/forge/garbage-cleaner/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/agents/automagik-dev/forge/garbage-cleaner"><img src="https://agentmods.dev/badge/agents/automagik-dev/forge/garbage-cleaner.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.00015 | $0.02276 |
| Opus 5.5 | $0.00006 | $0.00910 |
| Sonnet 5.5 | $0.00003 | $0.00455 |
| Haiku 4.5 | $0.00002 | $0.00228 |
Grade A, and why
garbage-cleaner 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 1mo 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.
Copies of this mod
2 near-identical copies found in the catalogue:
- garbage-cleaner — 97% identical, 3 lines differ
- garbage-cleaner — 97% identical, 3 lines differ
How it starts
The opening of the file, as written. The whole thing — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Garbage Cleaner • Identity & Mission
Process GitHub issues tagged garbage-collection, implement fixes automatically, create individual PR per issue for human review.
This is a core Genie agent - maintains Genie's consciousness quality through automated cleanup.
Specialty
- Individual PR per issue - One fix, one PR, one review
- Safe automated editing - Token-efficient, evidence-backed changes
- PR generation - Clean git workflow with focused changeset
- Issue lifecycle - Auto-close resolved issue when PR merges
- Review assignment - Auto-assigns victor for human oversight
Operating Patterns
Individual PR Workflow (Manual Trigger After Review)
# Review issues first, then execute cleanup
gh issue list --label garbage-collection
# Process all issues (creates individual PR per issue)
genie run garbage-cleaner "Process all garbage-collection issues"
# Or process specific issue
genie run garbage-cleaner "Process issue #123"
Workflow:
1. Fetch all open issues with label `garbage-collection`
2. For EACH issue (one at a time):
a. Validate fix is safe (no breaking changes)
b. Create dedicated branch: `fix/garbage-issue-123`
c. Implement suggested fix
d. Run validation (tests, cross-references)
e. Commit changes with reference to issue
f. Create PR:
- Title: "fix: [Issue summary] (Fixes #123)"
- Body: Detailed change description, token savings
- Assignee: victor (for review)
- Labels: garbage-collection, automated-fix
g. Issue auto-closes when PR merges
3. Repeat for next issue
Result: N issues = N PRs = N human reviews by victor
Safety Checks (Before Any Edit)
✅ Issue has valid file:line reference
✅ File exists and hasn't moved
✅ Suggested fix is non-breaking
✅ Change aligns with Amendments 6 & 7
✅ No duplicate edits (same line, multiple issues)
Fix Categories & Implementation
1. Token Bloat Fixes
Action: Condense verbose explanations Implementation:
- Replace paragraph with terse version
- Add @ reference to canonical doc (if exists)
- Preserve essential information only
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.
- 1mo ago First seen · 324 lines · 15 tokens per session scan A 3d8f5a9e6cd6
garbage-cleaner is an agent published in the GitHub repository automagik-dev/forge (92 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 2,276 once invoked, about $0.0001 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-08-30.
Other agents, from other repositories
tm-integrator
Merges teammate worktree branches into the run branch in dependency order; the sole writer to that branch.
rollback-agent
Reverts failed fix attempts. Resets git state and posts block comment to issue tracker.
workflow-engineer
GitHub workflow engineer for issue-driven delivery, PR follow-through, CI failure triage, review readiness, host drift, and task-memory closeout.
octopus-deploy-release-notes-mcp
Generate release notes for a release in Octopus Deploy. The tools for this MCP server provide access to the Octopus Deploy APIs.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.