The standard library
The runtime caldera.pyz carries a standard library: the code every blueprint may use, so that none of
them has to carry a copy of it. The runtime puts it at the front of an agent's PYTHONPATH, so a
blueprint imports a module by its name (import serverkit, from boards import config). A model run
reaches the commands through the runtime (python3 caldera.pyz board …), never a file inside the
archive.
Your own blueprint
A blueprint of your own needs no change to Caldera. You write it in your own repository, upload it
under Blueprints and install it like any other (Blueprints). Start from the
starter: its agent.py is the place for your program.
- Import, do not copy. What this page names, your blueprint imports. A copy does not get the fixes the runtime brings with its updates.
- Name the runtime you need. A module is there from the runtime named in the table below. Write the
highest of those your blueprint imports into the manifest as
runtime: {least: <version>}; an older runtime then refuses the version instead of failing at the first import. - What we promise. A module named on this page changes additively. A change that would break its use gets a new name, and the old one stays for at least one release, with a note in the changelog.
The modules
| Module | What it does | Runtime |
|---|---|---|
conversation |
Talking to people: questions with answers, notices, and the messages from the inbox the runtime writes; a message its handler cannot handle is answered ("Das hat nicht geklappt") and is the finding conversation:failed for a day, which the runtime reports (0.53.1) |
0.51.0 |
talking |
What an agent does with a free message, the same in every agent: its own part first, then the short commands without a model (Lauf jetzt, Pause, Weiter, Stand?), "Das geht nur in der Werkbank" for what needs more rights, then one conversation run with the agent's model and a cost limit per message (ADR-0104 D6) | 0.54.0 |
health |
The health check after an update: this version's heartbeat in the status file, and the commands the agent needs ([python3, -m, health, claude]) |
0.51.0 |
toolchain |
For a container stack's setup script: PHP and Composer (python3 -m toolchain php composer): since 0.52.2 the machine's PHP, in a stack Debian's PHP 8.4 of the image, with its extensions checked (pcntl among them), and no download; Composer pinned and checked under $HOME |
0.51.0 |
stackservice |
Whether an optional service of the stack whose setting is on runs, as the finding stack:service-off:<name> with the missing step (ADR-0099 D7) |
0.52.0 |
serverkit |
The way to a server over SSH, and the kit a server is set up with (see below) | 0.51.0 |
boards |
The board contract and its drivers (the suite's board product, Favro): cards, columns, comments, the card of a run | 0.40.0 |
boards.pick |
Which card a run takes, in the order of the contract | 0.41.0 |
boards.recurring |
Cards that come back on a schedule | 0.42.0 |
boards.setup |
What a board lacks for the contract, as a proposal | 0.49.0 |
boards.chat |
The chat of a card | 0.51.0 |
boards.findings |
Cards in Eingang for the findings a watching agent does not repair itself | 0.59.0 |
sources |
Knowledge sources (the suite's document product, Notion): reading and writing pages through one contract | 0.40.0 |
channels |
Talking to a person on Telegram or Google Chat | 0.40.0 |
mailboxes |
A mailbox (Gmail through gog): reading, labels, drafts, never sending |
0.40.0 |
mailboxes.tools |
The mailbox's tools for a model run | 0.50.0 |
mail |
The core every mail agent shares: sorting, drafts, orders, learning from the mailbox | 0.50.0 |
files |
Files as a data source: a folder of a drive with its subfolders | 0.50.0 |
gogrun |
The one place gog is run: an argument list, never a shell, never a way to send |
0.40.0 |
instruction |
What a model run gets besides the agent's own instructions: the added instruction and the project's knowledge | 0.40.0 |
refusals |
What a model run was refused, made visible | 0.40.0 |
quota |
A quota gate per agent, measured from Claude Code's own limits | 0.42.0 |
sandbox |
Code in a container without network | 0.42.0 |
stackcheck |
A project's compose stack, started and checked before a merge | 0.43.0 |
allowproxy |
A forward proxy that lets a browser reach the stage and nothing else | 0.43.0 |
claudelogin |
Whether Claude Code can sign in, and a sign-in that failed, remembered | 0.47.0 |
toolrelay |
Tools for a model run, served to Claude Code as an MCP server that holds nothing | 0.50.0 |
connectors |
The connectors assigned to this agent | 0.51.0 |
connector_specs |
The descriptions of the HTTP API connectors that ship with the runtime | 0.51.0 |
mcpclient |
A client for a remote MCP server and an HTTP API | 0.51.0 |
web |
The internet connector's rules and its page reader | 0.51.0 |
webguard |
The hook that holds Claude Code's web search to those rules | 0.51.0 |
selfheal |
An agent mends what it can mend itself, and says so when it cannot | 0.51.0 |
changelog |
A merged changelog's new entries back under "Unreleased" | 0.51.0 |
stagewait |
Waiting for a stage to answer | 0.51.0 |
figures |
Entries for the agent's figures and a ledger of its runs for "today" and "this week" |
0.55.0 |
Every module documents itself in its first lines; python3 -c "import <module>; help(<module>)" with the
runtime's std on the path shows it.
The way to a server: serverkit
An agent that works on servers reaches them over SSH as its own user, whose key may run one program and nothing else. The server decides what the agent may do, not the agent's prompt.
On the agent's side, serverkit.run(server, words) asks one operation, where server is a dict with
host, port and user, and words are words of letters, digits and @._:/-. The host key is pinned
in data/known_hosts at the first contact; a changed key raises Unreachable with host_key set. The
private key is the file the secret SERVER_SSH_KEY_FILE names. serverkit.redact(text) blanks secrets
out of an answer before a model reads it.
On the server's side, the standard library brings three frames, and your blueprint brings what it
may do in a folder server/:
| Your file | What it holds |
|---|---|
server/operations.sh |
VERSION, OPERATIONS (the names), and a function op_<name> per operation, run as the agent's user. refuse, setting and helper (the root helper) are there to use. |
server/root-operations.sh |
ROOT_OPERATIONS (what reads as root), REPAIRS (what changes something), and a function root_<name> for each, the one name it may take in $name. A repair runs only when the server allows it. |
server/options.sh |
NAME (the agent on the server is caldera-<NAME>), USER_GROUPS, OPTIONS (your install options), a check_<option> for each that refuses a bad value, and OPTION_HELP. |
A - in a name is written _ in its function. The frames answer version and repair <operation> [<name>]
themselves, check every word before your function runs, and install each agent with its own user, folder,
config and sudoers rule, so several agents can share a server.
One command per server (runtime 0.59). An agent with server/operations.sh makes its own ssh-ed25519
key on its first report, in .caldera/ssh/ on its own volume, and reports only the public half
(ssh.publicKey). serverkit.run uses that key unless the secret SERVER_SSH_KEY_FILE names another one.
On the agent's page, Settings, Add a server adds a row to the agent's server list (the list setting
with a host column) and makes one command for that server:
curl -fsSL https://<Caldera>/kit/<token> | sudo sh
The script holds the kit for the version the agent runs and the agent's public key, never a private one,
and runs install.sh --key ... [--allow <repairs>]. The token works once, for 15 minutes, for this agent
only; the repairs are the ones you ticked (none: the agent only reads on that server). A second form
downloads the script first, so it can be read before it runs. The agent tests the connection on its next
pass and reports success, or a finding with the reason. Your blueprint should deny its model runs the
folder .caldera/, where the key lives.
A blueprint that declares serverkit in its manifest gets its install options as
fields in the same dialog (watched folders, a backup mark and so on); what is filled in is passed to
install.sh in the command as arguments of their own, each in single quotes, after a check that allows
absolute paths only.
The kit is still available by hand, for options the manifest does not declare:
python3 .caldera/caldera.pyz serverkit kit # on the agent's machine
sh install.sh --help # on the server: the agent's name, repairs and options
sh install.sh --key agent.pub [--allow <repairs>] [--<option> <value> ...]