Agent sessions
Once you run claude or codex in a pane (including scripts like codex-w that end up executing codex), gilvt recognizes it automatically and gets its state in real time through injected hooks. Everything happens in the background; you keep working in the Agent’s interface as usual.
Session states
Needs youAwaiting approval or asking you. Yellow border, listed at the top of the sidebar.
ErrorAPI errors and the like. Red border.
RunningThinking or running a tool. No border; the tab dot is blue.
Done, unseenThe turn ended and you have not looked yet. Green border, cleared on focus.
The sidebar
- Needs you: sessions awaiting approval / asking you, longest wait first.
- Pending resume: sessions not yet resumed after a restart (see “Restoring your workspace after a restart”); click a row to resume it, or “Resume All” to resume them all at once.
- All Sessions: grouped by project (the git root directory name) by default, switchable to grouping by status; groups where everything is idle collapse automatically. A repository’s main checkout and its linked worktrees count as the same project.
- Terminal rows: terminal panes not running an Agent also appear in the sidebar as gray rows (the header reads “Sessions · N · Terminals M”); click one to jump to that pane. They never go into “Needs you”, and ⌘⇧↑ / ⌘⇧↓ skip them. When grouped by status, they go into the “Terminals” group at the end, collapsed by default. When the Agent in a pane exits, its row turns back into a terminal row.
- Ended: sessions that ended during this run, collapsed by default. Double-click to resume; right-click to resume or move to Trash.
- Each row shows: the Agent icon (C = Claude, X = Codex), the session name (see the naming rules in “Resume and manage sessions”), the time, the current action (such as
⏳ Awaiting approval · Bash(rm -rf build)), the location (tab · left / right) and a thin context-usage bar (yellow at ≥ 80%, red at ≥ 90%). - Git line: when the session’s directory is a git repository, the row gets an extra line
⎇ main; with uncommitted changes it shows their count (⎇ main ●2), and with an upstream it shows ahead / behind (⎇ main ●1 ↑1↓0); a detached HEAD shows the short commit; inside a linked worktree, the worktree’s directory name is added as a prefix. Refreshes about every 10 seconds. Directories that are not git repositories have no such line. - Long text: long session names wrap onto two lines and long status lines are truncated with an ellipsis; hover for about 0.5 seconds to see the full name, status, location and cwd.
- Click a row to jump to that pane; right-click to rename, mute notifications or copy the session ID.
Jumping between sessions
| ⌘⇧J | Cycle through the “Needs you” sessions by how long they have waited |
| ⌘⇧↑ / ⌘⇧↓ | Previous / next session in sidebar order |
| Clicking a sidebar row or a system notification | Jumps to that pane with focus in the Agent’s interface, ready for typing |
Lite mode
When hooks do not take effect (for example with claude --bare, or when Codex has hooks turned off), gilvt infers the state by reading the session records instead, and the sidebar marks the session “Lite mode”. Approvals and questions are not visible in this mode; everything else works as usual.