Core Concepts

Interactions

How you drive Fabric Agents from the keyboard — mentions, slash commands, attachments, shortcuts, permission modes, thinking levels, drafts, and plan approval.

Most of what you do in Fabric Agents happens from the chat input. This page covers everything it does.

Mentions

Type @ in the chat input to open the mention picker. You can mention:

MentionWhat it does
@agentLoads an agent's persona + instructions for the rest of this turn.
@skillPulls in a skill as context.
@sourceEnables a source for this session (MCP, API, or Local).
@fileAttaches a file — image, PDF, Word, spreadsheet, text.
@folderScopes a folder for the agent to work in.

Mentions render as coloured badges inline in your message. You can mix and match — @code-reviewer + @linear + @folder:./src is a perfectly normal opener.

Slash commands

Type / to open the slash-command picker. Commands run prompt templates with optional $ARGUMENTS substitution — see Commands for the full file format.

Built-in slash commands:

CommandAction
/exploreSwitch to Explore (safe, read-only) mode.
/askSwitch to Ask-to-Edit mode.
/executeSwitch to Execute (auto-approve) mode.
/compactSummarise the conversation so far and continue with a compacted context.

Your own commands — anything in ~/.fabric-agent/workspaces/{ws}/commands/ or .agents/commands/ in the repo — show up too.

Prompt enhancer (✨)

The ✨ button in the row of small buttons just above the message box (on the right, next to the mic) rewrites a vague draft into a clearer, more specific prompt — using your real repo context, not just session metadata. It looks at top-level layout, package.json, README, detected frameworks, and any identifier-shaped tokens in your draft (file paths, PascalCase types, camelCase functions). Those tokens are grepped against the working directory, so the enhanced prompt can reference real files instead of hallucinating them.

A small context badge sits beside the wand and shows what was attached on the last enhance: repo intro, retrieved files, relevant symbols. Click the badge to expand. Disable it under Settings → Chat → Prompt enhancer if you'd rather it stay out of the way.

See Auto Behaviours → Prompt enhancer for the full mechanics.

File attachments

Drag-drop or use @file to attach:

TypeBehaviour
Images (png, jpg, webp, gif, heic, heif)Inlined as base64; the agent sees them directly. HEIC and HEIF photos, as iPhones take them, are converted to JPEG when you attach them.
PDFsExtracted to text; original stays attached.
Office docs (Word, Excel, PowerPoint)Converted to markdown via markitdown.
Text / codeInlined as text.
Anything elseAttached as-is; agent gets path + MIME type.

Pasting more than 400 lines or 20,000 characters of text auto-converts to a file attachment so the input stays responsive.

Attachments are copied into the session's attachments/ folder — if you delete the source file, the conversation still has it.

Attachment sizes are checked before anything is sent. If a file is over the limit, or several files together are too large for one message, a message names the file and the limit so you can remove some or send them separately.

Opening files from replies

File names and paths in a reply are links; web links still open in your browser. Clicking a file link opens a small menu next to it:

  • Open in browser for .html and .htm files (the app your system opens HTML files with, normally your browser), or Open in default app for other files
  • Preview here for files Fabric can preview
  • Show in Finder (your file manager on Windows and Linux)
  • Copy path

To skip the menu, hold Option (Alt on Windows and Linux) while you click: the file opens in its default app. In the Web UI a click still opens the preview directly, since a browser can't open files on your computer.

Relative paths (src/app.ts, ./docs/guide.md) resolve against the session's working directory, and paths with spaces work.

On Windows, the usual Windows forms open as files too: drive paths (C:\Users\you\report.md or C:/Users/you/report.md), backslash paths (src\app.ts, .\docs\guide.md) and network shares (\\server\share\notes.md).

Running shell snippets

Shell code blocks in a reply have a Run button next to Copy. Pasting a console snippet into the input also offers to run it. Either way, the agent starts the snippet as a background task under the session's current permission mode, so it can't do more than the mode allows. Follow or stop it from its chip above the input.

A background command's chip shows the last line it printed while it runs. When the command sends its output to a file (for example ./run-tests.sh > run.log 2>&1), the chip and the task's card show the end of that file instead, labelled with its name. Files in protected folders and credential files aren't shown, and secrets are hidden.

Keyboard shortcuts

Keys use Cmd on macOS and Ctrl on Windows/Linux.

Sending messages

ShortcutAction
EnterSend the message
Alt + EnterWhile the agent works: the other send choice ("Send after this task" on Claude and Pi connections)
Shift + EnterNew line in the input
EscStop processing / close a popover

Permission modes

ShortcutAction
Shift + TabCycle Explore → Ask to Edit → Execute → Explore

Sessions and navigation

ShortcutAction
Cmd + NNew chat
Cmd + Shift + NNew window
Cmd + BToggle sidebar
Cmd + 1 / 2 / 3Focus sidebar / session list / chat
Cmd + .Toggle focus mode

App

ShortcutAction
Cmd + ,Settings
Cmd + /Show all keyboard shortcuts

The full list — including provider-specific and custom bindings — lives in Settings → Keyboard Shortcuts or behind Cmd + /.

Zoom. Cmd + = and Cmd + - zoom the window; Cmd + 0 (View → Reset Zoom) returns to your default zoom. Set it under Settings → Appearance → Default zoom (80–150%); every window opens at it. The setting stays on this computer, also when you work in a remote workspace.

Right-click. Text fields offer Cut, Copy, Paste and Select All; selected text offers Copy; links offer Copy Link. When spell check (Settings → Input) flags a word, the menu shows suggestions and Learn Spelling.

Permission modes

Three modes, cycled with Shift + Tab — four while the decision model offers Guarded:

ModeBadgeBehaviour
ExploresafeRead-only. Write tools are blocked. Plans can still be submitted.
Ask to EditaskDefault. Prompts before every write or sensitive action.
GuardedguardedWorks like Execute, but Bash commands, MCP writes and non-GET API calls are checked first; anything hard to undo, outside the project, or reaching other people and services asks you. Offered only while the decision model's Guarded mode switch is on.
Executeallow-allAuto-approves all tool calls. Use when you trust the direction.

A session spawned with spawn_session gets at most its parent's mode: it can be stricter, never looser.

Permission modes are per-session and persist across turns. The workspace sets the default. See Permissions for how allowlists work.

Thinking levels

Extended thinking lets the model reason before answering. Five levels:

LevelWhen to use
OffFast, cheap, no deliberation.
LowLight reasoning for simple structured tasks.
MediumBalanced default.
HighComplex problem-solving, multi-step planning.
MaxHardest questions — research, debugging, architecture.

Set per-session from the input toolbar. Workspace default lives in config.json.

Available on models that support it (most Anthropic models; provider-specific mapping for Pi). Max is sent natively to models that accept it — GPT-5.6 and adaptive-thinking Claude models — and gracefully degrades to the model's own ceiling everywhere else (older GPT-5.x fall back to extra-high).

Drafts

Anything you type is saved as a draft for that session. If you switch away and come back, the draft is there. Sending the message clears it immediately — no stale sync after submit.

Drafts don't sync across machines. They live in the session state in memory plus a small local cache.

Stop restores your last message

Clicking Stop to cancel a running turn copies your last sent message back into the input, so you can tweak the wording and resend without retyping. It's append-safe: if you started a new draft while the agent was working, that draft is kept and the restored text is appended below it. This applies only to an explicit Stop — redirecting or sending a new message doesn't restore anything.

Messages while the agent works

You can send a message at any time; you don't have to wait for the agent to finish.

  • Questions get a quick answer right away. If the agent's activity so far answers your question (how far it is, what it's doing and why, what it found, what comes next), a short Quick answer appears under your message within seconds. It comes from a small, fast model reading the session's recent steps, never interrupts the work and never enters the agent's context.
  • The agent reads your message at its next step. Claude and Pi connections deliver it into the running turn, the way Claude Code does: Claude at its next tool call, Pi when the current tool finishes. A message the agent doesn't reach before the turn ends is sent as the next turn instead. Delegated CLI connections (Cursor, Kimi, Droid, Grok, Antigravity) always wait for the turn to end.
  • A CLI turn ends when the agent has answered. With Kimi, Droid, Grok and Antigravity, the turn ends once the agent finishes its reply, even if a command it started in the background, or a timer it set to check back later, keeps the CLI running. That background work carries on until your next message, which stops it first. If the CLI starts working again on its own (a timer fires, a background command finishes), Fabric stops it, so your messages are never held behind it.
  • The agent's reply shows as a message. When the agent answers you and then carries on working, its answer appears in the chat as a message rather than inside the collapsed steps, and the work that follows starts a new group of steps.
  • Anything written for you shows as a message. Text the agent writes for you partway through a turn, such as instructions, a list, a table, code or a few paragraphs of findings, appears as a message even when your message wasn't a question. Short commentary on the work ("Reading the config file.") stays in the steps. Each text row in the steps has a Copy button, so you can copy it without opening it.

Send now, or after this task

While the agent works, you choose for each message whether it should reach the agent now or wait for the task to finish:

ChoiceHowWhat happens
Send nowEnter or the send button (on Claude and Pi connections)The agent reads it at its next step. Use it to correct course or ask a question.
Send after this taskAlt + Enter (Option + Return on macOS), or the list button beside SendIt waits with a Queued label and is sent as the next turn when the current task ends. Use it to line up follow-up work.

If you send with Cmd + Enter, add Alt to that shortcut instead. If you've turned on Mid-turn messages for the decision model in Settings → AI, Send and Enter leave the choice to the model (the button says so), and the other button still chooses for you. Delegated CLI connections can't take a message mid-turn, so every message waits for the task to end there.

A queued message has three actions on its Queued row:

  • Send now gives it to the agent at its next step instead of waiting (Claude and Pi connections; text-only messages).
  • Edit takes it out of the queue and puts its text back in the message box, after anything you've typed.
  • Remove takes it out of the queue.

Stop still ends the current turn and returns queued messages to the message box.

To make Send (and Enter) wait for the task by default on a connection, open Settings → AI, choose the connection and set Mid-stream sends to Queue until ready. The other choice then becomes Send now.

Model switcher

The model picker in the input toolbar shows every model from the current LLM connection. Grouped by provider:

  • Anthropic — direct API or Claude Max OAuth
  • Pi — Fabric Agents Backend (multi-model routing through the Pi SDK)
  • Azure AI Foundry — if configured
  • Local — any pi_compat endpoint pointing at localhost (Ollama, LMStudio, …)

You can switch models any time. The connection locks after the first message of a session — once you've sent something via Anthropic, that session stays on Anthropic. Starting a new session lets you pick freshly.

Plans and approvals

When the agent is in Explore or Ask mode and wants to do something that requires Execute-level permissions, it submits a plan: a markdown file describing what it wants to do and why. You see an approval card with:

  • Accept — switches the session to Execute (or a scoped Allow) and hands control back to the agent. You can add extra context in the draft input before accepting; it's appended to the approval message.
  • Accept & Compact — same as Accept, but also summarises the context so far to keep the conversation short.
  • Decline — cancels the plan; you can keep chatting in the current mode.

Plans are stored as markdown in the session's plans/ folder, so you can review decisions later.

Rendered output

The agent's messages render live as they stream in:

  • Markdown — headings, lists, tables, images.
  • Code fences — syntax highlighting via Shiki, copy button, language-specific actions (run, diff).
  • Diff blocks — side-by-side with inline comments for multi-file changes.
  • Datatables — paginated, sortable, filterable — see Data Tables.
  • Mermaid — diagrams. See Mermaid.
  • HTML previews — see HTML Preview.
  • PDFs — see PDF Preview.
  • Math — KaTeX inline and block.

Compact mode (narrow viewports)

Fabric Agents adapts to narrow viewports automatically. When the shell width drops below 768px — primarily the WebUI on a phone, but also the desktop window when you resize it small — the renderer flips into a single-panel iOS-style drill-in:

  • One panel at a time. The session list, sources, and chat each take the full viewport; the sidebar and right rail auto-hide. A back chevron in the panel header replaces the desktop back/forward buttons.
  • Touch-first pickers. Workspace switcher, source picker, permission-mode selector, session-list filter, session-row context menu, working-directory selector, plan-acceptance picker, and (in the web UI) model selector all swap from popovers to bottom-sheet drawers so they don't get clipped by the panel container.
  • Expandable chat input. Tap a collapsed input to expand it into a multi-line composer — long prompts stay editable without leaving the active session.
  • Reorganised top bar. Workspace pill sits on the left, action chips collapse, and the "new chat" button pins to the viewport bottom as a floating action button.
  • Full-screen menu. The Fabric logo opens a mobile-first navigation stack instead of the desktop dropdown. Settings, Help, and Debug are full-screen sub-pages.

The breakpoint is layout-driven, not user-agent-driven — pulling the desktop window narrow gives you the same experience. Desktop popovers remain unchanged on wider viewports.

  • Permissions — the allowlist model behind Execute
  • Commands — create your own slash commands
  • Agents — create @-mentionable personas

On this page