Input editing
Section titled “Input editing”- Multi-line input: press
Shift+Enter,Alt+EnterorCtrl+Jto insert a newline without submitting. Useful for writing code snippets or structured prompts. - Undo/redo:
Ctrl+ZorCtrl+_undoes the last edit.Ctrl+Shift+Zredoes. Rapid typing coalesces into one undo entry; movement and kill/yank commands separate edits. - History recall:
Ctrl+P/Ctrl+Nbrowse previous / next prompts, restoring your unsent draft when you return past the newest entry. - History search:
Ctrl+Rsearches backward through input history.Ctrl+Ssearches forward within that search. Type to filter, Enter to insert. - Word navigation:
Alt+B/Alt+ForAlt+Left/Alt+Rightjump word boundaries.Alt+Backspace/Alt+Dkill a word backward / forward.Ctrl+Wkills backward using whitespace boundaries, useful for paths. - Line editing:
Ctrl+A/Ctrl+Ejump to start / end.Ctrl+Kkills to this line’s end.Ctrl+Ukills to this line’s beginning, preserving other lines.Ctrl+Ttransposes the characters around the cursor. - Kill/yank:
Ctrl+Yinserts the most recently killed text.Alt+Yimmediately afterward replaces it with an older kill. The ring is shared across text fields, while undo remains local to each field.
Chat interaction
Section titled “Chat interaction”- Copy text:
Ctrl+Shift+Ccopies selected text to the clipboard. Click and drag to select (when mouse capture is on, toggle with/mouse). Copied text omits terminal padding and wrap breaks, preserving paragraph breaks and code indentation. - Scroll: mouse wheel,
PageUp/PageDown(10 lines), or click the scrollbar.Ctrl+Home/Ctrl+Endjump to top / bottom.Ctrl+Lre-attaches auto-scroll to the bottom. - Cancel streaming: press
Esctwice. The firstEscshows a hint in the status bar (“esc again to stop agent”). The second cancels immediately. - Toggle reasoning:
Ctrl+Alt+Texpands/collapses reasoning/thinking blocks.Ctrl+Oexpands/collapses bash output.
Session management
Section titled “Session management”- Open here:
Ctrl+Alt+Olists conversations open in this terminal window.Tabopens global history. Attach another conversation to keep both open;Ctrl+Alt+Left/Ctrl+Alt+Rightswitch between them.Ctrl+Alt+Enterstarts one in the current project. - Close a view:
Ctrl+Alt+Wcloses the current view, or the highlighted view in a conversation picker. Its draft and queued follow-ups remain available during this TUI process, and daemon work keeps running. Closing the last view exits the TUI. - Notifications: the bell only includes conversations open here. Questions, approvals and failures need attention; completed results stay unread until visible in a focused terminal. Without terminal focus reporting, interacting with the visible conversation acknowledges its result.
- History:
/sessionslists previous sessions with timestamps./resume <id>resumes one. See Sessions. - Rewind:
/rewind <n>truncates to the first N messages. Use/rewindwith no args to see a list with snippets. - Clear:
/clearwipes the conversation context (persists to disk)./compactforces context compaction on the next turn.
Clearing preserves permission grants. If you approved a tool for the
session, that approval survives /clear.
Model switching
Section titled “Model switching”- Quick switch:
/model deepseek-v4-flashswitches without leaving the keyboard./modelalone opens the picker. - Thinking variants:
/thinking highsets the reasoning effort./thinking offdisables it. Or useCtrl+Spaceand select “Thinking Variant”, then pressCtrl+Alt+Prepeatedly to cycle through options. - Cost tracking:
/costshows accumulated token counts and estimated cost for the session.
@-mentions
Section titled “@-mentions”- Type
@in the input to open the reference picker. It lists files, models, skills, and subagents in one list; typing after the@narrows the same list. Selecting a file inserts an@pathmention that gets resolved and added to the agent’s context before the prompt is sent. Selecting a model, skill, or subagent inserts the matching@model:,@skill:, or@subagent:reference.
Terminal title
Section titled “Terminal title”The terminal title names the current conversation and project, for example
mew · running · Native browser lifecycle · ~/code/mew. It shows approval,
question, failure, unread-result and connection states, with counts for background
conversations open in this window. Logs are redirected to /tmp/mew-<pid>.log
so they don’t corrupt the TUI display.
Prompting patterns
Section titled “Prompting patterns”Be specific about scope
Section titled “Be specific about scope”The agent has filesystem access and tools. Tell it what to focus on:
Fix the off-by-one in the pagination logic in src/api/list.rs.Don't touch the database layer.Ask for investigation first
Section titled “Ask for investigation first”For unfamiliar code, ask the agent to investigate before making changes:
Find where the session timeout is configured and explain how it works.Don't change anything yet.Use subagents for heavy research
Section titled “Use subagents for heavy research”If a task involves scanning many files, delegate it so the results don’t fill your main context:
Use the researcher subagent to find all places we construct SQL queriesand report back which ones use parameterized queries.See Subagents for the built-in options.
Break work into phases
Section titled “Break work into phases”Use the planner/builder workflow for complex tasks:
/persona plannerto investigate and write a plan- Review the plan in
PLAN.md /persona builderto execute it
See Personas for details.
Permission workflow
Section titled “Permission workflow”If you’re doing repetitive work that needs many tool approvals:
- Start in
standardmode to review each tool call. - Once you trust the pattern, switch to
permissivewith/permissions permissiveto auto-allow writes and edits. - For full automation, use
/permissions autoto let the classifier decide each call.
Switch back to standard when you’re done:
/permissions standardSee Permissions for the full mode reference.