Add studio tool for multi-agent workspace management

Studio enables running multiple g3 agents concurrently without conflicts
by using git worktrees for isolation.

Features:
- studio run --agent <name> [args...]: Create worktree, spawn g3, tail output
- studio list: Show all active sessions
- studio status <id>: Show session details and summary
- studio accept <id>: Merge session branch to main and cleanup
- studio discard <id>: Delete session without merging

Each session gets:
- Isolated worktree at .worktrees/sessions/<agent>/<session-id>
- Dedicated branch: sessions/<agent>/<session-id>
- Short UUID (8 chars) for easy reference
- Automatic --workspace and --agent flags passed to g3
This commit is contained in:
Dhanji R. Prasanna
2026-01-12 07:26:17 +05:30
parent 02799a8e69
commit 6c17f269d7
7 changed files with 792 additions and 1 deletions

13
Cargo.lock generated
View File

@@ -3437,6 +3437,19 @@ dependencies = [
"syn",
]
[[package]]
name = "studio"
version = "0.1.0"
dependencies = [
"anyhow",
"chrono",
"clap",
"serde",
"serde_json",
"tokio",
"uuid",
]
[[package]]
name = "syn"
version = "2.0.108"