oc

Interactive TUI session manager for OpenCode. Keep long-running agent sessions alive in tmux and jump back instantly.

$ oc ┌ OpenCode sessions ─────────────────────────────────────────────┐ │ attached 2 detached 3 saved 5 │ ├────────────────────────────────────────────────────────────────┤ │ dc-main attached ~/dc-main │ │ oc-rewrite detached ~/oc-tui │ │ ticker saved ~/ticker-main │ │ New session │ └────────────────────────────────────────────────────────────────┘ Action: Attach
oc

Open the dashboard, see every session state at a glance, and jump with arrow keys plus Enter.

oc dc

Skip the dashboard when you already know the session name and just want to attach or launch it.

oc alias dc ~/dc-main -- --model gpt-5.4

Save a named OpenCode session, its directory, and launch arguments for instant re-entry later.

Install

# Linux x86_64 curl -Lo ~/.local/bin/oc https://oc.maxeonyx.com/releases/oc-x86_64-linux chmod +x ~/.local/bin/oc

Requires: tmux
Repo: github.com/maxeonyx/oc
Site: oc.maxeonyx.com

Agent Skill

For OpenCode and compatible agents.

mkdir -p ~/.config/opencode/skills/oc curl -sLo ~/.config/opencode/skills/oc/SKILL.md \ https://maxeonyx.github.io/oc/SKILL.md
--- name: oc description: When managing or reattaching long-running OpenCode sessions in tmux --- # oc Use oc to view, jump to, and preserve OpenCode sessions in tmux. Prefer oc when the goal is session continuity rather than raw tmux control: it keeps the OpenCode-oriented session list, aliases, and relaunch behavior in one place. # Install curl -Lo ~/.local/bin/oc https://oc.maxeonyx.com/releases/oc-x86_64-linux chmod +x ~/.local/bin/oc Requires: tmux # Usage oc # Open the interactive dashboard oc dc # Attach to or launch the named session directly oc alias dc . # Save a named session for this directory oc rm dc # Remove the saved session and kill it if running Sessions live in tmux so they survive SSH disconnects, terminal crashes, and laptop sleep.