Interactive session
Running tapplack with no task opens an interactive session. On a real terminal it uses a
full-screen TUI; piped or non-TTY runs fall back to plain appended output.
Starting a session
Section titled “Starting a session”tapplack # interactivetapplack start # same thingOn startup the session prints a header with the workspace, config path, mode, provider routing, and
the active agents. A new session transcript is created under runs/sessions/.
The TUI at a glance
Section titled “The TUI at a glance”The viewport is fixed. Updates repaint the same screen instead of scrolling, so output never piles up. Top to bottom you see:
- A banner or compact tab bar.
- The active view.
- A status bar: provider, model, tokens, execution phase, and the latest temporary error path.
- The input bar, always in the same row.
- A hint bar.
When the terminal is too small for the banner, the banner is dropped and the compact tab bar is kept, so content is never pushed off-screen.
| Tab | What it shows |
|---|---|
| MAIN | Chat and task output. This is where you type. |
| EXECUTION | Live tool and command runner activity. |
| APPROVAL | The pending human-gate action, with a preview. |
| LOGS | Scrollable log and temporary error inspector. |
| CONFIG | An in-terminal editor for providers, agents, and runtime. |
| MENU | A shortcut / view picker. |
Switch tabs with Tab and Shift+Tab, or jump directly with 1–6.
You can also use /view <tab>, /next, and /prev.
Typing and editing
Section titled “Typing and editing”The input bar is a real line editor, not a readline passthrough, so multitasking output never corrupts what you are typing.
| Key | Action |
|---|---|
| Enter | Send the line (or accept the highlighted slash command). |
| Shift+Enter / Alt+Enter | Insert a newline. |
| Tab | Complete a slash command or accept the highlighted suggestion. |
| ↑ / ↓ | Move between lines, then through input history. |
| ← / → | Move the cursor. |
| Home / Ctrl+A | Start of the current line. |
| End / Ctrl+E | End of the current line. |
| Ctrl+J | Insert a newline. |
| Backspace / Delete | Delete around the cursor. |
| PgUp / PgDn | Scroll the active view. |
| Ctrl+G | Open the menu. |
| Ctrl+C | Abort a running task, cancel a config edit, or clear the input. |
| Ctrl+D | Send /exit and leave. |
| Esc | Close the slash list or clear suggestions. |
History keeps the last 200 entries and skips consecutive duplicates.
Slash completion
Section titled “Slash completion”Type / and a suggestion list appears. ↑/↓ move the highlight,
Tab accepts, Enter runs a complete command or accepts a partial one, and
Esc closes the list without clearing your text. Subcommands complete too, for example
/config se → /config set .
See Slash commands for the full catalogue.
The CONFIG tab
Section titled “The CONFIG tab”The CONFIG tab is an editor for the global JSON file, grouped into providers, agents, and runtime.
| Key | Action |
|---|---|
| ← / → | Move between sections. |
| ↑ / ↓ | Move between rows. |
| Enter | Edit the selected value. |
| Esc | Cancel the field edit, or leave the tab. |
s |
Save to disk. |
r |
Reload from disk. |
q |
Back to MAIN. |
While the tab is open the input bar shows (idle). Actual edits happen in the field editor, and
only s writes the file. Settings changed here take effect on the next task or when the REPL
reloads its config.
For scripting and dotted-key edits, use tapplack config instead — see
Configuration.
Logs and error inspection
Section titled “Logs and error inspection”The LOGS tab keeps a ring buffer of everything the session emitted, with levels (debug, info,
warn, error, success).
- Scroll with PgUp/PgDn or
/logs up,/logs down. - Jump to the ends with
/logs topand/logs bottom. - Use
/logsto open the tab.
When a provider or tool failure occurs, the diagnostic is saved under runs/error-logs/ (or
runtime.errorLogsDir) and the status bar shows the path. The log line includes the path so you can
open it later.
The menu
Section titled “The menu”Ctrl+G or /menu opens a modal picker of views and shortcuts. Move with the arrow keys
and press Enter, or press 1–6 to jump. Esc closes it.
Non-TTY behavior
Section titled “Non-TTY behavior”The full-screen TUI is enabled only when all of these are true:
- stdin and stdout are a TTY,
TAPPLACK_NO_TUIis not1,TERMis notdumb.
Otherwise commands still work, but output is appended as snapshots instead of repainting a viewport. This is what you get in CI, when piping output, or inside some IDE terminals. To force it off:
TAPPLACK_NO_TUI=1 tapplackColor and Unicode also degrade gracefully. Set NO_COLOR to disable color, TAPPLACK_ASCII=1 to
force ASCII output, or TAPPLACK_UNICODE=1 to force Unicode.
Session memory
Section titled “Session memory”Each interactive session writes a Markdown transcript to runs/sessions/<session-id>.md. Within a
session, prior turns and task outcomes are carried into later prompts as context, so follow-ups like
“now add tests” refer to the previous work. A fresh tapplack starts a fresh session.
- Running tasks — what happens after you press Enter.
- Keyboard shortcuts — the complete key table.
- Slash commands — every command and subcommand.