YGGDRASIL
Grow your worlds. Manifest your ideas.
Music promoted by free-stock-music.com
Creative Commons Attribution-ShareAlike 3.0 Unported
Yggdrasil
Worktree
Grow many worlds. Merge what matters.
Like the mythical world tree connecting realms, Yggdrasil lets you grow isolated, parallel environments where ideas can evolve independently without colliding.
npx yggtreeMental Model
Yggdrasil is built around a few core ideas that transform how you think about parallel development.
Branches are ideas
Each branch represents a concept, a possibility, a direction your code could take.
Worktrees are realms
Each worktree is a complete, isolated reality where that idea can fully manifest.
Each task deserves its own world
No more context switching. No more stashing. Each task lives in its own space.
Quick Start
Get started in seconds. No installation required.
Installation
Run without installing:
npx yggtreeOr install globally:
npm install -g yggtreeBasic Usage
Key Features
Everything you need for modern parallel development workflows.
True Parallel Tasks
Run completely independent tasks at the same time β implement a new page while fixing a bug in a totally different flow. No stashing, no conflicts.
First-class Worktree Workflow
Create, manage, and navigate Git worktrees as a primary workflow, not an afterthought.
AI-Friendly Isolation
Assign each AI agent its own worktree β every task gets a dedicated, isolated environment.
Automatic Bootstrapping
Run installs, submodules, and setup scripts automatically for each worktree.
Enter, Exec, and Exit
Enter worktrees, execute commands, or run tasks without changing directories.
Interactive or Scriptable
Use the interactive UI or drive everything through commands and flags.
Run Independent Tasks in Parallel
This is the heart of Yggdrasil. Each worktree is a completely independent task β with its own branch, its own remote, its own environment. Implement a new page while fixing an unrelated bug in a different flow. Simultaneously.
Multiple Tasks, Zero Conflicts
yggtree wt create feat/new-dashboard --exec 'cursor .'yggtree wt create fix/auth-bug --exec 'code .'yggtree wt create chore/update-deps --exec 'aider'Three unrelated tasks. Three isolated environments. All running at the same time.
π€ Even Better with AI Agents
Assign each agent its own worktree. Different tasks, different agents, all in parallel β no collisions.
yggtree wt create feat/ai-refactor --exec 'cursor .'yggtree wt create feat/ai-tests --exec 'codex'yggtree wt create fix/ai-perf --exec 'aider'All in parallel. All reviewable. All isolated.
π§ͺ Sandbox Mode
Not every worktree needs to be a live task with its own remote branch. Sometimes you just need a local playground β a temporary, disposable space to experiment freely and bring back only what works.
When to Use Sandbox
The core workflow creates real, managed worktrees β each with its own branch and remote, perfect for independent tasks. But sometimes you don't need all that. You just want a quick, local-only space to try something without any Git footprint. That's where Sandbox comes in.
The Workflow
yggtree wt create-sandbox --carryCreates a temporary, local-only worktree with a random name. Carries your uncommitted changes. Never pushes to remote.
yggtree wt applyLiked the result? Apply the file changes back to your origin directory.
yggtree wt unapplyDidn't work out? Revert to exactly how it was before.
Command Reference
Everything you need to master Yggdrasil worktrees.
Configuration
Customize how Yggdrasil bootstraps each worktree with automatic setup scripts.
.yggtree/worktree-setup.json
Create a .yggtree folder in your repo root with a worktree-setup.json file to define custom bootstrap commands:
{
"setup-worktree": [
"npm install",
"git submodule sync --recursive",
"git submodule update --init --recursive",
"echo \"π³ Realm ready\""
]
}Resolution order:
- .yggtree/worktree-setup.json in the repo root (primary)
- .yggtree/worktree-setup.json inside the worktree (per-worktree override)
- yggtree-worktree.json (legacy)
- .cursor/worktrees.json (legacy)
- Fallback: npm install + submodules
Watch Yggdrasil in Action
The story behind the tool + the real CLI running live.
π³ The core idea β how growing parallel worlds changes the way you develop.
πΏ The real CLI in action.
Support the Journey
If Yggdrasil has helped you grow your worlds, consider fueling the next realm.
Or choose your own amount on your preferred platform:
β¨ Every contribution helps nurture the tree and grow new branches β¨