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

3
.gitignore vendored
View File

@@ -31,3 +31,6 @@ logs/
requirements.md
todo.g3.md
tmp/
# Studio worktrees
.worktrees/