惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Register - Security
The Register - Security
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
N
Netflix TechBlog - Medium
量子位
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
H
Help Net Security
D
Docker
D
DataBreaches.Net
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
B
Blog
博客园 - 聂微东
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
The Cloudflare Blog
F
Full Disclosure
GbyAI
GbyAI
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理
Recent Announcements
Recent Announcements
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
博客园 - 叶小钗
小众软件
小众软件
V
Visual Studio Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Recorded Future
Recorded Future
J
Java Code Geeks
雷峰网
雷峰网
P
Privacy & Cybersecurity Law Blog
C
Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Webroot Blog
Webroot Blog
美团技术团队
N
News | PayPal Newsroom
G
Google Developers Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园_首页
V
Vulnerabilities – Threatpost

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - adamjgmiller/adamsreview: Multi-lens code review pipeline for Claude Code: deep review (Claude or Codex), auto-fix loop, interactive walkthrough, external-finding injection.
2026-05-11 · via Hacker News: Show HN

Multi-stage code review for Claude Code — parallel sub-agent detection, validation passes, persistent JSON state, and an automated fix loop that re-reviews and reverts regressions before committing.

On my own PRs, it's been catching dramatically more real bugs than Claude Code's built-in /review, /ultrareview, CodeRabbit, Greptile, and Codex's built-in review — while producing fewer false positives. (Anecdotal, n=me.) Modeled after the built-in /review and extended into a six-command pipeline. Runs against your regular Claude Code subscription (Max plan recommended) — unlike /ultrareview, which charges against your Extra Usage pool.

/plugin marketplace add adamjgmiller/adamsreview
/plugin install adamsreview@adamsreview

The six commands:

  • /adamsreview:review — multi-lens code review of a branch or PR. Up to seven parallel sub-agent lenses (correctness, security, UX, etc.) feed a dedup pass, a cheap-then-deep validation gate, and (optionally) a holistic Opus cross-cutting pass. High-confidence auto-fix proposals are pre-computed so :fix and :walkthrough can batch-accept them in one confirm. --ensemble adds a Codex CLI pass and PR bot-comment scrape on top of the internal Claude lenses.
  • /adamsreview:codex-review — Codex CLI peer to :review. Same artifact shape, drop-in for everything downstream (:fix, :add, :walkthrough, :promote). Effort tunable via --effort low|medium|high|xhigh (default high).
  • /adamsreview:add — inject externally-sourced findings (a Claude Code cloud /ultrareview paste, an Opus once-over, a teammate's note) into the most recent review's artifact. Deduped against what's already there, validated by the same gates, re-published to the existing PR comment.
  • /adamsreview:walkthrough — interactive driver for findings :fix would skip. Uses the harness's AskUserQuestion UI to walk through uncertain or human-judgment items one by one — promote what you want auto-fixed, skip the rest. Pre-computed auto-fix proposals are batch-accepted up front; the remainder get per-finding briefing + options + recommendation. Posts a decisions log to the PR.
  • /adamsreview:fix — automated fix loop. Dispatches per-fix-group sub-agents in parallel, then re-reviews the work with Opus, reverts any regressions, and commits the survivors (one combined commit by default; --granular-commits for one per group).
  • /adamsreview:promote — human override that promotes a single finding to auto-fixable, bypassing the lane filter and score threshold.

Command files live at bare-stem paths under commands/; shared phase fragments and prompt references live under fragments/; helper scripts and the artifact schema live under bin/. The plugin runtime auto-adds bin/ to $PATH on load — no symlinks, no install script.

Recommended flow

On a non-trivial PR, the commands work best in this order:

  1. Review. /adamsreview:review — or /adamsreview:review --ensemble if you have the Codex CLI installed and want to pool a Codex pass plus a PR bot-comment scrape on top of the internal Claude lenses (higher token cost). Or /adamsreview:codex-review [--effort <level>] for a Codex-driven peer review (drop-in for everything downstream; effort tunable; no --ensemble).
  2. Add. (optional) /adamsreview:add <paste...> — if you ran a parallel review (cloud /ultrareview, Opus once-over, manual scan, etc.) that surfaced bugs the original review missed, paste the result here. The findings are validated by Phase 4 and land in the same artifact, deduped against what's already there. Auto-eligible additions feed step 4; non-eligible ones surface in step 3.
  3. Walkthrough. (optional) /adamsreview:walkthrough [threshold] — step through findings the fix command would skip (deep-manual, deep-report, and the entire light lane including light confirmed_mechanical), restricted to those scoring at or above $threshold (default 60) so low-signal items don't pad the session. Step 4.5 batch-accepts all findings carrying a pre-computed auto-fix proposal in one confirm (the fast path); the rest get per-finding briefing + options + recommendation via the harness's AskUserQuestion UI. Promote the ones you want auto-fixed with tailored fix-hints, skip the rest. Posts a decisions log to the PR for audit. Pass a lower threshold (e.g. /adamsreview:walkthrough 30) and pick the Full tier at the preflight prompt to audit Phase-3-demoted below_gate findings too.
  4. Fix. /adamsreview:fix — applies every auto-eligible finding (including whatever was added in step 2 and promoted in step 3). Phase 7.5 surfaces any remaining auto-fix proposals (light-lane / manual / report findings) for one-confirm batch-accept before Phase 8 dispatch. Default: one combined commit for all surviving fixes; pass --granular-commits for one commit per fix group. Per-group Phase-9 outcome lands in the commit message either way.

Each command is independent — you can go straight from review to fix if you only care about auto-eligible findings, or skip review entirely and run :fix against an existing artifact. Steps 2–4 can land days or weeks after step 1; the review artifact persists under ~/.adams-reviews/<slug>/<branch>/.

/adamsreview:promote <id> remains useful for one-off manual promotions outside the walkthrough flow (e.g. promoting a disproven finding with --force, or conceptually looping over a set of IDs — F003, F037, F039 — with --defer-publish on each so only the final invocation re-publishes to the PR).

Documents

  • CLAUDE.md — operational guide for Claude Code sessions working in this repo. Self-contained for routine work; read first on a fresh session.
  • docs/state-and-gates.md — finding state model, score gates, deep/light lanes (the normative spec).
  • docs/pipeline.md — phase trees and token-tally semantics for every command.
  • docs/helpers.md — helper-script inventory and the batched-helper pattern.
  • bin/schema-v1.json — JSON Schema for artifact.json (source of truth for artifact shape).
  • docs/archive/ — frozen design + build docs (2026-04-19 onward). DESIGN.md (rev 8) is the original normative spec; BUILD.md is the stage-by-stage journal. Not maintained; consult only for historical rationale.
  • plans/ — per-branch plan files. Active follow-ups live in GitHub issues; historical backlog at plans/old-backlog.md (frozen 2026-05-04).

Dependencies

Runtime

Tool Version Used by Notes
uv 0.7+ artifact-patch.py, artifact-render.py brew install uv. Scripts use a PEP 723 inline-script shebang (#!/usr/bin/env -S uv run --quiet --script) so uv fetches and caches jsonschema on first run — no venv, no global pip install
python3 3.10+ invoked by uv uv will install a matching Python if needed
bash 3.2+ all *.sh helpers Helpers are intentionally 3.2-portable (no declare -A, mapfile, ${var,,}), so macOS's default /bin/bash works as-is. On Windows, Git for Windows ships bash 5+ via Git Bash and Claude Code auto-routes through it
jq 1.6+ artifact-read.sh, log helpers brew install jq
gh 2.x artifact-publish.sh, external-scrape.sh brew install gh, gh auth login
git 2.x everywhere standard

Installation

macOS / Linux

  1. Install deps: brew install uv jq gh git (macOS) or the distro equivalent. (macOS's default /bin/bash 3.2 is fine — helpers are 3.2-portable.)
  2. In a Claude Code session: /plugin marketplace add adamjgmiller/adamsreview
  3. In the same session: /plugin install adamsreview@adamsreview

Windows (native)

  1. Install Git for Windows — provides Git Bash (bash 5+) and git, which Claude Code uses internally. Claude Code auto-routes #!/usr/bin/env bash helpers through Git Bash; set CLAUDE_CODE_GIT_BASH_PATH if Git Bash lives in a non-default location (see Troubleshooting).
  2. Install uv, jq, and the GitHub CLI.
  3. In a Claude Code session: /plugin marketplace add adamjgmiller/adamsreview and /plugin install adamsreview@adamsreview.

Install from a local checkout

If you've cloned this repo and prefer running from source — or you want to pin to a specific commit — two paths work without the GitHub marketplace round-trip:

  • Persistent install from a local path. In a Claude Code session, run /plugin marketplace add /path/to/adamsreview then /plugin install adamsreview@adamsreview. Same end state as the GitHub marketplace flow above — the plugin is registered under ~/.claude/ and survives restarts. Use . in place of the absolute path if your cwd is already the clone.
  • One-shot via --plugin-dir. claude --plugin-dir /path/to/adamsreview launches Claude Code with the clone loaded as a plugin for that session only. Nothing is written to ~/.claude/; re-launch without the flag and the plugin is gone. Handy for trying the plugin without any persistent state, or for running a specific checkout side-by-side with an installed version.

Both paths still require the runtime deps listed above (uv, jq, gh, bash, git).

Commands (post-install)

All invocations are plugin-namespaced:

  • /adamsreview:review [--ensemble] [--full]
  • /adamsreview:codex-review [--effort <low|medium|high|xhigh>] [--full]
  • /adamsreview:add [<paste...>] [--file <path> --line <N> --claim "..."]
  • /adamsreview:walkthrough [threshold]
  • /adamsreview:fix [threshold]
  • /adamsreview:promote <finding_id> [--reason "..."] [--fix-hint "..."]

--full (on :review and :codex-review) opts out of the trivial-mode optimization, forcing every detection lens to run even on small or docs-only diffs. Useful when you want full coverage on a deliberately-small PR; otherwise the default trivial-mode classifier is the right call.

No separate Python dep install. First invocation of any *.py helper triggers uv to resolve declared deps (jsonschema etc.) and cache them — this can take a few seconds on a fresh machine (see Troubleshooting). Subsequent runs are fast.

Plugin-author iteration

If you're hacking on the plugin itself (not just using it), scripts/dev-run.sh launches Claude Code with the working tree loaded as a plugin via claude --plugin-dir "$(pwd)" — no marketplace install needed. For install-path simulation from a working tree, run /plugin marketplace add . inside a Claude Code session.

Review state location

/adamsreview:review writes per-run state (artifact, trace, phase logs, token logs) under ~/.adams-reviews/<repo-slug>/<branch>/<review_id>/. Override with export ADAMS_REVIEW_REVIEWS_ROOT=/some/other/path if you want state elsewhere.

Why not ~/.claude/reviews/? Claude Code hardcodes a sensitive-file permission prompt for writes to ~/.claude/... that survives even bypassPermissions mode, and ~/.claude/reviews is not on the short list of exempt subdirs (.claude/commands, .claude/agents, .claude/skills). Keeping review state outside ~/.claude/ avoids dozens of permission prompts per run.

Migrating from pre-Stage-2.5 state. If you have reviews under ~/.claude/reviews/, either:

# Option A: move state to the new canonical root (recommended).
mv ~/.claude/reviews ~/.adams-reviews

# Option B: keep state at the old location via the env var (accepts the prompts).
export ADAMS_REVIEW_REVIEWS_ROOT=~/.claude/reviews

Token counts: what they measure

The rendered report can surface two numbers:

  • Sub-agent tokens — rolled up from the per-review tokens.jsonl log. Counts every dispatched sub-agent (lenses, validators, fix agents, post-fix reviewer, etc.) for this specific review. Precise. Always shown.
  • Orchestrator tokens — rolled up from the Claude Code session transcripts under ~/.claude/projects/<cwd-slug>/, filtered to assistant turns with timestamp >= review_started_at. Captures the main-session spend that subagent_tokens deliberately excludes. Opt-in — see below.

When both are populated they're complementary (no overlap), and together estimate total cost.

Orchestrator tokens are opt-in

macOS Sequoia and Tahoe show an "kitty (or your terminal) would like to access data from other apps" prompt the first time a shell helper reads files marked with the com.apple.provenance extended attribute. Every Claude Code transcript carries one, and bin/orchestrator-tokens.sh reads them — so the helper would trigger the prompt on the first lifecycle command of every review and (because the TCC cache for this gate is partial) repeatedly thereafter. To avoid pestering users, the helper defaults to skip.

To enable, do either:

  • Recommended — grant your terminal app Full Disk Access (System Settings → Privacy & Security → Full Disk Access → + your terminal). One toggle, permanent, silences this prompt class for everything launched from your terminal. Then export ADAMS_REVIEW_TALLY_ORCHESTRATOR=1 in your shell rc (~/.zshrc, ~/.bashrc, etc.) so the helper actually runs.
  • Just opt in without FDAexport ADAMS_REVIEW_TALLY_ORCHESTRATOR=1 and accept the macOS prompts when they fire. Each grant survives until the next OS update or terminal-app update; choose this if you want narrower permissions at the cost of clicking Allow periodically.

When opted out (the default), the helper exits 0 with one orchestrator-tally: skipped line and leaves the artifact's orchestrator_tokens field absent. The PR comment shows only Sub-agent tokens — still the precise per-review counter and the primary cost signal. Sub-agent tokens log under ~/.adams-reviews/, which carries no provenance xattr, so that path triggers no prompts.

Stale-data behavior. If you opt in for the initial review and then opt out before running /adamsreview:fix, the helper preserves the previously-written orchestrator_tokens value rather than wiping it. The rendered line shows the last-measured value, not a freshly-skipped zero — meaning it can under-report subsequent fix-time activity. Re-opt-in on the next lifecycle command refreshes. The reverse direction (opt out for review, opt in for fix) has no staleness: the fix-time tally's --since review_started_at window covers the full review→fix arc, so the first opt-in write captures everything.

Orchestrator tokens can over-count (when opted in)

The transcript scan is a pure time-window filter, so any Claude Code turn in the same working directory between review_started_at and the last tally gets counted — even if it's unrelated work. In practice that means:

  • Clean: review → fix back-to-back, or review → new review on updated codebase (each review's review_started_at excludes the prior one's turns).
  • Over-counts: review → unrelated work in the same cwd → fix (the unrelated turns land in the fix run's re-tally).
  • Mitigation: run the lifecycle commands close together, or do unrelated work in a different worktree (different cwd → different transcript directory → not scanned).

Sub-agent tokens don't have this problem — their log is per-review. If you need a precise total, trust sub-agent tokens and treat orchestrator tokens as a rough ceiling. See bin/orchestrator-tokens.sh header for the full list of caveats.

Why uv instead of plain pip

PEP 668 (Python 3.12+ with Homebrew) marks system and user site-packages as externally managed and refuses direct pip install. The original plan assumed plain pip; uv's inline-script dep spec is the cleanest workaround: each Python helper is self-contained, runs without activation ceremony, and its dep list lives next to the code that imports it. Tradeoff: requires uv on the machine running the scripts.

Layout

adamsreview/                           ← this repo (plugin root)
├── CLAUDE.md                          ← operational guide (read first)
├── README.md                          ← this file
├── .claude-plugin/
│   ├── plugin.json                    ← plugin manifest (name: adamsreview)
│   └── marketplace.json               ← single-plugin marketplace
├── .gitattributes                     ← LF enforcement
├── docs/
│   └── archive/                       ← frozen historical references (not maintained)
│       ├── README.md                  ← frozen-as-of banner
│       ├── DESIGN.md                  ← original normative design (rev 8)
│       └── BUILD.md                   ← build journal (Stages 1–3 + hardening + walkthrough)
├── plans/                             ← per-branch plan files (umbrella + optional PRD/PLAN/JOURNAL)
├── test/                              ← smoke harness + fixtures
├── commands/                          ← bare-stem command files (plugin namespacing)
│   ├── review.md                      ← /adamsreview:review
│   ├── codex-review.md                ← /adamsreview:codex-review
│   ├── add.md                         ← /adamsreview:add
│   ├── walkthrough.md                 ← /adamsreview:walkthrough
│   ├── fix.md                         ← /adamsreview:fix
│   └── promote.md                     ← /adamsreview:promote
├── fragments/                         ← shared phase fragments + prompt references
│   ├── _prelude-shared.md             ← loaded by every command
│   ├── promote-core.md                ← shared precondition + patch (promote + walkthrough)
│   ├── 00-preflight.md … 10-post-fix-and-commit.md
│   │     (incl. 06b-auto-fix-hint.md for Phase 5.5)
│   ├── 02-ensemble-adapter.md         ← --ensemble pooling
│   ├── 01-codex-detection.md          ← Codex Phase 1 variant
│   ├── 05-codex-validation.md         ← Codex Phase 4 variant
│   ├── 06-codex-cross-cutting.md      ← Codex Phase 5 variant
│   ├── lens-prompts/                  ← per-lens detection prompts
│   └── lens-*-reference.md
├── bin/                               ← helper scripts (plugin runtime auto-adds to $PATH)
│   ├── include                        ← `!include <fragment>.md` wrapper
│   ├── schema-v1.json                 ← JSON Schema for artifact.json
│   ├── _common.py                     ← shared Python helpers
│   ├── artifact-patch.py              ← machine-state writer
│   ├── artifact-render.py             ← JSON → Markdown
│   ├── artifact-validate.sh           ← schema check (bash wrapper)
│   ├── artifact-read.sh               ← jq wrapper
│   ├── artifact-publish.sh            ← PR comment post/patch
│   ├── artifact-seed.sh               ← initial artifact scaffold
│   ├── claude-md-paths.sh             ← walk-up CLAUDE.md finder
│   ├── staleness.sh                   ← git diff intersection
│   ├── freshness-gate.sh              ← trace freshness check
│   ├── trivial-check.sh               ← trivial-mode classifier
│   ├── codex-poll.sh                  ← Codex CLI invocation + watchdog
│   ├── parse-validator-result.py      ← validator-output parser
│   ├── parse-with-repair.py           ← JSON-with-repair parser
│   ├── source-family-map.py           ← source-family lookup
│   ├── log-phase.sh                   ← trace.md + phases.jsonl appender
│   ├── log-tokens.sh                  ← tokens.jsonl appender
│   └── (other helpers: group-fixes.py, repo-slug.sh, comment-freshness.sh,
│      origin-crosscheck.sh, prior-fix-diff.sh, external-scrape.sh,
│      assign-finding-ids.sh, line-range-check.sh, tally-subagent-tokens.sh,
│      orchestrator-tokens.sh)
├── hooks/
│   ├── hooks.json                     ← SessionStart registration
│   └── dep-check.sh                   ← soft dep-missing warning at session start
└── scripts/
    └── dev-run.sh                     ← `claude --plugin-dir` wrapper (plugin-author iteration)

No symlinks, no install script. The plugin runtime discovers commands/, fragments/, bin/, and hooks/ by convention once the plugin is installed via /plugin install adamsreview@adamsreview.

Troubleshooting

First invocation is slow

The Python helpers (artifact-patch.py, artifact-render.py) use a PEP 723 inline-script shebang (#!/usr/bin/env -S uv run --quiet --script). On a fresh machine, the first run pauses for a few seconds while uv resolves a matching Python interpreter and fetches the jsonschema dep into its cache. Subsequent runs hit the cache and are effectively instant. This is a one-time cost per machine, not per review.

--ensemble mode requirements

/adamsreview:review --ensemble additionally requires the codex Claude Code plugin (the local Codex CLI is invoked through the plugin's codex-companion.mjs, not as a standalone CLI on $PATH). Without the plugin installed, the readiness gate prompts you to either continue without Codex (in PR mode that means PR-comment scraping only; in local mode it means internal lenses only — Phase 1.5 has no work to do) or stop and run /codex:setup first. The default (non-ensemble) mode has no such requirement.

Windows: Git Bash not found

Claude Code auto-discovers Git Bash on Windows and routes #!/usr/bin/env bash helpers through it. If the auto-discovery fails (non-default Git Bash install path, portable install, etc.), set CLAUDE_CODE_GIT_BASH_PATH to the absolute path of bash.exe before launching Claude Code — for example:

set CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe

or the $env:CLAUDE_CODE_GIT_BASH_PATH = ... equivalent in PowerShell.

Status

Current release: v0.4.0 (auto-fix-hint feature: Phase 5.5 + Phase 7.5 + Step 4.5). All six commands are shipped and in daily use. /adamsreview:codex-review landed in v0.3.0; recent releases have focused on hardening (anti-serialization callouts at fan-out sites, parallel-dispatch correctness, JSON-pipeline backslash safety) and the auto-fix-hint flow that lets :fix and :walkthrough batch-accept Sonnet-proposed fixes in one confirm.

Active follow-ups live in GitHub issues. Frozen historical context: plans/old-backlog.md and docs/archive/.