Skip to content

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.

Terminal window
tapplack # interactive
tapplack start # same thing

On 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 viewport is fixed. Updates repaint the same screen instead of scrolling, so output never piles up. Top to bottom you see:

  1. A banner or compact tab bar.
  2. The active view.
  3. A status bar: provider, model, tokens, execution phase, and the latest temporary error path.
  4. The input bar, always in the same row.
  5. 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.

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.

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 .

tapplack — /help
The slash command suggestion list open above the input bar, showing /help and related commands.

See Slash commands for the full catalogue.

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.

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 top and /logs bottom.
  • Use /logs to 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.

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.

The full-screen TUI is enabled only when all of these are true:

  • stdin and stdout are a TTY,
  • TAPPLACK_NO_TUI is not 1,
  • TERM is not dumb.

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:

Terminal window
TAPPLACK_NO_TUI=1 tapplack

Color 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.

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.