Session Management¶
Sessions are tmux sessions that run your AI agents. PlexusOne Desktop helps you manage them visually.
Creating Sessions¶
From Terminal¶
# Create a session with Claude Code
tmux new-session -d -s coder-1 "claude"
# Create a session with a custom command
tmux new-session -d -s my-agent "kiro"
# Create an empty session
tmux new-session -d -s scratch
From PlexusOne Desktop¶
- Click the + button (toolbar or status bar)
- Fill in the New Session form:
- Name: Session identifier (e.g.,
feature-login) - Command: Optional command to run (e.g.,
claude) - Click Create
The session is created and attached to the first empty pane.
Attaching Sessions¶
Via Dropdown¶
- Click the session dropdown in any pane header
- Select a session from the list
- Session output appears in the pane
Via Empty Pane¶
Empty panes show available sessions. Click any session to attach it.
Detaching Sessions¶
Click the ✕ button in the pane header to detach.
Detach vs Kill
- Detach: Session keeps running, just hidden from view
- Kill: Session terminates, agent stops
Session Status¶
Status Detection¶
PlexusOne Desktop monitors sessions and infers status:
| Status | Indicators |
|---|---|
| Running | Recent output, active process |
| Idle | No recent output, waiting |
| Stuck | Long pause, potential issue |
Status Bar¶
The status bar shows all pane assignments:
Listing Sessions¶
In PlexusOne Desktop¶
- Click any session dropdown to see available sessions
- Status bar shows session count
From Terminal¶
# List all sessions
tmux list-sessions
# Detailed view
tmux list-sessions -F "#{session_name}: #{session_windows} windows"
Killing Sessions¶
From Terminal¶
From PlexusOne Desktop¶
Currently, sessions must be killed from the terminal. Future versions will add in-app session management.
Session Refresh¶
Click the refresh button (↻) in the toolbar to:
- Reload session list from tmux
- Update session statuses
- Detect new sessions created externally
Sessions auto-refresh periodically, but manual refresh is instant.
Best Practices¶
Naming Conventions¶
Use descriptive, consistent names:
# By feature
feature-auth
feature-payments
feature-dashboard
# By role
coder-1
coder-2
reviewer
tester
# By task type
bugfix-123
refactor-api
docs-update
Session Lifecycle¶
- Create session when starting a task
- Attach to pane for visibility
- Detach when not actively monitoring
- Kill when task is complete
Long-Running Sessions¶
For agents that run for hours:
- Keep sessions attached for visibility
- Use larger scrollback (PlexusOne Desktop has 10,000 lines)
- Monitor status colors for issues
- Detach temporarily if needed for other work
Troubleshooting¶
Session Not Appearing¶
- Refresh the session list (↻ button)
- Verify session exists:
tmux list-sessions - Check tmux socket:
tmux -L default list-sessions
Session Shows "Ended"¶
The process inside the session exited. Options:
- Reattach and start a new command
- Kill and recreate the session
Multiple tmux Servers¶
PlexusOne Desktop connects to the default tmux server. If using named servers: