Kibitz Workspace is a unified task tracker and coding agent multiplexer TUI. Tasks have an associated session ID which may or may not be active at any time. Sessions are empowered to narrate their progress on their tasks and edit the task board in general. This combination provides the following advantages over session-based multiplexers:
- Session findings and outputs are accessible via the task board rather than hidden inside agent sessions
- It's cheap and easy to file a new task rather than bloating an existing one
- Sessions focus on one task so they remember context if you need to resume them later on
This model supports a rolling workflow where sessions stay short, they often file some followup tasks, and you end up with a fine-grained record of work that you can use to backtrack when needed.
Install
cargo install --path kbtz # task tracker CLI
cargo install --path kbtz-workspace # workspace manager (built-in multiplexer)
kbtz-workspace
kbtz-workspace is the TUI.
Usage
kbtz-workspace [OPTIONS]
| Flag | Default | Description |
|---|
--db <path> | $KBTZ_DB or ~/.kbtz/kbtz.db | Path to kbtz database |
-j, --concurrency <N> | 4 | Max concurrent agent sessions |
--prefer <text> | | FTS preference hint for task selection |
--command <cmd> | claude | Command to run per session |
--manual | | Disable auto-spawning; use s to spawn manually |
Screens
The workspace has three screens:
Task tree — the default view. Shows all non-done tasks in a tree with session status indicators. Navigate tasks, zoom into sessions, and manage task state (pause, done, force-unassign).
Task sessions — full-screen view of a single agent's PTY. The agent's terminal output fills the screen with a status bar on the last line. You interact directly with the agent (e.g. Claude Code) as if it were a normal terminal session.
Manager session — a dedicated session (not tied to any task) with an interactive agent for manipulating the task list: creating tasks, reparenting, blocking/unblocking, etc. Press c from the task tree to open.
Task tree keybindings
| Key | Action |
|---|
j / k, Up / Down | Navigate tasks |
Enter | Zoom into session |
s | Spawn session for selected task |
r | Restart (kill and respawn) session |
c | Switch to manager session |
Space | Collapse/expand subtree |
p | Pause/unpause task |
d | Mark task done |
U | Force-unassign task |
Tab | Jump to next session needing input |
? | Help |
q / Esc | Quit (releases all sessions) |
Task session keybindings
All commands use a Ctrl-B prefix (like tmux):
| Key | Action |
|---|
^B t | Return to task tree |
^B c | Switch to manager session |
^B n | Next session |
^B p | Previous session |
^B Tab | Jump to next session needing input |
^B [ | Enter scroll mode |
^B ^B | Send literal Ctrl-B to agent |
^B ? | Show help |
^B q | Quit |
Page Up and left-click also enter scroll mode.
Scroll mode
Scroll mode freezes the session output and renders the frozen viewport directly over the current screen with mouse tracking disabled. This enables:
- Scrolling via keyboard (
j/k, arrows, PgUp/PgDn, g/G)
- Native text selection via click-drag, with copy using your terminal's native shortcut (Ctrl+Shift+C on Linux, Cmd+C on macOS)
| Key | Action |
|---|
q / Esc | Exit scroll mode |
k / Up | Scroll up 1 line |
j / Down | Scroll down 1 line |
| PgUp / PgDn | Scroll by page |
g | Jump to top of scrollback |
G | Jump to bottom and exit scroll mode |
Session lifecycle
-
Claim — When there is an available task and available session capacity, the workspace generates a new session ID and atomically claims the best available task for that ID. Tasks are ranked by FTS relevance (if --prefer is set), number of tasks they would unblock, and age.
-
Spawn — A PTY is allocated and the configured command (default: claude) is launched with the agent protocol injected via --append-system-prompt. Each session gets environment variables: KBTZ_DB, KBTZ_TASK, KBTZ_SESSION_ID, and KBTZ_WORKSPACE_DIR.
-
Monitor — A lifecycle tick runs every 100ms. It checks each session's process liveness and its task's database state. Sessions are reaped when:
- The task is marked done, paused, or deleted
- The task is released (e.g. agent decomposed into subtasks)
- The task is reassigned to a different session
- The agent process exits
-
Reap — The workspace sends SIGTERM and waits up to 5 seconds for graceful exit, then SIGKILL. The task claim is released so it can be picked up again. The concurrency slot is freed and a new task is claimed.