Agents
Part of Dev. Agent mode is a feature of the botagent crate, not
a script-only facility. Its crate documentation defines the backend in one
place.
Backend map
| Element | Where |
|---|---|
| Per-user Incus VMs | agent_sessions table; botagent/src/vm/ implements launch, lifecycle, exec and snapshots. |
| Per-conversation folders | agent_conversation_folders table, wired from the agent service. |
| Organization API keys | org_api_keys table; botagent/src/keys.rs. |
| Sandboxed code execution | sandbox_runs table; botagent/src/sandbox.rs. |
| CLI bridges | botagent/src/codex/, botagent/src/claude/ and botagent/src/antigravity/; two-way sessions in botagent/src/duplex/. |
| Workspace profiles | base, office (default), media and data, described in botagent/src/vm/profile and built by scripts/build_vm_image.sh --profile office. |
| Host selection | AGENT_INCUS_BIN names the Incus executable; Windows without WSL2 is reported as unavailable. |
| Product status | /api/product exposes agent_backend_unavailable and the stable code agent_runtime_state. |
All Incus invocations go through botlib::security::command_guard::SafeCommand
according to the crate documentation. The prefabricated image bakes its
artifacts in so a cold container needs no package download.
BASIC surface
Registered agent and orchestration keywords are listed in the
generated agent family. Examples
with a registration in botbasic_ai/src/keywords/:
| Keyword | Source file |
|---|---|
LLM |
llm_keyword.rs, enhanced_llm.rs |
USE TOOL |
use_tool.rs |
ORCHESTRATE WORKFLOW |
orchestration.rs |
STEP BOT (and its PARALLEL / ON ERROR forms) |
orchestration.rs |
REFLECT ON, SET BOT REFLECTION |
agent_reflection/register_reflection_keywords.rs |
SET MODEL ROUTING, USE MODEL |
model_routing/from_config.rs |
Use that generated page for signatures: several of these forms take an expression, and a guessed argument list does not compile.
Read next
- Agent Mode & Snapshots — capability and feature flag view.
- Agent Workspaces — the multi-agent view of the same backend.
- Generated agent API and agent schema — the published tables.