Skip to content

The gbapp Philosophy: Let Machines Do Machine Work

General Bots favors describing an outcome in natural language or BASIC and letting the runtime carry it out, while keeping core mechanisms explicit in Rust.

Extension surfaces

Surface What it is good for Where it lives
BASIC .bas scripts Bot flow, tool calls, scheduled work {bot}.gbdialog/ in the bot's ALM repository
BASIC keywords A new primitive available to every bot botserver/src/basic/keywords/ or botserver/crates/botbasic_*/src/keywords/
Feature crates A reusable capability with its own tests botserver/crates/*/
Templates A starting .gbai with scripts, prompts and files bottemplates/bots/**
UI apps A visible surface in the suite botui/ui/suite/<app>/ plus the app registry

The split is a mechanism, not a slogan: natural language cannot change a Diesel schema or a security guard, so those remain source changes reviewed like any other Rust code.

Intent to execution

describe intent → bot prompt / BASIC keyword → tool script (.ast) → service call → answer in chat

A tool call of message type 6 (TOOL_EXEC) bypasses the LLM and runs the tool directly. The message-type contract is in the root AGENTS.md. The order of the flow is the design trade-off: chat handles intent, BASIC handles flow, Rust handles primitives.

Boundaries

Boundary Why it exists
Git-owned scripts The ALM repository is the source of truth; a Drive edit is out-of-band and gets archived.
One schema home table! macros live in botschema, never in a feature crate.
No inline secrets Credentials come from Vault; documentation never carries a token.
No invented keywords A keyword exists only if a registration is present in source.

Limits

Claim Status
Fixed percentages of LLM/BASIC/Rust work Not asserted; no such ratio is defined in the code.
"In 2025" framing Removed; the book describes the current tree only.
Automatic approval of generated plans Not asserted as a blanket behaviour.