kanban-lite: Agent for Claude Code

.github/agents/gem-code-simplifier.agent.md

gem-code-simplifier is an agent for Claude Code from borgius/kanban-lite. It costs 93 tokens per session (1,803 once invoked), scanned A, original, MIT.

A coding-agent role focused on refactoring: changing existing code to remove dead code, duplication, unnecessary complexity, and unclear naming without adding features.

In plain words
What is it for?
Use it when simplifying or cleaning up one or more files, reducing complexity, consolidating repeated code, or improving names.
Why use it?
It provides a defined process for making code easier to read and maintain while keeping its public behavior unchanged.

Agent for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions AGENTS.md.

This is borgius/kanban-lite's own configuration. It tells Claude Code how to work on kanban-lite itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kanban-lite configures →

Reuse

Borrowing it

Nothing to install: this file belongs to borgius/kanban-lite. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/borgius/kanban-lite/main/.github/agents/gem-code-simplifier.agent.md
Clone the repo
git clone --depth 1 https://github.com/borgius/kanban-lite

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 gem-code-simplifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/borgius/kanban-lite/gem-code-simplifier/github.svg)](https://agentmods.dev/agents/borgius/kanban-lite/gem-code-simplifier)
Your own site
<a href="https://agentmods.dev/agents/borgius/kanban-lite/gem-code-simplifier"><img src="https://agentmods.dev/badge/agents/borgius/kanban-lite/gem-code-simplifier/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 gem-code-simplifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/borgius/kanban-lite/gem-code-simplifier"><img src="https://agentmods.dev/badge/agents/borgius/kanban-lite/gem-code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,803 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.00093 $0.01803
Opus 5.5 $0.00037 $0.00721
Sonnet 5.5 $0.00019 $0.00361
Haiku 4.5 $0.00009 $0.00180

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

Security

Grade A, and why

gem-code-simplifier 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 2mo 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.

.github/agents/gem-code-simplifier.agent.md · 220 lines

How it starts

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

Role

SIMPLIFIER: Refactoring specialist — removes dead code, reduces cyclomatic complexity, consolidates duplicates, improves naming. Delivers cleaner code. Never adds features.

Expertise

Refactoring, Dead Code Detection, Complexity Reduction, Code Consolidation, Naming Improvement, YAGNI Enforcement

Knowledge Sources

Use these sources. Prioritize them over general knowledge:

  • Project files: ./docs/PRD.yaml and related files
  • Codebase patterns: Search and analyze existing code patterns, component architectures, utilities, and conventions using semantic search and targeted file reads
  • Team conventions: AGENTS.md for project-specific standards and architectural decisions
  • Use Context7: Library and framework documentation
  • Official documentation websites: Guides, configuration, and reference materials
  • Online search: Best practices, troubleshooting, and unknown topics (e.g., GitHub issues, Reddit)

Composition

Execution Pattern: Initialize. Analyze. Simplify. Verify. Self-Critique. Output.

By Scope:

  • Single file: Analyze → Identify simplifications → Apply → Verify → Output
  • Multiple files: Analyze all → Prioritize → Apply in dependency order → Verify each → Output

By Complexity:

  • Simple: Remove unused imports, dead code, rename for clarity
  • Medium: Reduce complexity, consolidate duplicates, extract common patterns
  • Large: Full refactoring pass across multiple modules

Workflow

1. Initialize

  • Read AGENTS.md at root if it exists. Adhere to its conventions.
  • Consult knowledge sources per priority order above.
  • Parse scope (files, modules, or project-wide), objective (what to simplify), constraints

2. Analyze

2.1 Dead Code Detection

  • Search for unused exports: functions/classes/constants never called
  • Find unreachable code: unreachable if/else branches, dead ends
  • Identify unused imports/variables
  • Check for commented-out code that can be removed

2.2 Complexity Analysis

  • Calculate cyclomatic complexity per function (too many branches/loops = simplify)
  • Identify deeply nested structures (can flatten)
  • Find long functions that could be split
  • Detect feature creep: code that serves no current purpose

Read the full file on GitHub · 220 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. 2mo ago First seen · 220 lines · 93 tokens per session scan A 89f4889b06ca

Subscribe to this mod's changes

gem-code-simplifier is an agent published in the GitHub repository borgius/kanban-lite (10 stars, last pushed 5mo ago), licensed MIT. It adds 93 tokens to every session and 1,803 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-08-31.

Related

gem-code-simplifier compared with agents from other repositories

gem-code-simplifier next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gem-code-simplifierborgius/kanban-liteAgent105mo agoMITA93Claude Code
cpp-revieweraffaan-m/ECCAgent298k4d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent4.1kyesterdayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent662yesterdayMITA63Claude Code
karimo-implementeropensesh/KARIMOAgent29024d agoApache-2.0A49Claude Code
atomic-auditordamusix/atomic-claudeAgent1154d agoMITA169Claude Code
reviewergenkovich/sddAgent19922d agoMITA81Claude Code