-
Notifications
You must be signed in to change notification settings - Fork 0
Context Bundles
viamu edited this page Feb 28, 2026
·
2 revisions
Context bundles let you package agent instructions as reusable Markdown directories instead of inlining everything in YAML.
steps:
- name: "Plan"
context: "contexts/planner" # β references a bundlecontexts/planner/
βββ CONTEXT.md # General instructions (loaded first)
βββ agents/
β βββ architect.md # Agent definition with frontmatter
βββ skills/
βββ plan-format/
βββ SKILL.md # Additional skill instructions
Agent .md files support YAML frontmatter for configuration:
---
model: claude-opus-4-6
tools: Read, Grep, Glob
maxTurns: 1
prompt: "Analyze and plan the following task:\nTask: {{task}}"
---
# Software Architect
You are a senior software architect...The Markdown body becomes the system prompt. Frontmatter fields override pipeline-level settings.
| Frontmatter Field | Maps To |
|---|---|
model |
Step model override |
tools |
allowed_tools |
maxTurns |
max_turns |
prompt |
Step prompt |
When a context bundle is loaded, values are resolved in this order:
graph TD
A["1οΈβ£ Agent frontmatter<br/>(agents/*.md)"] --> B["2οΈβ£ Pipeline YAML step config"]
B --> C["3οΈβ£ Pipeline YAML global settings"]
style A fill:#2d5016,color:#fff
Note
First defined wins β agent frontmatter takes highest priority.
π Home
- π Getting Started
- π» CLI Reference
- π YAML Reference
- π Step Types
- π MCP Servers
- π¦ Context Bundles
- βοΈ Configuration
- ποΈ Project Structure
- π§ͺ Testing