Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples & Openings

Sample openings live in examples/openings/ and double as fixtures for the planner/executor. They run against the canonical agents stored in agents/ once their wasm bundles are built.

  • compose_email.yaml — multi-agent crew: contacts → context → writer → critic → mailer (human confirm). This is the canonical smoke test.
  • system_helper.yaml — single-node helper that can invoke a host command and optionally call Gemini.
  • tmux_layout.yaml — apply tmux presets and optionally reload/apply a layout.
  • system_tra.yaml — raise tmux/shell history limits with a managed config block.

Running an example opening

# ensure wasm bundles are present
just build-agents-wasm
# or: cargo build --release --target wasm32-wasip1 \
#   --manifest-path crates/agents-wasm/Cargo.toml

# run compose_email locally (no daemon)
cargo run -p rlp -- run examples/openings/compose_email.yaml --local \
  --params '{"recipient":"john"}'

Monitor a run by piping the NDJSON stream into the TUI:

cargo run -p rlp -- run examples/openings/compose_email.yaml --local \
  --params '{"recipient":"john"}' > run.ndjson
cargo run -p agtop -- --input run.ndjson

Starter openings generated by rlp agent scaffold --opening are also written to examples/openings/<name>.yaml; run them the same way to validate new agents.