Skip to content

Architecture & Packages 🟑 BETA

This chapter is the developer map of the General Bots workspace: where the code lives, how it is built and which package types carry bot content.

The developer build path: architecture, BASIC, API and agents feeding quality checks and generated reference.

Workspace shape

General Bots is one Rust workspace: a botserver binary plus feature libraries under botserver/crates/. The Diesel schema lives in botschema, and migrations live in botserver/migrations/. The crate map and responsibilities are recorded in the crate manifests under botserver/crates/*/Cargo.toml.

Area Authority in this repository
Crates and responsibilities botserver/crates/*/Cargo.toml
Apps, titles and categories botserver/src/apps/registry/ (entries.rs, entries_extra.rs, mod.rs::all_apps)
Bot content packages bottemplates/bots/**/*.gbai
Dependency versions botserver/3rdparty.toml
Ports and deploy model root AGENTS.md

Chapter contents

Page One job
Architecture Overview Name the layers and their owners.
Building from Source Build the binary with the intended features.
Module Structure Find a crate by responsibility.
Cargo Tools Reference Run the standard quality tools.
Adding Dependencies Add a crate without breaking policy.
Creating Custom Keywords Extend the BASIC surface.
Service Layer See how capabilities are exposed.
Dynamic Plugin Manifest Engine Understand the plugin manifest mechanism.
Autonomous Task AI Follow intent from prompt to execution.
The gbapp Philosophy Read the design rationale.
Testing and Safety Tooling Choose the right safety gate.
Bot Templates and Template Samples Pick a shipped .gbai starting point.
Container Deployment (Incus), Docker Deployment, Infrastructure, Scaling, Observability Operator runbooks; see the Admin guide.

Limits

Limit Value / source
Single file size 450 lines (root AGENTS.md); split proactively at 350.
Container layer Incus only; lxc/lxd are not supported as a runtime (root AGENTS.md).
Local service ports root AGENTS.md: API 8080, suite 3000, cloud 4000, login 5000.
Component versions botserver/3rdparty.toml; never infer a version from prose.