PricingGambitBlog

Accuracy-first AI assistant framework and dev environment

Gambit is a CLI + runtime that helps developers build the most accurate LLM apps by making it simple to provide exactly the right amount of context at the right time.

Install via JSRView on GitHubJoin the community
gambit quickstart

downloading modules…

cache primed at ~/.deno

gambit installed → ~/.deno/bin/gambit

Keep your AI assistant grounded, typed, and inspectable

Keep context small

Feed each tool only the facts it needs. Gambit scopes each workflow step to local context, so you don’t blow up token windows or hallucinate outside the source of truth.

Ditch mega-prompts

Break assistants into typed workflow steps, each with its own prompt or compute action. Swap models per step and reuse those steps anywhere.

Type-safe and easily debuggable

Define schemas once, enforce them at runtime, and ship with CLI and simulator traces baked in. Failures show up as structured logs instead of vague LLM output.

Install via JSRView on GitHubJoin the community
gambit run hosted_assistant.deck.ts
$ deno run -A jsr:@bolt-foundry/gambit/cli run hosted_assistant.deck.ts
• Loading decks
• Streaming trace...
✔ Response validated
Workflow stepsPassing
  • Intent step

    Parses request + locale

    Typed
  • Retrieval step

    Fetches docs + guardrails

    Typed
  • Compose step

    Generates typed response

    Typed

Wire it in, measure it, ship with confidence

  • Author workflows in Markdown or TypeScript

    Mix LLM prompts and compute blocks freely. Gambit tracks each step’s label, metadata, and downstream dependencies so you always see how the workflow fits together.

  • Wire actions exactly once

    Reference a step anywhere and it keeps its schema + guardrails, so cross-workflow calls stay type-safe.

  • Run locally, then promote

    Use `gambit run`, the simulator UI, or embed the runtime. When you’re ready for production, swap model providers or plug into Bolt Foundry’s managed evals.

Five-minute quickstart

Your assistant lives in a single file that enumerates each workflow step (we call it .deck.*). Run it locally with the CLI, then reuse the exact same steps in CI or Bolt Foundry’s hosted platform when you’re ready for production.

.deck.* files describe your workflow steps—run them directly with the CLI.

Install once
deno install -A -n gambit jsr:@bolt-foundry/gambit/cli
Run an example
deno run -A jsr:@bolt-foundry/gambit/cli run --example hello_world.deck.md --init '"hi"'
Open the simulator
deno run -A jsr:@bolt-foundry/gambit/cli serve src/decks/gambit-assistant.deck.md --port 8000

Dig into the docs

Authoring reference

Learn how to define each workflow step’s inputs, outputs, metadata, and how they link together.

Runtime & handlers

See how the runtime watches each step’s busy/idle/error hooks to keep workflows safe and observable.

Examples directory

Start from runnable workflows—hello world, multi-step agents, handler patterns, and more.

Bring Gambit into your reliability workflow

Install via JSRView on GitHubJoin the community
© 2025 Bolt Foundry. All rights reserved.
Careers