Input editing
Section titled “Input editing”- Multi-line input: press
Alt+Enterto insert a newline without submitting. Useful for writing code snippets or structured prompts. - Undo/redo:
Ctrl+Zundoes the last edit.Ctrl+Shift+ZorCtrl+Yredoes. Edits within a 500ms window coalesce into one undo entry. - History search:
Ctrl+Rsearches backward through input history.Ctrl+Ssearches forward. Type to filter, Enter to insert. - Word navigation:
Alt+Left/Alt+Rightjump word boundaries.Alt+Backspacedeletes a word backward. - Line editing:
Ctrl+A/Ctrl+Ejump to start / end.Ctrl+Kkills to end of line.Ctrl+Uclears everything.
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). - 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+Texpands/collapses reasoning/thinking blocks.Ctrl+Oexpands/collapses bash output.
Session management
Section titled “Session management”- 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+Pand select “Thinking Variant”, then pressCtrl+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 file picker. Selecting a file inserts an@pathmention that gets resolved and added to the agent’s context before the prompt is sent. @followed by a subagent name (shown with[subagent]tag) inserts a subagent reference instead of a file path.
Terminal title
Section titled “Terminal title”When streaming, the terminal tab title shows mew - thinking.... When
idle, it shows mew. This helps you tell when a response is done from
another tab. 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.