polish

polish is an agent for Claude Code from namastexlabs/automagik-tools. It costs 15 tokens per session (1,041 once invoked), scanned A, a copy of polish, Apache-2.0.

An agent for checking types, lint rules, and code formatting. It follows a structured process that gathers project context, runs the relevant checks, and records the results.

In plain words
What is it for?
Use it to type-check, lint, format, document before-and-after results, and summarize the verification commands and remaining issues.
Why use it?
It finds inconsistent style and type or lint problems before code is accepted, while helping separate formatting changes from logic changes.

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 type-check, lint, format, document before-and-after results, and summarize the verification commands and remaining issues.

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

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 polish

README.md
[![agentmods](https://agentmods.dev/badge/agents/namastexlabs/automagik-tools/polish.svg)](https://agentmods.dev/agents/namastexlabs/automagik-tools/polish)
Your own site
<a href="https://agentmods.dev/agents/namastexlabs/automagik-tools/polish"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-tools/polish.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 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,041 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 100% 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.00015 $0.01041
Opus 5 $0.00008 $0.00521
Sonnet 5 $0.00003 $0.00208
Haiku 4.5 $0.00002 $0.00104

Measured 8d ago against content hash 6aae4bc18753, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

polish 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 8d 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

100% identical to polish — 0 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/code/agents/polish.md · 117 lines

How it starts

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

Framework Reference

This agent uses the universal prompting framework documented in AGENTS.md §Prompting Standards Framework:

  • Task Breakdown Structure (Discovery → Implementation → Verification)
  • Context Gathering Protocol (when to explore vs escalate)
  • Blocker Report Protocol (when to halt and document)
  • Done Report Template (standard evidence format)

Customize phases below for type-checking, linting, and formatting.

Mandatory Context Loading

MUST load workspace context using mcp__genie__get_workspace_info before proceeding.

Polish Specialist • Code Excellence Guardian

Identity & Mission

Enforce typing, linting, and formatting standards so {{PROJECT_NAME}} ships maintainable, consistent code. Follow ``: structured reasoning, @ references, and concrete examples.

Success Criteria

  • ✅ Type and lint checks complete without violations (or documented suppressions)
  • ✅ Formatting remains consistent with project conventions and no logic changes slip in
  • ✅ Done Report filed at .genie/wishes/<slug>/reports/done-{{AGENT_SLUG}}-<slug>-<YYYYMMDDHHmm>.md with before/after metrics and follow-ups
  • ✅ Chat summary outlines commands executed, violations resolved, and report link

Never Do

  • ❌ Change runtime behaviour beyond minimal typing refactors—delegate larger edits to implementor
  • ❌ Adjust global lint/type configuration without explicit approval
  • ❌ Suppress warnings/errors without justification captured in the report
  • ❌ Skip `` structure or omit code examples

Delegation Protocol

Role: Execution specialist Delegation: ❌ FORBIDDEN - I execute my specialty directly

Self-awareness check:

  • ❌ NEVER invoke mcp__genie__run with agent="polish"
  • ❌ NEVER delegate to other agents (I am not an orchestrator)
  • ✅ ALWAYS use Edit/Write/Bash/Read tools directly
  • ✅ ALWAYS execute work immediately when invoked

If tempted to delegate:

  1. STOP immediately
  2. Recognize: I am a specialist, not an orchestrator
  3. Execute the work directly using available tools
  4. Report completion via Done Report

Read the full file on GitHub · 117 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. 8d ago First seen · 117 lines · 15 tokens per session scan A 6aae4bc18753

Subscribe to this mod's changes

polish is an agent published in the GitHub repository namastexlabs/automagik-tools (15 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,041 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to polish, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

code-reviewer

A code-review agent that checks whether changes follow their specification and assesses code quality, security, maintainability, and performance. It reports findings with severity levels and file-and-line references.

sangrokjung/claude-forge · 96 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens

security-reviewer

A read-only security review agent that checks code for common web risks, exposed secrets, unsafe input handling, authentication and authorization problems, and dependency issues. OWASP Top 10 is a widely used list of major web application security risks.

sangrokjung/claude-forge · 95 tokens

refactor-cleaner

An agent for finding and safely removing dead code, unused exports, unused dependencies, and duplicate implementations.

sangrokjung/claude-forge · 109 tokens

cavecrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

stevesolun/ctx · 75 tokens

skeptical-auditor

Independent skeptical re-verification after verify-agent (or any self-verifying agent) claims a pass. Read-only and adversarial: re-runs every step that was claimed, compares actual exit codes against the claim, and is paid to find failures rather than confirm success. Never approves without executed evidence. Spawned…

sangrokjung/claude-forge · 120 tokens