Skip to content
docs

Features

The agent has tools for working with code and the system: reading and writing files (Read, Write, Edit, NotebookEdit), running commands (Bash, plus BashOutput and TaskStop for background commands), navigation and code (Glob, Grep, LSP, REPL), the web (WebSearch, WebFetch), tasks (TodoWrite), subagents (Agent starts one, TaskPeek shows its progress, Say lets a subagent write to the main agent), skills and tools on demand (Skill, ToolSearch, CallTool), git worktrees (EnterWorktree, ExitWorktree), and interaction (AskUserQuestion, Open, SidePanel).

Read opens PNG, JPEG, GIF, WebP, BMP, and TIFF images. Large images are downscaled before sending, and the number of images is capped by what the model supports. If a file does not fit, the error says why.

If the model supports PDF, the agent can pass a small PDF to it whole, images and diagrams included. For reads by line range, large documents, and models without PDF support, the agent uses the text layer. Grep on a PDF path searches that layer and reports the same line numbers as reading a fragment with Read. If native reading is unavailable and a scan has no text layer, you need OCR or page-to-image conversion; document skills help with that.

This section covers the terminal. For how to run the agent in the browser, in an IDE, or from a script, see Ways to work. All keys are listed below, under Keys.

  • Multiple chats: each chat is a separate agent session with its own draft and attachments. The tab bar is always visible, even with one chat, and has a + for a new chat; you can click a tab. ! on a tab means the chat is waiting for your answer, and ● means something new happened in a background chat.
  • Terminal tab title: shows ▶ while working, ● when waiting for you, and ✓ when a turn finished while the terminal was not in focus, along with the session title and project. Windows Terminal, Ghostty, WezTerm, and ConEmu also show a progress indicator.
  • Messages while the agent works: your text joins the work at the agent’s next step. While a message waits, it shows above the input field, and you can bring it back into the field or remove it. Ctrl+Enter or Ctrl+X Ctrl+S stops the model’s current reply and sends the queued text right away: what was already written stays in the conversation, and long-running commands and subagents move to the background. With an empty input field, Ctrl+J does the same, including in the Zed terminal, which intercepts Ctrl+Enter; with text in the field, Ctrl+J starts a new line. Typing ! before new text does the same thing. /model and /effort typed during a turn take effect from the agent’s next request. Most built-in commands run immediately, while /compact, /goal, /again, /reload, /resume, and your own commands and skills wait in the queue and run when the turn ends. /fork is not accepted during a turn. Messages with images also wait for the turn to end. For what in the queue survives a restart, see Recovery after a restart.
  • Clickable links and paths: a URL opens in the browser, and a file path opens in the IDE whose terminal the agent runs in, at the right line if one follows a colon. Outside an IDE, the path opens in the program from VISUAL or EDITOR, without jumping to the line, or in the system default program if neither is set. No modifier key is needed. Where the terminal supports hyperlinks, the terminal itself also highlights the URL under the cursor. Setting WAIBEE_NO_HYPERLINKS to any value turns those links off, and a click then opens the URL through waibee itself. Inside tmux, terminal hyperlinks need the line set -as terminal-features ',xterm-ghostty:hyperlinks' in the tmux config, with your terminal in place of xterm-ghostty: without it, tmux swallows the escape sequence.
  • Agent overview (Tab with an empty input field): a dashboard of all chats and their subagents, grouped by status. A finished subagent stays in the list: each chat shows the running ones and a few of the most recently finished. Enter opens a chat or a subagent view.
  • Working with a subagent: press Enter on its row in the overview to open its window. It works like the main chat: the chat tabs are at the top, the subagent’s name and task are below them, and the first line of its conversation is what the main agent wrote to it. The status bar shows its model, context, and tokens. You can write to it directly: if it has already finished, the reply comes to you and the main agent does not start a new turn; if it is still working for the main agent, your message joins that work and the main agent gets the result. Esc or Ctrl+C stops it while it works, and Esc takes you back once it has finished. Your message appears in its conversation. A continuation is marked with the name or ID of the earlier agent, and an activity indicator runs next to the current action. Any subagent can also tell the main agent something along the way, when a finding changes the next steps, and when it finishes it reports how long it worked and how much it spent. Its window shows how long it has been silent, and shows separately when it is waiting for an answer to a permission request. Results of recent subagents stay available after they finish.
  • Agent questions (AskUserQuestion): a question appears between the conversation and the input field, like a permission request, so the conversation stays visible and scrollable. The options are numbered, and the last one is always a custom answer: start typing on it, and the text goes into the field. If multiple choice is allowed, the answer is the checked options together with what you typed; the browser works the same way. What you type in the field is kept however you leave it, and clearing the field removes that answer. There can be several questions, switched with tabs; whatever you did not answer goes to the agent as “not answered” rather than as a default option. A question from a background chat waits in that chat’s tab.
  • Side panel (Ctrl+Y): the agent puts large reference material there (plans, tables, diagrams) as separate pages, so it does not clutter the chat. Pressing Ctrl+Y again cycles through the panel’s pages and then hides it. You can drag the panel’s edge with the mouse.
  • Task list (Ctrl+T): the open items of the plan for your last message show next to the chat. A finished plan and a plan for one of your earlier messages leave no list behind; the whole plan is always in /tasks. Ctrl+T hides the list and shows it again; the key is written on the list itself. A hidden list comes back with your next message. If you write after a turn that left items open, the agent is reminded of them and closes or clears the plan.
  • Edit diffs: Write/Edit cards show the diff right in the chat. A turn that changed files with these tools ends with their names, such as “edited a.rs · b.rs”. It lists the first five names and a count of the rest. Changes made by shell commands are not listed. /diff prints a git diff --stat HEAD summary.
  • Long tool output (Ctrl+O): a large result collapses into a preview with a line count. Ctrl+O shows the full output of every tool in the window on screen (the main chat or a subagent’s window), and pressing it again collapses it back.
  • Status line: shows the permission mode (» means trust), the model with its reasoning level in parentheses, such as opus-5.5 (medium), how full the context is, and how many subagents are running and how many are waiting for your answer. While the agent works, the line under the conversation shows how long the turn has run and how many tokens it has written. Ctrl+S opens a detailed panel, like /status.
  • Pasting images (Cmd+V / Ctrl+V): attaches an image to the message from the clipboard or from a copied file path. If the model does not accept images, waibee warns you and suggests switching models with /model.
  • Search: past sessions (Ctrl+P), words inside all saved sessions (Ctrl+F; Enter opens the match), and what you typed before (Ctrl+R).
  • Help (? with an empty input field, Ctrl+H, or /help): commands and the main chat keys.
  • Splash screen: a splash screen shows at startup, and any key dismisses it. Turn it off with the tui.show_splash: false key or the WAIBEE_NO_SPLASH=1 variable; WAIBEE_REDUCED_MOTION=1 removes both the splash screen and the indicator animations.
A Waibee Code chat with a work plan in the side panel
A demo session: the plan stays next to the chat while you discuss the next edit.

Click a session in the list to open it, or a model to choose it. In settings, you can click toggles and arrows; in dialogs, answer options and buttons. Clicking a command suggestion inserts it into the input field. The wheel scrolls the history, lists, the side panel, and a long permission request. While you are scrolled up in the history, the bottom shows how many new lines have arrived. Selecting and copying with the mouse is covered under Selecting and copying.

Clicks and the wheel work if the terminal passes mouse events to the application. This includes IDE terminals; if the terminal intercepts a gesture itself, use the keyboard. In the built-in terminal of a JetBrains IDE (Rider, PyCharm, IntelliJ IDEA) on Windows, waibee leaves the mouse off: that terminal sends mouse events in a form Windows turns into characters in the input field. Scroll the history there with PageUp and PageDown. Lists and dialogs adapt to the window size.

? with an empty input field or Ctrl+H shows the main keys in the app; all of them are listed here. Cmd, Shift+Enter, and Ctrl+Enter reach the app only if the terminal passes these combinations through. Alt+Enter, Ctrl+J, and Ctrl+X Ctrl+S work everywhere.

KeysAction
Ctrl+NNew chat
Ctrl+WClose the chat. If work is in progress or there is a conversation, it asks first. Closing the last chat closes waibee
Shift+← Shift+→Previous or next chat
[ ] with an empty input fieldThe same
Alt+1 … Alt+9Chat by number, if the terminal passes these combinations. On macOS, if characters get typed instead of switching, use Shift+←/→
Tab with an empty input fieldAgent overview; Tab, Esc, or q returns to the chat
Shift+TabNext permission mode
Ctrl+PPast sessions
Ctrl+FSearch for words in all saved sessions
Ctrl+YSide panel: next page, then hide
Ctrl+THide or show the task list
Ctrl+OShow the full output of all tools, or collapse it
Ctrl+SStatus panel, like /status
Ctrl+BMove running commands and subagents to the background; inside tmux with the Ctrl+B prefix, press it twice
? with an empty input field, Ctrl+HHelp
PageUp PageDownScroll the history by half a page
End with an empty input fieldJump back to the newest output
Esc twice with an empty input field, while no turn runsOpen rewind, like /rewind
EscThe first that applies: clear the selection; stop a running subagent in its window, or leave a finished subagent’s window; close suggestions; interrupt the turn; remove images attached to the message. When it closes suggestions or interrupts the turn, Esc also removes those images
Ctrl+CInterrupt the turn, or stop a running subagent in its window. When the agent is idle: copy if there is a selection; otherwise, pressed twice in a row, exit waibee. A second Ctrl+C while a turn is being canceled exits immediately. On the update screen, cancels the update

You can also exit with /quit.

KeysAction
Enter, Cmd+EnterSend. While the agent works, the message joins the queue
Alt+Enter, Shift+Enter, Ctrl+J with text in the fieldNew line
Ctrl+Enter, Ctrl+X then Ctrl+S, Ctrl+J with an empty fieldStop the current reply and send the queued text now, including text restored after a restart; what was written stays, and long-running commands move to the background
! at the start of the text while the agent worksSend this message now
↑ ↓Move a line up or down in multiline text, then through earlier prompts. In an empty field, ↑ first brings back the last queued message
Ctrl+RSearch earlier prompts: Ctrl+R or ↑ for older, ↓ for newer, Enter keeps the match in the field, Esc clears the field
/ in an empty field, @Command and file suggestions: ↑ ↓ select, Tab inserts. Enter sends the line if it already ends in a full command or skill name; otherwise it inserts the suggestion
Ctrl+V, Cmd+V, Shift+InsertPaste an image from the clipboard, an image file from a copied path, or text
← →Move the cursor by a character
Alt+← Alt+→, Ctrl+← Ctrl+→, Alt+B Alt+FMove the cursor by a word
Ctrl+A or Home, Ctrl+E or EndMove the cursor to the start or end of the whole text
Backspace, DeleteDelete the character to the left or right, or the selected text. On macOS, Delete is Fn+Backspace
Alt+Backspace, Ctrl+BackspaceDelete the word to the left
Alt+D, Ctrl+Delete, Alt+DeleteDelete the word to the right
Ctrl+U, Cmd+BackspaceDelete everything before the cursor
Ctrl+K, Cmd+DeleteDelete everything after the cursor
Ctrl+GRestore the last chunk deleted with the keys in the three rows above
Shift+↑ Shift+↓, Shift+Home Shift+EndSelect by lines, or to the start or end of the text
Ctrl+Shift+← Ctrl+Shift+→, Alt+Shift+← Alt+Shift+→Select by words
↑ in an empty field when images are attached to the messageImage picker: ← → select, Delete removes, Esc or Enter finishes
ActionWhat happens
Dragging with the mouseSelects text in the conversation, the side panel, a window, or the command in a permission request; it is copied when you release. At the window edge, the history scrolls
Double-click and triple-clickSelect the area around the pointer, or the whole line
Cmd+CCopy the selection, including in the input field
Ctrl+C with a selectionCopy, if the agent is idle. During a turn, Ctrl+C interrupts the turn
Right-clickCopy the selection, or paste text from the clipboard if nothing is selected
EscClear the selection
Option plus drag in iTerm2, Fn plus drag in Terminal.app, Shift plus drag in other terminalsSelection by the terminal itself, bypassing the app

Permission request:

KeysAction
1 … 4Choose an answer by number. A risky command has two answers
↑ ↓, then EnterChoose an answer with the arrows and confirm
EscReject
TabReject with an explanation: Enter sends the refusal with your text, Esc returns to the answers
Ctrl+OShow the whole command; press again to return to the answer options
PageUp PageDownScroll a long command; on a MacBook, Fn+↑ Fn+↓

For how a request behaves while you are typing, see Approvals.

Agent question:

KeysAction
1 … 9Choose an option. With single choice, the next question comes up, and a lone question is sent right away. With multiple choice, the number checks or unchecks the option. The number after the last option opens a custom answer
↑ ↓Move through the options
SpaceCheck or uncheck an option, if multiple choice is allowed
EnterChoose the option under the cursor and move on. With multiple choice and nothing checked, checks the option under the cursor. On the last tab, sends the answers
Tab or →, Shift+Tab or ←Next or previous question
EscSend what has been chosen so far. In the custom answer field, keeps the text and leaves the field without sending

Most lists share the same keys, and letter keys also work in the Russian keyboard layout:

KeysAction
↑ ↓, j k, Ctrl+P Ctrl+NMove through the list
PageUp PageDownPage through
EnterOpen or select
Esc, qClose or go back a level

In windows with a text field (the model picker, Ctrl+F search), letters go into the field, and Esc closes the window. These windows have their own keys:

WindowKeys
Past sessions (Ctrl+P, /sessions)Enter open, d delete with confirmation, f or * star, S starred only, a this folder or all, g and G to the first and last. Only Esc closes it
/settingsEnter toggle or start editing, ← → change the value while editing, s save without closing, Esc save changes and close; while editing, Esc cancels the edit
Status panel (Ctrl+S)c copy the session ID
/memorya add a note, d forget, u restore a forgotten note, Enter open the file in the editor
/forkn new branch, d delete a branch, Enter switch to a branch
/rewind↑ ↓ select a message, Enter go back to before it in a fork, Esc close
/effort← → move from Faster to Smarter, Enter save for this model, s keep for this session only, Esc cancel
/export↑ ↓ choose JSON or Markdown, Enter write the file
API key entry (/login)Enter check and save, Ctrl+U clear, Ctrl+H show or hide the key
Proposed goaly or Enter pin, e put /goal … in the input field to edit, n or Esc dismiss
Closing a chaty close, n or Esc keep

The keys for /plugin, /mcp, and /hooks are on the Plugins, MCP, and Hooks pages.

The LSP tool lets the agent work with symbols through a language server instead of text search: definitions, references, types, and diagnostics right after an edit. Rust, Go, Python, TypeScript/JavaScript, C/C++, and Lua are supported. A server starts on its own if its program is on your PATH; /lsp shows which servers are ready and which you need to install. More in Language servers.

The agent compacts older history at the threshold set by context.compact_at, and /compact requests it by hand. In an interactive session, it may also compact while you are away. See Context window for the conditions and the prompt cache settings.

Your organisation’s data protection policy (DLP) on the Waibee router can alert, mask, or block sensitive data. Under the message, the chat shows what the policy did, with the kinds of data and their counts:

NoticeMeaning
”sent as written” (alert)The model received the value
”masked before sending” (mask)The value was masked before it reached the model
”not sent” (block)The request was not sent

The notice adds “in a tool result” when all of that data came from a tool. The values you typed are also marked in the message text in the colour of the policy’s reaction: in bold in the terminal, with a tooltip in the web interface. The notices of sent and masked data stay when you reopen the conversation.

A message the policy lets through once its sensitive data is confirmed is sent, and the data then shows as “sent as written”. A blocked request ends with “not sent: your organisation’s data policy blocks what this request holds”. A blocked message you typed stays on screen above the “not sent” notice, and its text comes back to the input field, so you can remove the data and send it again. The blocked message is not kept in the saved conversation. A message the policy still holds after the confirmation ends with “not sent: your organisation’s data policy held it even when acknowledged” and comes back to the input field the same way.

If the provider’s content filter stops a reply before anything was shown, Waibee Code retries once on its own. Otherwise, the text shown so far stays, tool calls in that reply do not run, and the turn ends with:

The provider’s filter stopped this reply. /again to retry, /model to switch models.

The web shows this note with Try again and Switch model buttons. A /goal does not continue after the stop. waibee run exits with code 1.

The Agent tool starts a subagent: a full agent with a separate context for a narrow task. An agent definition is a Markdown file with frontmatter in .waibee/agents/ or .claude/agents/; its fields and tool set are covered under Subagents.

Waibee Code agent overview: three chats and two running subagents
A demo session: two subagents check a task in parallel. The overview shows what they are doing and the state of the other chats.

External tool servers connect over the Model Context Protocol, using the stdio, http, or sse transport. You declare servers in settings.json or .mcp.json and manage them with /mcp in the TUI and waibee mcp in the shell. More in MCP.

The agent keeps its own memory about you and the project, separate from your instructions, and adds to it on its own. /memory opens it for editing, and /memory add <fact> records a fact right away. For what goes into memory and where it is stored, see Configuration files.

The WebSearch tool searches the internet, and it needs no key: the router runs the search, the same way it does for any other client (Web search). The agent passes up to five queries in one call, one for each facet of the question, and each runs as a separate search. The pages found appear right under the call: with site icons in the browser, as a numbered list in the terminal. Each search is billed separately from tokens, as described on the router page.

For each query, search returns a one-line summary, titles, and URLs, but not the page text, so before relying on a result, the agent has to open it with WebFetch, which downloads a page by URL and turns it into readable text. WebFetch needs no key, is always available, and respects the allowed and blocked domain lists. Those lists do not affect search: the router receives only the query text from the model.

Conversations are saved locally. /sessions opens the sessions for the current folder, /sessions all shows all of them, and /resume returns to the last session in this folder. /fork branches the conversation so you can try a different approach. The project files stay shared between the branches.

/rewind opens a list of your own messages in this session, newest first, with their time. You can also open it by pressing Esc twice on an empty input while no turn is running. Use ↑ and ↓ to select a message, Enter to go back, or Esc to close the list.

Going back forks the conversation before the chosen message. The fork opens in the same tab, with the message back in the input to edit. Only the conversation goes back: files are not rolled back. The old conversation stays in /sessions. In the web interface, the fork button on a message does the same.

/export saves the conversation to a file; see the Commands reference. Searching for words inside sessions in the terminal is covered above, under “Interface”; in the browser, the search in the session list does the same.

A session survives a Waibee Code restart, including after a crash. When it opens again:

  • messages and commands that were waiting in the queue return to the queue, but queued images do not;
  • the restored queue is not sent to the agent on its own: Ctrl+Enter or a new message sends it, and ↑ in an empty field brings a message back into the field to edit;
  • a large conversation file, and a file cut off by a crash on its last line, open as usual.

If the sessions folder stops accepting writes, a warning that the session is not being saved appears at the end of the turn. Unsaved records wait in memory and are written as soon as writes succeed again; exiting waibee before that loses them.

The log helps you work out what the agent did: which tools it ran, which files it changed, and which actions were denied. It is stored locally, and recording is on by default. In the web interface, the log is in the security section.

In the terminal, you can watch new events, search the log, and export entries:

Terminal window
waibee audit tail --follow
waibee audit tail --since 1d --refused
waibee audit grep "permission_denied"
waibee audit export --format csv --output audit.csv
CommandFlags
waibee audit tail--since <duration> time window, 1h by default; --follow wait for new events; --event <type> only events of this type, such as permission_denied; --session <id> only this session; --refused only refusals: blocked addresses and paths, denied actions, and failed calls
waibee audit grep <string>--regex search for a regular expression; --since <duration>, 7d by default; --event <type>
waibee audit show [YYYY-MM-DD]the log for one day, today by default
waibee audit export--from, --to dates as YYYY-MM-DD, the last 7 days by default; --format json, csv, or md, json by default; -o, --output <file> instead of printing to the terminal
waibee audit statusrecording state, log location, and the number of events today
waibee audit disable, enableturn recording off and on, in the settings

A duration is a number with a unit: 30m, 2h, 7d. The --no-audit flag turns off recording for a single run.

waibee doctor checks your environment. waibee bundle builds a zip archive for a bug report: diagnostics, the last day of the audit log, the tail of the log, recent crash reports, and settings without keys. A conversation goes into the archive only if you name it: --session <id>. A conversation over 1 MB keeps only the whole entries of its first and last ~500 KB; add --full-transcript to include it whole, with keys removed the same way. Other arguments: a crash ID (waibee bundle <id>) to make sure that crash’s report is included; --audit <duration> instead of one day, such as 3d; --note <text> with a description of the problem; -o, --output <file> instead of the default name in the current folder. /bug in the terminal and in the browser builds the same archive with the current conversation included. Check the archive before you send it: the paths in it contain your username.

To see disk usage and clean up old data, use waibee storage. The cleanup steps are in The .waibee directory.