Ctx Branch
Link sub-contexts to Git branches. Branches carry context, and context tracks branches.
backend-reviewmigration-reviewcontext-management
Effect
Bind a Git branch name to a sub-context. When you switch branches, the corresponding sub-ctx switches too. Each branch independently tracks βwhatβs been done and what remains.β
When to Use
- 3+ feature branches running in parallel
- Each branch has a distinct scope (deploy prep, feature dev, refactor, etc.)
- You catch yourself asking βwhat was I doing on this branch?β
How It Works
1. Add branch info to the parent ctxβs Sub Contexts table
## Sub Contexts
| Theme | File | Branch |
|-------|------|--------|
| ReAct Agent | project/react-agent.md | feature/react-agent |
| GCP Minimal Deploy | project/gcp-minimal.md | deploy/gcp-minimal |
| UI Refresh | project/new-ui.md | feature/new-ui |
2. Include branch info in the sub-ctx
# GCP Minimal Deploy β Sub ctx
**Parent ctx**: project_resume.md
**Branch**: deploy/gcp-minimal
**Last updated**: 2026-03-30
## Scope
What this branch covers.
## Steps
Branch-specific task list.
## Notes
Branch-specific decisions and constraints.
3. Workflow
On branch switch:
git checkout feature/X
β Read sub-ctx project/X.md
β Branch context is instantly restored
On task completion:
Update sub-ctx (check off TODOs)
β Add 1 line to parent ctx Timeline
β Commit
On branch merge:
Mark sub-ctx as "done"
β Record integration result in parent ctx
Combinations
| Card | Synergy |
|---|---|
| Ctx Tree | Prerequisite. Branch links sub-contexts from the Tree |
| Dryrun | Record pre-validation before cutting a branch |
| Ship | Branch shipping decision β sub-ctx done β merge |
βA branch is a plan; context is memory. Only with both can you manage parallel worlds.β β Eris
Want to use this card permanently? Convert it directly into a SKILL.md β Effect β Overview, When to Use β Trigger, How It Works β Steps.