Expand description
THE COMMANDAGI SDK FOR RUST — the platform client (client: agent threads, live sessions on a simulated world) and
CommandAGI documents declared as code that is their source of truth.
A document’s .rs file declares it with the vocabulary of one family module of design (a schematic:
design::schematic). The CommandAGI editor runs it: the local host compiles it to WebAssembly against this crate,
offline, and the sandbox runs it with no imports. The editor shows the document the file declares and writes each
edit made there back into the file as the smallest text edit.
use commandagi::design::schematic::*;
fn document() -> El {
group("Divider", [
voltagesource("V1").voltage("9").sch_x(114.3).sch_y(114.3),
resistor("R1").resistance("3k").sch_x(114.3).sch_y(88.9),
trace(".V1 > .pos", ".R1 > .pin1"),
])
}Modules§
- abi
- HOW THE SANDBOX RUNS A FILE — the WebAssembly interface of a compiled
.rsdocument. - client
- THE PLATFORM CLIENT: agent threads, and live sessions on a simulated world (or a computer, or a robot) that you
launch, drive and watch. The same calls as the TypeScript and Python clients, over the platform’s one door
(
POST /mcp, JSON-RPC), with no dependency. - design
commandagi::design— CommandAGI documents declared in Rust: the same documents, element for element, as the TypeScript SDK’s JSX (commandagi/design) and the Python SDK’scommandagi.design.- git
- GIT ON A FOLDER: the folder door’s operations (status, log, diff, commit, checkpoint, branch, switch, checkout, merge, remotes, fetch, pull, push, fork), the same on a folder of this computer and on a folder of a cloud home.