Sessions are isolated workspaces where agents work on issues. Each session has its own git worktree, tmux session, and metadata.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ComposioHQ/agent-orchestrator/llms.txt
Use this file to discover all available pages before exploring further.
Listing Sessions
View all active sessions:- Session ID (
fe-1) - Last activity (
2m ago) - Branch name (
feat/add-login) - Status (
working,pr_open,review_pending) - PR URL (if created)
Filter by Project
List sessions for a specific project:Session Status Codes
| Status | Meaning |
|---|---|
spawning | Session is being created |
working | Agent is actively coding |
pr_open | PR created, waiting for CI/review |
ci_failed | CI checks failed |
review_pending | Waiting for code review |
changes_requested | Reviewers requested changes |
approved | PR approved by reviewers |
mergeable | Approved + CI green, ready to merge |
merged | PR merged, session complete |
needs_input | Agent is waiting for human input |
stuck | Agent inactive for too long |
errored | Agent encountered an error |
killed | Session manually terminated |
Comprehensive Status View
Get detailed status with PR, CI, and review info:- PR: PR number or
-if not created - CI:
✓passing,✗failing,⋯pending,-no checks - Rev:
✓approved,✗changes requested,△pending - Thr: Number of unresolved comment threads
- Activity:
active,ready,idle,waiting_input,blocked,exited - Age: Time since last activity
Activity States
| State | Meaning |
|---|---|
active | Agent is thinking/writing code |
ready | Agent finished, waiting for input |
idle | No activity for >5 minutes |
waiting_input | Agent is asking a question |
blocked | Agent hit an error |
exited | Agent process terminated |
JSON Output
Get machine-readable output for scripting:Attaching to Sessions
Attach to a session’s terminal to watch the agent work:open command:
Ctrl+B, then D
Open Multiple Sessions
Open all sessions for a project:Open in New Window
iterm2) to create terminal tabs/windows.
Sending Messages
Send instructions to a running agent:How It Works
Send Without Waiting
Skip the idle wait:Send from File
Send long instructions from a file:instructions.txt:
Custom Timeout
Change the idle wait timeout:Delivery Confirmation
The command verifies delivery:Killing Sessions
Terminate a session and remove its worktree:- Kills the tmux session
- Removes the git worktree
- Updates session status to
killed - Preserves metadata for audit trail
When to Kill Sessions
✅ Good reasons to kill:- PR merged, work is complete
- Agent is stuck and unrecoverable
- Duplicate session for the same issue
- Issue was closed/canceled
- Agent is just slow (give it time)
- CI is failing (let auto-reactions handle it)
- You just want to pause (detach instead)
Automatic Cleanup
Remove completed sessions automatically:- PR is merged
- Issue is closed (in tracker)
- Runtime is no longer alive
Cleanup Criteria
A session is cleaned if:- PR Merged
- Issue Closed
- Runtime Dead
The PR associated with the session has been merged to the default branch.Detected via SCM plugin:
Restoring Sessions
Restore a crashed or terminated session in-place:- Verifies the worktree still exists
- Checks that the session is restorable (not merged)
- Creates a new tmux session
- Relaunches the agent in the same workspace
- Updates metadata with restore timestamp
- tmux session crashed but worktree is intact
- Agent exited unexpectedly
- You manually killed tmux but want to resume
Session Metadata
Each session stores metadata in flat files:- Flat key=value format (backwards compatible)
- Human-readable (edit with any text editor)
- Tracked in event log (full audit trail)
Scripting Examples
Kill all merged sessions
Send message to all sessions
Monitor session status
Next Steps
Auto-Reactions
Automate CI failure handling and review responses
Multi-Project Setup
Manage multiple repositories simultaneously
