Tools
Reference material for the developer tooling that ships with Runloop.
- Tool Attachments describes the
tools.jsonschema used byrlp agent scaffoldand bundle packaging. - TUI documents the interactive terminal UI for inspecting agents and workloads.
Agent scaffold
rlp agent scaffold <name> runs an interactive wizard (unless
--non-interactive) to bootstrap a wasm agent skeleton:
- Prompts for model/provider route + secret hints, capability grants
(fs/net/kb), and optional tool attachments (
tools.jsonentries). - Emits bundle files in
agents/<name>/:manifest.toml(placeholderentry_wasmdigest),policy.caps(based on responses),tools.json(v1), README, andbin/.gitkeep. - Drops a companion crate in
crates/agents-wasm/<name>/with a stubmain.rsthat signals readiness and prints placeholder JSON. - Generates a starter opening YAML (under
examples/openings/) wired to the new agent with a single node andexists(node.out)success condition. - Digests are computed for
tools.json;entry_wasmstays zeroed untiljust build-agents-wasmrebuilds the.wasmand updates the manifest.
Flags:
--root <path>overrides the bundle root (defaults to the firstagents.search_dirsentry from config).--crates-dir <path>overrides the wasm crate root (defaults tocrates/agents-wasm).--opening-path <path>writes the starter opening to a custom location (defaults toexamples/openings/<name>.yamlwhen generated).--model,--cap-fs,--cap-net,--cap-kb-read,--cap-kb-writeseed wizard values or bypass prompts when--non-interactive.--model-secretoverrides the provider secret id in non-interactive mode.--forceallows scaffolding into existing paths (overwrites files).
Global CLI overrides (local runs only):
--agents-dirprepends a search directory for agent bundles (ahead ofagents.search_dirsfrom config). For daemon runs, configure the daemon with the same search dir instead.--openings-dirprepends a search directory for openings (ahead ofopenings.search_dirs); requires--local.