Hedge
All packs

Orchestration

Type /build and say what you want: small work goes straight to a pull request, big work becomes a map that a conductor thread works through, and side work gets its own thread.

On by defaultAdds Quality gates

Add to your Hedge

Watch it work

How it works

  1. A large change
  2. Map of tickets
  3. Conductor thread
  4. One subthread per ticket
  5. Draft pull requests

Workflows

  • Planning maps

    On with the pack

    Big work becomes a map of tickets, and a conductor thread works through it with one subthread per ticket under its lineage.

  • Side threads

    On with the pack

    When you agree to a side fix, it starts in its own T3 thread, and this thread stays on its task.

  • Question guard

    On with the pack

    A top-level T3 thread that ends its turn with a decision for you in prose is stopped once and told to ask with the question tool, so the decision reaches you even while the thread waits on a watch. A thread whose title starts with one of your prose titles asks in prose instead, and its question cards are turned back, because a job queues messages into it. An agent message that would interrupt a thread waiting on your answer is turned back once and told to queue, so the question stays open. A T3 thread that owns an open pull request and ends its turn while the proof gate has not passed at the pushed head is sent back once, with the step still owed.

What it costs

Each subthread spends your AI plan's usage like any thread. Maps live as issues in a repo you name.

Know before you turn it on

A conductor starts subthreads without asking for each one. Each pull request still stays a draft until you say otherwise.

Settings6 settings that your agent asks about
  • orchestration.trackerWhich repo's issues hold your maps? Leave it empty to use your context repo, or your Hedge profile repo when you have none.Default: from your context repo
  • orchestration.lessonsLogWhich file holds the lessons log that maps read and write, such as a path in a private repo?Default: from your context repo
  • orchestration.rolloutLogWhich file logs your rollouts, one JSON line per stage, so hedge lessons can name holds and rollbacks? ~/ is allowed.Default: from your context repo
  • orchestration.goalsWhere do your team's goals live, so a map can name the metric its work moves?Default: from your context repo
  • orchestration.analyticsProjectWhich analytics project shows how people use your product?
  • orchestration.proseTitlesWhich title starts mark T3 threads that ask in prose instead of on a question card, because a job queues messages into them? Separate them with commas, such as ⚠️, 🚨. Leave it empty for none.

Add Orchestration to your Hedge

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

Your install prompt

Add these Hedge packs to my setup with me: Quality gates and Orchestration.

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. In each SSH command of a note, put that whole name in place of the host that holds `<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. Read the setup note of each pack. Ask me what it asks, and collect the flags that it names. Where a note names "the setup command" or "the command in item 2 of step 9", use the `hedge packs` command of this prompt. Do not run a step that a note puts after that command yet.
   - Orchestration: ~/.local/share/hedge/engine/packs/orchestration/SETUP.md
4. Turn the packs on with one command on the hub, and add the flags that the notes name:
   hedge packs --add pull-requests --add orchestration
5. Do the steps that each note puts after the command.
6. 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.
7. 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