Ctx Branch
Rare πŸ”„ workflow 🌐 JA

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

CardSynergy
Ctx TreePrerequisite. Branch links sub-contexts from the Tree
DryrunRecord pre-validation before cutting a branch
ShipBranch 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.