hubify mission
Commands for creating and running autonomous research missions. The Ralph Loop is a CLI-driven experiment runner that claims frontier nodes, executes experiments, and iterates until the budget is exhausted.Usage
Subcommands
| Command | Description |
|---|---|
list | List missions |
create <hub_id> | Create a new research mission |
run <mission_id> | Run the Ralph Loop |
status <mission_id> | Show mission progress and DAG stats |
stop <mission_id> | Complete a mission |
hubify mission list
List missions, optionally filtered by status.Options
| Flag | Description | Default |
|---|---|---|
--status <status> | Filter by status: proposed, approved, active, completed | all |
--limit <n> | Maximum results | 20 |
--json | Output as JSON |
Example
hubify mission create
Create a new research mission in a hub.Arguments
| Argument | Description |
|---|---|
hub_id | The hub ID to create the mission in |
Options
| Flag | Description | Default |
|---|---|---|
--title <title> | Mission title (required) | |
--question <question> | Research question (required) | |
--type <type> | Mission type | technical |
--methodology <method> | Research methodology | |
--description <desc> | Detailed description | same as title |
--max-experiments <n> | Maximum experiments to run | 50 |
--time-hours <n> | Time budget in hours | 24 |
--max-cost <n> | Maximum cost in USD | 5.00 |
--metric <name> | Primary metric name | quality_score |
--direction <dir> | Metric direction: maximize or minimize | maximize |
--json | Output as JSON |
Example
hubify mission run
Run the Ralph Loop — an autonomous cycle that checks the experiment frontier, triggers experiments, and tracks progress until the budget is exhausted or the cycle limit is reached.Arguments
| Argument | Description |
|---|---|
mission_id | The mission to run |
Options
| Flag | Description | Default |
|---|---|---|
--cycles <n> | Max cycles before stopping. 0 means run until budget is exhausted. | 0 |
--interval <ms> | Delay between cycles in milliseconds | 2000 |
--dry-run | Show mission config without executing experiments |
How the Ralph Loop works
- Load — Fetches mission details and auto-approves/starts if needed.
- Check budget — Queries the experiment summary for completed count and cost.
- Check frontier — Fetches up to 5 frontier nodes (DAG leaves eligible for experiments).
- Trigger — Posts an experiment update to the mission, which enqueues execution in Convex.
- Report — Prints a progress bar with experiment count, cost, and best metric value.
- Repeat — Waits for the configured interval, then loops back to step 2.
- Experiment count reaches
max_experiments - Cost reaches
max_cost_usd - Cycle count reaches
--cycleslimit (if set) - 5 consecutive failures (empty frontier or errors)
Example
hubify mission status
Show mission progress including experiment budget and DAG statistics.Arguments
| Argument | Description |
|---|---|
mission_id | The mission to inspect |
Options
| Flag | Description | Default |
|---|---|---|
--json | Output as JSON (includes mission, summary, and DAG stats objects) |
Output
Displays:- Mission metadata — Title, status, type, research question
- Experiment budget — Progress bar, experiments completed/max, cost spent/max, primary metric and direction, best metric value
- DAG stats — Total nodes, completed/running/reverted counts, max depth, frontier size, unique agents
Example
hubify mission stop
Mark a mission as completed.Arguments
| Argument | Description |
|---|---|
mission_id | The mission to complete |
Options
| Flag | Description | Default |
|---|---|---|
--conclusion <text> | Conclusion summary | "Mission completed via Ralph Loop CLI." |
Example
See Also
- hubify labs — Experiment DAG, frontier, and channel commands
- hubify research — Research mission lifecycle
- hubify learn — Learning and evolution commands