One gap remains: this is still orchestrating Zellij through shell calls, not yet through a richer internal
control layer, so features like tab deduping/focus-if-open, attention indicators, and more advanced pane
targeting are not implemented yet. Those would be the next serious step if you want dellij to feel fully
authoritative.
Assistant
The gap is real and well-defined. The three features you mentioned map to specific Zellij plugin API capabilities that are currently unused. Here's what the control layer upgrade would look like:
The Core Mechanism: zellij pipe
Zellij 0.43+ has a pipe API that lets the CLI send JSON messages to a running plugin:
Now I have everything. Let me write the property tests and then summarize the feature gap analysis.
Assistant
Now add the tests module at the end of main.rs:
User
[Request interrupted by user for tool use]
User
cont
Assistant
All 33 tests pass. Now here's the full feature gap analysis from superset.sh, cmux, and awesome-zellij — filtered to what's realistic for a Zellij-native CLI tool:
Feature gaps
High value, low effort (pure CLI additions)
Feature
Source
What it means for dellij
Import existing worktrees
superset
dellij import <path> registers an existing worktree dir as a workspace without creating a new branch
Open from existing branch
superset
dellij new --use-branch <name> skips git worktree add -b and attaches to an existing branch
DELLIJ_* env in workspace terminal
superset/cmux
The generated KDL layout should inject env vars into pane shells, not just hook scripts
Ahead/behind counts in list
superset
git rev-list --count HEAD..origin/<branch> per workspace, show ↑N ↓N
PR number in list/show
superset
Store an optional pr field on Workspace; dellij pr set <slug> <number>
dellij new --base-pr <number>
superset
Create worktree from a PR's branch via gh pr checkout
Medium effort, significant UX lift
Feature
Source
What it means for dellij
Tab dedup / focus-if-open
architecture gap
Plugin pipe: if tab slug exists, switch_tab_to instead of new-tab
Attention indicators on tabs
zellij-attention, zellaude
Plugin subscribes to TabUpdate; tabs with error/blocked status get a ! glyph in the ribbon
dellij send <slug> <text>
cmux send-text
Send text to workspace's shell pane via → plugin →
User
i want all the features. i understand that there is stuff that zellij doesn't provide, for that stuff you can use the gpui library from zed and use the zed diffviewer and stuff like that.
User
[Request interrupted by user]
User
for the browser you should be able to figure that out
User
[Request interrupted by user for tool use]
User
nah continue
Assistant
OK, implementing everything in tiers. Starting now across all files in parallel where possible.
Assistant
Now rewrite the CLI with all new features:
Assistant
Now the enhanced plugin with pipe API:
Assistant
Now the GPUI GUI crate:
Assistant
Now verify everything compiles (at least the core and CLI):
Assistant
Core and CLI compile clean. Let me fix the warnings:
Assistant
All 19 tests pass. Now clean up the last warning:
Assistant
Zero warnings, zero errors. Here's what was built:
What was implemented
New crate: crates/dellij-core/
Shared types and utilities extracted so both the CLI and GUI can use them without circular deps:
All data types: Workspace, Config, WorkspaceStatus, Bookmark, Settings, StatusFile
WorkspaceStatus::needs_attention() — true for blocked | error | review
AheadBehind — computes and displays ↑N ↓N via git rev-list
LayoutRenderer — 4 built-in layouts: default, minimal, full, agent-only, plus user-defined KDL templates with {cwd}, {agent_cmd}, {slug}, {branch}, {prompt} placeholders
PipeCommand — typed enum for the CLI↔plugin JSON protocol (open, focus, send, status)
workspace_diff() — runs git diff base...branch for the diff viewer
open_in_editor() — IDE deep-linking (code, cursor, zed, idea, etc.)
CLI enhancements (crates/dellij/)
New command
What it does
dellij import <path>
Register existing worktree, auto-detect branch
dellij new --use-branch <name>
Attach to existing branch instead of creating
dellij new --base-pr <N>
Create worktree from PR's branch via gh
dellij new --layout <name>
Use named layout (minimal/full/agent-only/custom)
dellij send <slug> <text>
Send text to workspace shell via plugin pipe
dellij pr set/open/status
Associate/view GitHub PR
dellij edit <slug>
Open worktree in VS Code/Cursor/Zed/$EDITOR
dellij ui
Launch binary
User
make sure the ui is sexy
Assistant
The current UI is functional but flat. I'm going to redesign all four components — richer visual hierarchy, status-accented workspace cards, two-column diff gutter, glass-style notification cards, and a proper titlebar.
Assistant
Zero errors. Now the docs and landing page:
Assistant
19/19. Here's what changed in this pass:
UI improvements
Colors (colors.rs)
Full Catppuccin Mocha palette with semantic variants — ADD_BG/DEL_BG for diff washes, status_bg() for tinted card backgrounds, agent_color()/agent_short() for per-agent accent colors (Claude = mauve, Codex = blue, OpenCode = teal, Aider = yellow, Gemini = sapphire, Cursor = pink).
Titlebar (app.rs)
Full-width bar at the top: ◆ dellij · project-name, mini status dots in the center (one per workspace), workspace count + ⚠ N alert badge on the right
Box shadow for depth
Tab bar replaced by pill buttons — filled/shadowed when active, ghost when inactive, with live alert count badge on the Alerts pill
Sidebar (sidebar.rs)
Left accent bar — 3px strip colored by workspace status, only on the selected item (smooth transition)
Agent pill — tiny rounded badge per workspace (cc, cx, oc…) with that agent's accent color and tinted background
Status icon right-aligned — status symbol (⬤ ◯ ⊘ ✓ ✗ ◈) in the status color, flush right
Branch in monospace, ahead/behind as a blue pill
Ports as cyan pills, PR as peach pill
Action buttons appear only when selected, with active() press state
Box shadow on the selected card
Footer: "● all clear" or "⚠ N need attention" with a red tint background
Diff viewer (diff_view.rs)
Two-column line numbers (old + new), right-aligned in a monospace gutter
Colored left border stripe — 2px green/red border-left on added/removed lines
+/− prefix column (16px fixed)
Stats banner in the header: file count, green +N pill, red −N pill
File headers styled as full-width banners with a subtle top/bottom border
Hunk headers with blue-tinted background
Empty state: large ✓ with "Clean" message
Notifications (notifications.rs)
Tinted top bar (3px, status color) on each card
Cards have a double box shadow — ambient depth + subtle colored glow
Status icon in a circular tinted badge
Status text as an uppercase pill badge
Latest note in a > quoted block with dark background and border
Empty state: large green ✓, "All clear", subtitle
Docs (README.md, GUIDE.md)
README: ASCII art header, feature table (CLI/plugin/GUI columns), full install steps, architecture diagram, prior art credits, landing page tone aimed at Rust/OSS/hacker audience
GUIDE: 19-section comprehensive reference — every command, all options, hook examples, agent snippets, env vars, GUI walkthrough, config schema
dellij doctor should print ready-to-paste hook configs for Claude Code/Codex/OpenCode that call dellij status <slug> waiting
Multi-layout support
cmux/superset
Config settings.layouts map; dellij new --layout <name> picks an alternative KDL template (e.g. 2-pane, agent-only)
zoxide integration
zsm, zellij-sessionizer
dellij open without a slug could fuzzy-search workspaces + zoxide entries
Longer-term / requires plugin pipe API
Feature
Source
What it means for dellij
dellij read <slug>
cmux read-screen
Capture a pane's scrollback via plugin read_pane_contents() — useful for agent-to-agent orchestration
Progress indicator
cmux set-progress
Status enum extension + plugin renders a mini bar: working [=== ] based on a 0–100 field
Notification delivery
cmux, OSC 9
When status → blocked/error, emit OSC 9 in the workspace pane header so terminal notifiers fire
Out of scope (GUI-only in competitors)
Built-in diff viewer, in-app browser, native sidebar, commit staging UI, IDE deep-linking — all require a GUI host that Zellij doesn't provide.
awesome-zellij plugins worth integrating or referencing
zellij-attention — already solves tab-attention-indicators; dellij could adopt its pattern or make the status plugin emit compatible tab-name annotations
zellij-worktree — a plugin that manages git worktrees; worth checking for overlap/inspiration
multitask — mini-CI in a pane; dellij bookmarks could run via multitask for parallel task tracking
zellij-send-keys — already implements pane-targeting send; dellij's dellij send could be a thin wrapper
zellij-playbooks — YAML/TOML playbooks; dellij's bookmark system overlaps but is simpler
The two biggest bang-for-buck next steps remain tab dedup via pipe API and Claude Code hook snippets in doctor — the first removes the most visible daily friction, the second gives agents a zero-config way to update dellij status automatically.
dellij-gui
dellij list
Now shows ↑N ↓N, PR#N, ! attention marker
dellij doctor
Now prints Claude Code/Codex/OpenCode hook snippets
DELLIJ_* env vars now injected into KDL layout pane shells (not just hooks)
Pipe-first: open_workspace_tab tries plugin pipe before shell fallback
Plugin enhancements (plugin/)
Subscribes to PipeMessage events — receives open, focus, send, status commands
Tab dedup/focus: on open, checks if tab with matching slug exists → go_to_tab() vs new_tabs_with_layout()
Attention indicators: sync_tab_attention() renames tabs to !slug when blocked|error|review
send command: focuses the workspace tab then write_chars() to its shell pane
Tracks all tabs (not just active), tracks pane IDs via PaneUpdate
StatusFile now carries pr_number and needs_attention fields
GPUI desktop app (crates/dellij-gui/)
Sidebar — workspace list with status dot, branch, ↑N ↓N, ports, PR#N, attention badge; click to select; IDE deep-link buttons (VS Code, Cursor, Zed); browser launch button
Diff viewer — parses git diff output into Added/Removed/Context/HunkHeader/FileHeader lines, renders with green/red highlighting, line numbers, monospace font
Notification panel — cards for all workspaces with needs_attention(), border-left colored by status, latest note, PR number
Browser pane — wry WebView in its own OS thread/window with injected window.dellij JS API (snapshot, click, fill, eval)
File watcher — notify crate watches .dellij/status/ for live reload