Using an MCP coding agent like Claude Code, Codex, or Cursor? Run
hevn mcp install to expose every command as an MCP tool — the guidance below is delivered to the agent automatically.Discover the CLI contract
Before planning or executing a HEVN workflow, load the packaged agent guide:CLAUDE.md operating guide shipped with the CLI. Agents must read it first because it contains workflow-specific instructions that are more detailed than the command manifest.
Then load the machine-readable manifest:
Use structured output
Prefer YAML or JSON for reads and automation. In structured mode, successful output is wrapped inok, data, meta, and warnings; errors include errorCode, errorType, error, and exitCode.
--non-interactive or --no-input when prompts must be forbidden:
Read before writing
For money movement and contract operations, load the relevant resource first:Contract role selection
When creating a contract from a document, determine which party is the current HEVN user:- If the current user is the client, pass the counterparty as
--contractor-email. - If the current user is the contractor, pass the counterparty as
--client-email.
Avoid invented data
If a document does not contain the counterparty’s email, ask the user. Do not invent emails, addresses, tax ids, bank details, invoice dates, or amounts.Use idempotency for transfers
For payment automation, pass your own idempotency key:--dry-run for mutating commands when you need to inspect the would-be request before sending it:
Confirmation flags
Use--yes only when the user or upstream workflow has already approved the action:
Debug safely
--debug can include curl commands and authentication details. Use it for local troubleshooting, but redact before storing or sharing logs.