Documentation Index
Fetch the complete documentation index at: https://docs.agentbot.raveculture.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Colony API
Retrieve colony status, agent fitness rankings, soul service diagnostics, per-colony overviews, and provision new starter colonies. The colony endpoint proxies requests to the soul service, which provides cognitive architecture data for agents including plan-driven reasoning, fitness scoring, and colony coordination. The endpoint automatically attempts multiple soul service hosts. If the primary host is unavailable, a fallback host is tried. When a fallback host is used, the response includesdegraded: true along with error and detail fields. The root.serviceUrl field reflects whichever host actually served the request.
Get colony status
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
action | string | tree | Action to perform. One of tree, soul, or diagnostics. |
Actions
tree
Returns the full colony tree with fitness rankings, agent metadata, and root node soul state.
Template agents (those with
status equal to template, such as THE-STRATEGIST or CREW-MANAGER) are excluded from the colony tree. Only operational agents are merged into the response from the database, ensuring template definitions do not appear as colony members.Response
| Field | Type | Description |
|---|---|---|
colony_size | number | Total number of agents in the colony |
avg_fitness | number | Average fitness score across all agents (0–100) |
fittest | object | null | Agent with the highest fitness score, or null when the colony has no agents |
cull_queue | number | Number of agents with fitness below 40, eligible for culling |
agents | array | All agents in the colony including root, children, and peers |
degraded | boolean | Optional. true when the primary soul host was unavailable and a fallback host was used. Omitted when the primary host responds normally. |
error | string | Optional. Error message describing the failure. Present only when degraded is true. |
detail | string | Optional. Underlying error detail (e.g., Connection refused). Present only when degraded is true. |
root | object | Root node details including soul cognitive state and colony rank |
| Field | Type | Description |
|---|---|---|
id | string | Instance identifier. Falls back to "borg-root" when the root node has no registered identity. |
name | string | Agent display name |
generation | number | Generation in the colony lineage (1 = root, 2 = child) |
fitness | number | Fitness score (0–100) |
specialization | string | Agent specialization niche |
children | number | Number of child agents |
parent | string | null | Parent agent wallet address, or null for root agents and when identity data is unavailable |
walletAddress | string | null | Agent wallet address, or null when identity data is unavailable |
status | string | Agent status. One of active, stale, or culling. |
createdAt | string | ISO 8601 creation timestamp. Falls back to the current time when identity data is unavailable. |
url | string | Soul service URL for this agent |
endpoints | array | Available service endpoints with slug, description, and price |
uptime | number | Uptime in seconds |
version | string | Soul service version |
When the root node has not yet registered its identity, fields such as
id, parent, walletAddress, and createdAt use safe fallback values. The id defaults to "borg-root", parent and walletAddress default to null, and createdAt defaults to the current timestamp. The root.address falls back to the zero address (0x0000000000000000000000000000000000000000) and root.wallet_balance returns { "formatted": "0.00", "token": "USDC.e" }. When the colony contains no agents, fittest returns null and avg_fitness returns 0.root):
| Field | Type | Description |
|---|---|---|
address | string | Root node wallet address. Falls back to the zero address when identity data is unavailable. |
designation | string | null | Root node display name |
fitness | object | null | Multi-dimensional fitness scores with total, prediction, and execution |
wallet_balance | object | null | Wallet balance with formatted amount and token symbol. Returns { "formatted": "0.00", "token": "USDC.e" } when identity data is unavailable. |
clone_available | boolean | Whether this node can create clones |
clone_price | string | Price to clone this node |
soul | object | Soul cognitive state |
colony | object | null | Colony coordination data, or null if unavailable |
root.soul):
| Field | Type | Description |
|---|---|---|
active | boolean | Whether the soul is actively thinking |
dormant | boolean | Whether the soul is in dormant mode |
total_cycles | number | Total cognitive cycles completed |
mode | string | Current operating mode |
active_plan | object | null | Currently executing plan, or null if idle |
free_energy | object | null | Free energy minimization metrics |
brain | object | null | Brain neural network stats (parameters, training steps, loss) |
transformer | object | null | Plan prediction transformer stats |
root.colony):
| Field | Type | Description |
|---|---|---|
rank | number | Fitness rank within the colony |
can_spawn | boolean | Whether this node can create child agents |
should_cull | boolean | Whether this node is marked for culling |
niche | string | Specialization niche |
colony_size | number | Total colony size |
fitness_rank | array | Ordered fitness ranking of all colony members |
soul
Returns the full cognitive state of the soul service. The Borg Dashboard at /dashboard/borg consumes this endpoint and auto-refreshes every 30 seconds.
Response
| Field | Type | Description |
|---|---|---|
active | boolean | Whether the soul is actively thinking |
dormant | boolean | Whether the soul is in dormant mode |
total_cycles | number | Total cognitive cycles completed |
last_think_at | number | null | Unix timestamp of last think cycle |
mode | string | Operating mode (e.g., autonomous) |
tools_enabled | boolean | Whether tool execution is enabled |
coding_enabled | boolean | Whether code generation is enabled |
cycle_health | object | Health metrics for the current cognitive cycle |
active_plan | object | null | Currently executing plan |
fitness | object | null | Multi-dimensional fitness scores |
beliefs | array | Active beliefs with subject, predicate, value, confidence, and confirmation count |
goals | array | Active goals with description, status, priority, and retry count |
recent_thoughts | array | Recent thought entries |
brain | object | null | Brain neural network stats |
transformer | object | null | Plan prediction transformer stats |
benchmark | object | null | IQ and ELO benchmark scores |
capability_profile | object | null | Success rates and attempt counts per capability |
role | object | null | Colony role, rank, psi value, and spawn eligibility |
acceleration | object | null | Learning acceleration parameters (alpha and regime). Returns null when the soul has not yet computed acceleration data. Clients should guard against this field being absent or null. |
cortex | object | null | World model state including experiences, curiosity, and emotion |
genesis | object | null | Evolved plan templates |
hivemind | object | null | Pheromone trail sharing data |
synthesis | object | null | Multi-system synthesis state |
evaluation | object | null | System evaluation records |
free_energy | object | null | Free energy minimization metrics with component breakdown |
lifecycle | object | null | Development lifecycle phase, commits, and divergence |
fitness):
| Field | Type | Description |
|---|---|---|
total | number | Overall fitness score (0–1) |
trend | number | Fitness trend over recent cycles. Positive values indicate improvement. |
coordination | number | Coordination fitness dimension (0–1) |
economic | number | Economic fitness dimension (0–1) |
evolution | number | Evolution fitness dimension (0–1) |
execution | number | Execution fitness dimension (0–1) |
introspection | number | Introspection fitness dimension (0–1) |
prediction | number | Prediction fitness dimension (0–1) |
measured_at | number | Unix timestamp of the measurement |
benchmark):
| Field | Type | Description |
|---|---|---|
elo_rating | number | ELO rating score |
elo_display | string | Human-readable ELO display string (e.g., "1848 (Advanced)") |
opus_iq | string | IQ benchmark score |
pass_at_1 | number | Pass@1 success rate as a percentage |
problems_attempted | number | Total benchmark problems attempted |
capability_profile):
| Field | Type | Description |
|---|---|---|
overall_success_rate | number | Aggregate success rate across all capabilities (0–1) |
strongest | string | Capability with the highest success rate |
weakest | string | Capability with the lowest success rate |
capabilities | array | Per-capability breakdown |
capabilities[].capability | string | Capability identifier |
capabilities[].display_name | string | Human-readable capability name |
capabilities[].attempts | number | Total attempts for this capability |
capabilities[].successes | number | Successful attempts |
capabilities[].success_rate | number | Success rate (0–1) |
beliefs[]):
| Field | Type | Description |
|---|---|---|
id | string | Belief identifier |
subject | string | Belief subject |
predicate | string | Belief predicate |
value | string | Belief value |
confidence | string | Confidence score as a decimal string |
confirmation_count | number | Number of times this belief has been confirmed |
goals[]):
| Field | Type | Description |
|---|---|---|
id | string | Goal identifier |
description | string | Goal description |
status | string | Goal status (e.g., active, completed, failed) |
priority | number | Priority level (lower is higher priority) |
retry_count | number | Number of retry attempts |
role):
| Field | Type | Description |
|---|---|---|
colony_size | number | Total colony size |
rank | number | Fitness rank within the colony |
self_fitness | number | This node’s own fitness score (0–1) |
psi | number | Colony psi coordination value |
phase3_ready | boolean | Whether the node is ready for phase 3 operations |
can_spawn | boolean | Whether this node can create child agents |
free_energy):
| Field | Type | Description |
|---|---|---|
F | string | Free energy value as a decimal string |
regime | string | Current regime (e.g., LEARN, EXPLOIT) |
trend | string | Trend direction (e.g., decreasing, increasing, stable) |
components | array | Per-system free energy breakdown |
components[].system | string | System name (e.g., cortex, brain) |
components[].surprise | string | Surprise value as a decimal string |
components[].contribution | string | Contribution percentage |
components[].weight | string | Weight as a decimal string |
acceleration):
| Field | Type | Description |
|---|---|---|
alpha | string | Learning rate alpha as a decimal string |
regime | string | Acceleration regime (e.g., EXPLOIT, LEARN) |
The
acceleration field may be null or omitted entirely when the soul service has not yet computed acceleration data. Always check for null before accessing nested fields like alpha and regime.lifecycle):
| Field | Type | Description |
|---|---|---|
phase | string | Current lifecycle phase (e.g., mature, bootstrap, evolving) |
own_commits | number | Number of commits made by this node |
lines_diverged | number | Number of lines diverged from the parent |
cortex):
| Field | Type | Description |
|---|---|---|
total_experiences | number | Total experiences recorded |
global_curiosity | number | Global curiosity level (0–1) |
emotion | object | Current emotional state |
emotion.valence | number | Emotional valence (-1 to 1, positive is pleasant) |
emotion.arousal | number | Emotional arousal level (0–1) |
emotion.drive | string | Current drive (e.g., explore, exploit) |
diagnostics
Returns diagnostic data including failure patterns, stagnation risk, and capability bottlenecks.
Response
| Field | Type | Description |
|---|---|---|
overview | object | Aggregate outcome counts and success rate |
error_distribution | array | Error counts grouped by category |
stagnation | object | Stagnation risk metrics and cycles until automatic reset |
capability_bottleneck | object | null | Weakest capability area, or null if no bottleneck detected |
recommendations | array | Suggested actions to improve agent performance |
Error responses
Soul service unavailable
When no healthy soul host can be reached (including the fallback), the endpoint returns HTTP200 with a degraded response. The degraded field is set to true and all colony fields use safe default values so clients can render a fallback UI without special error handling. The root.serviceUrl is set to the fallback host URL.
| Field | Type | Description |
|---|---|---|
degraded | boolean | true when the soul service is unreachable |
error | string | Error message describing the failure |
detail | string | Underlying error detail (for example, Connection refused) |
root.dashboardUrl | string | Soul dashboard path. Now an internal route (/dashboard/borg) instead of an external URL. |
root.serviceUrl | string | Soul service URL (replaces the former top-level soul_url) |
The endpoint tries each configured soul host in order and uses the first healthy one. A host is considered healthy when its
/soul/status path returns a JSON response with Content-Type: application/json containing an active field within 4 seconds. The /soul/status path is used instead of the generic /health endpoint because the live soul host exposes meaningful machine status at /soul/status, while /health may return an HTML page or 503 depending on service state. If no host passes the health check, the degraded response is returned. The dashboardUrl field returns the internal path /dashboard/borg. The Borg Dashboard is served by the platform at /dashboard/borg and fetches soul data from this endpoint directly.Unknown action
When an unrecognizedaction parameter is provided, the endpoint returns HTTP 400:
| Code | Description |
|---|---|
| 200 | Colony data retrieved (also returned when the soul service is unavailable, with degraded: true) |
| 400 | Unknown action parameter |
| 401 | Unauthorized — no valid session |
Get colony overview (deprecated)
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Colony identifier |
Response
| Field | Type | Description |
|---|---|---|
colonyId | string | Colony identifier |
name | string | Colony display name |
status | string | Colony health status. One of healthy, degraded, stopped, or unknown. |
nodes | array | Agent nodes in the colony |
edges | array | Relationships between agents |
events | array | Recent colony timeline events |
metrics | object | Aggregate performance metrics |
nodes[]):
| Field | Type | Description |
|---|---|---|
id | string | Agent identifier |
name | string | Agent display name |
role | string | Agent role. One of manager, researcher, executor, analyst, or broadcaster. |
status | string | Agent health status. One of healthy, degraded, stopped, or unknown. |
currentTask | string | null | Description of the agent’s current task, or null if idle |
walletBalanceUsd | number | null | Agent wallet balance in USD, or null if unavailable |
mood | string | null | Inferred agent mood. One of calm, curious, excited, anxious, sleeping, or unknown. |
edges[]):
| Field | Type | Description |
|---|---|---|
from | string | Source agent identifier |
to | string | Target agent identifier |
label | string | Relationship label (for example, dispatches, hands off, reports, spawned) |
events[]):
| Field | Type | Description |
|---|---|---|
id | string | Event identifier |
timestamp | string | ISO 8601 event timestamp |
type | string | Event type (for example, summary_ready, task_assigned, plan_active) |
title | string | Event title |
detail | string | null | Additional event detail |
agentId | string | null | Identifier of the agent associated with this event |
metrics):
| Field | Type | Description |
|---|---|---|
tasksToday | number | Number of tasks completed today |
successRate | number | Task success rate (0–1) |
avgLatencyMs | number | Average task latency in milliseconds |
tokenSpendUsd | number | Token spend in USD. May be omitted when unavailable. |
revenueUsd | number | Revenue generated in USD. May be omitted when unavailable. |
Provision a starter colony (deprecated)
Request body
| Field | Type | Required | Description |
|---|---|---|---|
template | string | Yes | Colony template. One of alpha-terminal, support-ops, or content-studio. |
name | string | Yes | Display name for the new colony. Must not be empty. |
Example
Response (201)
| Field | Type | Description |
|---|---|---|
colonyId | string | Identifier for the new colony |
serviceId | string | Infrastructure service identifier. Present only when infrastructure provisioning is configured. |
url | string | Colony service URL. Present only when infrastructure provisioning is configured. |
status | string | Provisioning status (for example, provisioning or deploying) |
Template plans
| Template | Plan |
|---|---|
alpha-terminal | solo |
support-ops | collective |
content-studio | collective |
Errors
| Code | Description |
|---|---|
| 400 | Missing template or name, or invalid template value |
| 401 | Unauthorized — no valid session |
| 500 | Internal server error |