ᓚᘏᗢ Purr
Purr is a human-in-the-loop agentic code reviewer. It watches your GitHub repos, and Claude reviews the pull requests assigned to you in the background. You read what it found, ask it questions, and decide what gets posted. Nothing goes to GitHub until you say so.
Purr was first built to help review the many pull requests sent to Pipecat.
✨ What it does
- It reviews what's assigned to you as it comes in, a few at a time. A quick planning step decides how deep: small changes get a quick look, risky ones a full review.
- It suggests what to look at next. From the PRs nobody has taken, the lead picks a few worth your time: small ones, in code you know, with why.
- It helps with your own PRs. When someone comments on one, the agent checks what they said against the code and proposes what to change and what to answer, for you to post.
- It knows what's waiting on you. PRs are grouped: Needs you (a review to post, a
question from the agent, someone replying to you on GitHub), Reviewing, Your PRs,
Up next, Review requested, Done, Others reviewing, Not reviewed. Each PR in
Needs you says what for (
Request changes?,alice replied,No verdict yet). A PR is done once you approve it or request changes, through Purr or on GitHub; a comment leaves it in Needs you. News from other repos shows at the top. - Every review is a conversation. You can keep talking to the agent about the PR ("is that race real?", "drop the nit"), and Purr suggests what to ask next.
- You can comment on lines of the diff, and on the PR. Yours go to GitHub as you save them; the agent's wait for you to approve its review.
- Posting and merging are a key each.
aposts the review as you.mshows the checks, the other reviewers and any conflicts, then merges what you approved. - It follows several repos at once, and what happened since you last looked shows as news.
- It's safe by default. The agents ask before doing anything risky, can run in a sandbox, and follow the repo's rules from its main branch, so a PR can't change what it's reviewed against.
🚀 Setup
You need a terminal on macOS, Linux or Windows, uv, the GitHub CLI and git. You don't need Claude Code: Purr runs its agents with the Claude Agent SDK.
uv tool install pipecat-ai-purr
gh auth login # GitHub: follow the prompts
purr login # Claude (skip it if you use Claude Code already)
purr
Reviews use your Claude login, so they count against your Claude plan (or your API key, if you
set ANTHROPIC_API_KEY). To look around without starting any reviews, run
purr --no-auto-review.
🧭 How to use it
- Pick a repo at home (
enter, or its number). Purr lists the repos with your PRs or PRs assigned to you;+watches one, to see all its open PRs. - Pick a PR. Up next is a good place to start: a few PRs nobody has taken, with why
(
sskips one that isn't for you, and another takes its place). On the right, the PR's description, where it changes things, and the conversation with the agent.rreviews one that isn't yours yet (and assigns you), its pane full screen to follow it (zoresccomes back);oopens it on GitHub. - Talk to the agent (
entergoes to the prompt): ask, dig in, or change what it proposes.tabtakes the suggestion.escin its pane stops it while it works. - Read the diff (
d): it opens full screen, the code in its language's colors on green and red (zorescshows the conversation next to it);tabon a change's@@line shows the lines around it. Select lines (shift+↑/↓) and pressenterto ask the agent about them, orcto comment on them. Comments show in boxes under their lines (yours, the agent's and GitHub's), and what's said on the PR itself is at the top. Yours go to GitHub when you save them:enteron one edits it there andxdeletes it (after asking);ron anyone's replies, quoting it.dcloses the diff, back to the list and the conversation. - Decide:
aposts the agent's review,xdismisses it (in the diff,xdrops one of its comments). Once you've approved,mmerges.
When you ask the agent to change something and push it, it commits in the PR's worktree and
proposes the push: a pushes it to the PR's branch (a contributor's fork too, if they allow
edits by maintainers).
When the agent asks before doing something risky, a allows it, A always, x says no (or
write what to do instead). When someone replies to you on GitHub, the PR is back in
Needs you: answer, or x if it needs no reply. When someone comments on one of your own PRs,
it needs you too, and the agent proposes what to change and what to answer: a posts the
answers.
⌨️ Keys
The footer shows the keys for where you are; ? lists all of them, including the ones that
work everywhere. The main ones:
| Key | Does |
|---|---|
? |
Every key, grouped |
enter / tab |
Ask the agent / switch between the list and the PR (on a group's heading: fold or open it) |
o |
The PR on GitHub, in your browser (at home, the repo) |
n p / / |
Next or previous PR / search |
r / space |
Review the PR (once reviewed, it asks before starting over) / mark several first (esc unmarks them) |
s |
On a PR up next: not for you (another takes its place) |
a x / A |
Do or dismiss what's proposed (or allow or deny what's asked); the footer says what a does: Post comment, Approve PR, Request changes, Push; with nothing proposed, it approves the PR / always allow |
d / D |
The diff, to read (n p from change to change), ask about (enter) and comment on (c) / in your pager |
shift+↑ shift+↓ |
In the diff: select lines (ctrl+space sets a mark, as in Emacs) |
tab |
In the diff: open or shut a file or a comment; on a change's @@ line, the lines around it |
m |
Merge a PR you approved: once to see where it stands, again to merge |
t / z |
The agent's reasoning in full / full screen |
! / c |
A shell in the PR's checkout / its session in Claude Code (/exit comes back) |
ctrl+p / ctrl+n |
Find any repo or PR / the latest news |
i |
Settings: your review and code style, permissions, the repo's review skill, Purr's settings and theme |
esc / q |
Back a step: out of full screen; in the PR's pane, stop the agent while it works; out of the prompt or the diff; a search, cleared; then home / quit |
The mouse works too: the wheel scrolls the list, the PR and the diff, and a click in the diff
puts the cursor on a line (shift+click selects up to it).
Wherever you write (the prompt, a comment, a file in Purr's editor), Emacs's keys move and
edit: ctrl+a ctrl+e ctrl+b ctrl+f M-b M-f ctrl+k ctrl+y …, and ctrl+space sets
the mark to select from, along with the usual shift+arrows, ctrl+x ctrl+c ctrl+v and
ctrl+z. esc or ctrl+g lets go of a selection first. In the prompt, enter sends,
ctrl+j starts a new line, ↑ ↓ and ctrl+r go through what you asked, and / lists
commands: /help, /review [quick|full], /model, /cost, /theme, /compact, and the
repo's own skills. Reading, ctrl+v and alt+v page down and up, as in Emacs.
🔍 How reviews work
- Purr first decides if a PR needs a quick or a full review.
- Each review is a Claude agent working on a checkout of the PR. It follows the repo's
CLAUDE.mdorAGENTS.md, and yourreview.mdandcode.md. - Full reviews use the repo's review skill if it has one (for example, Pipecat's
code-review). Otherwise, Purr uses its own instructions. - The agent doesn't post anything. It proposes a review, and you post it or dismiss it.
🎨 Make it yours
i opens the settings. Each file opens in Purr's own editor: ctrl+s saves, esc goes back to
the settings. Purr checks settings.toml and the permissions before saving them, so a typo
never reaches the file.
| File | What it's for |
|---|---|
~/.config/purr/review.md |
How you like reviews: what to raise, what to skip, tone |
~/.config/purr/code.md |
What good code looks like to you; reviews hold PRs to it |
~/.claude/settings.json |
What the agents may run without asking (the file Claude Code uses too) |
~/.config/purr/settings.toml |
Models, how often to poll, how many reviews at once, how many PRs up next, the theme, ... (purr --help for flags) |
Instructions and permissions apply from the agent's next turn; settings, when Purr next starts.
Inside a repo, i edits that repo's own instructions and permissions, which add to the
general ones (they're in ~/.config/purr/repos/<owner>/<name>/), and which of its skills its
reviews follow. t there (or /theme) picks a theme, showing each as you move through the
list; it applies at once.
💡 Good to know
- Purr never posts on its own. The agents can read GitHub but not change it: they propose,
and Purr posts what you approve, as you. The agent's review goes out with
a; your own comments, replies and edits go out when you save them, and deleting one asks first. - The agents ask before anything risky. Reading code and safe commands just run; anything
else waits for your OK, and
Akeeps a rule so it doesn't ask again. This is the Agent SDK's permission system (Claude Code's, underneath), so the rules go in~/.claude/settings.json.--sandboxconfines the agents' commands to the PR's checkout, on macOS and Linux (on Ubuntu 24.04+, AppArmor has to allow it, so it's off by default). - Costs.
/costshows what each PR has cost. Quick reviews run on Sonnet;--max-reviews 1keeps things small. - Where things live: the database, log and PR checkouts in
~/.local/share/purr. - Copying: drag over the PR pane. GNOME Terminal needs
wl-clipboard(orxclip) for it.
🛠️ Development
git clone git@github.com:pipecat-ai/purr.git
cd purr
uv sync
uv run purr # or: uv tool install --editable .
uv run pytest # never calls GitHub or Claude
uv run ruff check && uv run ruff format
uv run python scripts/record_demo.py # the GIF above, from made-up PRs
How Purr works and why: docs/purr.md.
Changes are recorded as towncrier fragments in
changelog/: a file per change, <PR number>.<type>.md (added, changed, deprecated,
removed, fixed, performance, security or other), with a bullet saying what changed.
uv run towncrier build --draft --version X.Y.Z shows what the next release's notes in
CHANGELOG.md will say.
To release, run the generate-changelog workflow with the version: it opens a pull
request with the release's notes. Once it's merged, tag it vX.Y.Z (the version comes
from the tag, as Pipecat's does) and run the publish workflow with the tag. The
GitHub release's notes are the tag's section of CHANGELOG.md.
📄 License
BSD 2-Clause. See LICENSE.
Metadata
Release files for pipecat-ai-purr 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pipecat_ai_purr-0.3.0.tar.gz | 557.5 kB | With provenance | Details for pipecat_ai_purr-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pipecat_ai_purr-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pipecat_ai_purr-0.3.0-py3-none-any.whl |
Total release size: 795.2 kB
Release files / pipecat_ai_purr-0.3.0.tar.gz
| Download URL | pipecat_ai_purr-0.3.0.tar.gz |
|---|---|
| Size | 557.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5ae4a4acbbae6215a21777b87d378ef2788b7bb7788f33e042b03390653f8ab
|
|
BLAKE2b-256 checksum How to use checksums |
2a991b1d59881b6020f83bb6e4ebfda71c5dc59dad2184c05279a7396fe827ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / pipecat_ai_purr-0.3.0-py3-none-any.whl
| Download URL | pipecat_ai_purr-0.3.0-py3-none-any.whl |
|---|---|
| Size | 237.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1522e1a8ac416e599640e7df15acf6d2e5acf40a1fbdfd8228ee5d98046be44
|
|
BLAKE2b-256 checksum How to use checksums |
b455c84ddd67d3db1996c28eeedcf9611a29cdbeb15b0c29ab35995104657c4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for pipecat-ai-purr 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pipecat_ai_purr-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.