Target audience: Any Worklog user who prefers a visual interface Time to complete: 10 minutes Prerequisites: Worklog installed (Tutorial 1) with some work items created
By the end of this tutorial you will be able to:
- Launch and navigate the interactive TUI
- Create, edit, and manage work items visually
- Use keyboard shortcuts for efficient navigation
- Access the built-in OpenCode AI assistant
wl tuiThe TUI opens with two panes:
- Left pane: A tree view of all work items, showing parent/child hierarchy
- Right pane: Details of the currently selected item (same format as
wl show --format full)
wl tui --in-progresswl tui --all| Key | Action |
|---|---|
| Up / Down | Move selection up or down |
| Right / Enter | Expand a node to show children |
| Left | Collapse a node (or jump to parent) |
| Space | Toggle expand/collapse |
| Mouse click | Select an item |
| Mouse scroll | Scroll the list |
As you navigate, the details pane on the right updates to show the selected item's full information, including description, comments, timestamps, and metadata.
Note: The right-hand metadata pane shows a compact, easy-to-scan layout. Risk and Effort are shown on a single line (Risk/Effort: <Risk>/<Effort>), and a one-line Audit summary (when present) is surfaced as Audit: <excerpt> — by <author>. Created/Updated rows are not displayed in the compact pane to reduce noise.
The TUI supports common work item operations without leaving the interface:
| Key | Action |
|---|---|
| n | Create a new work item |
| e | Edit the selected item |
| c | Add a comment to the selected item |
| d | Delete the selected item |
| r | Refresh/reload all items |
| / | Search items |
| v | Cycle the needs-producer-review filter (on/off/all) |
| h | Toggle the help menu |
Press n to open the creation dialog. Fill in the title, description, and other fields. The new item appears in the tree immediately.
Select an item and press e. Modify any field and save. The details pane updates to reflect your changes.
Select an item and press c. Type your comment and save. Comments appear in the details pane under the item's existing comments.
Press m on a selected item to enter move mode:
- The source item is highlighted with a yellow
[M]prefix - Its descendants are dimmed (they cannot be targets)
- Navigate to the desired new parent
- Press
morEnterto reparent the item under the target - Press
morEnteron the source item itself to unparent it (move to root level) - Press
Escto cancel
Other action keys are disabled during move mode to prevent accidental edits.
Use window-management shortcuts to move focus:
| Key | Action |
|---|---|
| Ctrl+W, Ctrl+W | Cycle focus between panes |
| Ctrl+W, h | Focus the list pane |
| Ctrl+W, l | Focus the details pane |
| Ctrl+W, p | Focus the previous pane |
Press O (capital O) to open the OpenCode AI assistant dialog. The server starts automatically and a status indicator appears:
[-]-- Server stopped[~]-- Server starting[OK] Port: 9999-- Server running[X]-- Server error
| Key | Action |
|---|---|
| Type your prompt | Enter your question or instruction |
| Ctrl+S | Send the prompt |
| Enter | Accept autocomplete or add a newline |
| Escape | Close the dialog |
Prefix your prompt with ! to run a shell command in the project root:
! npm test
The command output streams in the response pane. Press Ctrl+C to cancel a running command without closing the prompt.
Type / to see available commands:
/help-- Get help with OpenCode/create-- Create a new work item from a description/edit-- Edit files with AI assistance/test-- Generate or run tests/fix-- Fix issues in code
Example:
/create Fix the login page redirect when session expires
This creates a work item with an auto-generated title, description, and appropriate issue type and priority.
When OpenCode is active, the response appears in a bottom pane:
| Key | Action |
|---|---|
| Ctrl+W, k | Focus the response pane |
| Ctrl+W, j | Focus the input pane |
| q or click [x] | Close the response pane |
Press q, Esc, or Ctrl+C to quit the TUI. All changes made during the session are saved to the local database.
| Action | Key |
|---|---|
| Launch TUI | wl tui |
| Navigate | Arrow keys, Space, Enter |
| Create item | n |
| Edit item | e |
| Add comment | c |
| Delete item | d |
| Search | / |
| Move/reparent | m |
| OpenCode AI | O |
| Switch panes | Ctrl+W, Ctrl+W |
| Help | h |
| Quit | q / Esc / Ctrl+C |
- Planning and Tracking an Epic -- organize complex features
- TUI Reference -- complete TUI documentation
- OpenCode TUI Integration -- detailed OpenCode docs