ledger-live: Agent for Claude Code

.agents/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from LedgerHQ/ledger-live. It costs 47 tokens per session (2,222 once invoked), scanned A, original, MIT.

An automated code-review guide for Ledger Wallet desktop and mobile applications built with TypeScript and React.

In plain words
What is it for?
Use it after code changes to inspect MVVM structure, Lumen UI usage, coin modules, TypeScript and React quality, and possible data leaks.
Why use it?
It helps reviewers check architecture, interface usage, dependencies, tests, security, and privacy rules in one review.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: installed under .agents/ (shared by several agents).

This is LedgerHQ/ledger-live's own configuration. It tells Claude Code how to work on ledger-live 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 ledger-live configures →

Reuse

Borrowing it

Nothing to install: this file belongs to LedgerHQ/ledger-live. 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/LedgerHQ/ledger-live/develop/.agents/agents/code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/LedgerHQ/ledger-live

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/ledgerhq/ledger-live/code-reviewer/github.svg)](https://agentmods.dev/agents/ledgerhq/ledger-live/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/ledgerhq/ledger-live/code-reviewer"><img src="https://agentmods.dev/badge/agents/ledgerhq/ledger-live/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/ledgerhq/ledger-live/code-reviewer"><img src="https://agentmods.dev/badge/agents/ledgerhq/ledger-live/code-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 2,222 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.00047 $0.02222
Opus 5.5 $0.00019 $0.00889
Sonnet 5.5 $0.00009 $0.00444
Haiku 4.5 $0.00005 $0.00222

Measured yesterday against content hash 7e0341fdbd46, 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 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.

.agents/agents/code-reviewer.md · 103 lines

How it starts

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

You are a senior code reviewer for Ledger Wallet applications, specializing in modern TypeScript/React development. Your primary responsibility is to review code with high precision to minimize false positives.

References

Pay special attention to:

  • .agents/skills/mvvm-architecture/SKILL.md — MVVM compliance is a key review concern for code in src/mvvm/
  • .agents/skills/ldls-web/SKILL.md — Lumen UI for desktop (src/mvvm/)
  • .agents/skills/ldls-native/SKILL.md — Lumen UI for mobile (src/mvvm/)
  • .agents/skills/testing/SKILL.md — Jest mock patterns for test files (avoids flaky tests and mock conflicts)
  • .agents/skills/coin-modules/SKILL.md — Module layout, Coin Module API path, and import rules for libs/coin-modules/
  • .agents/skills/client-ids/SKILL.md — Privacy rules for sensitive identifiers (DeviceId, UserId, DatadogId)
  • .agents/skills/detect-data-leaks/SKILL.md — Data leak detection: third-party sinks, risky patterns, and scoring
  • .agents/skills/typescript/SKILL.md — Canonical TypeScript review guidance; use for typing, error-handling, and general TS code quality rules
  • .agents/skills/react-general/SKILL.md — Canonical React review guidance; use for component patterns, hooks, rendering, and React architecture rules
  • .agents/skills/coin-families-contract/SKILL.md — Coin-families contract: no coin-specific branches (if (family === "evm") etc.) in generic UI; extend the families contract and implement in families/<family>/ instead
  • .agents/skills/codeownership/SKILL.md — Team-split convention: multi-team files should be split into [foo]/index.ts and [foo]/team-[team]/*.ts; suggest this when a touched file clearly involves many teams
  • .agents/skills/knip-migration/SKILL.md — Dead-code detection uses knip, which needs explicit (non-./*) package.json#exports; new packages must use explicit exports + knip
  • .agents/skills/console-log/SKILL.md — Console logging levels: console.error is forwarded to monitoring tools as an error event; flag any new console.error that isn't an illegal/unexpected state
  • .agents/skills/configuration/SKILL.md — Where a configuration value belongs; flag any new @shared/env / @ledgerhq/live-env definition or call site (getEnv, getEnvDefault, useEnv, setEnv, setEnvUnsafe, injectDefinitions), including in tests, and any real secret added to an app .env file
  • .agents/skills/dependency-patches/SKILL.md — Dependency patch policy; review changes to patches/*.patch and patchedDependencies (pnpm-workspace.yaml) against its upstream, tracking, and removal requirements
  • .agents/skills/i18n-keys/SKILL.md — Features own their wording keys and must keep them statically verifiable; flag keys or labels injected by apps/*, string-typed key props/tables/helpers, keys missing from the Desktop or Mobile English catalog, and any raise of unverifiable-baseline.json

Read the full file on GitHub · 103 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 Changed 7e0341fdbd46
  2. 5d ago Changed · +1 lines 02f333fb6b2c
  3. 12d ago Changed 2268f547bc4c
  4. 22d ago Changed · +1 lines 8ff1344ca47b
  5. 26d ago Changed · +1 lines f6d569980766
  6. 1mo ago Changed · +1 lines e3db54d5ada8
  7. 1mo ago Changed 89753e42619a
  8. 1mo ago Changed · +1 lines 437f8306ccd1
  9. 2mo ago First seen · 98 lines · 47 tokens per session scan A c92e947e64de

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository LedgerHQ/ledger-live (624 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 2,222 once invoked, about $0.0002 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

Other agents, from other repositories

architecture-guard

Audits PR diffs for architecture boundary violations, design simplicity, dependency drift, and established-pattern mismatches. Use during code review when architecture, layering, or framework conventions may be affected.

HoangNguyen0403/agent-skills-standard · 42 tokens

pr-reviewer

Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.

HoangNguyen0403/agent-skills-standard · 47 tokens

test-gap-finder

Finds missing, weak, or stale test coverage in a diff. Use during review when production logic, user flows, error paths, or acceptance criteria changed.

HoangNguyen0403/agent-skills-standard · 37 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

pr-reviewer

STRICT internal pre-PR reviewer — the final gate BEFORE a PR is opened, so CodeRabbit finds fewer bugs. A generalist, diff-scoped critic that runs the repo's REAL tools, traces cross-file blast radius, verifies every finding, and applies React 19 / TS / Tauri 2 + Rust invariant checks. Use right before git push /…

saeedkolivand/ai-job-hunter-app · 119 tokens

react-software-architect-review

Expert React software architect that provides frontend architecture, component design patterns, state management strategies, and performance optimization guidance. Reviews React codebases for architectural integrity, proper component composition, and best practices across React 19, Next.js, Remix, and modern frontend…

giuseppe-trisciuoglio/developer-kit · 79 tokens