Repository navigation
AI Tasks
Work on the same project on several branches at the same time. Each task gets its own branch in its own folder (a git worktree, see Worktrees), with an AI agent working in it. Agents in different worktrees never touch each other's files, so one can fix a bug while another builds a feature, and you can let several agents race on the same task and keep the best result.

New Task: two agents race on one task, each in its own worktree, with the same first prompt.
In the AI panel, hover a repository and click +, or choose View > New AI Task... for the active repository. Then:
-
Task: say what the task is, for example "Fix the login race". The branch name follows it (
fix-the-login-race); change it if you like. -
From: the branch the task starts from. It is your project's main branch on the remote (what
origin/HEADpoints to), else the branch you are on. - Agent: the agent that works on it, preset to the one you used last. Pick No agent for just the worktree.
- First prompt (optional): what the agent should do. It is sent to the agent as it starts, so it gets to work at once.
- Click Create Task (or press Cmd+Enter).
The worktree is made next to the repository's folder, named after it and the branch (storefront-fix-the-login-race). Its card appears in the AI panel with the agent working in it. If the branch name is taken, the next free one is used (fix-the-login-race-2) and the dialog says so.
Click Add Agent to Race to add up to five agents. Each one gets its own worktree and branch (fix-the-login-race, fix-the-login-race-2...), all from the same starting point, with the same first prompt. Pick a different agent for each, or the same one several times. When they are done, compare their changes and keep the best one; finish the others.
A new worktree is a clean checkout: files git ignores, such as .env or downloaded packages, are not in it. With Get it ready to run checked (the default), Nibtree:
- copies the files and folders listed in a
.worktreeincludefile at the top of your repository, one path per line (lines starting with#are notes; patterns such as*.envare not supported); - links the folders set in Settings > AI > Link into new worktrees (
node_modulesby default), so packages are not installed again.
Only paths git ignores are copied or linked, and nothing already in the worktree is replaced. The message after creating says what was copied and linked, and what was skipped and why. A linked folder is added to the repository's .git/info/exclude, so the worktree never shows it as a change.
# .worktreeinclude
.env
.env.local
config/local.json
Right-click a worktree's card (or use its ... button) and choose Finish Task.... Nibtree asks first, then:
- closes the agents working in it,
- removes the worktree's folder,
- deletes its branch.
If the worktree has uncommitted changes, the question says they will be lost. If the branch has commits that are not merged anywhere, Nibtree asks again before deleting it; choose Keep Branch to keep it. Remove Worktree... removes only the folder and keeps the branch.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode