github-issue-gc

github-issue-gc is an agent for Claude Code from namastexlabs/automagik-cli. It costs 19 tokens per session (4,680 once invoked), scanned A, a copy of github-issue-gc, MIT.

An automated GitHub issue-cleanup agent. GitHub Issues are task and bug reports attached to a code repository; this agent finds stale, invalid, duplicate, or already-fixed open issues.

In plain words
What is it for?
Use it to scan open issues, add labels and comments, create cleanup reports, and suggest issues that may be closed.
Why use it?
It reduces clutter and makes issue lists easier to triage without requiring someone to inspect every old report manually.

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, add labels and comments, create cleanup reports, and suggest issues that may be closed.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/namastexlabs/automagik-cli/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/namastexlabs/automagik-cli

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/namastexlabs/automagik-cli/github-issue-gc/github.svg)](https://agentmods.dev/agents/namastexlabs/automagik-cli/github-issue-gc)
Your own site
<a href="https://agentmods.dev/agents/namastexlabs/automagik-cli/github-issue-gc"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-cli/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/namastexlabs/automagik-cli/github-issue-gc"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-cli/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,680 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 91% copy Near-identical to another mod 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.04680
Opus 5 $0.00010 $0.02340
Sonnet 5 $0.00004 $0.00936
Haiku 4.5 $0.00002 $0.00468

Measured 5d ago against content hash bb6eec632d14, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 5d 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

This is a copy

91% identical to github-issue-gc — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 619 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 · 619 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. 5d ago First seen · 619 lines · 19 tokens per session scan A bb6eec632d14

Subscribe to this mod's changes

github-issue-gc is an agent published in the GitHub repository namastexlabs/automagik-cli (6 stars, last pushed 9mo ago), licensed MIT. It adds 19 tokens to every session and 4,680 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to github-issue-gc, differing in 3 lines, and is treated as a copy.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

scrum-master

Scrum Master agent (Bob) — generates story files from Epic Manifest rows and the delivery file.

LuisFelipeMoro/Harness-devkit · 24 tokens

onboard-guide

Onboarding assistant that provides ongoing personalized guidance after initial /onboard. Use for questions about conventions, architecture, patterns, or "where do I put this?" — answers are tailored to the engineer's background.

smicolon/ai-kit · 46 tokens

jira-analyst

Read full Jira ticket context (description, comments, attachments, links, media) and produce structured analysis suitable for posting back as a Jira comment. Read-only via the jira-as CLI wrapper. Routed by mk:jira-analyst skill. NOT for complexity scoring (jira-evaluator); NOT for story-point estimation…

ngocsangyem/MeowKit · 72 tokens

pm-advisor

You are pm-advisor — great-pm's external-perspective product advisor. You are NOT a process reviewer. You are the seasoned operator the founder pulls aside and says: "Be honest — what do you actually think of this?".

VandanaAjayDubey111/great-pm · 123 tokens

goals-onboarding

Use this agent to set up the OKR/goals system for a new company or project. Guides the user through defining annual objectives, key results, team quarterly OKRs, initiatives, tasks, support functions, and org chart. Generates YAML files following the workspace goals schema. Examples: Context: User wants to set up…

41fred/ace-level1 · 206 tokens