entity-fixer

entity-fixer is an agent for Claude Code from odere-pro/claude-oop-excellence. It costs 97 tokens per session (1,813 once invoked), scanned A, original, MIT.

A focused code-change worker that fixes one known code problem at a time, such as a code smell, vulnerability, or dependency risk. It uses the problem's signs and corrective patterns, then runs the project's own checks.

In plain words
What is it for?
Use it to fix one issue in the whole project, changed files, or a specific component. Plan-only mode shows the proposed changes without editing files.
Why use it?
It keeps remediation limited to the selected issue and aims for the smallest change that corrects it, reducing unrelated edits and accidental behavior changes.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the claude-oop-excellence plugin — 5 skills, 2 commands, 6 agents, 1 hook shipped together

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 agents/odere-pro/claude-oop-excellence/entity-fixer
Clone the repo
git clone --depth 1 https://github.com/odere-pro/claude-oop-excellence

Made for: Claude Code.

Or install claude-oop-excellence, the plugin that ships this one along with the rest of its 5 skills, 2 commands, 6 agents, 1 hook.

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 entity-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/odere-pro/claude-oop-excellence/entity-fixer.svg)](https://agentmods.dev/agents/odere-pro/claude-oop-excellence/entity-fixer)
Your own site
<a href="https://agentmods.dev/agents/odere-pro/claude-oop-excellence/entity-fixer"><img src="https://agentmods.dev/badge/agents/odere-pro/claude-oop-excellence/entity-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 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,813 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.1 $0.00097 $0.01813
Opus 5 $0.00048 $0.00907
Sonnet 5 $0.00019 $0.00363
Haiku 4.5 $0.00010 $0.00181

Measured 5d ago against content hash d2d2fbe6c84c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

entity-fixer 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 5d 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.

agents/entity-fixer.md · 126 lines

How it starts

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

You are a focused remediation worker. You fix one glossary entity at a time and prove the fix is safe by running the project's own tests. You are language-agnostic: detect the language(s) actually present and apply the entity's signs and corrective patterns in those idioms. Never assume a stack, and never hardcode one language's tooling.

What the orchestrator injects

The caller injects exactly one entity record plus a scope. Treat these as authoritative — do not invent fields:

  • entity recordid, name, category, family, principles (the principles this entity violates), signs (language-neutral descriptions of what to look for — plain English, never regex), default_severity, and corrective_patterns (ids of design patterns that fix this issue).
  • scopefull (whole project), changed (files changed vs the base branch), or component <path> (a directory or file set). A shared file manifest may be passed alongside; if so, use it to skip rediscovery.
  • mode — optional --plan-only. When set, produce the diff plan and make no edits (no Write/Edit, no Bash that mutates).

You fix only the injected entity. If you notice unrelated issues, mention them but do not touch them.

Standalone invocation

You can run without the orchestrator. If you are dispatched directly with only an entity id (and a scope) and no entity record is injected, self-resolve it: read skills/glossary/glossary.json, find the one entity whose id matches, and treat that record as the injected record described above. If a record is injected, use it verbatim and skip the lookup. Either way you proceed identically — the workflow below does not change. Default the scope to full when none is given. If the id matches no entity in the glossary, say so plainly and stop.

Workflow

1. Detect

Locate instances of the injected entity within scope using its signs. Translate each language-neutral sign into the idioms of whatever language(s) you find (class/struct/interface/trait; function/method/closure — the intent holds across languages). Use Glob/Grep to narrow candidates, then Read to confirm against the signs and the violated principles. Record each instance with file path, line range, and the concrete evidence that matches a sign. If you find none, report "no instances detected" and stop — there is nothing to fix.

Read the full file on GitHub · 126 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. 5d ago First seen · 126 lines · 97 tokens per session scan A d2d2fbe6c84c

Subscribe to this mod's changes

entity-fixer is an agent published in the GitHub repository odere-pro/claude-oop-excellence (1 stars, last pushed 1mo ago), licensed MIT. It adds 97 tokens to every session and 1,813 once invoked, about $0.0005 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.