Skip to content

Workbench, Worktrees & SSH Tunnels

Organize terminals, AI agents, Git Worktree branch workspaces, container sandboxes, lazy-loaded file/Git review, and SSH/Mosh port tunnels by project—with zero bloat on large repositories.

  • Workbench
  • Git Worktree
  • Sandboxes
  • SSH Tunnels
  • Mermaid
  • Split Panes
6 min readUpdated
TL;DR

Octopus scopes terminals, agents, and files to projects and project groups. It ships Git Worktree branch workspaces with multi-backend sandboxes (Docker, Podman, Apple Container, OpenSandbox), a lazy-loaded explorer with native Mermaid rendering, and visual SSH/Mosh port tunnels.

Projects, Project Groups & Merge Working Directories

Octopus treats a code project as the top-level container. Each project owns its own terminal tabs, AI agent sessions, drag-and-drop split layouts, and right-hand file/Git workspace. Switching projects keeps background builds, dev servers, and long-running agents alive without interruption.

  • Project groups: Organize microservices, frontend/backend repos, or client projects into clean collapsible groups.
  • Merge Working Directories: Right-click a project group to enable Merge Working Directories—agents that support extra paths (such as Claude Code and Codex) automatically receive sibling local repository paths for cross-repo reasoning.
  • Real PTY & flexible split panes: Powered by MiniPty + TKCode.Arc.Terminal with true color, CJK IME input, mouse scrolling, full-screen TUIs (vim, htop, btop), and drag-to-split layouts.
  • Automatic shell detection: Discovers zsh, bash, fish, PowerShell 7, WSL, and custom shells automatically.

Git Worktree Branch Workspaces

Pointing two coding agents at the same working tree inevitably causes conflicting edits. Octopus makes Git Worktrees a first-class workflow so every parallel task gets its own branch and directory:

  1. Create a branch workspace in one click

    Spawn a new Worktree workspace (for example feat/oauth-pkce or fix/rate-limit) directly under the parent project.

  2. Run agents concurrently without collisions

    Launch Claude Code, Codex, or OpenCode in separate Worktrees to build features, write tests, and refactor simultaneously with isolated files and build artifacts.

  3. Review diffs, merge, and prune

    Inspect line-by-line diffs in the right Git panel, stage and commit changes, then remove the temporary Worktree cleanly once merged.

Multi-Backend Sandbox Isolation

When you want to grant an agent broader autonomy to install packages, run integration tests, or execute generated scripts, attach a sandbox backend to its branch workspace:

Sandbox BackendBest ForHighlights
Local Containers (Docker / Podman / Apple Container)Fast local isolation on your workstationMounts the active Worktree directory with native support for Apple Container on macOS, Docker, and Podman.
Remote Docker HostOffloading heavy builds to a beefy Linux serverOperate from your laptop UI while containers run on a remote Docker daemon.
OpenSandboxStandardized team sandbox poolsConnects to open-source OpenSandbox APIs for ephemeral, reproducible agent execution environments.
Octopus Cloud HostsAlways-reachable cloud dev environmentsPersistent disks, private port previews, and mobile takeover out of the box.

Lazy-Loaded Explorer, Native Mermaid & Git Review

The right-hand workspace gives you fast inspection and Git staging while enforcing strict lazy loading:

Zero Cost When CollapsedPerformance

While the right panel is closed, Octopus scans zero files, registers zero file watchers, and runs zero Git commands—keeping huge monorepos snappy.

Markdown & Native Mermaid DiagramsPreview

Syntax-highlighted code viewing, Markdown rendering, and native Avalonia Mermaid diagrams with zero embedded WebView.

Inline Image & SVG InspectionVisual

Preview UI screenshots, architecture diagrams, and SVGs directly beside your agent session.

Diff, Stage & CommitGit

Review modified and untracked files, inspect line diffs, discard hunks, and commit directly from the workbench.

SSH / Mosh / Telnet & Visual Port Forwarding

Octopus reads your existing ~/.ssh/config directly so jump hosts, GPU boxes, and remote dev servers live inside the same workbench:

  • Multi-protocol connections: Manage SSH, Mosh (resilient over flaky Wi-Fi/cellular), and Telnet hosts in one list.
  • Remote terminals & agents: Open shells and run remote coding agents directly inside project tabs.
  • Visual `-L` / `-R` port tunnels: Toggle local (-L) and remote (-R) port forwards with live status indicators—ideal for internal databases, dashboards, and preview servers.
sshconfigExample: existing ~/.ssh/config entries work automatically
Host prod-bastion
  HostName 203.0.113.10
  User deploy
  IdentityFile ~/.ssh/id_ed25519

Host dev-gpu-01
  HostName 10.10.0.42
  User engineer
  ProxyJump prod-bastion

Frequently Asked Questions

Do the file explorer and Git panel slow down large monorepos?
No. The right workspace panel is strictly lazy-loaded: while collapsed, Octopus reads no file tree, registers no file watchers, and spawns zero Git processes.
What does Merge Working Directories on a project group do?
When frontend, backend, or shared libraries live in sibling repositories inside one group, enabling Merge Working Directories automatically passes sibling local paths to agents that support extra working directories.

Octopus WeChat group

Scan with WeChat to join the (Chinese-speaking) community group for tips, feedback and release news.

QR code expired? Let us know in a GitHub issue.