condensate

gt-review

Run the review hub, register checkouts and arm review rooms.

On this page

gt-review is the review hub. You register your git checkouts with it, and it runs agent reviewers and a fixer on each pull request as Condensate threads. The hub serves only the review API. You read reviews and answer them in Dex.

Start the hub

From apps/gt-review:

bun run build
bun dist/cli.js hub --no-open

The hub listens on http://127.0.0.1:4700, or the port you pass with --port. GET /api/health tells you it is up. It starts reviewers and fixers on the runtime at CONDENSATE_AGENTS_URL, which defaults to http://127.0.0.1:4741, so set that if your runtime is on another port.

To reach the hub from your tailnet, keep it on loopback and put tailscale serve http://127.0.0.1:4700 in front of it. If you bind it to every interface with --host 0.0.0.0, set GTR_REQUIRE_ADMIN_TOKEN=1 and a secret in GTR_ADMIN_TOKEN first. The hub then refuses any write that does not carry the secret in the x-gtr-admin-token header. Dex does not send that header, so writes made through Dex fail while the token is required.

To run the hub in a container instead, use apps/gt-review/docker-compose.yml. It binds the hub to 127.0.0.1:4700 and serves every checkout you place under ./repos.

Register a checkout

bun dist/cli.js register /absolute/path/to/checkout

A running hub serves the checkout at once. With no hub running, the checkout is saved and served the next time the hub starts. One hub can serve several checkouts, and each one gets its own path, /<repo-name>/api/....

Reviews

A review of a branch runs one reviewer for each engine you name, plus a fixer that works on what they find. The engines are Claude Code (claude), Codex (codex) and Condensate's own agent (condensate). Reviewers default to Claude Opus 5.5, and the fixer to Claude Opus 5.5 with a 1M context window. Both are settings you can change.

Start a review of one branch with POST /api/pr-reviewer/arm, or of a whole stack, bottom to top, with POST /api/pr-reviewer/arm-stack. To have the reviewers and the fixer take more turns, challenging each other's findings, send POST /api/review-rooms/<branch>/rounds with a rounds count from 1 to 3.

The hub also starts reviews on its own after it syncs a repository's pull requests, up to three per sync. It picks open pull requests that are not drafts, target the trunk branch and come from the same repository rather than a fork. A branch whose last automatic start failed waits between one and 30 minutes before the next try. Automatic review is on for the condensate workspace and off for others.

Setting or labelEffect
GTR_AUTO_REVIEW=0Automatic review off for every workspace
GTR_AUTO_REVIEW_<WORKSPACE>=0 or =1Off or on for one workspace, such as GTR_AUTO_REVIEW_CONDENSATE=0
no-review labelKeeps a pull request out of automatic review
no-autofix labelStops the fixer from working on a pull request

Which reviews run

Each review round runs only the reviews the changed files need. There are four: correctness, ui, security and docs. gt-review picks them from the paths in the diff. A file gets the reviews of every rule it matches:

RuleThe diff changesReviews that run
proseMarkdown and other documents (.md, .mdx, .markdown, .rst, .adoc), not .txtdocs
agent policy proseAGENTS.md, CLAUDE.md, personas, skills, plugin agents and commandssecurity
security pathsauth, secrets, credentials, accounts, any path naming a proxy, HTTP routes (http/, *routes*), the POST /api/ship route's code, agent environment files, compose files, and the two files that pick the reviews, tests included, but not Markdown about themcorrectness, security
security codepackage.json, lock files, bunfig.toml, .env files, Dockerfiles, shell scripts, files under .github/, .claude/, skills/ and scripts/ci/, and code whose path names auth, git, processes, the network, sessions, tokens or permissionscorrectness, security
UIapps/dex-app (not its tests, perf/, its web-push and attention server modules, or head-persona.ts), the chat SDK, orbkit, thread-ui, styles/, web/, components/, public/, and .tsx, .css, .html, .svg and image files; never a test or a .d.ts filecorrectness, ui
codeother source, tests and scripts, the JSON, YAML and TOML config programs read, and .txt files under scripts/correctness
no rule matchesany other filecorrectness, security

Security also runs when the diff adds or removes code that runs a process, reads the environment, calls the network or handles secrets, whatever the file is called.

To choose the reviews yourself, start a round with POST /api/review-rooms/<branch>/rounds and put a line such as Reviews: ui, security in its prompt field. The named reviews replace the table. Security still runs for every file the table sends to security. Any review the last round ran that did not pass, or that raised a blocking finding, runs again too. A later round without the line goes back to the table, so it runs any review the table needs that the named round skipped. If any word on the line is not one of the four names, gt-review ignores the whole line and uses the table.

A push that only merges the base

A review result counts only at the commit it reviewed. The one exception is a push that only merges the base branch into an approved pull request and leaves the pull request's own patch byte-identical. The approval carries to the new commit, and no review round runs. The branch's chat records it as Approval carried from <sha>, merge-only, where <sha> is the commit the review approved. CI still runs at the new commit. At merge time, POST /api/ship runs the same check again from git, and refuses the merge when the patch differs or git cannot answer.

Artifacts

An artifact is a document an agent writes for you to read, such as a plan or a report. Dex shows each one on its own page and updates it as the agent edits it. Agents write them with the MCP tools artifact_write and artifact_patch, and your own programs can do the same over HTTP.

curl -sS -X POST http://127.0.0.1:4700/condensate/api/artifacts \
  -H 'content-type: application/json' \
  -d '{"title":"Plan","content":"# Plan"}'

POST /<repo-name>/api/artifacts takes a title of up to 200 characters and the content. Add format to pick markdown (the default), html or doc, and an id to replace an existing artifact. POST /<repo-name>/api/artifacts/patch changes one passage, given the id, an old_str that appears exactly once, and the new_str to put in its place. The answer includes the artifact's id, its rev, which goes up by one on every change, and a viewerPath you can open in Dex. The x-gt-review-actor header names the author, and without it the author is claude.

StatusCodeCause
400invalid_bodyThe body is not JSON with the route's fields
400invalid_actorx-gt-review-actor does not name a valid agent
404not_foundNo artifact has that id
409no_matchold_str is not in the artifact
409ambiguousold_str appears more than once
413too_largeA field or the whole request is over its limit
500write_failedThe artifact could not be saved