typescript-reviewer

typescript-reviewer is an agent for Claude Code from KevinZai/commander. It costs 47 tokens per session (1,095 once invoked), scanned A, original, MIT.

A code-review agent for TypeScript, a programming language commonly used for typed JavaScript applications. It checks type safety, asynchronous code, module formats, and security issues, then rates findings by severity.

In plain words
What is it for?
Use it to review TypeScript changes and identify type, module, asynchronous-code, and security problems.
Why use it?
General reviews may miss TypeScript-specific mistakes, such as unsafe types, incomplete union handling, or incorrect async behavior.

Agent for Claude Code

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

Part of the commander plugin — 22 agents, 29 hooks, 1 plugin shipped together

Good fit Use it to review TypeScript changes and identify type, module, asynchronous-code, and security problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinzai/commander/typescript-reviewer
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/KevinZai/commander

Made for: Claude Code.

Or install commander, the plugin that ships this one along with the rest of its 22 agents, 29 hooks, 1 plugin.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinzai/commander/typescript-reviewer"><img src="https://agentmods.dev/badge/agents/kevinzai/commander/typescript-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 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,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00047 $0.01095
Opus 5.5 $0.00019 $0.00438
Sonnet 5.5 $0.00009 $0.00219
Haiku 4.5 $0.00005 $0.00110

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

Security

Grade A, and why

typescript-reviewer scanned grade A 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 5d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

3. Surface hotspots: `Grep` for `: any`, `as any`, `as unknown as`, `@ts-ignore`, `eval(`, `new Function`, `child_process`, `JSON.parse(`, `Object.assign(` on request data. Triage each hit in context; most are fine.
commander/cowork-plugin/agents/typescript-reviewer.md · 90 lines

How it starts

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

TypeScript reviewer agent

Own the TypeScript-specific review of one change set; the general reviewer agent covers language-neutral concerns. Your job is to refute the claim that the TypeScript code is correct, idiomatic and safe. Treat the author's summary and reported results as claims, not evidence. Return severity-rated findings anchored to path:line, each with a concrete fix, and a verdict. When you cannot establish correctness, the verdict is refuted.

Protocol

  1. Scope the change: git diff --stat <base>...HEAD and git diff <base>...HEAD -- <TypeScript paths>. Read each changed file around every hunk.
  2. Read the project configuration that sets the review baseline: tsconfig.json (strict flags), package.json (type, exports, scripts), lint config.
  3. Surface hotspots: Grep for : any, as any, as unknown as, @ts-ignore, eval(, new Function, child_process, JSON.parse(, Object.assign( on request data. Triage each hit in context; most are fine.
  4. Walk every hunk against the checklist below. For each candidate finding, try to disprove it (an existing guard, a type, a test, an unreachable path) before keeping it.
  5. For security findings, trace the input from its entry point to the sink and state the path.
  6. Run the toolchain checks that exist, without installing anything: npx tsc --noEmit -p . and the project's lint script (npm run lint) when defined. Record each command and result.
  7. Grep for the same defect in sibling code and list occurrences.

Checklist

Type safety

  • strict off, or strictNullChecks/noImplicitAny disabled.
  • any, as casts and @ts-ignore without a justifying comment; unknown cast without a type guard.
  • Loose generics (<T> that should be <T extends Base>); non-exhaustive switches on discriminated unions (missing never check).

Async

  • Promises called without await, return or explicit void; floating promises in event handlers.
  • Shared state mutated across concurrent awaits or inside Promise.all.
  • async functions that swallow errors; JSON.parse on untrusted input without handling.

Read the full file on GitHub · 90 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. 5d ago Changed · -119 lines · +9 tokens per session 0fe709ff85e7
  2. 1mo ago First seen · 209 lines · 38 tokens per session scan A 2bfd68f83b66

Subscribe to this mod's changes

typescript-reviewer is an agent published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 1,095 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

typescript-expert

Use this agent when you need expert TypeScript development with focus on type safety, advanced type system features, and modern ES patterns. This agent specializes in TypeScript 5.7+, strict type checking, generics, and type-level programming for building robust, maintainable applications. Examples: Context: User…

andisab/swe-marketplace · 408 tokens

typescript-reviewer

TypeScript-specific code reviewer focusing on type safety, async patterns, and frontend best practices. Use after implementing TypeScript code to catch TypeScript-specific issues.

DmitriyYukhanov/claude-plugins · 35 tokens

typescript-code-reviewer

A read-only code reviewer for TypeScript, TSX, React, and Next.js projects. It checks changed code and reports specific issues with severity, but does not edit files.

oikon48/claudecode-book · 157 tokens

node-architect

Node.js + TypeScript architecture specialist. Validates layer boundaries, type safety discipline, async patterns, and module structure. Dispatch when touching route handlers, service logic, or data models.

onlygian/G-Forge · 41 tokens

symfony-reviewer

Reviews Symfony code for quality, architecture, and best practices. Use proactively after code modifications to check controller thickness, value object usage, service coupling, and Symfony conventions. Triggers on code review, quality audit, or architecture check requests.

dev-toolings/superpowers-symfony · 52 tokens

python-expert

Use this agent when you need expert Python development with focus on modern async programming, type safety, and architectural patterns. This agent specializes in FastAPI, Pydantic, SQLAlchemy 2.0, and advanced Python features including async/await, type hints, protocols, and class composition patterns. Examples…

andisab/swe-marketplace · 446 tokens