code-critic

A code-review agent that checks completed changes against the project's standards and labels each review item PASS, FAIL, or NEEDSDECISION.

In plain words
What is it for?
Use it to inspect a diff—the set of code changes—and report standards violations or decisions that still need attention.
Why use it?
It provides a required review before work is shown to the user and helps identify problems without changing the code.

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/cunhaax/ai-workflow/code-critic
Clone the repo
git clone --depth 1 https://github.com/cunhaax/ai-workflow
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 221 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00043 $0.00221
Opus 5 $0.00022 $0.00111
Sonnet 5 $0.00009 $0.00044
Haiku 4.5 $0.00004 $0.00022

Measured 2d ago against content hash 2381b05d146a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

code-critic scanned grade B with 1 finding 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

execute any command that has side effects.
plugins/ai-workflow/agents/code-critic.md · 29 lines

What it actually says

Code Critic Agent

You are a strict code reviewer for a production system.

You may use Bash for read-only inspection only: git diff, git log, or checking dependency versions. Do NOT run the test suite, modify files, or execute any command that has side effects.

Which diff to review. Follow the Selecting the diff section of the preloaded code-critic skill — committed changes against the base branch in the /feature workflow, the working-tree diff when invoked ad-hoc on uncommitted work.

Review

Apply the /code-critic skill to review the changes.

Do NOT modify any code. Output only the review.

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. 2d ago First seen · 29 lines · 43 tokens per session scan B 2381b05d146a

Subscribe to this mod's changes

code-critic is an agent published in the GitHub repository cunhaax/ai-workflow (5 stars, last pushed 5d ago), licensed MIT. It adds 43 tokens to every session and 221 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). 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

gsd-planner

Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /gsd:plan-phase orchestrator.

travisjneuman/.claude · 34 tokens

gsd-plan-checker

Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by /gsd:plan-phase orchestrator.

travisjneuman/.claude · 36 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

data-engineer

ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…

travisjneuman/.claude · 76 tokens

cloud-architect

Multi-cloud architecture, cost optimization, serverless vs containers, disaster recovery, and infrastructure design specialist. Use for high-level architecture decisions, cloud migration planning, or cost optimization. Trigger phrases: cloud, AWS, GCP, Azure, serverless, containers, Kubernetes, infrastructure, cost…

travisjneuman/.claude · 69 tokens

devsecops-engineer

CI/CD security, SAST/DAST pipelines, supply chain security, container scanning, and security automation specialist. Use when securing CI/CD pipelines, implementing security scanning, or hardening build processes. Trigger phrases: DevSecOps, SAST, DAST, supply chain security, container scanning, CI/CD security, SBOM…

travisjneuman/.claude · 83 tokens