Orchestrator that walks tasks through composable process pipelines using AI agents
Project description
hyperloop
A reconciler that keeps code in sync with specs using AI agents. Specs are desired state. Code is actual state. Hyperloop continuously closes the gap.
Spec (desired) <-> Code (actual) = Gap
Gap -> Work -> PR -> Gate -> Merge -> Gap closed
You don't manage tasks -- you manage specs. Tasks are an internal implementation detail, like Kubernetes pods. Want to add a feature? Update the spec. Want to cancel it? Remove it from the spec.
Prerequisites
- Python 3.12+
- kustomize on PATH
gitghCLI (for GitHub PR operations)- An Anthropic API key, or Vertex AI / Bedrock credentials
Install
pip install hyperloop
Quickstart
mkdir my-project && cd my-project && git init && git commit --allow-empty -m init
# Write a spec
cat > specs/auth.md << 'EOF'
# User Authentication
Implement JWT-based auth. POST /auth/login, POST /auth/register, GET /auth/me.
Passwords hashed with bcrypt. JWTs expire after 24h.
EOF
# Initialize hyperloop structure
hyperloop init
# Run the orchestrator
export ANTHROPIC_API_KEY=your-key # or CLAUDE_CODE_USE_VERTEX=1
hyperloop run
# With GitHub PR support
hyperloop run --repo owner/repo
Reconciliation Cycle
Each cycle has four phases:
- COLLECT -- reap finished workers, run cycle hooks (e.g. process-improver)
- INTAKE -- detect spec gaps and failed tasks, invoke PM agent to propose new work
- ADVANCE -- advance existing tasks through pipeline steps (gates, actions)
- SPAWN -- decide which tasks need workers, compose prompts, spawn agents
The orchestrator halts when no gaps remain. Use hyperloop watch for continuous operation.
Pipeline Primitives
Work moves through a pipeline defined in process.yaml. Four primitives:
| Primitive | What it does |
|---|---|
agent: X |
Spawn a worker agent with X's prompt template |
gate: X |
Block until an external signal (e.g. PR label, CI status) |
action: X |
Execute an operation (e.g. merge PR) |
loop: |
Wrap steps -- on fail restart from top, on pass continue |
Example pipeline:
pipeline:
- loop:
- agent: implementer
- agent: verifier
- gate: human-pr-approval
- action: merge-pr
Project Structure
After hyperloop init:
my-project/
├── .hyperloop.yaml # orchestrator config
├── .hyperloop/
│ ├── agents/
│ │ ├── kustomization.yaml # composition point (base + process component)
│ │ └── process/
│ │ ├── kustomization.yaml # process-improver writes here
│ │ └── process.yaml # pipeline + gate/action/hook config
│ ├── state/
│ │ ├── tasks/ # task metadata (YAML frontmatter)
│ │ └── reviews/ # per-round review files
│ └── checks/ # executable check scripts
└── specs/
└── *.md # product specs (your domain)
specs/ is yours -- product specs only. .hyperloop/ is orchestrator-managed.
Prompt Composition
Three layers, resolved via kustomize build:
| Layer | Source | What it provides |
|---|---|---|
| Base | hyperloop repo base/ |
Core agent prompts |
| Project overlay | gitops repo or in-repo patches | Project-specific guidelines |
| Process overlay | .hyperloop/agents/process/ |
Learned rules from process-improver |
At compose time the orchestrator injects: prompt + guidelines + spec content + findings from prior rounds.
Configuration
# .hyperloop.yaml
overlay: .hyperloop/agents/
base_branch: main
runtime: local # local | ambient
max_workers: 6
poll_interval: 30
max_task_rounds: 50
max_action_attempts: 3
notifications:
type: github-comment # github-comment | null (default: null)
Custom Processes
Override the default pipeline in .hyperloop/agents/process/process.yaml:
pipeline:
- loop:
- agent: implementer
- agent: verifier
- gate: human-pr-approval
- action: merge-pr
gates:
human-pr-approval:
type: label # label | pr-approval | ci-status | all
actions:
merge-pr:
type: pr-merge
hooks:
after_reap:
- type: process-improver
Architecture
Hexagonal (ports and adapters). The domain is pure logic with no I/O. Ports define interfaces, adapters implement them. Seven concerns are separated:
| Port | Purpose |
|---|---|
SpecSource |
Where to read desired state |
StateStore |
Where task/worker state lives |
Runtime |
Where agent sessions execute |
GatePort |
How gates are evaluated |
ActionPort |
How pipeline actions execute |
NotificationPort |
How humans are told to act |
OrchestratorProbe |
Domain observability |
The default adapter set is git-native (git state store, git spec source, local worktrees for agent isolation), but the architecture is adapter-agnostic.
See specs/spec.md for the full specification.
Development
uv sync --all-extras
uv run pytest
uv run ruff check . && uv run ruff format --check .
uv run pyright
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyperloop-0.23.0.tar.gz.
File metadata
- Download URL: hyperloop-0.23.0.tar.gz
- Upload date:
- Size: 194.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3613669ee726d4c70f132d0437cf1c54accea5cf47c22f46e63ab09051cd32ef
|
|
| MD5 |
da46eb2b3f425ab47d8e2cc26e4c9f83
|
|
| BLAKE2b-256 |
9627950e2f09b7e9cd7cc1446446be348a9975cac819aadbfc479b2ceadba5d6
|
Provenance
The following attestation bundles were made for hyperloop-0.23.0.tar.gz:
Publisher:
release.yaml on jsell-rh/hyperloop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperloop-0.23.0.tar.gz -
Subject digest:
3613669ee726d4c70f132d0437cf1c54accea5cf47c22f46e63ab09051cd32ef - Sigstore transparency entry: 1350384625
- Sigstore integration time:
-
Permalink:
jsell-rh/hyperloop@30ba3da5ae502c0b427ecd83575cde42919514f9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jsell-rh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@30ba3da5ae502c0b427ecd83575cde42919514f9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hyperloop-0.23.0-py3-none-any.whl.
File metadata
- Download URL: hyperloop-0.23.0-py3-none-any.whl
- Upload date:
- Size: 86.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6beababcc3f10f04ea3c9883fe979f6710a63691ae3549082357118918c7f86e
|
|
| MD5 |
85af16d12d2480e39d57070e3c1c8c19
|
|
| BLAKE2b-256 |
ca1038cdb9ca1d7dcb1dac1e1e5a65db1a92afc764d7baacdd344e41fb118010
|
Provenance
The following attestation bundles were made for hyperloop-0.23.0-py3-none-any.whl:
Publisher:
release.yaml on jsell-rh/hyperloop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperloop-0.23.0-py3-none-any.whl -
Subject digest:
6beababcc3f10f04ea3c9883fe979f6710a63691ae3549082357118918c7f86e - Sigstore transparency entry: 1350384725
- Sigstore integration time:
-
Permalink:
jsell-rh/hyperloop@30ba3da5ae502c0b427ecd83575cde42919514f9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jsell-rh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@30ba3da5ae502c0b427ecd83575cde42919514f9 -
Trigger Event:
push
-
Statement type: