Skip to content

FAQ

This page answers the questions people actually ask. It’s a living document — when a new question comes up often enough, it lands here.

A compiler for AI context. You write specs; it generates tests, types, and recipes that turn AI coding agents into reliable implementers.

No. ContextBrew is the feeding system for AI agents. You still need Claude Code, Cursor, Copilot, or whatever you prefer. ContextBrew makes them better, not redundant.

No. Use whatever editor you like. The model files are plain JSON/text on disk. Context Studio (the web IDE) is one way to edit them; Vim, VS Code, or whatever you have is another. Many teams use a mix.

Yes. The repository is at github.com/contextbrew/contextbrew. The CLI is not yet on npm — install it from source (Installation); the npm publish is pending. The Rust CLI is built in-tree from the Cargo workspace and is not on crates.io yet either.

Yes. The CLI does everything the IDE does, just with less hand-holding. Many CI pipelines use only the CLI.

Yes. The Execution Engine supports Ollama and any OpenAI-compatible endpoint. The recipes, models, and tests are all local files.

No. Use any subset. The platform only runs generators for models that exist in the project. See Which model do I need? for a decision guide.

DDD. Always start with DDD unless you have a specific reason not to. The other models add capabilities; DDD is the foundation.

Yes. Add a model file to your project, run ctx generate, and the new generators kick in. Existing recipes may need updates if the new model changes things.

Partially — ContextBrew can generate a first draft of a spec from a prompt (“a booking system for a small travel agency”). Treat that as a starting point you’ll refine. The specs are still yours.

  • 5 minutes: install, run ctx init, define one DDD aggregate, see tests appear
  • 1 hour: a few models filled out, a couple recipes generated
  • 1 day: team-scale workflow, branching, reviewing by tests

There’s no “right” pace. Some teams adopt fully on day one. Others adopt one model at a time over weeks.

Yes. The DSM model can be imported from an existing database schema. The DDD model can be proposed from the schema. USM and CBRL are typically written by hand. There’s an importer for each.

JSON for most models. Plain text (DSL) for CBRL. Mermaid-compatible for the visual models (DDD, USM, SCM, C4). Every format has a normative JSON Schema.

Yes. The files are plain JSON on disk. Validate them with ctx schema <format> against your local schema. The IDE is one editor; notepad is another.

What if my model gets out of sync with my code?

Section titled “What if my model gets out of sync with my code?”

The DeltaEngine detects it. When you run ctx generate, it diffs the new artifacts against the old. Anything stale is regenerated. You can also run ctxbrew check for a deterministic drift score across your whole project, or ctxbrew stale for a staleness listing per spec.

What’s the difference between a recipe and a code PR?

Section titled “What’s the difference between a recipe and a code PR?”

A recipe is the specification of a change — context, tests, and work items. A code PR is the implementation of a change. The recipe is what gets handed to the AI; the PR is what gets reviewed by humans. They’re complementary.

What if the AI’s code doesn’t pass the tests?

Section titled “What if the AI’s code doesn’t pass the tests?”

Two paths:

  • Iterate. Re-run the recipe with the same model, or switch models. The agent sees the failing tests and adjusts.
  • Edit the spec. If the agent consistently fails, your spec is probably wrong. Tighten the invariant or add an acceptance criterion. The AI is only as good as the spec.

Does ContextBrew support non-English specs?

Section titled “Does ContextBrew support non-English specs?”

Yes — model fields can be in any language. The DSL keywords (CBRL’s REQUIREMENT, ACCEPTANCE_CRITERIA, etc.) are English-only for now. We’re tracking multilingual support.

What’s the minimum schema version I can target?

Section titled “What’s the minimum schema version I can target?”

Any version that’s still in the conformance bundle. Schema versions follow semver; major bumps add a new directory rather than mutating the old one. Files are forever valid against the version they declare.

Anthropic Claude Opus 4 is the strongest we see on long, complex recipes. Claude Sonnet is the best price/quality ratio. OpenAI’s GPT series and Google’s Gemini are competitive. Local models (via Ollama) work for simple recipes but struggle with long context.

The Execution Engine tracks cost per recipe, so you can compare.

The CLI is free. The IDE is free for self-hosted. Cloud-hosted Execution Engine usage is metered per token: the provider’s cost plus a platform margin (Pricing). Bring your own key via BYOK and the margin drops to zero; self-hosted models (Ollama) are free.

No. The CLI and IDE work fully offline. The only network calls are the ones your AI provider makes, which you configured.

The recipes directory is a git repo (you initialized it). The model files are regular files; back them up like any other source code. The Recipe Server (if you use it) is self-hostable.

Community channels are being set up; see the repo README for the current links. In the meantime, discussions work today.

GitHub issues. For security issues, see the SECURITY.md in the repo.