code-review-knowledge

Installation
SKILL.md

Review knowledge: AgentRun

Each section is a path glob, then the invariants that broke before there, with the PR where a reviewer caught it. A pattern is a lead to check, not a finding: prove it against the change. Built from 2,766 fixed Greptile findings, our reviewer's threads and the learned review notes, PRs #1-#2328. Keep it under 10 KB; split an area into its own file under references/ and link it here when it grows.

Money: packages/serve/src/{cap,budget,decision-cap}.ts, packages/serve/src/runner/{metrics,model-route}.ts, packages/run-adapters/src/**

  • Unknown spend is null and stays unknown: ?? 0 on spentUsd/bookedUsd books it as $0 and lets a capped run go on (#2232 cap.ts, #1952 port.ts, admit.ts). A zero-dollar hold is still booked.
  • A request sent with no turn yet still counts (#2303). A lost request keeps its bound (#1979). A retried settle after a failed end-mark write books once (#1952). A hold saved before admission is not spend (#1861).
  • The DSL's budget_usd is the host's: no runner enforces it (by design).

Secrets: packages/serve/src/{secrets,secret-cut,tool-keys}.ts, packages/serve/src/runner/{live-ticker,redact,store-secrets,claim-secrets}.ts, packages/serve/src/learn/secrets.ts, packages/run-adapters/src/host/proxy.ts, packages/pi-durable-agent/src/timeline/**

Installs
1
GitHub Stars
1.2K
First Seen
Nov 19, 2026