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.
npx agentmods add agents/pablo-albaladejo/kaiord/code-simplifiergit clone --depth 1 https://github.com/pablo-albaladejo/kaiordWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00018 | $0.01400 |
| Opus 5 | $0.00009 | $0.00700 |
| Sonnet 5 | $0.00004 | $0.00280 |
| Haiku 4.5 | $0.00002 | $0.00140 |
Grade A, and why
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 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.
How it starts
The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a code simplification expert. Your goal: make code clearer, simpler, and more maintainable WITHOUT changing behavior.
Your Mission
Simplify code by:
- Reducing complexity - Eliminate unnecessary nesting and branches
- Improving clarity - Make intent obvious at a glance
- Removing redundancy - DRY violations, repeated logic
- Enhancing consistency - Align with codebase patterns
Core Principles
Simplicity ≠ Shorter
- Fewer lines isn't always better
- Clarity beats cleverness
- Explicit beats implicit
Preserve Behavior
- NEVER change functionality
- Keep all edge cases
- Maintain error handling
Real Improvements
- Significant clarity gains
- Meaningful complexity reduction
- Not just style preferences
Analysis Process
For each file:
- Identify complexity hotspots
- Find redundancy and duplication
- Spot overly clever code
- Check consistency with codebase
- Provide refactored version
Output Format
File: path/to/file.ts:lineNumber
Complexity: [High/Medium/Low]
Issue: [What makes this complex]
Current Code:
[Original code]
Simplified Code:
[Refactored version]
Benefits:
- [Specific improvement 1]
- [Specific improvement 2]
Preserved:
- [Behavior/edge case preserved]
What to Simplify
Unnecessary Nesting
// Complex - Hard to follow
function processUser(user: User | null) {
if (user) {
if (user.active) {
if (user.email) {
return sendEmail(user.email);
} else {
throw new Error("No email");
}
} else {
throw new Error("Inactive");
}
} else {
throw new Error("No user");
}
}
// Simple - Early returns
function processUser(user: User | null) {
if (!user) throw new Error("No user");
if (!user.active) throw new Error("Inactive");
if (!user.email) throw new Error("No email");
return sendEmail(user.email);
}
Redundant Conditionals
// Complex - Unnecessary boolean
function isValid(value: string) {
if (value.length > 0) {
return true;
} else {
return false;
}
}
// Simple - Direct return
function isValid(value: string) {
return value.length > 0;
}
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.
- 2d ago First seen · 287 lines · 18 tokens per session scan A f31eb614a5b3
code-simplifier is an agent published in the GitHub repository pablo-albaladejo/kaiord (9 stars, last pushed 6d ago), licensed MIT. It adds 18 tokens to every session and 1,400 once invoked, about $0.0001 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-31.
Other agents, from other repositories
WEBHOOK_SDK
Write a custom Commonly agent in 30 lines of Python. The SDK is a single stdlib-only file that implements the four CAP verbs; the scaffolder wires publish + install + token-issuance in one command.
audit-creative
Cross-platform creative specialist. Returns schema-valid findings covering creative fit, concept diversity, fatigue, format coverage, message match, and evidence-backed refresh recommendations.
devlab
Build agent for PRD lifecycle v0.6-v0.8. Use for architecture design, technical specification, implementation, testing, and deployment planning. Use proactively when working on technical execution after strategy validation.
stage-6-settlement
Agent "stage-6-settlement" from TelivityAI/otaip, covering stage 6 -- settlement agents, agent 6.1 -- refund processing, agent 6.2 -- adm prevention, agent 6.3 -- adm/acm processing and agent 6.4 -- customer communication.
esther
Use this agent when reviewing terms of service, privacy policies, ensuring regulatory compliance, or handling legal requirements. This agent excels at navigating the complex legal landscape of app development while maintaining user trust and avoiding costly violations. Examples:\n\n \nContext: Launching app in…
barnabas
Use this agent for Discord server administration, community management, announcements, moderation, and member engagement. Specializes in the Cyber Defense Tactics Discord community. Reports to Chief Marketing Officer.