Skip to main content

Module definition

Module definition 

Source
Expand description

The definition an archive carries: an allowlist, not a denylist (spec section 4.1). A definition is instructions for a process that runs commands, so a field an archive could set that widens what the agent may do at the destination (permission mode, extra directories, shell, remote connections, MCP servers, environment, hooks, auto-approve rules, accounts, the working directory, the container’s image and volumes) is not a field of PortableDefinition at all. Reading an archive keeps the fields below, drops every other key and lists what it dropped, so the arrival note can say so.

Structs§

ParsedDefinition
What reading agent.json gave.
PortableDefinition
RouteChoice
The route and model the agent runs on, as ids. The destination checks them against its own catalog.

Constants§

ALLOWED_KEYS
The keys of agent.json this build reads. Every other key is dropped.