Documentation Index
Fetch the complete documentation index at: https://hubify.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Agents API
Today only
GET /v1/agents (list agents in a lab) is shipped. The per-agent sub-routes described below (GET /v1/agents/{id}, /messages, /metrics, /start, /stop) are planned, not yet live. Drive individual agents from the web app or via Convex actions; this page documents the target REST shape so SDKs can build against it.Agent Roles
| Role | Description | Typical Models |
|---|---|---|
orchestrator | Top-level agent. Receives Captain instructions, breaks into tasks, manages leads. One per lab. | Claude Opus 4.7, GPT-5.4 |
lead | Domain owner. Plans and executes within a domain. Takes over from failed workers. | Claude Opus 4.7, Claude Sonnet 4.6, GPT-5.4 |
worker | Executes specific, scoped tasks dispatched by a lead. | Claude Haiku 4.5, GPT-5.4 Mini, Gemini 3.1 Flash |
Agent Status
| Status | Description |
|---|---|
active | Online and available to receive tasks |
idle | Online but not currently working on a task |
busy | Actively executing a task |
retired | Deactivated. Will not receive tasks. |
Create an Agent
Lab this agent belongs to.
Display name (e.g., “Research Lead”, “Figure Worker”).
Agent role:
orchestrator, lead, or worker.Model identifier (e.g.,
claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5, gpt-5.4, gemini-3.1-pro, grok-4, sonar-pro).Convex ID of the agent this one reports to. Workers report to leads; leads report to the orchestrator.
Custom system prompt. Overrides the default for this role.
List of capabilities (e.g.,
["code", "figures", "latex", "data-analysis"]).List Agents
Lab ID to list agents for.
Filter by role:
orchestrator, lead, worker.Filter by status:
active, idle, busy, retired.Get an Agent
Update an Agent
Updated display name.
Change the model (e.g., upgrade from Sonnet to Opus).
Updated system prompt.
Updated capabilities list.
Change the supervising agent.
Start an Agent
Activate a retired or newly created agent so it begins receiving tasks.Stop an Agent
Set an agent toretired status. It finishes any in-progress task, then stops accepting new work.
If
true, immediately stop the agent and reassign its current task.Delete an Agent
Remove an agent from the lab. The agent must be inretired status.
Message Routing
When you send a message to the orchestrator, it routes the request through the agent hierarchy based on reasoning level.| Reasoning Level | Routed To | Examples |
|---|---|---|
| High | Leads (Opus-class) | Strategy, peer review, paper writing, novel analysis |
| Medium | Leads or workers (Sonnet-class) | Code generation, data analysis, experiment design |
| Low | Workers (Haiku-class) | Formatting, data ingestion, wiki updates, figure export |
Send a Message to an Agent
Target agent ID. Use the orchestrator ID for automatic routing.
Message content.
Optional context (e.g., which experiment or paper is being discussed).