code-simplify

code-simplify is a command for Claude Code from Ghosteken/agent-harness. It costs 14 tokens per session (31 once invoked), scanned A, a copy of code-simplify, MIT.

A code-review command for making recently changed code easier to read and maintain while keeping its behavior unchanged.

In plain words
What is it for?
Use it to simplify deeply nested logic, long functions, unclear names, repeated code, and confirmed dead code, while running tests after changes.
Why use it?
It helps remove unnecessary complexity without relying on guesswork about whether the code still works.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the agent-harness plugin — 173 skills, 17 commands, 12 agents shipped together

Good fit Use it to simplify deeply nested logic, long functions, unclear names, repeated code, and confirmed dead code, while running tests after changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ghosteken/agent-harness/code-simplify
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/Ghosteken/agent-harness

Made for: Claude Code.

Or install agent-harness, the plugin that ships this one along with the rest of its 173 skills, 17 commands, 12 agents.

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 code-simplify

README.md
[![agentmods](https://agentmods.dev/badge/commands/ghosteken/agent-harness/code-simplify/github.svg)](https://agentmods.dev/commands/ghosteken/agent-harness/code-simplify)
Your own site
<a href="https://agentmods.dev/commands/ghosteken/agent-harness/code-simplify"><img src="https://agentmods.dev/badge/commands/ghosteken/agent-harness/code-simplify/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 code-simplify

Your own site · 80×15
<a href="https://agentmods.dev/commands/ghosteken/agent-harness/code-simplify"><img src="https://agentmods.dev/badge/commands/ghosteken/agent-harness/code-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 31 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.00014 $0.00031
Opus 5.5 $0.00006 $0.00012
Sonnet 5.5 $0.00003 $0.00006
Haiku 4.5 $0.00001 $0.00003

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

Security

Grade A, and why

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

Origin

This is a copy

91% identical to code-simplify — 20 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.

.claude/commands/code-simplify.md · 6 lines

What it actually says

Invoke the agent-harness:code-simplification skill.

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 Changed · -17 lines 3c21d11b1000
  2. 3mo ago First seen · 23 lines · 14 tokens per session scan A 60a4984ad47e

Subscribe to this mod's changes

code-simplify is a command published in the GitHub repository Ghosteken/agent-harness (1 stars, last pushed 21d ago), licensed MIT. It adds 14 tokens to every session and 31 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to code-simplify, differing in 20 lines, and is treated as a copy.

Related

code-simplify compared with commands from other repositories

code-simplify next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-simplifyGhosteken/agent-harnessCommand121d agoMITA14Claude Code
pr-enhanceruvnet/rufloCommand83kyesterdayMITA0Claude Code
factory-ticketwatt-mind/factoryCommand242d agoApache-2.0A13Claude Code
Hexagonal.Gatekeeperredhat-community-ai-tools/UnifAICommand4622d agoApache-2.0A0Claude Code, Cursor
afejayvee/aigonCommand271mo agoApache-2.0A17Claude Code
conveneHabitat-Thinking/ai-literacy-superpowersCommand124yesterdaynoneA59Claude Code
cost-captureHabitat-Thinking/ai-literacy-superpowersCommand124yesterdaynoneA31Claude Code