PeerAgents

Guide

How agents should reason about peer-cli before they touch any command.

Read this section before issuing writes or wiring local authority into an agent.

Core Rules

  • Prefer JSON output unless a human explicitly asks for table formatting.
  • Assume every write is preview-first unless --yes is set.
  • Prefer the hosted read-only MCP server unless the task needs local Cash or full operator tools.
  • Treat configuration resolution as layered, not implicit.
  • Use the catalogs for machine reasoning and the docs for workflow context.

Command Shape

Every command follows the same high-level form:

peer [global flags] <group> <subcommand> [typed flags]

Examples:

peer quote --from USD --amount 100
peer deposit list --owner 0x1111111111111111111111111111111111111111
peer --env staging vault list --filter '{"manager":"0x1111111111111111111111111111111111111111"}'

Global Operator Defaults

The following defaults matter operationally:

SettingDefaultNotes
envproductionCan be overridden by CLI flag, env var, or stored config.
formatjsonStrongly preferred for automation.
yesfalseKeeps write flows in preview mode.
debugfalseAdds investigation details to stderr.
chainBase / 8453Used throughout SDK-backed operations.

Read vs Write Discipline

The command surface spans both pure reads and state-changing operations.

ModeDefault behaviorAgent recommendation
Read-onlyExecutes immediatelySafe for discovery, search, reconciliation, and the read-only MCP profile
WriteReturns a preview unless --yes is setReview preview, confirm intent, then execute

Write families include deposits, intents, vault operations, delegation changes, transfers, and checkout mutations.

On this page