code-review

code-review is an agent for Claude Code from navikt/copilot. It costs 28 tokens per session (2,431 once invoked), scanned A, original, MIT.

A code-review agent for Nav applications. It checks Kotlin, TypeScript, Go, Dockerfiles, and GitHub Actions for bugs, security problems, and violations of Nav’s coding conventions, then reports its findings.

In plain words
What is it for?
Use it to review application code and deployment files, run the project’s checks, and produce a report of bugs, security issues, formatting or type errors, and convention violations.
Why use it?
It gives a structured review and points out problems that may be missed during normal development; it does not change the code itself.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; $skill-name invocation; Copilot chat-mode frontmatter (tools: vscode/*).

Good fit Use it to review application code and deployment files, run the project’s checks, and produce a report of bugs, security issues, formatting or type errors, and convention violations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navikt/copilot/code-review
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/navikt/copilot

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-review

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/navikt/copilot/code-review"><img src="https://agentmods.dev/badge/agents/navikt/copilot/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 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,431 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.00028 $0.02431
Opus 5.5 $0.00011 $0.00972
Sonnet 5.5 $0.00006 $0.00486
Haiku 4.5 $0.00003 $0.00243

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

Security

Grade A, and why

code-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 today.

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/code-review.agent.md · 271 lines

How it starts

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

Code Review Agent

Reviews Kotlin, TypeScript, Go, Dockerfiles, and GitHub Actions for bugs, security vulnerabilities, and violations of Nav conventions. Reports findings — does not fix code itself.

Use Low effort when the client supports effort selection. On 30 September 2026, Low found every planted defect on the correct line in 10/10 runs; the earlier High recommendation rested on an invalid measurement (see docs/modellvalg.md). Verify every reported line against the diff.

Commands

Run with run_in_terminal:

# Run all checks (lint, typecheck, format, tests)
cd apps/<app-name> && mise check

# Run tests only
cd apps/<app-name> && mise test
Agent / skill Owns
@security-champion-agent Threat modeling, GDPR compliance, secrets management
@accessibility-agent WCAG compliance, ARIA attributes, keyboard navigation
$observability-setup Metrics, tracing, health endpoints, alerting
@aksel-agent Aksel component usage, spacing tokens, responsive layout
$nav-auth JWT validation, TokenX, ID-porten, Entra ID

Review Process

  1. Read the files to review (use read tool or accept user-provided code)
  2. Run mise check to get lint/type/format errors
  3. Analyze against the checklist below
  4. Report findings using the output format

Show progress as you work:

🔍 Scanning — reading files and running mise check...
📊 Analyzing — checking against Nav conventions and security...
📋 Findings — 2 blockers, 3 suggestions, 1 nit

Priority System

  • 🔴 Blocker — Must fix before merge. Bugs, security issues, data loss risks.
  • 🟡 Suggestion — Should fix. Improves quality, readability, or maintainability.
  • 💭 Nit — Optional. Style preferences, minor improvements.

Read the full file on GitHub · 271 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. today Changed b0f80e958c5c
  2. 1mo ago Changed 9d50afc2daa1
  3. 1mo ago Changed · -5 lines fa76255226b8
  4. 1mo ago Changed 811b2a6765ff
  5. 1mo ago Changed · +1 lines 0ac1d56b79f5
  6. 2mo ago Changed · +2 lines 5a019cbf3eda
  7. 2mo ago Changed · +10 lines 10ce155690b4
  8. 2mo ago Changed afed6f66d303
  9. 3mo ago Changed · -1 lines 3406168d68a9
  10. 3mo ago First seen · 264 lines · 28 tokens per session scan A ba64c6ac5673

Subscribe to this mod's changes

code-review is an agent published in the GitHub repository navikt/copilot (65 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 2,431 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-30.

Related

code-review compared with agents from other repositories

code-review next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewnavikt/copilotAgent65todayMITA28Claude Code
RPI ReviewerAndyElessar/skillsAgent22d agononeA31Claude Code
pr-reviewerfeiskyer/claude-code-settingsAgent1.7k28d agoMITA40Claude Code
loom-code-reviewercosmix/loomAgent662d agoMITA29Claude Code
critical-reviewersammcj/agentic-codingAgent175yesterdayApache-2.0A52Claude Code
senior-software-developerpjt222/agent-almanacAgent46yesterdayMITA25Claude Code
code-reviewerpjt222/agent-almanacAgent46yesterdayMITA24Claude Code