AI Agents & Modes
Terminal & chat mode (timeline)
Switch freely between Chat/Timeline mode, raw Terminal mode, side-by-side split view, and Git Diff on any AI agent session.
Every AI agent tab in muxbay (Claude Code, Codex, Gemini (agy), Pi, Oh My Pi (omp)) is backed by a real shell inside tmux -L purple. Depending on how you like to work, you can drive the exact same live session in Chat / Timeline mode, Raw Terminal mode, or Side-by-side.
Three ways to view the same session
- Chat / Timeline mode — parses the agent's JSONL transcript in real time and lays out user prompts, Markdown replies, tool calls, sub-agents, tasks, and inline permission prompts as structured cards.
- Terminal mode (
xterm.js) — raw interactive terminal view connected directly to the tmux PTY. Ideal for slash commands, TUI pickers (/resume), or running shell commands next to your agent. - Side-by-side split — when Settings → Agent → Show Terminal with Agent is enabled (default), the structured Chat/Timeline and raw Terminal sit side-by-side in the same tab so you get both without switching.
Switching views never restarts or interrupts the agent — the tmux session stays alive underneath.
View-mode shortcuts
| View mode | macOS | Linux / Windows |
|---|---|---|
| Terminal | ⌘⇧T | Ctrl+Shift+T |
| Claude timeline | ⌘⇧C | Ctrl+Shift+C |
| Codex timeline | ⌘⇧X | Ctrl+Shift+X |
Gemini (agy) timeline |
⌘⇧G | Ctrl+Shift+G |
| Git Diff panel | ⌘⇧F | Ctrl+Shift+F |
What the Chat / Timeline shows
Each row corresponds to an entry in the active agent's JSONL transcript:
| Type | What it shows |
|---|---|
| User message | Your prompt as a chat bubble |
| Assistant message | Markdown-rendered reply with one-click Copy buttons on messages and code blocks |
| Tool call / Tool group | Tool name, arguments, and output (with consecutive calls collapsed cleanly) |
| Task / plan | Multi-step plans with checkbox progress |
| Sub-agent | Sub-agent invocations grouped with their own progress |
| Permission prompt | Inline approval prompt matching the CLI's choices |
| Compacting | Subtle indicator when context compaction runs |
While an agent is busy, the bottom status bar shows an elapsed-time spinner, the current action (e.g., Reading src/lib/auth.ts), and a live text snippet.
Session-follows-tab & Pi/omp TUI tracking
- Switching tabs immediately displays that tab's bound conversation in the timeline.
- In Pi and
omp, running/resumeinside the TUI without CLI arguments is tracked live via thesession_before_switchhook so the timeline automatically follows the newly selected session.
Scrolling, anchors & keyboard control
- Auto-scrolls when you're at the bottom; freezes in place when you scroll up to read history, with a floating Scroll to bottom button.
- Press ⌘I / Ctrl+I from anywhere to focus the Chat input bar.
- Press Esc while an agent is busy to send an interrupt.
What's next
- Supported agents & CLI profiles — full feature matrix for Claude, Codex, Gemini (
agy), Pi, andomp. - Copy, paste & context menus — terminal right-click menus, HTTP clipboard fallback, and chat copy buttons.
- Permission prompts — approve or deny tool calls from desktop or mobile Web Push.