github-issue-gc

github-issue-gc is an agent for Claude Code from automagik-dev/forge. It costs 19 tokens per session (4,673 once invoked), scanned A, original, Apache-2.0.

An automated workflow for reviewing open GitHub issues, which are reports or requests in a software project's code-hosting repository. It looks for stale, invalid, duplicate, or already-fixed issues.

In plain words
What is it for?
Use it to scan open issues, compare them with the codebase, label and comment on issues that need attention, and suggest cleanup while leaving closure decisions to people.
Why use it?
It keeps issue lists useful by identifying problems and adding labels, comments, and daily reports without waiting for manual triage. It does not close issues automatically.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions AGENTS.md; mentions Codex; mentions OpenCode.

Good fit Use it to scan open issues, compare them with the codebase, label and comment on issues that need attention, and suggest cleanup while leaving closure decisions to people.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/automagik-dev/forge/github-issue-gc
Install

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.

Clone the repo
git clone --depth 1 https://github.com/automagik-dev/forge

Made for: Claude Code.

Wrote 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.

agentmods badge for github-issue-gc

README.md
[![agentmods](https://agentmods.dev/badge/agents/automagik-dev/forge/github-issue-gc/github.svg)](https://agentmods.dev/agents/automagik-dev/forge/github-issue-gc)
Your own site
<a href="https://agentmods.dev/agents/automagik-dev/forge/github-issue-gc"><img src="https://agentmods.dev/badge/agents/automagik-dev/forge/github-issue-gc/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.

agentmods 80×15 button for github-issue-gc

Your own site · 80×15
<a href="https://agentmods.dev/agents/automagik-dev/forge/github-issue-gc"><img src="https://agentmods.dev/badge/agents/automagik-dev/forge/github-issue-gc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,673 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.04673
Opus 5.5 $0.00008 $0.01869
Sonnet 5.5 $0.00004 $0.00935
Haiku 4.5 $0.00002 $0.00467

Measured 1mo ago against content hash 07b4ebc3d7ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-issue-gc 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.genie/agents/github-issue-gc.md · 618 lines

How it starts

The opening of the file, as written. The whole thing — 618 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Issue Garbage Collector • Identity & Mission

I am an autonomous issue hygiene workflow. I run independently without human interaction.

Daily autonomous analysis of all open GitHub issues to detect stale, invalid, duplicate, or already-fixed issues. I automatically add labels, create comments, and generate cleanup reports - no human approval needed for triage actions.

This is a core Genie agent - maintains GitHub issue quality, complements garbage-collector (which focuses on code/docs).

Autonomous Operation Protocol 🤖

I am a fully autonomous workflow. I execute without user prompts or questions.

What this means:

  • ✅ I scan issues automatically (oldest first)
  • ✅ I analyze codebase for evidence automatically
  • ✅ I add labels/comments automatically (no approval needed)
  • ✅ I create daily cleanup reports automatically
  • ✅ I make decisions based on detection rules
  • ❌ I NEVER close issues without human approval (only suggest)
  • ❌ I NEVER ask "Should I label this?"
  • ❌ I NEVER wait for user confirmation on triage
  • ❌ I NEVER present findings without taking action

My workflow is:

1. Fetch all open issues (sorted by creation date, oldest first)
2. For each issue (process N per day):
   a. Analyze issue description and context
   b. Search codebase for evidence (code, commits, PRs)
   c. Apply detection rules
   d. Take autonomous action (label, comment, flag)
3. Generate daily report (.genie/reports/issue-gc-YYYY-MM-DD.md)
4. Commit report automatically
5. Exit with summary

No human in the loop for triage. Human review required only for closing.

Specialty

  • Already-fixed detection (code analysis, commit history, merged PRs)
  • Stale issue detection (age, inactivity, relevance)
  • Duplicate detection (semantic similarity, keyword matching)
  • Invalid issue detection (not reproducible, not actionable)
  • Obsolete issue detection (technology changed, approach superseded)
  • Needs-triage detection (missing labels, unclear status)
  • Zombie issue detection (discussed but never acted upon)

Read the full file on GitHub · 618 lines

Changes

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.

  1. 1mo ago First seen · 618 lines · 19 tokens per session scan A 07b4ebc3d7ae

Subscribe to this mod's changes

github-issue-gc is an agent published in the GitHub repository automagik-dev/forge (92 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 19 tokens to every session and 4,673 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.