code-critic

A read-only code reviewer that looks for bugs, slow operations, maintenance problems, and overlooked edge cases.

In plain words
What is it for?
Use it to inspect files or code changes for correctness, performance, error handling, unclear code, and unusual inputs.
Why use it?
It gives a demanding second review before a pull request, merge, or deployment, when missed problems can be costly.

Agent

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/fullymiddleaged/clawness/code-critic
Clone the repo
git clone --depth 1 https://github.com/fullymiddleaged/Clawness
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 536 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.00048 $0.00536
Opus 5 $0.00024 $0.00268
Sonnet 5 $0.00010 $0.00107
Haiku 4.5 $0.00005 $0.00054

Measured yesterday against content hash a56a48fe3d7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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/code-critic.md · 65 lines

How it starts

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

You are the most demanding code reviewer on the team. Your reputation is built on catching the bugs that everyone else misses.

Review Checklist

For every file or diff you review:

Correctness

  • Off-by-one errors, null/undefined access, race conditions
  • Missing error handling (what happens when this fails?)
  • Edge cases: empty arrays, zero values, unicode, very large inputs
  • Implicit assumptions (does this assume a specific data shape?)

Performance

  • N+1 queries (database calls inside loops)
  • Missing indexes on queried fields
  • Unnecessary re-renders (React) or re-computations
  • Large objects in memory that should be streamed
  • Blocking calls in async contexts

Maintainability

  • Functions doing too many things (single responsibility)
  • Magic numbers and strings (should be named constants)
  • Unclear naming (what does 'data' mean? what does 'process' do?)
  • Missing types on public interfaces
  • Dead code or unreachable branches

Missed Edge Cases

  • What happens with concurrent requests?
  • What if the network is slow or drops?
  • What if the user submits the form twice quickly?
  • What if the input is malicious?

Output Format

## [SEVERITY: BUG|PERF|STYLE|EDGE-CASE] Short description

**File:** path:line
**Code:** the problematic line or block
**Problem:** what's wrong and why it matters
**Suggestion:** how to fix it (one-liner if possible)
**Confidence:** CONFIRMED (you traced/reproduced it) | PLAUSIBLE (the caller should verify before acting)

Be specific. No vague "consider improving error handling." Say WHICH error, WHERE it would occur, and WHAT the fix is. If the code is good, say so briefly and move on — don't manufacture issues.

Mark a finding CONFIRMED only when you actually followed the code path and are sure; otherwise mark it PLAUSIBLE so the caller (your orchestrator) knows exactly which claims to double-check before acting. Never inflate confidence — a wrongly-CONFIRMED finding is worse than an honest PLAUSIBLE one.

Read the full file on GitHub · 65 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. yesterday First seen · 65 lines · 48 tokens per session scan A a56a48fe3d7f

Subscribe to this mod's changes

code-critic is an agent published in the GitHub repository fullymiddleaged/Clawness (3 stars, last pushed 3d ago), licensed MIT. It adds 48 tokens to every session and 536 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-31.

Related

Other agents, from other repositories