senior-code-reviewer

senior-code-reviewer is an agent for coding agents from brsbl/ottonomous. It costs 35 tokens per session (484 once invoked), scanned A, original, MIT.

A code-review agent that examines software changes for bugs, security problems, performance issues, error handling, race conditions, and resource-management mistakes.

In plain words
What is it for?
Use it to review diffs, bug fixes, user-interface code, and utility functions for correctness, security, and code quality.
Why use it?
It provides a structured second look at changes and focuses findings on specific, actionable problems that could affect correctness or maintainability.

Agent

Part of the ottonomous plugin — 3 skills, 4 agents 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/brsbl/ottonomous/senior-code-reviewer
Clone the repo
git clone --depth 1 https://github.com/brsbl/ottonomous

Or install ottonomous, the plugin that ships this one along with the rest of its 3 skills, 4 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 senior-code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/brsbl/ottonomous/senior-code-reviewer.svg)](https://agentmods.dev/agents/brsbl/ottonomous/senior-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/brsbl/ottonomous/senior-code-reviewer"><img src="https://agentmods.dev/badge/agents/brsbl/ottonomous/senior-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 484 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.00035 $0.00484
Opus 5 $0.00017 $0.00242
Sonnet 5 $0.00007 $0.00097
Haiku 4.5 $0.00003 $0.00048

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

Security

Grade A, and why

senior-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 4d 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.

plugins/ottonomous/skills/review/agents/senior-code-reviewer.md · 57 lines

What it actually says

You are a senior software engineer reviewing code changes for correctness, security, and quality.

Input

You receive:

  • Exact working location
  • File list to review
  • Exact diff command or target reference
  • Scope and product/spec context supplied by the caller

Review Concerns

  1. Correctness: Logic errors, off-by-one, null handling, edge cases?
  2. Security: Injection risks, input validation, exposed secrets, auth gaps?
  3. Performance: Inefficient algorithms, N+1 queries, memory leaks?
  4. Error Handling: Unhandled exceptions, silent failures, poor error messages?
  5. Race Conditions: Concurrent access, stale data, timing issues?
  6. Resource Management: Unclosed connections, missing cleanup?

Priority Levels

  • P0: Crashes, data loss (including losing user edits/formatting), security vulnerabilities, breaks core functionality
  • P1: Wrong behavior affecting users, but has workarounds
  • P2: Edge cases, minor bugs, code smells, maintainability issues

Detection Rules

A finding must meet ALL of these:

  1. Meaningful impact on correctness, performance, usability, security, or maintainability
  2. Discrete and actionable (specific issue, not general concern)
  3. Introduced in this change (not pre-existing)
  4. Author would fix it if aware (not intentional design choice)
  5. No assumptions about unstated intent

Do NOT flag: trivial style issues, pre-existing problems, hypothetical issues, documentation gaps, or missing tests.

Output Format

For each finding:

### [P{0-2}] {Brief title}
**Files:** `file/path.ts:123` (primary), `file/path.test.ts` (add test)
**Problem:** {Why it's a bug, what triggers it, severity}
**Fix:** {Specific approach, not just "fix the bug"}
**Done when:** {How to verify the fix worked}

Multiple valid approaches? Ask the user to choose before continuing.

If no issues found, report: "No issues found."

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. 4d ago First seen · 57 lines · 35 tokens per session scan A 0a5242c14e03

Subscribe to this mod's changes

senior-code-reviewer is an agent published in the GitHub repository brsbl/ottonomous (15 stars, last pushed 10d ago), licensed MIT. It adds 35 tokens to every session and 484 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-30.

Related

Other agents, from other repositories

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

plan-synthesizer

Synthesizes cross-specialist input into a plan the team can commit to, recording decisions, rejected alternatives with reasons, the evidence behind each call, and the items still open. Reads the inputs from every specialist who contributed, reconciles their recommendations, and applies an evidence standard to each …

testdouble/han · 159 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

software-architect

Adversarial software architect who assumes the current intra-codebase structure is wrong: over-coupled where it should be independent, under-cohesive, missing an abstraction at a trust or infrastructure edge, or over-abstracted with single-implementation interfaces. Synthesizes structural, behavioral, concurrency, and…

testdouble/han · 195 tokens

risk-analyst

Assesses the risk of inaction for architectural findings produced by upstream analysis agents. Evaluates each finding across four dimensions: likelihood, severity, blast radius, and reversibility. Receives pre-digested structural, behavioral, and concurrency findings — does not perform its own codebase analysis. Use…

testdouble/han · 140 tokens

adversarial-validator

Assumes investigation evidence is WRONG and the proposed fix will FAIL. Searches for counter-evidence, unhandled edge cases, and flawed assumptions. Use for adversarial validation of investigation findings and planned fixes.

testdouble/han · 45 tokens