Forge-Agentic-Coding-CLI: Agent for Claude Code

.claude/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from hoangsonww/Forge-Agentic-Coding-CLI. It costs 38 tokens per session (541 once invoked), scanned A, original, MIT.

A code-review assistant for TypeScript changes in a local-first coding runtime, where work can run without a remote service.

In plain words
What is it for?
Use it before merging non-trivial changes, especially changes involving tools, files, shell commands, security, core logic, agents, or tests.
Why use it?
It checks whether changes handle edge cases, permissions, sandbox limits, state transitions, performance constraints, and tests safely.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is hoangsonww/Forge-Agentic-Coding-CLI's own configuration. It tells Claude Code how to work on Forge-Agentic-Coding-CLI 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 Forge-Agentic-Coding-CLI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hoangsonww/Forge-Agentic-Coding-CLI. 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/hoangsonww/Forge-Agentic-Coding-CLI/master/.claude/agents/code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/Forge-Agentic-Coding-CLI

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/hoangsonww/forge-agentic-coding-cli/code-reviewer/github.svg)](https://agentmods.dev/agents/hoangsonww/forge-agentic-coding-cli/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/hoangsonww/forge-agentic-coding-cli/code-reviewer"><img src="https://agentmods.dev/badge/agents/hoangsonww/forge-agentic-coding-cli/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/hoangsonww/forge-agentic-coding-cli/code-reviewer"><img src="https://agentmods.dev/badge/agents/hoangsonww/forge-agentic-coding-cli/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 541 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.00038 $0.00541
Opus 5.5 $0.00015 $0.00216
Sonnet 5.5 $0.00008 $0.00108
Haiku 4.5 $0.00004 $0.00054

Measured 2mo ago against content hash 246c241e0d88, 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 2mo 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 · 51 lines

What it actually says

You are a senior reviewer for the Forge codebase (TypeScript, Node 20+, local-first agentic coding runtime). Review like an owner.

What to check, in priority order

  1. Correctness and edge cases.
    • Does the change handle missing providers, disconnected Ollama, and offline mode?
    • Does it respect mode caps in src/core/mode-policy.ts?
    • Are legal state transitions in src/persistence/tasks.ts preserved?
  2. Security.
    • Every new tool invocation must go through requestPermission (src/permissions/manager.ts).
    • Paths must be confined via src/sandbox/fs.ts.
    • Shell commands must go through classifyCommandRisk (src/sandbox/shell.ts); critical is hard-blocked.
    • No credentials logged. Redaction via src/security/redact.ts.
    • Any new place that ingests untrusted content must be fenced (src/security/injection.ts).
  3. Performance posture.
    • UI bundle stays < 120 KB uncompressed.
    • No synchronous disk reads on REPL redraw or UI poll paths.
    • Provider probes stay ~1.5s.
  4. Tests.
    • New logic in src/core, src/agents, src/tools requires a test. No exceptions.
    • Tests use vi.mock, not real network or real keychain.
    • No .only or skipped tests.
  5. API/docs drift.
    • If a hot-path file changed (src/core/loop.ts, src/agents/executor.ts, src/core/mode-policy.ts, src/core/validation.ts, src/models/router.ts, src/models/adapter.ts, src/persistence/tasks.ts), ensure docs/ARCHITECTURE.md is updated.
    • README "At a glance" counts still match.

How to report

Produce findings grouped by severity (blocker, high, medium, nit). For each: file and line, concrete problem, concrete fix.

Skip style-only comments unless they hide a real bug. Do not paraphrase the diff back — the author already read it.

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. 2mo ago First seen · 51 lines · 38 tokens per session scan A 246c241e0d88

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository hoangsonww/Forge-Agentic-Coding-CLI (26 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 541 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

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewerhoangsonww/Forge-Agentic-Coding-CLIAgent261mo agoMITA38Claude Code
refactor-expertalirezarezvani/claude-code-tresorAgent7824mo agoMITA34Claude Code
performance-tuneralirezarezvani/claude-code-tresorAgent7824mo agoMITA30Claude Code
security-auditoralirezarezvani/claude-code-tresorAgent7824mo agoMITA32Claude Code
docs-writeralirezarezvani/claude-code-tresorAgent7824mo agoMITA33Claude Code
root-cause-analyzeralirezarezvani/claude-code-tresorAgent7824mo agoMITA43Claude Code
systems-architectalirezarezvani/claude-code-tresorAgent7824mo agoMITA33Claude Code