costwright — agent budget analysis
v0.1.1Static worst-case token-budget analysis for LLM-agent workflows + signed budget certificates.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
costwright_check
Statically analyze an LLM-agent repo (LangGraph / CrewAI / OpenAI-Agents-SDK) for runaway-budget risk WITHOUT running it. Builds a .py-only archive of the given local path and returns a worst-case budget summary: counts of certifiable / default_dependent / non_certifiable / runaway graph units and a pass|fail verdict. Use before deploying a workflow to catch missing token caps and while-True runaway drivers.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Absolute path to the local Python repo/directory to analyze. |
policy | string | Analysis policy. |
costwright_certify
Issue a tamper-evident, Ed25519-signed budget certificate for an agent repo (re-run server-side, logged to a public transparency log). Same input as costwright_check plus an optional label. Returns the cert_id, the signed certificate and a verify_url. Use to produce an auditable proof of a workflow's worst-case spend ceiling.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Absolute path to the local Python repo/directory to certify. |
label | string | Optional human label for the certificate. |
policy | string |
costwright_verify
Verify a previously issued costwright certificate by id (public, no key). Returns its state (valid|expired|revoked|signature_invalid), whether the signature checks out, and the certified result.
| Parameter | Type | Description |
|---|---|---|
cert_id * | string | The certificate id to verify. |
costwright_pubkey
Fetch costwright's active Ed25519 public keys (PEM) for offline signature verification of any certificate (public, no key).