What problem does it solve?
Review, audit, and analysis commands need a consistent, durable location to write reports and a reliable way to find reports written earlier, without losing files to ephemeral /tmp storage or colliding with parallel reviews.
Core Features & Use Cases
- Durable Report Storage: Writes reports to per-user state storage under ${XDG_STATE_HOME:-~/.local/state}/agent-reviews instead of /tmp, so reports survive process exits.
- Target Slug Rules: Derives collision-free slugs for pull requests, issues, commits, branches, worktrees, and local files so concurrent reviews never overwrite each other.
- Run Isolation and Lookup: Creates a unique run directory per invocation via mktemp and provides shell snippets to locate past reports across all runs.
- Use Case: An AI agent reviewing pull request #123 writes its report to agent-reviews/nix-config/pr-123/run-20240101T000000Z-XXXXXX/review.md, and a later session can retrieve that exact report by searching the target directory.
Quick Start
Ask the agent to write the review report for the current pull request using the standard report path rules.