code-critic

code-critic is an agent for Claude Code from fullymiddleaged/Clawness. It costs 48 tokens per session (536 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: effort in frontmatter.

Part of the clawness plugin — 13 skills, 7 agents shipped together

Good fit Use it to inspect files or code changes for correctness, performance, error handling, unclear code, and unusual inputs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fullymiddleaged/clawness/code-critic
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/fullymiddleaged/Clawness

Made for: Claude Code.

Or install clawness, the plugin that ships this one along with the rest of its 13 skills, 7 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-critic

README.md
[![agentmods](https://agentmods.dev/badge/agents/fullymiddleaged/clawness/code-critic/github.svg)](https://agentmods.dev/agents/fullymiddleaged/clawness/code-critic)
Your own site
<a href="https://agentmods.dev/agents/fullymiddleaged/clawness/code-critic"><img src="https://agentmods.dev/badge/agents/fullymiddleaged/clawness/code-critic/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-critic

Your own site · 80×15
<a href="https://agentmods.dev/agents/fullymiddleaged/clawness/code-critic"><img src="https://agentmods.dev/badge/agents/fullymiddleaged/clawness/code-critic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.00048 $0.00536
Opus 5.5 $0.00019 $0.00214
Sonnet 5.5 $0.00010 $0.00107
Haiku 4.5 $0.00005 $0.00054

Measured 1mo ago against content hash a56a48fe3d7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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/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. 1mo ago 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 (5 stars, last pushed 12d ago), licensed MIT. It adds 48 tokens to every session and 536 once invoked, about $0.0002 per session on Opus 5.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

project-auditor

Use for /audit or when no PROJECT.md exists. Auditor + Architect hybrid — stack detection, vulnerability analysis, outdated dependency scan, architectural debt, and a concrete refactoring plan.

avelikiy/great_cto · 41 tokens

legal-reviewer

Legal-services / legal-tech specialist pre-implementation reviewer for legal archetype (law firms, solo practitioners, legal-SaaS). Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

accounting-reviewer

Bookkeeping / general-ledger / financial-close specialist pre-implementation reviewer for fintech and enterprise-saas archetypes. Outputs threat model TM-accounting-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

cms-reviewer

CMS / content-platform pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off SEO + a11y + content-policy decisions before senior-dev claims tasks.

avelikiy/great_cto · 39 tokens

edtech-reviewer

Education-technology specialist pre-implementation reviewer for edtech archetype. Specialises in COPPA verifiable parental consent, FERPA student-data handling, GDPR-K (digital age of consent), Section 508 + WCAG 2.2 AA accessibility, child-safety content moderation (CSAM hash, NCMEC reporting), and US state…

avelikiy/great_cto · 112 tokens

healthcare-reviewer

Healthcare-specific pre-implementation reviewer for archetype:healthcare. Specialises in HIPAA Security Rule (45 CFR 164.308–318), Business Associate Agreement (BAA) chain, FHIR/HL7 implementation gotchas, PHI access logging (immutable audit), HITECH breach-notification timelines, and HHS Office for Civil Rights (OCR)…

avelikiy/great_cto · 103 tokens