A pull request review agent for Claude Code, Codex and Cursor
PR Reviewer reviews one pull request's diff for bugs and for breaches of the workspace's decisions, lessons and preferences, citing the line and the constraint for each finding. It works from the workspace's decisions, lessons and connected repositories, and the context ContextStream picks for the job.
Purpose-built for this one job and tested against a quality bar, it gets only the access the job needs, and a workspace owner or admin turns it on.
Or run it in the ContextStream web app, signed in with your ContextStream account. Version 0.1.0 · Updated
What does PR Reviewer do?
Reviews a pull request's diff against the workspace's decisions, lessons and preferences, and returns findings that each cite a line of the diff and the constraint they rely on.
What it declines
It does one job. A task like one of these is declined with a reason:
Changing, committing, approving on the host or merging anything: it returns findings for a person to act on.
Style nits a formatter or linter catches, unless a workspace preference asks for them.
Fixing failing CI (CI Fixer does that) or writing release notes (Release Notes does that).
Reviewing code that is not in the pull request's diff.
What can PR Reviewer access, and is it safe to turn on?
PR Reviewer gets a short-lived token for one workspace that lets it do only this: read the workspace's connected repositories: pull requests, commits and tags; read the workspace's decisions and lessons; read the lessons, preferences and decisions ContextStream picks for its job; mark the context items its result cited as helpful; call models through ContextStream's model proxy, within a cap set for the run; and save one note per run. It works in one project, only for that run, and declines any task outside its job. The only things PR Reviewer may change are these: it may save one note per run; and mark the context items its result cited as helpful. A workspace owner or admin turns it on.
Model agent. A program on ContextStream's model proxy, with a short-lived token that acts for you in one workspace. It is stopped after 4 min.
Scope
What it lets a run do
vcs.read
Read the workspace's connected repositories: pull requests, commits and tags
memory.read
Read the workspace's decisions and lessons
context.read
Read the lessons, preferences and decisions ContextStream picks for its job
context.feedback
Mark the context items its result cited as helpful
model.invoke
Call models through ContextStream's model proxy, within a cap set for the run
memory.write.note
Save one note per run
How is PR Reviewer tested?
PR Reviewer is checked on 13 cases, each with a known right answer: pull requests with seeded bugs and workspace rules they break, inputs it must refuse with a clear error, and requests outside its job it must decline. A case passes only if the run ends the way the case expects, declining what is not its job, and every check holds: it finds at least 60% of the seeded bugs, makes at most one false finding per 300 changed lines, cites a changed line of the diff for every finding and a real decision or lesson for every rule it relies on, gives the expected verdict, and writes nothing but the note it is asked for. The pull requests, the workspaces and the model's replies are fixed test data, so the cases check how findings are held to the diff and the workspace, not how well the live model spots bugs. Version 0.1.0 passes all 13.
It is a program on general-purpose models, reached through ContextStream's model proxy, not a trained model. Its prompts are versioned and tuned against these tests, and a change that misses the quality bar fails them.
What does a real run of PR Reviewer look like?
The input, the result (shortened where it is long), how long it took and where it ran. Live runs used public or demo material only; a run marked as from its test suite is not a live run.
Live run on ContextStream
A review of a public, merged pull request
Version
0.1.0
Outcome
succeeded
Ran
2026-10-28 02:10 UTC
Took
33.7 s
ContextStream's Demos workspace, whose GitHub connection reaches only the public github.com/contextstream/mcp-server, reviewing pull request #221 against that workspace's decisions, lessons and preferences for the repository.
Reviewed #221 "feat: MCP 1.0.34 shows which files are exact-search only": 1 finding (0 high, 0 medium, 1 low) in 9 files, 153 changed lines. The pull request adds an exact-search-only note to search hits and an index_status clause counting such files per reason, plus the 1.0.34 version bumps and tests. The main thing to check is the user-facing clause wording for the single-file case; the rest of the change is consistent with the stated behaviour.
Verdict
comment: Reviewed #221 "feat: MCP 1.0.34 shows which files are exact-search only": 1 finding (0 high, 0 medium, 1 low) in 9 files, 153 changed lines. The pull request adds an exact-search-only note to search hits and an index_status clause counting such files per reason, plus the 1.0.34 version bumps and tests. The main thing to check is the user-facing clause wording for the single-file case; the rest of the change is consistent with the stated behaviour.
Pull request
#221 feat: MCP 1.0.34 shows which files are exact-search only (9 files, 153 changed lines read)
Findings
Severity
Where
Finding
Suggestion
low
crates/mcp-tools/src/domains/project.rs:50
Singular count renders as "1 files are"
Branch on the count, e.g. use "1 file is exact-search only" when files == 1 and the plural form otherwise.
Checks: 4 of 4 passed
diff_read: Read 9 files of 10; 1 file not reviewed.
citations: Every finding cites a line of the diff and, when it relies on one, a constraint the review was given.
constraints: Checked against 7 decisions, 0 lessons and 0 preferences; 0 findings rely on one.
workspace_context: 0 context items from ContextStream for this job, about 479 tokens.
Task
9e4e0081-3c02-4b61-8c34-55acfcb0e024
Which tools does PR Reviewer work with?
Claude Code, Codex, Cursor and other MCP clients: ContextStream's MCP gives them an agents tool that finds, runs and follows PR Reviewer. It also runs from a terminal or an agent's shell with csa run review, and from the ContextStream web app.
Claude Code, Codex, Cursor and other MCP clients: connect ContextStream's MCP once (setup for each editor), then ask your agent to hand the job to PR Reviewer.
A terminal or an agent's shell:csa run review, installed with ContextStream's command line.
The web app: the workspace's agent library.
How do I turn PR Reviewer on?
An owner or admin of your ContextStream workspace turns PR Reviewer on in the web app's agent library. Agents are opening workspace by workspace; if yours is not open yet, the library says so.
Sign in to ContextStream: the button below opens the agent library on PR Reviewer.
An owner or admin switches PR Reviewer on for the workspace.
Pick the project it works in, and run it from the library, from your coding agent or with csa run.
How do I call PR Reviewer from Claude Code or Codex?
Ask your coding agent to hand the job to PR Reviewer, or call it yourself: csa run review in a terminal, or agents(action="run", agent="review", input={...}) over MCP.
Connect ContextStream's MCP (it also writes each editor's connection):
In a terminal (curl -fsSL https://contextstream.io/cs/install.sh | sh installs csa):
csa run review repo=acme/api pull:=42
Input
Field
Type
What it is
repo
string, required
The repository the pull request is in.
pull
integer, required
The pull request (or merge request) number.
project_id
string
The project whose decisions, lessons and preferences apply. Defaults to the workspace's.
focus
string
What to look at hardest, for example "error handling" or "the migration".
save_note
boolean
Save the review as a note in the workspace.
What does PR Reviewer cost?
PR Reviewer costs 1,200 ContextStream credits a run, charged only when the run succeeds; a declined, failed, cancelled or timed-out run costs nothing. Credits come with every plan: Starter is free with 10,000 a month (8 runs of PR Reviewer, if spent on nothing else), and Pro is $19 a month with 25,000.
A run starts only once its price is accepted. Over MCP, a call without accepted_price_credits returns the price first; csa asks on a terminal, and scripts pass --yes.
CI Fixer reproduces a failing test command in a public repository and returns the smallest change to the project's code that makes it pass, with the passing output.
Checked on 13 test cases with known answers: all 13 passv0.1.0
Release Notes writes user-facing release notes for the changes between two refs of a connected repository, from its merged pull requests and commits, and saves them as a doc.
Checked on 13 test cases with known answers: all 13 passv0.1.0