frontend-review

A code-review agent for TypeScript and React frontend files. It checks project conventions around user-interface elements, data loading, types, component size, and loading or error states.

In plain words
What is it for?
Use it after changing files under components/frontend/src/. It checks for issues such as manual network requests, raw form elements, any types, interface declarations, oversized components, and missing states.
Why use it?
It catches patterns that can make frontend code inconsistent, harder to maintain, or incomplete for users.

Agent for Claude Code

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/ambient-code/platform/frontend-review
Clone the repo
git clone --depth 1 https://github.com/ambient-code/platform

Made for: Claude Code.

Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 749 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.00045 $0.00749
Opus 5 $0.00023 $0.00375
Sonnet 5 $0.00009 $0.00150
Haiku 4.5 $0.00005 $0.00075

Measured yesterday against content hash 024da8228180, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-review 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 yesterday.

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/frontend-review.md · 117 lines

How it starts

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

Frontend Review Agent

Review frontend code against documented conventions.

Context

Load these files before running checks:

  1. specs/standards/frontend/conventions.spec.md
  2. specs/standards/frontend/react-query.spec.md
  3. components/frontend/DESIGN_GUIDELINES.md (if it exists)

Checks

F1: No raw HTML elements (Critical)

grep -rn "<button\|<input\|<select\|<dialog\|<textarea" components/frontend/src/ --include="*.tsx" | grep -v "components/ui/"

Must use Shadcn UI components from @/components/ui/.

F2: No manual fetch() in components (Critical)

grep -rn "fetch(" components/frontend/src/app/ components/frontend/src/components/ --include="*.tsx" --include="*.ts" | grep -v "src/app/api/"

Use React Query hooks from @/services/queries/.

F3: No interface declarations (Major)

grep -rn "^export interface \|^interface " components/frontend/src/ --include="*.ts" --include="*.tsx" | grep -v "node_modules"

Use type instead of interface.

F4: No any types (Critical)

grep -rn ": any\b\|as any\b\|<any>" components/frontend/src/ --include="*.ts" --include="*.tsx" | grep -v "node_modules\|\.d\.ts"

Use proper types, unknown, or generic constraints.

F5: Components under 200 lines (Minor)

find components/frontend/src/ -name "*.tsx" -print0 | xargs -0 wc -l | sort -rn | head -20

Flag components exceeding 200 lines. Consider splitting.

F6: Loading/error/empty states (Major)

For components using useQuery:

  • Must reference isLoading or isPending
  • Must reference error
  • Should handle empty data
grep -rl "useQuery\|useSessions\|useSession" \
  components/frontend/src/app/ components/frontend/src/components/ --include="*.tsx"

Then check each file for isLoading\|isPending and error references.

F7: Single-use components in shared directories (Minor)

Check components/frontend/src/components/ for components imported only once. These should be co-located with their page in _components/.

Read the full file on GitHub · 117 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. yesterday First seen · 117 lines · 45 tokens per session scan A 024da8228180

Subscribe to this mod's changes

frontend-review is an agent published in the GitHub repository ambient-code/platform (129 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 749 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