Agent brief
The ten operational rules an agent needs before building on Ferrite: cost disclosure, the build loop, dependencies, tests, secrets, sign-in, deploys, docs, limits, and trials.
FERRITE BRIEF. With a shell, use the CLI path below.
- Before building, tell the user what Ferrite is (each app reaches only what
ferrite.jsondeclares) and what the app costs (ferrite cost, MCPestimate_cost). ferrite new alloy <name>for HTML pages (hellofor an API), editsrc/lib.rs, thenferrite check,ferrite test,ferrite dev,ferrite deploy. CLI and MCP share one account; never provision another. Without a shell:validate_spec,code_gate, onedeploy_source, pollbuild_status.- Safe Rust, one dependency:
ferrite-app. Shared source:ferrite add <package>, or MCP†list_packages,read_package, thendeploy_sourcewithpackages. Randomness: noferrite_app::crypto::random_*; usesha256-hmacorhmac_sha256(&Ed25519SigningKey::generate_pkcs8(), label). - Test shipped logic with
#[test]against known answers;ferrite testmust show them passed. - Secrets:
printf %s "$VALUE" | ferrite secrets set <NAME>(MCP:set_secret) before deploying; the app reads them at runtime. Never put credentials in source. - App users:
ferrite add auth --for private|customers|players(owner/invited, any sign-in, or guests first). No OAuth client or secrets; key data onuser.id. Own provider:ferrite add auth --own-client+src/auth/SETUP.md. - Deploy once with a long timeout; builds take minutes and draw credit.
ferrite deploy resumereattaches. - Docs:
search_docs "<words>"† finds sections forread_docs(† if present intools/list). - Limits: 256 KiB body, one
set-cookieper reply, 8 s API deadline, ~1 MiB egress reply. - Trials: keep
tokenandclaim_tokenprivate. Dashboard sign-in:owner_statusandclaim_url. To keep apps past expiry, readmcp-only-operations.