runner-review

A code-review agent for Python files in the ambient runner component. It checks the code against rules for asynchronous work, credentials, errors, and secrets.

In plain words
What is it for?
Use it after changing files under components/runners/ambient-runner/. It produces a review grouped by severity and reports how many checks passed.
Why use it?
It catches common safety and reliability problems after runner code changes, such as blocking an async task, exposing credentials, or hiding subprocess failures.

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

Made for: Claude Code.

Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 390 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.00040 $0.00390
Opus 5 $0.00020 $0.00195
Sonnet 5 $0.00008 $0.00078
Haiku 4.5 $0.00004 $0.00039

Measured 2d ago against content hash ac3a4e6ca435, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

runner-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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/runner-review.md · 69 lines

What it actually says

Runner Review Agent

Review runner Python code against documented conventions.

Context

No runner-specific DEVELOPMENT.md exists yet. Review against general Python best practices and the patterns visible in components/runners/ambient-runner/src/.

Checks

R1: Proper async patterns (Major)

No blocking calls (open(), requests., time.sleep()) inside async functions. Use aiofiles, httpx, asyncio.sleep().

R2: Credential handling (Blocker)

No hardcoded credential values. Credentials loaded from environment or K8s secrets. No credentials in log statements.

R3: Error propagation from subprocess (Critical)

Subprocess calls must propagate errors, not swallow them. Return codes checked, errors raised or logged with context.

R4: No hardcoded secrets or API keys (Blocker)

grep -rn "sk-\|api_key=\|password=" components/runners/ambient-runner/ --include="*.py" | grep -v "_test\|test_\|example\|mock"

Output Format

# Runner Review

## Summary
[1-2 sentence overview]

## Findings

### Blocker
[Must fix — or "None"]

### Critical
[Should fix — or "None"]

### Major
[Important — or "None"]

### Minor
[Nice-to-have — or "None"]

## Score
[X/4 checks passed]

Each finding includes: file:line, problem description, convention violated, suggested fix.

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. 2d ago First seen · 69 lines · 40 tokens per session scan A ac3a4e6ca435

Subscribe to this mod's changes

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