ai-tab-optimizer: Agent for Claude Code

.claude/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from eiler2005/ai-tab-optimizer. It costs 17 tokens per session (185 once invoked), scanned A, original, MIT.

A code review that checks implementation details, edge cases, error handling, and consistency with project rules.

In plain words
What is it for?
Use it to review selected files or changes and get file-and-line references with suggested fixes.
Why use it?
It helps catch bugs and design problems involving browser extensions, TypeScript, state handling, storage, and identifiers before they reach users.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is eiler2005/ai-tab-optimizer's own configuration. It tells Claude Code how to work on ai-tab-optimizer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-tab-optimizer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to eiler2005/ai-tab-optimizer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/eiler2005/ai-tab-optimizer/master/.claude/agents/code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/eiler2005/ai-tab-optimizer

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/eiler2005/ai-tab-optimizer/code-reviewer"><img src="https://agentmods.dev/badge/agents/eiler2005/ai-tab-optimizer/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 185 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.00017 $0.00185
Opus 5.5 $0.00007 $0.00074
Sonnet 5.5 $0.00003 $0.00037
Haiku 4.5 $0.00002 $0.00018

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

Security

Grade A, and why

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 11d 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.

.claude/agents/code-reviewer.md · 20 lines

What it actually says

You are a senior code reviewer for the AITab project (Chrome Extension + FastAPI server).

Review the specified files or changes for:

  • Edge cases and error handling gaps
  • Consistency with existing patterns (Zustand actions, discriminated union messages, @shared/* imports)
  • Potential Chrome MV3 issues (ephemeral service worker, CSP violations, storage quota)
  • Tab ID vs URL correctness (tab IDs are ephemeral, URLs are stable keys)
  • TypeScript strictness (no any, proper type narrowing)
  • Unnecessary abstractions or over-engineering

Reference CLAUDE.md and extension/CLAUDE.md for project conventions. Provide specific file:line references and suggested fixes.

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. 11d ago Changed ada096d53bf4
  2. 2mo ago First seen · 20 lines · 17 tokens per session scan A bb170ae0bf57

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository eiler2005/ai-tab-optimizer (3 stars, last pushed 11d ago), licensed MIT. It adds 17 tokens to every session and 185 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-31.

Related

Other agents, from other repositories

code-reviewer

Use this agent when you need expert code review of recently written or modified code. This agent should be invoked after completing a logical chunk of functionality, implementing a new feature, fixing a bug, or making significant changes to existing code. The agent focuses on collaborative improvement rather than…

PostHog/posthog · 415 tokens

check

Code quality auditor for the Trellis channel runtime. Reviews uncommitted diffs against task artifacts and specs, self-fixes issues, and reports verification results.

yuqie6/ProductFlow · 34 tokens

claude-md-compliance-checker

Use after completing implementation tasks to verify changes comply with CLAUDE.md project rules — file boundaries (src/, e2e/ only), path alias usage (@/), feature-slice architecture, AIDEV-NOTE comments, scope creep, and forbidden actions (unauthorized commits, API contract changes). NOT for general code quality …

bartstc/vite-ts-react-template · 85 tokens

logic-design

Decide where new application logic belongs — component shape, logic layer, store variant — and return a recommendation with the schematic to run and what to verify. Use the logic-review agent for existing code.

AmadeusITGroup/otter · 43 tokens

logic-review

Review existing components, services, and stores for misplaced logic and report findings with file, line, the rule broken, and the fix. Use the logic-design agent to decide where something new should go.

AmadeusITGroup/otter · 43 tokens

customer-backend-specialist

Customer-facing backend specialist focused on production safety, API compatibility, privacy, migrations, observability, idempotency, supportability, and rollout risk.

DDS-Solutions/AI-TadPole-OS · 36 tokens