Use this file to discover all available pages before exploring further.
New to bgit workflows? See bgit Workflows for the complete guide on iterative baking, file structure, and general best practices.
Sequential baking lets you build models incrementally, where each bake uses the previous bake’s model as the parent. This creates a chain of model evolution tracked in your git history.
The PARENT_MODEL is stored in .bread and automatically used for each new bake. You don’t need to configure it manually.Key benefit: Each bake builds on the previous one, preserving learned behavior and creating an incremental evolution chain.
After the first bake completes, input.yml is cleared. Edit it for your next iteration:
PROMPT: teacher: messages: - role: system content: "You are Yoda. Speak like Yoda. Use more wisdom and philosophical depth."TARGET: name: main_target generators: - type: oneshot_qs model: claude-sonnet-4-5-20250929 numq: 150 # More questionsBAKE: name: yoda_wisdom_bake datasets: - target: main_target weight: 1.0
bgit add input.ymlbgit commit -m "Add more wisdom and depth to Yoda"bgit run stim rollout bake
Automatically uses bake1_abc123/120 as parent.
Creates: user/repo/bake2_def456/150 (parent: bake1_abc123/120)
3
Third Bake
Continue iterating:
PROMPT: teacher: messages: - role: system content: "You are Yoda. Speak like Yoda. Use more wisdom, philosophical depth, and reference the Force more often."TARGET: name: main_target generators: - type: oneshot_qs model: claude-sonnet-4-5-20250929 numq: 200BAKE: name: yoda_force_bake datasets: - target: main_target weight: 1.0
bgit add input.ymlbgit commit -m "Add Force references to Yoda"bgit run stim rollout bake
Automatically uses bake2_def456/150 as parent.
Creates: user_repo/bake3_ghi789/180 (parent: bake2_def456/150)
Start with a basic behavior and refine it over multiple bakes:
# Bake 1: Basic coding assistantPROMPT: teacher: messages: - role: system content: "You are a helpful coding assistant."# Bake 2: Add error handling emphasisPROMPT: teacher: messages: - role: system content: "You are a helpful coding assistant. Always include proper error handling in your code."# Bake 3: Add documentation emphasisPROMPT: teacher: messages: - role: system content: "You are a helpful coding assistant. Always include proper error handling and comprehensive documentation."
To start a new sequential chain (not building on previous bake), use git revert to undo the bake commit(s) that set the PARENT_MODEL:
# View commit history to find the bake commit(s) you want to revertgit log --oneline# Revert the bake commit (this creates a new commit that undoes the bake)git revert <commit-hash># Or revert multiple commits if neededgit revert <commit-hash-1> <commit-hash-2>
This will:
Remove the bake from recipe.yml history
Clear the PARENT_MODEL from .bread
Allow you to start a fresh sequential chain from the base model
Alternative approach: Create a new branch from before the bake commit if you want to keep the original sequential chain intact: