Reference documentation for the Shep AI TUI (Terminal UI) presentation layer.
The TUI layer has two kinds of surface:
shep tui, specs 142 and 143) β a full-screen, live view of every
feature built on @mariozechner/pi-tui:
a needs-you strip, a filterable roster, a details or log pane, keys to approve, reject, stop and
resume, and keys that open a featureβs shell or followed log in a tmux, Zellij, WezTerm or kitty
pane.Both are entered from a CLI command and reach the core only through use cases.
| Document | Description |
|---|---|
| architecture.md | Wizards, the feature console, integration with CLI |
| design-system.md | Prompt styling, themes, consistent UX patterns |
src/presentation/tui/
index.ts # Barrel export
feature-console/ # `shep tui` (specs 142, 143)
feature-console.app.ts # Polling, actions, log refresh, panes, alerts, clean exit
feature-console-view.ts # pi-tui Component: modes, prompts, keys -> intents
console-roster.ts # Filtered rows, selection, scrolling
console-screen.ts # One full frame from the view's state
console-render.ts # Header, needs-you strip, roster rows
console-panes.ts # Details, log, help, empty state, key bar
console-status.ts # The status line
console-layout.ts # Roster beside or above the pane
console-labels.ts # State, phase and agent labels
console-format.ts # Durations, cost, sanitising, state palette
console-keys.ts # Raw input -> console keys (legacy + Kitty protocol)
console-palette.ts # ctrl+p command palette (spec 145)
console-intents.ts # What the view asks the app to do
terminal-clipboard.ts # OSC 52 copy
control-center.ts # C: a window per feature; renames; tmux status (spec 146)
status-segment.ts # One-line summary: plain or tmux-styled
chat-view.ts # o: attach to a feature's agent chat (spec 147)
console-chat.ts # Polls the attached chat; stops started sessions on quit
console-prompts.ts # Reject-feedback and filter lines
terminal-notification.ts # OSC 9 / 777 / 99 or bell, tmux passthrough
run-inline.ts # Lend the terminal to a shell or log (no multiplexer)
fullscreen-terminal.ts # Alternate-screen Terminal decorator
wizards/
agent-config.wizard.ts # Agent selection + auth wizard
merge-review.wizard.ts # Merge/PR review flow
plan-review.wizard.ts # Plan review flow
prd-review.wizard.ts # PRD review flow
onboarding/
onboarding.wizard.ts # First-run onboarding wizard
types.ts # Onboarding types
steps/
agent.step.ts # Agent configuration step
ide.step.ts # IDE selection step
workflow-defaults.step.ts # Workflow defaults step
prompts/
agent-select.prompt.ts # Agent selection prompt config
auth-method.prompt.ts # Auth method selection
ide-select.prompt.ts # IDE selection prompt config
prd-review-question.prompt.ts # PRD review question prompt
prd-review-summary.prompt.ts # PRD review summary prompt
themes/
shep.theme.ts # Custom Inquirer theme (colors, symbols)
| Wizard | Invoked By | Description |
|---|---|---|
onboardingWizard() |
First-run gate in bootstrap | Full setup: agent + IDE + workflow |
agentConfigWizard() |
shep settings agent |
Select AI agent + configure auth |
mergeReviewWizard() |
shep feat review |
Merge/PR review flow |
planReviewWizard() |
Plan review during feature lifecycle | Plan review flow |
prdReviewWizard() |
PRD review during feature lifecycle | PRD review flow |
| Prompt | Package | Purpose |
|---|---|---|
select |
@inquirer/select |
Single-choice selection with descriptions and disabled options |
confirm |
@inquirer/confirm |
Yes/no confirmation |
password |
@inquirer/password |
Masked sensitive input (API tokens) |
input |
@inquirer/input |
Free-form text input |