Git Workflow

Give every feature a safe path to production.

Hub turns a request into a traceable branch, runs the checks your project needs, and keeps main protected until you are ready to publish. Your agents can move quickly without turning your repository into a guessing game.

Feature branch → checks → review → protected release

Dark studio scene with translucent panels for code, a checklist of green-free red check marks, a profile, and a shield, joined by a red flow line under a large red halo ring.

Code changes should arrive with context

A feature is more than a diff

When an agent starts work, Hub gives the task its own branch from your working branch. Changes are committed to that branch, so the work is visible, comparable, and recoverable instead of becoming an untracked change in a shared environment.

Task branches

Every task has a named path from start to merge. Goal-sized work can collect several task branches before it reaches the shared development branch.

Changes stay attributable

Hub records the branch, merge commit, check status, and task history together. You can see what changed, why it changed, and which task introduced it.

A clean way back

If a completed change needs another pass, return its branch to review. If a merged task needs to be undone, create a targeted revert instead of reconstructing the past by hand.

Put your checks where the code is

Test before a change moves forward

Tell Hub how to validate the repository once in .legion/run.json. It can run a fast task-level suite before integration and a full suite before a release. A failing check blocks the change from moving ahead and keeps the relevant output attached to the task.

Fast feedback for each task

Run the focused checks that make sense for a branch: unit tests, type checks, builds, or your own command sequence.

A fuller signal before release

Before dev can move to main, Hub runs the full configured suite or can wait for GitHub Actions when you opt in.

Secrets stay out of the history

Configured check secrets are resolved only for the run, are not written into the repository configuration or logs, and are masked from visible output.

Automation with boundaries

Let the small things flow. Hold the important ones.

Hub reads the branch diff and classifies the change before it integrates it. Straightforward, low-risk changes can merge into dev after checks pass. Changes that touch infrastructure, dependencies, migrations, deployment files, or a larger surface wait for your review.

Hub can handle automaticallyYou stay in control of
Creating task branchesMerging normal or risky changes
Saving agent changes to the task branchResolving real merge conflicts
Running configured checksPromoting dev to main
Integrating a passed, trivial change into devAny forced promotion

This is not a permission theatre. main remains protected: it only moves through an explicit release promotion.

Review the delivery, not the chat transcript

Everything you need to decide is in one place

When a task is ready, Hub presents the useful evidence: the branch diff, check result, risk level, and merge destination. You can approve, send it back to review, merge an already reviewed branch, or revert a completed merge with a clear audit trail.

For a larger goal, Hub groups the task work on a goal branch. Review the whole outcome with the full suite before it becomes part of dev.

Release deliberately

From working code to main, on your terms

When you choose to publish, Hub opens a release promotion from dev to main. It shows the combined diff and the tasks included in the release, then waits for an explicit approval. With GitHub Actions enabled, Hub can push the promotion branch, open a dev → main pull request, and reflect the external CI result in the room.

After an approved promotion reaches main, an optional deployment hook can start your release pipeline. Your repository stays the source of truth; Hub makes the path to production visible and controlled.

Workflow strip

  1. 1Start a taskHub creates a feature branch from the right base.
  2. 2Build in contextagents make and save changes on that branch.
  3. 3Validate the branchyour focused checks run before integration.
  4. 4Review the signalinspect the diff, risk badge, and check result.
  5. 5Integrate with intentmerge to dev when the task is ready.
  6. 6Promote a releaserun full validation, approve dev → main, then trigger deployment.

Integration callout

Use your existing Git and CI

Connect an existing repository or start a new one in Hub. Keep your branch model, your test commands, and your GitHub Actions workflow. Hub adds a practical control layer around agent-driven changes; it does not ask you to abandon the tools you already trust.

FAQ

Do I need GitHub Actions?

No. Hub can run configured checks inside the workspace. GitHub Actions is optional when you want your remote CI to validate a dev → main promotion.

What happens when a check fails?

The task is blocked before it merges. The check result stays with the task so you or an agent can fix the branch and run the review path again.

Can Hub deploy my application?

Hub can trigger a deployment hook after an approved promotion reaches main. It does not claim to deploy an unmerged branch; your deployment pipeline remains in control.

Does this create a separate Git worktree for every task?

Not yet. Today, a room uses task branches and serialized Git operations inside one workspace. Independent worktrees for simultaneous tasks are a future capability; the page should not promise them before they ship.

Build fast. Keep the release path legible.

Give your agents room to execute—and give yourself the checks, diffs, and approvals that make every merge feel earned.