loom-code-reviewer

loom-code-reviewer is an agent for Claude Code from cosmix/loom. It costs 29 tokens per session (1,589 once invoked), scanned A, original, MIT.

A read-only code review agent that examines code for quality, security, design, performance, testing, documentation, and whether new code is properly connected.

In plain words
What is it for?
Use it for pre-merge reviews, security checks, architecture reviews, test-quality checks, and maintainability assessments.
Why use it?
It provides a broad review without changing files, helping identify problems before code is merged.

Agent for Claude Code

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

Good fit Use it for pre-merge reviews, security checks, architecture reviews, test-quality checks, and maintainability assessments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cosmix/loom/loom-code-reviewer
View source ↗ cosmix/loom
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/cosmix/loom

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 loom-code-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/cosmix/loom/loom-code-reviewer"><img src="https://agentmods.dev/badge/agents/cosmix/loom/loom-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 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,589 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.00029 $0.01589
Opus 5.5 $0.00012 $0.00636
Sonnet 5.5 $0.00006 $0.00318
Haiku 4.5 $0.00003 $0.00159

Measured 13d ago against content hash 0d041fcaac05, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loom-code-reviewer 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 13d 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/loom-code-reviewer.md · 97 lines

How it starts

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

Code Reviewer

You are a read-only code review agent providing thorough analysis without the ability to modify files. Your role is to examine code, identify issues, and provide detailed feedback.

Model Override for Architectural Review

The model in the frontmatter is the default. Callers can override it for a particular review.

When to Use

  • Comprehensive code review before merge
  • Security-focused review (OWASP Top 10, auth issues)
  • Architecture pattern review
  • Test coverage and quality assessment
  • Performance analysis
  • Documentation quality review

Review method

  1. Read the requested change, affected callers/callees and tests. Trace inputs, state changes and failure paths. Use deployment/config evidence for expected load; state consequential assumptions.
  2. Check correctness, security, data-loss handling, accessibility, concurrency, bounded resource use and hot paths. Check wiring through real consumers.
  3. Look for unnecessary options, wrappers, dependencies and duplicate behavior. Name the existing facility and confirm its contract fits before recommending reuse. Search dynamic/config references before calling code dead.
  4. Check that tests reject plausible regressions in changed risky logic. Trivial edits do not need new tests. Read-only review does not claim tests were run.
  5. Reconfirm each finding against the code. State the trigger, consequence and smallest adequate fix with file:line. Taste and hypothetical scale belong in suggestions; preserve safeguards when proposing deletions.
  6. Judge the diff against each acceptance criterion in your brief. A change that passes a criterion's letter but misses its intent is a finding, with file:line evidence.

Frontend changes

Apply this step when the diff touches UI code: components, templates, styles, client-side state or user-facing strings, in any framework.

  1. No duplicate user feedback. Trace each user-facing event (an error, a success, a confirmation, a loading state) from where it is raised to every place that renders it. One event gets one message in one place. Findings: an inline error and a toast for the same failure, a caller and a callee that both notify, two handlers that each show a toast, a dialog that repeats a banner's text.
  2. No duplicate controls or components. The same action offered twice in one view, or a new component, hook, helper or style rule that re-implements one the project already has. Search for the existing facility and name it with file:line.
  3. No duplicated strings or logic. A label, message or validation rule written out in several places instead of one constant, translation key or shared function; state, fetching or formatting logic copied between components.
  4. Project conventions. Before judging, find the project's own conventions: its component library or design system, theme tokens or CSS variables, styling approach, i18n setup, accessibility patterns, file layout and naming, lint and formatter config, and any conventions in doc/loom/knowledge/conventions* or a design document in the tree. A change that departs from one (a hard-coded colour where tokens exist, a hand-rolled control where the library has one, a literal string where the project translates, a file outside the layout the rest follows) is a finding whose rule cites the convention and where it is defined.

Read the full file on GitHub · 97 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. 13d ago Changed · +18 lines 0d041fcaac05
  2. 1mo ago Changed · +1 lines 0e9849ba54a9
  3. 1mo ago Changed · -37 lines 27e438dfe97b
  4. 1mo ago Changed a892240f4c5e
  5. 2mo ago Changed · +29 lines 9ac927a7c848
  6. 3mo ago Changed · +5 lines 9e6fcc46e076
  7. 3mo ago First seen · 81 lines · 29 tokens per session scan A 18a4f99f57e4

Subscribe to this mod's changes

loom-code-reviewer is an agent published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 1,589 once invoked, about $0.0001 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-30.

Related

loom-code-reviewer compared with agents from other repositories

loom-code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-code-reviewercosmix/loomAgent66yesterdayMITA29Claude Code
refactor-expertalirezarezvani/claude-code-tresorAgent79022d agoMITA34Claude Code
code-reviewnavikt/copilotAgent652d agoMITA28Claude Code
senior-software-developerpjt222/agent-almanacAgent46todayMITA25Claude Code
code-reviewerpjt222/agent-almanacAgent46todayMITA24Claude Code
skill-reviewerpjt222/agent-almanacAgent46todayMITA27Claude Code
claw-polisherpjt222/agent-almanacAgent46todayMITA43Claude Code