The TweetDeck for AI coding agents. A Zellij sidebar plugin that monitors, attends to, and orchestrates multiple AI agent sessions from a single terminal view. Supports Claude Code, OpenCode, and other agents through a pluggable Agent interface. Zellij is a modern terminal multiplexer (like tmux, but with a plugin system and built-in layout management).
Warning
Beta software. APIs, configuration formats, and behavior may change between releases. The author uses it daily for real work and it generally does what it promises. Bug reports and feedback are welcome.
Website · Documentation · Quickstart · Contributing
brew install cc-deck/tap/cc-deck
cc-deck config plugin install
zellij --layout cc-deckDownload the latest release from GitHub Releases:
# macOS (Apple Silicon)
curl -fsSL https://github.com/cc-deck/cc-deck/releases/latest/download/cc-deck_$(curl -s https://api.github.com/repos/cc-deck/cc-deck/releases/latest | jq -r .tag_name | sed 's/^v//')_darwin_arm64.tar.gz | tar -xz
sudo mv cc-deck /usr/local/bin/
cc-deck config plugin install
zellij --layout cc-deck# Fedora / RHEL
sudo dnf install ./cc-deck_*.rpm
# Debian / Ubuntu
sudo apt install ./cc-deck_*.debDownload RPM and DEB packages from GitHub Releases. After installing, run cc-deck config plugin install to set up the Zellij plugin and hooks.
cc-deck ws new demo --type container --image quay.io/cc-deck/cc-deck-demo
cc-deck ws attach demogit clone https://github.com/cc-deck/cc-deck.git
cd cc-deck
make installRequires Zellij 0.45+, Go 1.22+, and Rust stable with wasm32-wasip1 target.
Running multiple Claude Code sessions in separate terminals gets messy fast. You lose track of which session needs your input, which one just finished, and which one is stuck waiting for permission.
cc-deck puts a real-time sidebar next to your sessions that shows what each one is doing and directs your attention where it matters.
The sidebar tracks every Claude Code session across Zellij tabs. It shows activity status, handles permission requests, and provides keyboard-driven navigation. Alt+a (smart attend) cycles through sessions that need you, prioritizing permission requests over finished tasks over idle sessions. Alt+w jumps between working sessions. Click, type, or use vim-style j/k navigation.
Session indicators fade over time: a green checkmark dims to grey after five minutes, an idle circle darkens over an hour. You can tell at a glance how fresh each session is.
Multiplayer sessions. When multiple terminals attach to the same Zellij session via zellij attach, the sidebar remains stable for the primary client. The controller filters render broadcasts to only target sidebars from its own client connection, so zombie plugin instances from disconnected clients do not cause flickering or render storms. Note that Zellij does not clean up plugin instances from disconnected clients until the session is killed (zellij-org/zellij#4064), so the sidebar registry will grow over repeated attach/detach cycles, but this has no visible performance impact.
The cc-deck ws command manages Claude Code sessions across local, containerized, remote, and sandboxed backends. See the workspace management section for the full subcommand reference, project-local configuration, and workspace type details.
cc-deck ws new my-project --type container --image quay.io/cc-deck/cc-deck-demo
cc-deck ws attach my-projectGit repos are cloned into the workspace automatically when you pass --repo flags or run ws new from inside a git repository. Up to four repos clone in parallel.
cc-deck build replicates your local developer environment to container images, SSH machines, or OpenShell sandboxes from a single manifest. Two Claude Code slash commands handle the workflow:
/cc-deck.capturediscovers your local tools, shell config, plugins, MCP servers, and credentials/cc-deck.build --target container|ssh|openshellgenerates and builds the target
Capture once, build for any target. The manifest (build.yaml) stores tool requirements, settings paths, network domain groups, and credential declarations. After generating artifacts, cc-deck build run executes them without Claude Code. Use /cc-deck.capture --all to auto-accept all proposals without prompting.
Before generating a Containerfile, the build probes the base image to discover its OS, package manager, and pre-installed tools. This means switching your manifest's base image (from Fedora to UBI to Debian) produces a working build on the first attempt. Tools already present at a compatible version are skipped. Incompatible versions are shadowed via /usr/local/bin. Probe results are cached by image digest so repeat builds add sub-second overhead. Run cc-deck build probe <image> standalone to inspect any base image, or add probe_tools: to the manifest for custom tool checks.
Fixed Containerfile layers (the cc-deck/Zellij/Claude Code stack, shell finalization, footer) are rendered from Go templates during build init. Claude Code copies these snippets verbatim and generates only the variable parts between them, keeping structural layers deterministic across builds. After upgrading cc-deck, run cc-deck build refresh to re-extract updated snippets without overwriting your manifest.
Tools with non-standard install paths (Go at /usr/local/go/bin, Rust/Cargo at $HOME/.cargo/bin) are detected from the manifest and their paths are prepended to .bashrc and .zshrc during image generation. This ensures tools remain accessible in interactive shell sessions even when login initialization resets the Docker ENV PATH. The build system maintains an internal registry that maps tool names to their install paths, so adding support for a new tool requires a single registry entry with no template changes.
For OpenShell targets, a getifaddrs shim is compiled into the image automatically. The shim works around the OpenShell supervisor's seccomp filter that blocks AF_NETLINK sockets, which would otherwise cause Claude Code (Node.js) to crash with getifaddrs returned an error on API calls.
For OpenShell targets, the build generates a policy.yaml with network restrictions. Package registry endpoints (crates.io, proxy.golang.org, npmjs.org, pypi.org) are added automatically when the corresponding tools appear in the manifest. MCP server endpoints are also included when the manifest contains MCP entries with an endpoint field (in host:port format). The capture command extracts these endpoints from HTTP/SSE server URLs and mcp-remote arguments automatically. After a successful build, cc-deck stamps the image with a dev.cc-deck.policy-layer label that records which layer contains the policy file. At ws new time, the policy is extracted directly from the OCI image (using the label for fast single-layer fetch, or falling back to a full layer scan for unlabeled images). This means you no longer need the original build directory on the host to create sandboxes. If extraction fails, pass --policy to provide the policy file manually. Credentials for OpenShell are declared in the manifest without storing secrets (credentials: [{type: claude-vertex}, {type: github}]). At ws new time, cc-deck resolves values from your host environment and creates OpenShell providers on the gateway. Supported types: claude, claude-vertex, github, gitlab, openai, nvidia, generic. For Vertex AI (claude-vertex), cc-deck creates an OpenShell google-cloud provider via --from-gcloud-adc, which runs a GCE metadata emulator inside the sandbox. GCP credentials never enter the sandbox process. Claude Code env vars (CLAUDE_CODE_USE_VERTEX, ANTHROPIC_VERTEX_PROJECT_ID, CLOUD_ML_REGION) are still injected as non-secret configuration.
Containerized sessions can restrict outbound network access to specific domains, preventing code or secret exfiltration. Domain groups (python, rust, github, etc.) describe allowed domains by ecosystem. See the network filtering section for setup, domain groups, and customization.
Voice relay lets you dictate into any workspace session using local speech-to-text via whisper.cpp. Audio stays on your machine. A speech filter (installed by --setup) skips non-speech audio, so keyboard noise does not turn into phantom words like "Thank you.". A note indicator in the sidebar shows connection status. Toggle mute from the sidebar (Alt+v) or the voice TUI (m). Say "send" to submit a prompt.
brew install whisper-cpp
cc-deck ws voice --setup
cc-deck ws voice my-projectWhisper sometimes misrecognizes domain-specific terms. A glossary provides a list of terms that bias recognition toward the correct spellings.
Global glossary in ~/.config/cc-deck/config.yaml:
defaults:
voice:
glossary:
- Kubernetes
- gRPC
- OpenShellProject glossary in .cc-deck/voice-glossary.txt (one term per line, # for comments):
# Project-specific terms
kubectl
Helm
Ingress
When a session switches, the relay automatically loads the project glossary from the attended session's working directory and merges it with the global glossary. Project terms take priority when the combined list exceeds Whisper's 224-token window (roughly 50 terms or 800 characters). The glossary file is cached per directory for the lifetime of the relay process; changes require a relay restart.
Press v during a recording to open a live, scrollable view of the conversation, with one block for each contribution. Scroll with j/k, page with PgUp/PgDn, jump to the end with G, and press v or esc to return to the normal view. The header keeps the level meter and threshold visible, so +/- can tune sensitivity while you read.
The relay separates speakers in one of two ways, shown in the header after Speakers:. By pause (the default) starts a new block after a longer silence or where Whisper marks a speaker change. By voice uses the tinydiarize speech model to detect a change of voice, even without a pause, and recognizes English only.
Press s in the idle TUI to switch modes. The first switch to by voice offers to download the model (488 MB). You can also install it ahead of time:
cc-deck ws voice --setup --model small.en-tdrzRecording passages arrive faster than dictation utterances because the recording VAD uses a shorter silence window. Set the default mode and tune recording sensitivity in the config file:
defaults:
voice:
speaker_split: pause
recording:
threshold: 20
silence: 1.0
max_chunk: 12.0
pause_break: 2.0Transcript files separate contributions with a blank line.
cc-deck supports multiple AI coding agents through a pluggable Agent interface. Each agent gets automatic detection, hook installation, and event translation.
| Agent | Indicator | Integration |
|---|---|---|
| Claude Code | [CC] |
Hook events via settings.json |
| OpenCode | [OC] |
TypeScript plugin via ~/.config/opencode/plugins/ |
| Codex CLI | [◆] |
Hook events via ~/.codex/hooks.json |
When sessions from different agents are active, the sidebar shows agent indicators ([CC], [OC], [◆]) before each session name. With a single agent type, indicators are hidden.
Although Codex 0.157 and later run hooks inside a shared app-server daemon, cc-deck traces each Codex event back to the codex client that owns the session and shows it in that client's pane, without any change to how you start Codex.
Claude Code background sessions appear in the row of the pane that views them, with a dim ⇣ marker before the name.
For containerized builds, declare which agents to include in build.yaml:
agents:
- claude
- opencode
- codexThe build system generates network policies with domain allowlists for each declared agent. When no agents field is present, the build defaults to Claude Code for backward compatibility.
Use cc-deck hook --raw to send pre-normalized JSON payloads from custom integrations.
Each agent declares its supported auth modes via CredentialSpecs().
When creating a workspace, cc-deck detects which modes have credentials available on the host and lets you choose:
# Auto-detect auth mode (prompts if multiple available)
cc-deck ws new my-project --type container --agent claude
# Explicit auth mode
cc-deck ws new my-project --type container --agent claude --auth-mode vertex
# OpenCode with OpenAI credentials
cc-deck ws new my-project --type container --agent opencode --auth-mode openai
# Codex CLI with OpenAI credentials
cc-deck ws new my-project --type container --agent codex --auth-mode openaiThe selected auth mode is persisted in the workspace definition and shown in cc-deck ws ls.
Credentials are validated at workspace start before any container or remote session is created.
To switch auth mode on an existing workspace:
cc-deck ws update my-project --auth-mode bedrockFor K8s workspaces where credentials come from Secrets or external providers, mark the workspace as externally provided to skip host-side validation.
Define named profiles in config.yaml to run different accounts or credentials for the same AI agent side by side. Each profile generates a wrapper command (for example claude-work, codex-team) that sets credentials, model, and config directory before launching the real harness binary. A Claude profile can authenticate with an API key, a Vertex AI service account, an interactive login, or a long-lived subscription token created with claude setup-token. The wrapper clears credentials inherited from your shell, so a stray ANTHROPIC_API_KEY cannot move a subscription session to API billing.
profiles:
claude:
work:
backend: vertex
project: acme-ml
region: us-east5
model: claude-sonnet-5
auth:
credentials: {file: ~/.config/gcloud/acme-adc.json}
color: "#5AC0E2"
private:
model: claude-opus-5
auth:
oauth_token: {env: CLAUDE_TOKEN_PRIVATE} # from `claude setup-token`
color: "#E27C5A"
codex:
private:
auth:
api_key: {env: OPENAI_API_KEY_PRIVATE}
color: "#5AC0E2"After editing profiles, run the sync command to generate or update the wrapper scripts:
cc-deck config profile syncEvery session started through a profile wrapper carries an edge bar in its profile color on the left of its sidebar entry, so you can tell accounts apart at a glance. config profile add picks a color that is distinct from your existing profiles. Profiles, including subscription tokens, travel to SSH and OpenShell workspaces through the existing credential transport, and snapshots preserve which profile each session was running under so that restore brings every session back with the correct account.
Profile names are unique within a harness. The example creates both claude-private and codex-private. The human profile list displays these wrapper command names; JSON and YAML retain separate profile-name and harness fields. Use claude/private or codex/private with config profile show, use, and delete; a bare private works only while it identifies one profile. Credential files are isolated under ~/.config/cc-deck/profiles/<harness>/<name>/.
Run cc-deck locally with Zellij, in Podman containers, or on Kubernetes clusters with persistent StatefulSet-backed workspaces. OpenShift is detected automatically. The sidebar works the same everywhere.
When multiple clients are attached to the same Zellij session (zellij attach), each client controls its own focus independently. Clicking a session in the sidebar switches only the clicking client's terminal, not the other clients.
The sidebar shows colored presence indicators on session lines, marking which sessions other clients are currently focused on. The indicator colors match Zellij's multiplayer user colors (the same palette used in the tab bar for client cursors).
Auto-sort uses stable active and paused zones. Focusing or clicking a session never changes its position. A session leaves the active zone only when paused; when reactivated, it is appended to the active zone.
Known limitation: Keyboard shortcuts (Alt+s, Alt+a, Alt+w) work for the primary client only. Other clients use mouse clicks for session navigation. This is due to Zellij pipe messages not carrying client identity (tracked upstream).
Workspace sharing temporarily exposes one local workspace's canonical Zellij session. Interactive invitations grant trusted collaborators full control; observer invitations are read-only. Invitations have memorable labels and can be revoked independently.
Sharing works through an endpoint you already run. cc-deck does not create one, does not start one, and never stops one. Configure it first:
# ~/.config/cc-deck/config.yaml
sharing:
endpoint: https://dev.example.com
verify_timeout: 15scc-deck ws new demo --share
cc-deck ws start demo --share
cc-deck ws start demo --share --endpoint https://other.example.com
cc-deck ws attach demo --share
cc-deck ws invite demo --role interactive --name alice
cc-deck ws invite demo --role observer
cc-deck ws revoke demo alice
cc-deck ws unshare demoSharing is local-only and requires Zellij 0.44.3 or later plus an endpoint that is already serving. Only one workspace may be shared per host. Raw invitation secrets print once; ws list and ws status show only safe labels, roles, endpoint, and private|shared|degraded state.
Before printing any invitation, cc-deck verifies the endpoint in five layers: DNS, TLS, HTTP, auth, and the WebSocket upgrade. A failure names the layer that failed rather than leaving you to guess. The layer that matters most is the last one: a proxy that forwards HTTP but drops the Upgrade header produces a page that loads and a terminal that never fills, and that now fails the command instead of reaching your collaborator. Pass --no-verify to skip the check.
Listings never verify. They render the last recorded result and its age, so cc-deck ws stays as fast on a shared workspace as on a private one.
Caution
Interactive access grants control of the entire shared terminal session. Share that invitation only with people you trust. Terminal attachment is experimental in V1: its generated command uses --insecure, which disables server certificate validation and creates an interception risk. Browser access validates the public endpoint normally.
cc-deck ws unshare demo revokes every active invitation while keeping the canonical session running. It stops nothing cc-deck did not start: your endpoint is untouched, and a Zellij web server that was already running when you shared stays running. --share never replaces a private running session, and a share that fails verification leaves the workspace running and usable. If a shared session dies (for example with Zellij's Ctrl+q), the next command tears sharing down; a plain start or attach recreates the session privately. Treat degraded status as possible residual exposure.
See the session sharing guide for prerequisites, joining instructions, and recovery details.
zellij --layout cc-deckOr set as default in ~/.config/zellij/config.kdl:
default_layout "cc-deck"Three layout styles are installed:
| Layout | Command | Description |
|---|---|---|
standard |
zellij --layout cc-deck |
Sidebar + tab-bar + status-bar (default) |
minimal |
zellij --layout cc-deck-minimal |
Sidebar + compact-bar |
clean |
zellij --layout cc-deck-clean |
Sidebar only, no bars |
To change the default variant:
cc-deck config plugin install --layout minimal --force| Key | Action |
|---|---|
Alt+s |
Open session list / cycle through sessions |
Alt+a |
Jump to next session needing attention |
Alt+w |
Jump to next working session |
| Key | Action |
|---|---|
j / ↓ |
Move cursor down |
k / ↑ |
Move cursor up |
Enter |
Switch to selected session |
Esc |
Cancel (return to original session) |
r |
Rename session |
d |
Delete session (with confirmation) |
p |
Pause/unpause session |
n |
New tab |
S |
Sort sessions by activity |
J / K |
Move session down/up in sort order |
/ |
Search/filter by name |
? |
Show keyboard help |
| Action | Effect |
|---|---|
| Left-click session | Switch to that session |
| Right-click session | Rename session |
| Click [+] | New tab |
Edit the plugin config in the layout file (~/.config/zellij/layouts/cc-deck.kdl):
plugin location="file:~/.config/zellij/plugins/cc_deck.wasm" {
mode "sidebar"
navigate_key "Super s" // default: "Alt s"
attend_key "Super n" // default: "Alt a"
working_key "Alt w" // default: "Alt w"
done_timeout "300" // seconds before Working to Done and Done to Idle (default: 300)
idle_fade_secs "3600" // idle indicator fade duration in seconds (default: 3600)
auto_pause_secs "3600" // auto-pause after idle for this many seconds (default: 3600, 0 to disable)
attend_cycle_ms "2000" // rapid-cycle window for attend/working in ms (default: 2000, 0 to disable)
auto_sort "true" // auto-sort paused sessions below active ones (default: true, "false" to disable)
voice_timeout_secs "15" // clear the voice indicator after this many seconds without a relay poll (default: 15)
}Key syntax follows Zellij key format: Alt, Ctrl, Super (Cmd on macOS), Shift as modifiers, followed by the key character.
After editing, restart Zellij to apply.
Note:
make installoverwrites the managed layout files (cc-deck.kdl,cc-deck-standard.kdl,cc-deck-clean.kdl). Use a personal layout file to preserve custom keybindings across reinstalls.
Create a personal layout that is not overwritten by make install:
cp ~/.config/zellij/layouts/cc-deck.kdl ~/.config/zellij/layouts/cc-deck-personal.kdlEdit ~/.config/zellij/layouts/cc-deck-personal.kdl with your custom keys:
plugin location="file:~/.config/zellij/plugins/cc_deck.wasm" {
mode "sidebar"
navigate_key "Super s"
attend_key "Super n"
}Then set it as default in ~/.config/zellij/config.kdl:
default_layout "cc-deck-personal"To use Cmd-based shortcuts, configure Ghostty to pass Cmd keys through to Zellij:
Ghostty (~/.config/ghostty/config):
keybind = cmd+s=unbind
keybind = cmd+n=unbind
| Icon | State | Description |
|---|---|---|
| ○ | Init | Session detected, not yet producing output |
| ● | Working | Actively generating output or calling tools |
| ⚠ | Waiting (Permission) | Needs user permission to proceed (highest attend priority) |
| ⚠ | Waiting (Notification) | Paused with informational notification |
| ✓ | Done | Task completed (green, fades to grey over 5 minutes) |
| ✓ | Agent Done | Sub-agent completed |
| ○ | Idle | Waiting for user input (fades to dark grey over 1 hour) |
| ⏸︎ | Paused | Excluded from attend cycling, name dimmed |
Sessions progress through states based on activity timeouts:
Working ──[5m idle]──> Done ──[5m]──> Idle ──[1h]──> Paused
- Working to Done: When no hook events arrive for 5 minutes, the session is considered complete. This is a fallback since Claude Code does not always fire the
Stophook on natural response completion. - Done to Idle: After 5 more minutes, the green checkmark fades to a grey circle.
- Idle to Paused: After 1 hour of inactivity, the session auto-pauses. Paused sessions are excluded from attend cycling and hook processing.
- Auto-unpause: Switching to a paused session (via click, navigate, or attend) unpauses it automatically.
Session indicators use time-aware color fading to show freshness:
- Done (✓): Fades from bright green to light grey over 5 minutes
- Idle (○): Fades from light grey to dark grey over 1 hour
The fade follows a square-root curve: changes are most visible in the first few minutes and taper off.
Uses exclusive tiers. Only the highest non-empty tier is cycled:
- ⚠ Waiting (permission first, then notification, oldest first). When waiting sessions exist, Alt+a cycles only among those.
- ✓ Done (most recently finished first). Only used when no waiting sessions exist.
- ○ Idle/Init (tab order). Only used when nothing else needs attention.
- Skips: Working and Paused sessions are never attended.
Subsequent presses round-robin within the selected tier. If the current session is already the attend target, it skips to the next candidate.
Cycles through sessions that are actively running, ordered by most recently active first. Only Working sessions (purple ●) are included. Waiting sessions are excluded because they need attention, which is Alt+a's job.
Rapid presses within 2 seconds cycle through all working sessions without revisiting. After a 2-second pause, the next press resets to the most recent working session.
Containerized sessions can restrict outbound network access to specific domains, preventing code or secret exfiltration from YOLO-mode agents.
Add a network section to your build.yaml:
network:
allowed_domains:
- github
- python
- golangThen create a compose workspace with network filtering:
cc-deck ws new my-session --type compose --allowed-domains python,githubThe session container runs on an internal network with all traffic routed through a tinyproxy sidecar that only allows the specified domains.
Built-in groups cover common ecosystems. Run cc-deck config domains list to see all available groups:
| Group | Covers |
|---|---|
python |
pypi.org, files.pythonhosted.org |
nodejs |
registry.npmjs.org, yarnpkg.com |
rust |
crates.io, static.crates.io |
golang |
proxy.golang.org, sum.golang.org |
github |
github.com, ghcr.io, githubusercontent.com |
gitlab |
gitlab.com, registry.gitlab.com |
docker |
registry-1.docker.io, auth.docker.io |
quay |
quay.io, cdn.quay.io |
Agent-specific API domains (Anthropic for Claude, OpenAI for OpenCode and Codex) are included automatically based on which agents are in the manifest. Each agent declares its required domain groups through the Agent interface, and the build system resolves them to domain endpoints.
Create ~/.config/cc-deck/domains.yaml to extend or override built-in groups:
cc-deck config domains init # Seed config with commented built-in definitions# Extend built-in python group with internal registry
python:
extends: builtin
domains:
- pypi.internal.corp
# Create a custom group
company:
domains:
- artifacts.internal.corp
- git.internal.corpAssociate additional domain groups with a specific agent. These are merged with the agent's built-in domain declarations during policy assembly.
network:
allowed_domains_per_agent:
claude:
- docker
- company
opencode:
- quayGroups scoped to an agent that is not in the manifest's agents list are excluded from the policy.
# Specify domain groups when creating a compose workspace
cc-deck ws new my-session --type compose --allowed-domains rust,github
# Add or remove domains at runtime on a running session
cc-deck config domains add my-session rust
cc-deck config domains remove my-session dockercc-deck config domains blocked my-session # Show denied requests
cc-deck config domains add my-session pypi.org # Add domain at runtime
cc-deck config domains show python # Inspect a group's domainsFor OpenShell targets, build refresh assembles openshell/policy.yaml from declarative YAML component files. Components are loaded from three tiers in precedence order:
- Embedded (built into the binary): Claude Code, GitHub, and package registry endpoints
- Cached catalog (
.cc-deck/setup/openshell/components/): fetched bycapture - User-local (
.cc-deck/setup/openshell/policies/): project-specific custom endpoints
The assembly is deterministic: the same manifest with the same components always produces identical output. Components declare match conditions (always, tools, credentials, agents) and are included only when their conditions match the manifest. Agent-specific components (like claude-code.yaml and opencode.yaml) match only when their agent is in the manifest's agents list.
Binary paths for network policy entries are discovered automatically using a two-pass build process. The first pass builds the image without binary restrictions. A probe step then runs which and find inside the built image to discover actual binary locations. The second pass rebuilds with the corrected policy containing probed paths and runtime glob patterns. This approach works regardless of install method, base image, or tool version. Components with explicit binaries fields are preserved as-is, providing an override mechanism for custom installations.
Each component YAML can optionally declare probe_binaries (binary names to search for) and runtime_globs (glob patterns for binaries created at runtime, such as Python venvs or Rust toolchains). If a probe or second-pass build fails, the first-pass image is retained with a :probe-debug tag for inspection. For the full workflow and troubleshooting, see the Build Command and Policy Components guides.
cc-deck build refresh # Assemble policy from components + manifestOpenShell workspace operations (create, attach, exec, push, pull, delete) use the OpenShell Go SDK (github.com/rhuss/openshell-sdk-go) instead of shelling out to the openshell CLI binary. The SDK communicates with the gateway via gRPC directly, providing typed errors and eliminating the CLI binary as a runtime dependency.
The git channel (ext::openshell transport) still uses the CLI binary for git push/fetch operations, since git's ext protocol requires a command-line tool for stdin/stdout piping.
If you are unsure which domains your tools contact at runtime, build record launches an interactive session with a DNS logger sidecar that captures all outbound queries. On exit, cc-deck deduplicates the domains, filters out infrastructure noise (Podman internals, mDNS, reverse DNS), matches them against the catalog, and appends any new domains to build.yaml network.allowed_domains. Run build refresh afterward to regenerate the policy.
cc-deck build record # Start a recording session
cc-deck build refresh # Regenerate policy with recorded domainsSee the egress recording guide for a full walkthrough.
To add custom endpoints, create a component file in .cc-deck/setup/openshell/policies/:
key: internal_api
name: Internal API
match:
always: true
endpoints:
- host: api.internal.corp
port: 8443The cc-deck ws command group manages Claude Code sessions across all supported backends.
| Type | What it does |
|---|---|
local |
Zellij session on the host machine (default) |
container |
Single container managed by Podman |
compose |
Multi-container setup via podman-compose |
ssh |
Remote machine over SSH |
k8s-deploy |
Persistent Kubernetes workspace with StatefulSet |
openshell |
OpenShell sandbox with security policies |
| Subcommand | Description |
|---|---|
cc-deck ws new |
Create a new workspace |
cc-deck ws attach |
Attach to a workspace (auto-starts infrastructure if needed) |
cc-deck ws kill-session |
Kill the Zellij session without affecting infrastructure |
cc-deck ws start |
Start infrastructure (if any) and create the canonical Zellij session |
cc-deck ws stop |
End sharing, kill the session, then stop infrastructure (if any) |
cc-deck ws delete |
Delete a workspace and its resources |
cc-deck ws list |
List all workspaces with type-appropriate state display (also the default for a bare cc-deck ws; add -v for the sharing ENDPOINT column) |
cc-deck ws status |
Show detailed status of a workspace |
cc-deck ws prune |
Remove stale project registry entries |
Workspace definitions can live inside the project repository in a .cc-deck/ directory at the git root. Team members can clone and create matching workspaces without manual flag passing.
# Set up a new project
cc-deck ws new --type compose --image quay.io/cc-deck/cc-deck-demo:latest
git add .cc-deck/ && git commit -m "Add cc-deck workspace config"
# Team member clones and gets the same environment
git clone [email protected]:org/my-api.git && cd my-api
cc-deck ws new # reads .cc-deck/environment.yaml
cc-deck ws attach # no name needed inside the projectThe .cc-deck/ directory separates committed artifacts from runtime state:
.cc-deck/
environment.yaml # Committed: declarative definition
.gitignore # Committed: ignores status.yaml and run/
image/ # Committed: build manifest, Containerfile
status.yaml # Gitignored: runtime state
run/ # Gitignored: generated compose files
When no workspace name is provided, cc-deck looks for .cc-deck/environment.yaml at the git root, then walks up the directory tree. All lifecycle commands (attach, status, start, stop, kill) support this implicit resolution.
Compose workspaces use podman-compose for multi-container orchestration. They generate runtime artifacts in .cc-deck/run/ within the project directory.
cc-deck ws new --type compose
cc-deck ws new --type compose --allowed-domains anthropic,github
cc-deck ws attachThe project directory is bind-mounted at /workspace by default for bidirectional file sync.
SSH workspaces run Zellij sessions on persistent remote machines. You connect over SSH, work inside the remote Zellij session, and detach when finished. The session continues running on the remote host.
cc-deck ws new remote-dev --type ssh --host [email protected]
cc-deck ws attach remote-dev
cc-deck ws refresh-creds remote-dev
cc-deck ws push remote-dev ./srcPre-flight checks during creation verify SSH connectivity and offer to install missing tools on the remote.
When the same project needs multiple isolated container instances (for example, per-worktree containers), use the --variant flag:
cc-deck ws new --variant auth # container: cc-deck-my-api-auth
cc-deck ws new --variant bugfix # container: cc-deck-my-api-bugfixCoverage measurement for the Rust plugin uses cargo-llvm-cov. Install prerequisites first:
cargo install cargo-llvm-cov
rustup component add llvm-tools-previewThen use the Makefile targets:
| Target | Description |
|---|---|
make coverage |
Generate an HTML report and open it in the browser |
make coverage-summary |
Print a per-module coverage table to the terminal |
make coverage-json |
Write machine-readable JSON to cc-zellij-plugin/target/llvm-cov/coverage.json |
Coverage runs tests on the native target, not wasm32. Code behind #[cfg(target_family = "wasm")] guards is unreachable during measurement.
The plugin includes integration tests that exercise SidebarRendererPlugin and ControllerPlugin through their ZellijPlugin trait methods (load, update, pipe) with synthetic events. These tests verify the full event dispatch chain without a running Zellij instance.
Integration tests cover render payload pipeline, hook event processing, discovery protocol handshake, action dispatch, permission deferral, mode transitions, error handling, and protocol roundtrips.
make test # all tests (unit + Rust)
make test-e2e # CLI end-to-end tests
make test-images # build and probe all base images
make test-images-quick # probe default base images only
make test-images-session # session smoke test (requires API key)
cargo test --lib integration_tests # plugin integration tests onlyThe image probe suite builds container images from each entry in base-images.yaml and validates that key binaries, user setup, and permissions are correct.
Filter to a single base with make test-images BASE=nvidia-upstream.
cc-deck config plugin removecc-zellij-plugin/ Zellij sidebar plugin (Rust, WASM)
cc-deck/ CLI tool (Go)
docs/ Antora documentation source
demos/ Demo recording system
demo-image/ Demo container image build
base-image/ Base container image build
base-images.yaml Base image registry (tested targets)
specs/ Feature specifications (SDD)
Contributions are welcome. See CONTRIBUTING.md for the development process, including how Spec-Driven Development is used for larger changes.
cc-deck follows Spec-Driven Development. Each feature starts with a specification before implementation. Current specs:
| ID | Feature | Status |
|---|---|---|
| 002 | Kubernetes CLI | Planned |
| 012 | Sidebar Plugin | Implemented |
| 013 | Keyboard Navigation & Global Shortcuts | Implemented |
| 014 | Session Pause Mode & Keyboard Help | Implemented |
| 015 | Session Save and Restore | Planned |
| 016 | K8s Integration Tests | Planned |
| 017 | Base Container Image | Implemented |
| 018 | Build Pipeline | In Progress |
| 019 | Documentation & Landing Page | In Progress |
| 020 | Demo Recording System | In Progress |
| 021 | Release Process | Implemented |
| 022 | Network Security & Domain Filtering | In Progress |
| 023 | Environment Interface and CLI | Planned |
| 024 | Container Environment | Implemented |
| 025a | Sidebar State Refresh on Reattach | In Progress |
| 025b | Compose Environment | In Progress |
| 026 | Project-Local Config | Implemented |
| 027 | CLI Command Restructuring | In Progress |
| 028 | K8s Deploy Environment | Implemented |
| 030 | Single Instance Architecture | Implemented |
| 031 | Single Binary Merge | Implemented |
| 033 | SSH Remote Execution | In Progress |
| 034 | Build Command | Planned |
| 036 | Setup Run Command | Implemented |
| 037 | Environment Lifecycle Fixes | In Progress |
| 038 | Workspace Repos | In Progress |
| 039 | CLI Rename: Workspace & Build | In Progress |
| 041 | Workspace Channels | In Progress |
| 042 | Voice Relay | Implemented |
| 045 | Voice Sidebar Integration | In Progress |
| 056 | OpenShell Build Target | In Progress |
| 058 | OpenShell Credential Injection | In Progress |
| 075 | OpenShell SDK Migration | In Progress |
| 087 | Harness Profiles | In Progress |