CLI reference
Get the CLI
The yichus binary is built from source. You need git, a JVM
(17+), and sbt; sbt
assembly writes yichus.jar under target/:
git clone https://github.com/snoble/yichus && cd yichus sbt assembly alias yichus="java -jar $(pwd)/target/scala-*/yichus.jar"
Build the two MCP servers
Two npm packages wrap parts of the same engine.
@yichus/api-mcp serves the API Safety MCP tools (scaffold,
verify, report — the surface documented under
API MCP docs).
@yichus/mcp is the
local relay that opens the hosted
calculators and playground with WebMCP enabled.
Neither package is published to npm, so npx will not find
them. Both build from the checkout above, and neither needs the jar:
pnpm install pnpm run yichus-api-mcp:build node packages/yichus-api-mcp/dist/cli.js pnpm run yichus-mcp:build node packages/yichus-mcp/dist/cli.js
Neither replaces the CLI. The commands below, such as
explore, dist, and fact-diff, need the
jar.
Commands
Commands on the yichus binary. Each page includes the current
usage, options, and available subcommands.
yichus build— Type-check Bosatsu files with Yichus packagesyichus eval— Evaluate a binding and print resultyichus sim— Generate interactive HTML simulationyichus simapp— Generate simulation app from .sim.bosatsu configyichus deploy— Execute the declarative deploy manifestyichus matchless— Export Matchless IR and metadata sidecaryichus spec— Run native bounded and structural checks of declared Bosatsu properties (TLC is not yet available)yichus tla— Retired TLA+ sketch command; use spec for native checksyichus admit— Solve batch admission against declared escrow invariantsyichus law— Check declared Yichus/Law obligations by seeded generation, or propose properties with --suggestyichus lean— Prove supported Bool laws on a configured host with the pinned Lean toolchainyichus conformance— Check declared Yichus/Spec Conformance bindings against the compiled handlers by executionyichus dist— Check declared distributed-world specs by deterministic simulationyichus protocol— Explore declared finite transaction protocols with atomic states, faults, and sourced counterexamplesyichus flow— Verified mutation flows: conformance, parts, batch, equivalenceyichus yir— Export canonical YIR (validated on emit)yichus dossier— Export a one-shot trace dossier over the provenance graphyichus workbook— Export package/impact workbook artifacts for agentsyichus verify— Enumerate interleavings for IO-heavy sourceyichus audit— Audit IO patterns in Bosatsu filesyichus service— Service and CRUD scaffolding commandsyichus api— Scaffold, verify, and deploy a Yichus-first Bosatsu APIyichus access— Prove per-user data access from Matchless IRyichus explore— Emit system profile JSONyichus properties— Emit a canonical per-binding property digestyichus verify-claims— Check an agent's report against computed program facts; inspect supported, refuted, and not-provable resultsyichus why— Evaluate one binding on typed inputs and report why the output is what it isyichus glance— Compare N programs' glance channels on one shared declared axisyichus organize— Render the organization lenses (page, vocabulary, stack, conventions, map, flow, diff) over Bosatsu filesyichus diff— Diff two explorer profiles structurallyyichus fact-diff— Diff the fact families between two program versionsyichus serve— Start explorer HTTP serviceyichus mcp— Start explorer MCP serveryichus playground— Start browser-based simulation editoryichus daemon— Explorer daemonyichus bosatsu— Passthrough to bosatsu CLI