simplify

A focused code review looks for code that should not exist, such as dead code, unnecessary abstractions, or features already provided by the language or platform.

In plain words
What is it for?
Use it to review a working-tree diff before a pull request, or sweep a repository before creating a release tag, with a required replacement for every finding.
Why use it?
It helps reduce needless code without mixing this review with checks for bugs, security, or speed.

Command

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.

agentmods
npx agentmods add commands/azrtydxb/procoder/simplify
Clone the repo
git clone --depth 1 https://github.com/azrtydxb/procoder
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 501 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00501
Opus 5 $0.00019 $0.00251
Sonnet 5 $0.00008 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 2d ago against content hash 78eb0d52a63b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

simplify 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 2d 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.

.kilo/commands/simplify.md · 50 lines

What it actually says

The user invoked /procoder:simplify with arguments:

The command below is the procoder binary on PATH.

This review hunts one thing only: code that should not exist. Correctness bugs, security, performance — out of scope here; those belong to procoder check, security, and /procoder:debug.

Scope: with no arguments, review the working-tree diff (git diff plus staged). With repo (or a path) in the arguments, sweep that whole scope — use procoder index unused and procoder maintain as starting evidence, then read.

The diff pass runs before every pull request; the repo sweep before a tag.

Every finding is one line, with a mandatory replacement — a finding without a replacement is hedging, not reviewing:

<file>:L<line>: <tag> <what>. <replacement>.

The five tags:

  • delete: dead code, unused flexibility, speculative feature. Replacement: nothing.
  • stdlib: hand-rolled code the standard library ships. Name the function.
  • native: a dependency or code doing what the platform already does (CSS over JS, a DB constraint over app code). Name the feature.
  • yagni: an abstraction with one implementation, config nobody sets, a layer with one caller.
  • shrink: same logic, fewer lines. Show the shorter form.

End with the score line: net: -<N> lines possible. — and when there is genuinely nothing to cut, say exactly Lean already. Ship. and stop; never invent findings to look thorough.

Rules:

  • Never flag a lone smoke test or assert-based self-check as bloat — the minimum check is part of the code, not decoration (see /procoder:tdd).
  • A deliberate simplification marked with the debt marker (see procoder debt) is a recorded decision, not a finding — unless its revisit trigger has arrived.
  • List the cuts; do not apply them. The user (or the task at hand) decides — P-CONTROL applies to reviews too.
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. 2d ago First seen · 50 lines · 39 tokens per session scan A 78eb0d52a63b

Subscribe to this mod's changes

simplify is a command published in the GitHub repository azrtydxb/procoder (196 stars, last pushed 2d ago), licensed Apache-2.0. It adds 39 tokens to every session and 501 once invoked, about $0.0002 per session on Opus 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.