Open History to see the last commit
1# Messages and context
2
3Give the agent a task in the composer. Add files, quote a previous response, or
4include a skill when the task needs more context.
5
6Messages can contain up to 120,000 characters. Longer drafts stay in the composer
7so you can shorten them or split them into several messages.
8
9Pasting 32 KiB or more of text adds that fragment as a text-file attachment so
10the agent can inspect it without filling the model context. A smaller paste also
11becomes an attachment when inserting it would exceed the message limit. On a
12hardware keyboard, use `Cmd+Shift+V` on Apple devices or `Ctrl+Shift+V` elsewhere
13to keep a large paste editable in the composer instead.
14
15## Formatting
16
17The composer writes Markdown and shows it styled as you type. When your cursor
18is on styled text, its Markdown shows instead, such as `**bold**`, and the
19markers edit like any other text: delete them to remove the style, or change
20`**` to `*` for italic. The style updates when your cursor leaves. To write
21plain Markdown with no styling, turn off **Settings → Chat → Rich text
22composer**. Lines starting with `- `, `1. `, `- [ ] `, `> `, `# ` or `---`
23become lists, task lists, quotes, headings and rules; ` ``` ` followed by Enter
24opens a code block. What you typed is what the agent receives, markers and
25numbering included, and `#1234` without a space still looks up a pull request.
26
27Some styled text containing or touching literal Markdown characters, such as a
28bold `path\` or `2*3`, keeps its styling without showing markers. Use formatting
29shortcuts or turn off rich text to edit the formatting of those ranges.
30
31Enter sends. In a list or quote, **Shift+Enter** continues it, and Shift+Enter
32on an empty line moves out one level, then leaves it; **Tab** nests a list item
33under the one above and **Shift+Tab** moves it back out. In a code block, Enter
34starts a new line at the current indentation, **Tab** and **Shift+Tab** indent
35the selected lines, and a closing ` ``` ` followed by Enter, or two blank lines
36at the end, leave the block. **Backspace** at the start of a code block turns it
37back into plain lines. Choose the language in a code block's corner to change
38it. Very large code blocks are shown without syntax highlighting.
39
40## Attach files
41
42Attach up to 100 files per message. Each image can be up to 10 MiB, with at most
4380 MiB of images in one message. Other files, including videos, can be up to
4450 MiB each, subject to the environment's upload support and limit. The agent
45receives them on the environment's machine. Provider and model limits still
46apply, including images already in the conversation. A video attachment gives
47the agent a file path; only [Antigravity](./providers-antigravity.md#skills-and-attachments)
48sends supported videos to Gemini models as video.
49
50Uploads begin when you add an attachment. All uploads must finish before the
51message can send. Retry or remove a failed upload. On web and desktop, reloading
52before an upload finishes requires you to attach that file again.
53
54You can drag or paste images into the web or desktop composer. HEIC and HEIF
55photos are converted to JPEG there and when selected from the mobile photo
56library; photos over the image limit are also resized to fit. On mobile, you can
57also send files to T3 Code through another app's system share sheet.
58On Android, you can also drag images from another app into the message input
59in split screen.
60
61See [images and videos](#images-and-videos-in-messages) for previewing and saving media.
62
63## Send while the agent is working
64
65On web and desktop, choose **Settings → Chat → Follow-up behavior** to queue
66new messages for a later turn or steer the running turn immediately. The setting
67applies to this client; already queued messages keep their place. Queued messages
68are saved on the server and can be edited or removed before they send.
69When Enter sends, `Cmd+Enter` on macOS or `Ctrl+Enter` on Windows and Linux uses
70the opposite action: it steers when your default is Queue and queues when your
71default is Steer.
72A slash command such as `/compact` or `/context` waits for the current turn to
73finish, because a command steered into a turn would replace the agent's task.
74Sending a queued command now moves it to the front of the queue. [Goal](#goals)
75commands are the exception: some can stop the current turn.
76If your **Send shortcut** requires `Cmd+Enter` or `Ctrl+Enter`, that shortcut uses
77your default follow-up behavior; add **Shift** to use the opposite action. This
78applies only to multiline messages when you choose the multiline send option.
79
80Use `Cmd+Shift+Enter` on macOS or `Ctrl+Shift+Enter` on Windows and Linux to send
81the oldest queued message as a steer. This leaves the current draft intact and
82requires an active turn that supports steering. If that shortcut sends the opposite
83action for your draft, move focus outside the composer to steer the queued message. Change
84`thread.steerQueuedMessage` in **Settings → Keybindings** to use another shortcut. To make
85`Cmd+Enter` or `Ctrl+Enter` steer the oldest queued message when the composer is empty, add
86this rule to your [keybindings file](keybindings.md#edit-the-configuration-file):
87
88```json
89{
90 "key": "mod+enter",
91 "command": "thread.steerQueuedMessage",
92 "when": "composerFocus && turnRunning && composerEmpty"
93}
94```
95
96Press `Option+Up` on macOS or `Alt+Up` on Windows and Linux with the cursor at the
97start of the composer to edit the most recently queued message. Change
98`thread.editQueuedMessage` to use another shortcut.
99
100Mobile has the same choice under **Settings → Chat**. While a turn is
101running the send button shows which action it will take. Long-press it to use the
102other action for a single message. From a hardware keyboard, `Cmd+Return`
103(`Ctrl+Return` on Android) uses the other action, or `Cmd+Shift+Return`
104(`Ctrl+Shift+Return`) when Return inserts a new line. The button only offers
105Steer when the running agent supports it.
106
107## Queue messages offline on mobile
108
109Mobile keeps local copies of draft attachments, so you can preview them and queue
110messages while disconnected. Uploads resume when you reconnect. Drafts and queued
111messages survive app restarts. Signing out of T3 Connect keeps that work on your
112device until you sign back into the same account.
113
114## Custom models
115
116On web and desktop, use Settings → Providers → **Models** to add an unlisted model with a custom
117name and options. Only options supported by the provider integration affect turns. Antigravity
118uses its account catalog and does not support custom models.
119
120To rename a built-in model on every client, edit the server's `settings.json` in its `userdata`
121directory. Add a custom model entry with the built-in model ID and a new name under that provider
122instance:
123
124```json
125{
126 "providerInstances": {
127 "codex": {
128 "driver": "codex",
129 "config": { "customModels": [{ "slug": "gpt-5.5", "name": "Team GPT" }] }
130 }
131 }
132}
133```
134
135## Model defaults
136
137T3 Code remembers your provider, model, and model options for new threads. A
138project's configured model takes precedence; resetting that project setting
139returns to the remembered selection.
140
141Leaving reasoning level or service tier unset uses the provider's own configuration.
142
143## Quote an assistant response
144
145On web and desktop, select text within one assistant response and choose
146**Cite in composer**. You can add a comment about the quote and write instructions
147around it.
148
149Select the quote in a draft or sent message to return to its source. If the source
150is unavailable or has changed, the saved quote remains readable.
151
152The chip shows your comment when it has one, or a short quote preview otherwise. Use the pencil
153button to add or change the comment. To remove the citation, place the caret beside its chip and
154delete it like other inline context. Copying, reloading, and restoring a
155[stashed prompt](#prompt-stash) keep each comment
156with its quote, and sending tells the agent which words were quoted and which comment you wrote.
157The quoted text and comment count toward the message limit.
158
159On mobile, long-press an assistant response, adjust the text selection, and choose
160**Cite** to insert a quote at the composer cursor. If the passage appears more than
161once in that section, choose its source occurrence. Select more surrounding text
162if a short passage appears too often. Tap a quote in a draft to add
163or edit its comment, or to remove it. To open the source message, tap a quote in
164a draft or sent message, then choose **Go to message**.
165
166## Recall a sent prompt
167
168Press `ArrowUp` in an empty composer to bring back the last prompt you sent in this thread. Press
169`ArrowUp` again to go further back, and `ArrowDown` to come forward. Moving forward past the newest
170prompt clears the composer. Recall walks the prompts loaded in the thread. Attachments, terminal
171context, and other extras from the original message are not restored, only the text you typed. A
172composer that holds an attachment or a picked element does not count as empty.
173
174When the composer has text, the arrow keys move the caret as usual. Recall takes over only while
175the text is an unedited recalled prompt, with the caret on the first visual line for `ArrowUp` or
176the last visual line for `ArrowDown`, counting wrapped lines. Editing a recalled prompt turns it
177into a normal draft.
178
179## Suggested next prompt
180
181Turn on **Suggest next prompt** in Settings > Labs. After a Claude or Codex turn completes, the
182empty composer shows a predicted next message. Press `Tab` to fill it in, then edit or send it, or
183press `Escape` to dismiss it. Each suggestion is one extra request that reuses the turn's prompt
184cache, so it uses a little of your plan's usage. Claude skips suggestions on the first turn of a
185thread and near usage limits. Codex needs version 0.165 or later; if T3 Code manages
186Codex, update it in Settings > Providers. Codex follows a change to the setting at once; open Claude
187threads follow it after they restart. Suggestions show on web and desktop.
188
189## Edit an earlier prompt
190
191On web and desktop, choose **Edit from here** beneath a sent message to rewind
192the conversation to before that message. Choose **Revert and keep changes** to
193leave workspace files as they are, or **Revert files too** to put the workspace back
194to its checkpoint from before that message. That also undoes edits you made yourself.
195File restore is only offered for threads running in a worktree, and it is
196refused when another thread or agent session also uses that directory, a folder
197inside it, or a folder that contains it, since
198restoring would erase their changes. Completed subagents belonging to the reverting
199thread do not block restoring that same worktree, provided they have no queued or
200active work, pending requests, or background tasks. A thread that works in the project
201directory rewinds the conversation only. The selected prompt and its attachments return to the composer for editing and
202resending. Any unsent draft stays above the restored prompt.
203
204This removes the selected message and later conversation from the active thread
205and provider history. It does not undo external actions or separate provider
206memory. The action is available only when the provider supports rewind.
207
208## Prompt stash
209
210On web and desktop, press `Cmd+S` on macOS or `Ctrl+S` on Windows and Linux to save
211the current prompt and its attachments for later. Wait for uploads to finish first.
212With an empty composer, the same shortcut restores a single stash or opens the
213stash menu when there are several.
214
215Stashes containing uploaded files must be restored in their original environment.
216Those files are retained for 24 hours. After an upload expires, restore the prompt
217and use **Attach again** or remove the missing file before sending.
218
219## Voice input on web and desktop
220
221Use the composer's microphone or `mod+shift+d` to dictate into your draft. Audio
222is transcribed on an environment you choose in **Settings → Voice**, or on the Mac
223with Apple Speech in the macOS desktop app; nothing is sent until you choose one.
224See [Voice input](./voice-input.md).
225
226## Voice input on mobile
227
228Use the composer's microphone to record, then confirm to transcribe. Text is
229inserted where your selection was when recording started, ready for you to review
230and edit before sending.
231
232By default, audio stays on the phone. Local transcription needs a supported iPhone
233with iOS 26 or later, or Android 12 or later with compatible Google speech services.
234To use a paired environment instead, open **Settings → Voice → Transcribe on**,
235choose the environment, and confirm. Finished recordings go only to that environment,
236even when a draft belongs to another one. This also works on phones without local
237speech recognition. If the chosen environment disconnects, dictation stops; it never
238switches hosts. Choose **This device** to revoke access and discard pending audio.
239For [cloud dictation](./voice-input.md#choose-where-audio-goes), open **Cloud providers**
240under the environment in **Settings → Voice** and confirm which provider may receive recordings.
241On Android, keep T3 Code open while recording and transcribing.
242
243On-device dictation may need a network connection to download a speech model the
244first time. After that it works offline for that language. iPhone dictates in the
245first of your preferred languages (**Settings → General → Language & Region**)
246that Apple’s speech model supports. If none is supported, it tries the app’s
247language. Android transcribes on the device while you
248record and finishes after you stop. Recordings can be up to five
249minutes long. Canceling or an audio interruption discards the recording and
250preserves your existing draft. Navigating to another screen keeps dictation active;
251use the floating controls to finish or cancel. While recording, the screen stays
252awake; it can sleep normally once recording stops.
253
254Choose a preferred order in **Settings → Voice**. Voice input requests the first
255connected microphone in the list. The list mixes kinds (built-in, other wired, other
256Bluetooth, and CarPlay on iOS) with wired and Bluetooth devices you have dictated
257with, listed by name. Drag to rank them together:
258for example, put **Other Bluetooth** above your AirPods so a new headset is preferred
259while the AirPods microphone stays low. By default, CarPlay comes after the built-in
260microphone on iOS. Swipe a device left to forget it. Android may use another input
261when the preferred microphone cannot be routed. Devices with the same name may share
262a saved preference, but simultaneous same-name inputs remain separately selectable.
263
264T3 Code deletes the temporary recording from your phone after transcription or
265cancellation. The transcript stays in your draft until you send the message to the agent.
266
267## Queued messages
268
269On web and desktop, the composer shows **Interrupt** while the agent is working and the draft is
270empty. Adding text or attachments replaces it with a send button that shows your
271[Follow-up behavior](#send-while-the-agent-is-working): a queue icon for Queue or a steer arrow for
272Steer. Click it or press your send shortcut to use that action. Hold `Cmd` on macOS or `Ctrl` on
273Windows and Linux to switch the button to the opposite action, then click, or use the opposite-action
274shortcut described above.
275
276On web and desktop, queued messages appear at the end of the thread as dashed messages that have
277not been sent yet. On mobile they appear above the composer. Each shows its text and any attached
278images. **Send now** sends a message right away, into the running turn if there is one. While a
279turn runs, a slash command moves to the front of the queue instead. You can also edit or
280remove it.
281
282If you stop the agent or the server restarts, queued messages keep their order and are held.
283Press **Resume** in an empty composer to continue. For stopped runs and usage limits,
284this uses the provider's native continuation without sending a new prompt. If the provider
285does not support it, send a message to continue instead. If the original request never reached
286the provider, Resume sends that request again.
287
288Sending a new message also resumes the queue, unless it steers a turn that is already
289running. You can edit or remove held messages without starting them.
290
291The pencil on a queued message opens it in the composer for editing. The original message
292stays in the queue until you save, and it is highlighted while you edit. The message's
293attachments appear above the text with a remove control, and new images can be added the usual way.
294The checkmark saves the queued message in place; **Cancel** next to it leaves it unchanged. Whatever
295you had typed in the composer before starting the edit is restored afterwards. If the queued
296message starts or is removed while you are editing, the edit ends: changed content moves into the
297composer when it is empty, and is discarded otherwise.
298
299## Commands and skills
300
301Type `/` for commands or `$` to add a skill from the selected environment and
302provider. On mobile, both are also available before starting a thread on
303**New task**.
304
305The slash menu also includes skills unless you turn off **Settings → Chat →
306Show skills in slash menu**, under Advanced. Only skills enabled for the provider are listed.
307
308After you add or change skills, plugins, or MCP servers, use **Restart agent
309session** in the command palette on web and desktop. The conversation continues,
310and your next message starts the agent again with the new setup.
311
312Provider commands must start the message to run. T3 Code commands such as
313`/model` and skill mentions work on any line.
314
315Send `/compact` in an existing conversation to reduce context usage when the
316provider supports it.
317
318Send `/clear` on its own, or pick it from the slash menu, to start a fresh session
319in the same thread. Your next message goes to a new provider session that doesn't see the
320earlier messages, and the thread marks where it began with **New session**.
321Earlier messages and diffs stay in the thread. Dismiss the notice above the
322composer to keep the current session instead.
323
324On web and desktop, turn on **Context window** in **Settings → Appearance →
325Thread details** to see context usage in the thread details card. It appears
326once the provider reports usage.
327
328Claude instances can also compact idle threads for you. See
329[compact long conversations](./providers-claude.md#compact-long-conversations).
330
331## Goals
332
333With Codex, Claude, and OpenCode 2.2.5 or later, send `/goal` followed by what "done" means, for example
334`/goal all tests in packages/api pass`. The agent keeps working across turns
335until it judges the goal met. The thread shows **Goal** while it works, and a
336line at the end of the thread (above the composer on mobile) shows the goal and
337its progress.
338
339- `/goal` alone shows the current goal. `/goal clear` removes it.
340- Codex and OpenCode also support `/goal pause` and `/goal resume`. Stopping
341 their goal pauses it. Codex also pauses when its work ends without meeting the goal.
342- Stopping Claude ends the current turn, but the goal stays set. Claude checks it
343 again at the end of your next message.
344- Sending a new goal, or `/goal resume`, while the agent works stops the current
345 turn and starts the goal, unless you queue it. `/goal clear` and `/goal pause`
346 stop the turn only when it is working on the goal. Other goal commands wait for
347 the turn to end.
348
349## Context in your message
350
351Context you attach lands where your cursor is, as a chip inside your text: a terminal excerpt,
352a review comment from a diff or file, a preview annotation, or a file. You can type before and
353after a chip, move it by cutting and pasting, and delete it like a character. Hover a chip for
354its brief details. Select a terminal excerpt to open its captured output, or select a review
355comment, picked element, or preview annotation to open its full details. Chips read as "Terminal
356excerpt, Terminal 1 lines 3-4" and similar to screen readers.
357
358A pull request appears as its icon and number. Its color reflects whether it was open, draft,
359merged, or closed when it was attached. Select it to inspect the captured title and branches,
360then choose **Open pull request** to visit the pull request. On web and desktop, type `#` to browse the newest
361pull requests in the current project's repository. Pull requests linked to the thread are included
362from any repository and listed first, after any exact number match. Continue typing digits to filter the recent list
363by any part of its pull request numbers. A complete number is also resolved directly, even when that
364pull request is older than the recent list. Type a single word after `#` to search pull requests in
365the repository by text. Choose a result to insert it as a chip.
366
367Another thread can be context too. Type `@` followed by part of its title to pick one from
368the same server, or from a machine it links to while the Linked environments beta is on; those
369show the machine's name. On web and desktop you can also drag a thread out of the sidebar and
370drop it on the composer; a multi-selection drops together. On any client, **Copy thread** copies a
371link to the thread that pastes into a composer as its chip. The chip shows the thread's
372current title and opens it when selected. Your prompt only carries a reference: the agent reads the thread's
373history on demand, so attaching a long thread costs nothing until the agent looks. Attaching a
374thread does not change it, and the agent cannot send messages to it unless you ask.
375
376A thread from a linked machine, picked, pasted or dropped, stays a reference that the agent reads
377on that machine. A pasted link to a thread on any other machine stays a link. Dropping a thread
378from any other environment attaches a saved transcript file. The source
379environment must be connected and up to date. The transcript includes the visible history and
380saved text context at the time of the drop; later messages and the contents of attached files
381are not copied. The agent can read the saved transcript after the source disconnects. Normal
382file attachment limits apply.
383
384Type `@` and part of a model or provider name, such as `@opus`, to name that model for the
385agent, for example when delegating. It does not change the thread's model. Join words with
386`:`, `/` or `-`, as in `@opus:opencode`.
387
388Images keep their thumbnail shelf above the text and also get a chip at your cursor, so you can
389say exactly which image you mean. Deleting an image chip leaves the image on the shelf; removing
390the thumbnail asks first when the image is still mentioned in your text, then removes both. Files
391exist only as chips: deleting a file's last chip removes the file from the message.
392
393Copy text that holds chips and paste it into another draft, in the same thread or another one,
394and the chips come along with what they point to. Images and files are fetched again from the
395environment they came from; while that happens the chip shows a dashed outline, and if it cannot
396complete T3 Code tells you and leaves the chip for you to remove or replace. A chip whose
397context is no longer available shows the same dashed outline; hover it for what to do.
398
399Copying a message with the copy button, or copying text out of it, gives other apps readable
400Markdown with a link in place of each chip. Older messages that were sent before chips still
401show their context. Stashing a prompt keeps its chips and what they point to; restoring brings
402them back.
403
404On mobile, tap a chip to inspect its content. File references open the current file; attached
405files show the copy that was attached to the message.
406
407## Attached files
408
409Select a file chip in your draft or a sent message to preview it. Code and JSON use syntax
410highlighting; Markdown, HTML, CSV, and TSV offer rendered and raw views. Audio files have
411playback controls. Large text files show a limited preview; save the file to read it in full.
412
413On web and desktop, files open beside the conversation with the same controls as a workspace
414file: a header row with the view toggle, **Copy contents** and **Save file**. On mobile, documents
415open in the same file screen as workspace files; its menu holds **Copy contents**, **Save or
416share** and **Open in file viewer**. Pictures, videos and PDFs keep their native viewers, and
417other document formats such as Word or Pages open in the device's own viewer when it has one.
418If nothing on the device can show a format, save or share it to open it elsewhere. A ZIP up to
41950 MB opens as a folder list on every surface; on mobile, select a file inside it to preview,
420save, or add it to chat.
421
422## Images and videos in messages
423
424Select an image or video attachment or link to preview it. Playback support depends
425on your browser or device; save an unsupported video to open it in another app.
426
427On web and desktop, right-click media to save it or copy its path or URL. On mobile,
428touch and hold an image or video thumbnail and choose **Save or share**. On iOS,
429return to the thumbnail to open this menu after watching a full-screen video.
430
431File links refer to the environment's machine, including when you connect remotely.
432Previews use the original file, even outside the workspace. Moving or deleting it
433can break the preview, so save a copy if you need to keep it.
434
435## Files outside the workspace
436
437Follow an agent's file link to read a report or other file outside the workspace.
438These files open read-only. An HTML file outside the workspace cannot load scripts,
439styles, or images from neighboring files.
440
441## HTML and PDF files in the file viewer
442
443On web and desktop, HTML and PDF files open as rendered pages. Switch an HTML
444file to source view to read its markup; a link to a specific line opens source
445automatically. HTML previews cannot access your T3 Code session.
446
447The file viewer recognizes images, HTML, and PDF files by their filename extension,
448including filenames or folders containing `#` or `?`.
449
450On mobile, select a PDF attachment or link to open it. iOS uses the native viewer;
451Android opens a compatible installed file viewer.