Synopsis
l
Description
Thels command displays all active agent sessions for the current repository in a formatted table, showing each agent’s status, code changes, dev server address, and original prompt.
Options
Show all sessions including inactive ones (currently not fully implemented).
Watch mode - automatically refresh the output every second. Press Ctrl+C to exit.
Path to the configuration file (defaults to
uzi.yaml in current directory).Output Format
The command displays a table with these columns:The agent’s unique name extracted from the session identifier.
The AI model being used (e.g.,
claude, codex, gpt4). Shows unknown for legacy sessions.Current agent status:
- ready (green) - Agent is idle, waiting for input
- running (yellow) - Agent is actively processing
- unknown - Status cannot be determined
Code change statistics in format
+insertions/-deletions with color coding:- Green for additions (
+N) - Red for deletions (
-N)
Dev server address if running (e.g.,
http://localhost:3000). Empty if no dev server configured.The original prompt text that was sent to the agent.
Examples
Basic Listing
Watch Mode
Show All Sessions
Status Detection
Agent status is determined by analyzing the tmux pane content:Diff Statistics
The DIFF column shows uncommitted changes in the agent’s worktree:- Stages all changes with
git add -A . - Runs
git diff --cached --shortstat HEAD - Parses insertions and deletions from output
- Resets staging area with
git reset HEAD
+0/-0- No changes+15/-3- 15 lines added, 3 deleted+127/-45- 127 lines added, 45 deleted
Sorting
Sessions are sorted by most recently updated first, based on theUpdatedAt timestamp in the state file.
Session Filtering
Only sessions belonging to the current git repository are shown. This is determined by:- Getting the current repository’s remote URL
- Extracting the project name
- Matching against session state entries
Watch Mode Behavior
When using-w flag:
- Clears screen before each refresh
- Updates every 1 second
- Shows “No active sessions found” if all agents have terminated
- Continues until interrupted with Ctrl+C
- Handles context cancellation gracefully
Examples in Different Scenarios
No Active Sessions
Single Agent
Multiple Agents, No Dev Server
With Watch Mode
Understanding the Output
Agent Names
Agent Names
Agent names are auto-generated using a pattern like
thoughtful-tesla or clever-curie. These are extracted from the full session name which follows the pattern agent-{project}-{hash}-{agent-name}.Color Coding
Color Coding
- Status: Green for ready, Yellow for running
- Diff: Green for additions (+), Red for deletions (-)
- All colors use ANSI escape codes and work in most modern terminals
Model Names
Model Names
The MODEL column shows which AI model the agent is using. This information is stored when the agent is created via the
prompt command. Legacy sessions created before model tracking may show unknown.Related Commands
prompt- Create agents that will appear inlsoutputauto- Monitor agents shown inlskill- Remove agents fromlsoutputcheckpoint- Merge changes shown in DIFF column
Notes
The DIFF statistics show uncommitted changes only. Once an agent commits its work, the diff will reset to +0/-0 until new changes are made.