Wagner
Multi-repo task manager for AI agent sessions. Orchestrates agent instances across git worktrees with tmux.
Features
- Workspace support - Define repo groups, create tasks with
-w <workspace> - Multi-pane sessions - Tmux pane per repo with agent launched automatically
- Git worktree isolation - Each task gets isolated worktrees
- Base branch tracking - Configure diff base per workspace
- TUI dashboard - Monitor all active sessions
Installation
# Quick install (recommended)
|
# From crates.io
# With Nix
# From source
&&
Updating
Quick Start
Single repo
# Creates worktree with branch feature/my-feature
# Launches tmux session with agent
Multi-repo with workspace
# Configure workspace (one-time)
# Create task from workspace
# Creates worktrees in all repos
# Opens tmux with pane per repo + central pane
Remote repos
Wagner can clone remote repos automatically. Remote repos are cloned once (as bare repos) to repos_root and reused across tasks:
# Add remote repo to task
# Or in workspace config
Other common commands
Commands
| Command | Alias | Description |
|---|---|---|
wagner |
Launch TUI | |
wagner new <name> |
Create task | |
wagner new <name> -w <ws> |
Create from workspace | |
wagner list |
ls |
List tasks |
wagner attach [task] |
a |
Attach to session |
wagner add [task] [repo] |
Add agent pane | |
wagner add-repo <task> <spec> |
Add repo to task | |
wagner rm-repo <task> <repo> |
Remove repo from task | |
wagner delete <task> |
rm |
Delete task |
wagner cd <task> [repo] |
Open shell in task worktree | |
wagner workspace |
ws |
Manage workspaces |
wagner repair |
Clean up orphaned worktrees | |
wagner update |
Update to latest version |
Workspace commands
Configuration
~/.config/wagner/config.json:
| Setting | Default | Description |
|---|---|---|
tasks_root |
~/tasks |
Where task directories are created |
repos_root |
~/repos |
Where remote repos are cloned (bare) |
default_agent |
claude |
Agent to launch in panes |
diff_base |
main |
Default branch for diffs |
Repair & Cleanup
Wagner automatically cleans up on task creation failure. For manual cleanup of orphaned resources:
This finds and removes:
- Task directories without valid
task.json - Worktrees pointing to deleted tasks
Shell Completions
| # Fish
TUI Keybindings
| Key | Action |
|---|---|
j/k |
Navigate |
a |
Attach |
n |
New task |
d |
Delete |
c |
View diff |
? |
Help |
S |
Settings |
q |
Quit |
License
MIT