Hedge
All packs

Quality gates

Every change passes proof, a second-model review and a QA swarm before it merges, and a nightly loop you turn on improves one area.

On by default

Add to your Hedge

Watch it work

How it works

  1. Your request
  2. Tests, then the fix
  3. Proof and a second-model review
  4. QA swarm
  5. Draft pull request

Workflows

  • Draft PR flow

    On with the packNeeds GitHub

    Every fix or feature ends as a proven, reviewed draft pull request that you mark ready yourself.

  • PR care

    On with the packNeeds GitHub

    When you ask, an agent watches a pull request, fixes CI, and answers review comments, and it can refresh a stale one.

  • Ship words

    On with the packNeeds GitHub

    Say "full send" or "stamp it", and the agent takes a pull request to merged and rolled out.

    Read before you turn it on

    The agent merges without asking again once you say the words.

  • PR owners

    On with the pack

    A thread that still owns an open pull request cannot settle or archive itself until it hands the pull request over, and a box with such a thread is not released. A thread you pinned cannot be settled or snoozed by an agent. A settle, snooze or archive of a thread on a Hedge peer asks that machine's Hedge first, over SSH. When that Hedge does not answer, or is older, the guard reads the thread through T3.

  • Quality loop

    Off until you turn it onNeeds an always-on devbox

    Each night, agents improve one area of a repo through small, proven draft pull requests that you review.

    Read before you turn it on

    Spends your AI plan's usage every night.

  • Signal loop

    Off until you turn it onNeeds an always-on devbox

    Each night, agents turn production errors and friction that nobody handles into small draft fix pull requests.

    Read before you turn it on

    Reads production signals and spends your AI plan's usage every night.

  • PR digest

    Off until you turn it onNeeds an always-on devbox

    Each weekday morning, one thread lists your open pull requests and what blocks each one.

What it costs

It needs GitHub, and setup signs you in. Each pull request spends extra usage on reviews. Expect at least one round, often two, and short final reads. The nightly loops run on an always-on devbox and spend your AI plan's usage each night, so they start off.

Know before you turn it on

Ship words merge without asking again. Say them only for work you would merge yourself. The loops open draft pull requests without you in the room.

Settings18 settings that your agent asks about
  • pull-requests.commentApprovalWhich comments should agents show you before they post them?Default: people
  • pull-requests.autonomyWhen an agent may decide a review round or a skipped proof alone, should it ask you each time, or decide and show you one table at the end?Default: ask
  • pull-requests.mergeCommandWhich command merges a pull request when the repo names no merge method? Leave it empty to merge as the rollout skill says.
  • pull-requests.receiptHeadingUnder which heading of a PR body does hedge proof receipt write the proof receipt? Give the heading's words without the hashes.Default: Testing
  • pull-requests.freeReviewsHow many reviews, panel rounds and final reads together, may run before the review arbiter decides whether another one is worth it?Default: 2
  • pull-requests.reviewCeilingAfter how many reviews, the panel, the fixes read, and the last read, does review stop for good?Default: 3
  • pull-requests.criticalPathFilesWhich file lists the critical paths of each repository, as owner/name=path pairs separated by commas? A path is relative to your home folder. The judge fails a merge-risk Tier line that is not critical when the diff touches a path on the list.
  • pull-requests.triageShould Hedge run the opt-in triage of review findings? For now it only records each pull request's arm and the review path of each review, and changes no review.Default: off
  • pull-requests.reviewTimeoutMinutesHow many minutes may one review run before it counts as failed?Default: 20
  • pull-requests.panelSlotsHow many reviewers may run at once in a review panel?Default: 3
  • pull-requests.reviewFallbackWhat should hedge pr review tell an agent to do when no pack provides a review bot? {repo} and {pr} stand for the pull request.
  • pull-requests.stampFallbackWhat should hedge pr stamp tell an agent to do when no pack provides a review bot? {repo} and {pr} stand for the pull request.
  • pull-requests.approvalBotWhich bot or reviewer should approve a pull request when you say "stamp it"?
  • orchestration.loopProjectWhich T3 project do the loops and the PR digest run in?
  • orchestration.qualityAreaWhich paths of the repo may the loops change, such as src/billing?
  • orchestration.criticalPathsWhich paths need your review before a loop's pull request is ready, such as src/payments?
  • orchestration.ledgerRepoWhich private repo holds the loops' ledger? It records production numbers, so keep it private.
  • orchestration.signalSourceWhere should the signal loop read production errors and friction? Leave it empty to use an analytics MCP when one is connected.

Add Quality gates to your Hedge

Paste this prompt into a T3 Code thread on a machine that runs Hedge.

Your install prompt

Add this Hedge pack to my setup with me: Quality gates.

Hedge runs on my hub and my nodes in the cloud, not on my Mac. Run each command of this prompt on the hub, over SSH with the `PATH` line of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md when you run elsewhere. Install nothing from Hedge here. Ask me each choice with your question tool, and run every command yourself.

1. Find my hub. List my cloud boxes as step 1 of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md does, and run `hedge hub status` over SSH on each one that runs, until one names the hub. Do not ask a `hedge` on this Mac: an earlier setup can leave one here. The name after "The hub:" is the SSH name of the hub. When every box prints "The hub: not named", or no box runs Hedge, I have no hub yet. Tell me, and offer to set one up first with steps 5, 7, and 9 of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md. To make a box that already runs Hedge the hub, skip step 5 for it.
2. Run `hedge update` on the hub, so it has the newest engine and packs. Then run `hedge packs` there, and leave out each pack that is already on.
3. Turn the packs on with one command on the hub:
   hedge packs --add pull-requests
4. Run `hedge doctor` on the hub, and explain each line. Do each `To do:` line with me, and say what a sign-in is for before it opens.
5. My nodes take the change at their next `hedge update`. To give it to one now, run `hedge update` there.
Open in T3 Code

Add more packs in one prompt