Execution Engine
Execution Engine
Section titled “Execution Engine”The Execution Engine automates code generation from recipes using AI model providers. Instead of manually exporting a recipe prompt and pasting it into an AI agent, you hand a generation run to the platform: it assembles the prompt from the recipe, invokes the model, streams progress, and packages the artifacts for download.
How It Works
Section titled “How It Works”A generation run has four stages:
- Prompt Assembly – the platform gathers context from the recipe and assembles a structured prompt
- Model Invocation – the prompt is sent to the configured provider model on the platform side
- Streaming – progress and output stream back while the run executes
- Artifact Download – the generated code is packaged and downloaded
Running a Generation
Section titled “Running a Generation”# Start a hosted generation runctxbrew generation create \ --project <project-id> \ --repo <repo-id> \ --commit <sha> \ --model claude-sonnet-4-20250514| Flag | Description |
|---|---|
--project <id> |
Project ID |
--repo <id> |
Repository ID |
--commit <sha> |
Commit SHA to generate against |
--model <name> |
Model name (e.g. claude-sonnet-4-20250514) |
--priority <n> |
Queue priority (1 = high, 10 = low) |
--template <name> |
Prompt template name |
Then follow the run:
ctxbrew generation list --project <project-id> # runs + costsctxbrew generation show <id> # run detailctxbrew generation stream <id> # live progress (SSE)ctxbrew generation download <id> --format zip # fetch artifactsctxbrew generation cancel <id> # stop a running generationctxbrew generation retry <id> # re-run a failed generationgeneration list reports runs alongside their costs, so spend is visible per run without a separate command.
Providers
Section titled “Providers”Provider configuration is managed on the platform, not in a local config file. Inspect what’s available:
ctxbrew provider list # all configured providersctxbrew provider show <id> # one provider's detailctxbrew provider models <id> # the models a provider offersctxbrew provider health <id> # health checkUse provider models to pick a valid --model value for generation create.
Generation Comparison
Section titled “Generation Comparison”Run the same work through two generations, then compare outputs side-by-side:
# Compare two completed runsctxbrew compare create --a <gen-id-a> --b <gen-id-b>
# Review the diff summaryctxbrew compare show <comparison-id>
# Record a verdictctxbrew compare verdict <comparison-id> --verdict a # a, b, or tieComparisons list under ctxbrew compare list, so a team can see which outputs were preferred and by what verdict.
CLI Reference
Section titled “CLI Reference”ctxbrew generation create # Start a generation runctxbrew generation list [--project <id>] # Runs + costsctxbrew generation show <id> # Run detailctxbrew generation stream <id> # Stream progress (SSE)ctxbrew generation cancel <id> # Cancel a runctxbrew generation retry <id> # Retry a failed runctxbrew generation download <id> [--format] # Download artifacts (json|zip)ctxbrew compare create --a <id> --b <id> # Compare two generationsctxbrew compare verdict <id> --verdict a|b|tie # Record a verdictctxbrew provider list|show|models|health # Inspect providersNext Steps
Section titled “Next Steps”- Creating Recipes to create recipes for the Execution Engine
- Pricing for Execution Engine pricing details
- CLI Reference for the complete command reference
