What problem does it solve?
Persist-rp1-artifact takes long-form rp1 markdown artifacts generated under .rp1/work/ and publishes them as idempotent GitHub PR comments, so reviewers can see the reasoning without cluttering the repository.
Core Features & Use Cases
- Idempotent PR comment updates: Uses an HTML marker containing rp1_doc_id to update the same comment on re-runs instead of spamming new ones.
- Deterministic projection format: Renders a structured header table plus the artifact’s Executive Summary verbatim, with the remainder of the artifact inside a collapsible details block.
- Safety-first workflow: Supports --dry-run for preview and guardrails like refusing to publish when rp1_doc_id is missing.
- Practical for review workflows: Use it right after rp1 agents (bug-investigator, feature-architect, code-auditor, etc.) produce artifacts you want reviewers to read in-context on the PR.
Quick Start
Run /persist-rp1-artifact path/to/.rp1/work/<your_artifact>.md --dry-run first, then re-run without --dry-run to post or update the PR comment.