Terminal
Run Claude Code, Codex, Antigravity CLI or a shell in a tab next to the diagram.
Open a terminal from the + menu (⌘T) or toggle the dock with ⌃`. New session starts Claude Code, Codex, Antigravity CLI or a Shell in the project folder. On a Mac the terminal is Ghostty, built in.
Sessions
- On macOS and Linux, sessions run outside the app window: quit peekcode, let it update, or lose it to a crash, and your Claude Code and Codex sessions keep running. peekcode attaches to them again when it opens. Reopen sessions on launch (Settings → Agents) brings their tabs back.
- On Windows, terminal tabs start in Git Bash or PowerShell.
- Drag terminal tabs to reorder them; when they overflow, a list shows every session. Split a terminal inside its tab with ⌘D.
- Closing a session that is mid-turn asks first. Opening the same session twice gives a second, view-only copy.
- Drop files, flows or blocks onto the prompt to insert a reference to them.
- Right-click for Find…, Clear, Reset Terminal, and split or maximize the pane. ⌘⇧K clears, ⌘+ and ⌘− zoom the text.
The diagram follows the agent
When an agent edits files, the status bar shows N changed files awaiting sync. Click Sync diagram, or turn on Auto-sync: the diagram is rebuilt when the agent finishes its turn (for a shell, once files have been still for 2 seconds). The editor shows a banner on a file an agent is editing.
Agent beside the diagram
Click Layout in the status bar and pick Two columns: agent sessions on the left, the diagram on the right. With Auto-sync on, the diagram follows what the agent is working on. See Layout and panes.
To give an agent its own branch, start it in a worktree.
Permissions
Auto-approve agent permissions in Settings → Agents skips the permission prompts of Claude, Codex and Antigravity. Claude agent teams lets Claude Code start teammates; closing the session tells you how many will stop.