Chat Features
The chat is more than a text box: it knows your files, shows artifacts and charts, logs tool calls and automatically compresses long histories.
- Sending Messages
- Chat History (Left Column)
- When a Message Doesn't Get Through
- Questions from the AI
- Linking Files (@)
- Images & Screenshots
- Documents (PDF & Text)
- Speech Input
- Skills in Chat
- Active Provider & Model
- Right Sidebar (Preview, Tasks & Diff)
- Artifacts & Charts
- Inline References to Generated Images
- Markdown, Code & Trees
- Tool Calls & Thoughts
- File Edits & Diffs
- How the AI Edits a File
- Checking and Reverting a Change
- Diff Tree – All Changes in the Chat
- History Compression
- Looking Things Up in the Archive
- Rewind
- Tasks
- Long-Term Plan
- Confirmations
Sending Messages
- Send – via button or Enter (switchable to Ctrl+Enter).
- Stop – a running response can be canceled at any time.
- Jump to bottom – a floating button takes you to the end of long histories.
Chat History (Left Column)
The left column lists your chats, learning sessions, workflow plans, workflow runs and scripts. Every entry is a single-line row: the title on the left and, for workflows and scripts, a right-aligned meta text (node count, arguments or last timestamp). Chats and learning sessions show no meta text, so their title spans the whole row.
- Compact rows – a 14 sp title on one line, optionally followed by an 11 sp meta text, keeps a row at roughly 30 dp. Chat and learning rows have no meta text at all, so their title uses the full row width. Around 19 entries fit into the column before you have to scroll, and no two text lines are squeezed into a low row.
- Actions on hover – the pencil (rename) and cross (delete) icons only appear while the mouse pointer rests on a row, so they no longer compete with the text for the little vertical space.
- Rename – the pencil icon turns the title into an input field; Enter saves, Esc discards.
- Delete – the cross icon removes the conversation. It is hidden while a response is still running.
- Running state – a small spinner at the right end of the row marks a conversation that is currently generating an answer. Chat rows show only this spinner - they carry no message count.
- Selected entry – a seafoam accent bar on the left edge plus a tinted surface show which conversation is open.
- Settings mode – as soon as the settings are open, the column swaps its contents: the logo stays on top, below it one button per settings area in the same style as Chat and Workflows, and Back to Chat stays at the bottom. The chat list, the new-chat button and the feature buttons are hidden while the settings are open, so the column only offers the settings navigation.
When a Message Doesn't Get Through
Sometimes no answer arrives. In most of these cases Apis AI solves the problem by itself and tells you in the conversation what it is doing. These are the messages you may see:
| What you see | What it means and what you can do |
|---|---|
| API Limit - Retry in 30s (Attempt 1/3) | The service asks you to slow down and tells the app how long to wait. Apis AI waits, counts the seconds down and tries again – up to three attempts. You do not have to do anything; a running attempt can be canceled with Stop. |
| an error naming the API limit | All three attempts were refused. Wait for the time the message names and send your text again. |
| Tool calls disabled | The context window of the model is too small for the tools that are switched on. So that your message still arrives, the app sends this first message without tools – you get an answer, just without file or MCP access. Raise Context Window under Providers & Models or choose a model with more room. |
| Tool Fallback | The model could not do anything with the tools on this turn. The app sends the same message once more without tools, so you still get an answer. |
| Output budget spent on reasoning | Typical of models that think before answering: the whole output budget goes into the thinking, and nothing is left for the answer. Apis AI retries on its own – first with a limited thinking budget, then without thinking, then with a hint to answer right away. |
| A notice that the answer was stopped because the output budget is used up | Even the retries brought no answer out of the model. Raise Max Output Tokens under Parameters, choose a different model, or split your request into smaller steps. |
| The provider did not return a response (empty output)… | The service delivered nothing at all. Send again or switch the model. |
Other errors appear as a note above the input field with a small cross to close it. Which message belongs to which case – a missing API key or an empty model list, for example – is collected in FAQ & Troubleshooting. Your conversation is not lost in any of this: as soon as things get tight, Apis AI summarizes the older part (see History Compression).
Questions from the AI
Sometimes the AI has to decide something that you should decide yourself – for example which of two approaches it should take, or whether it may overwrite a file. In those cases it stops and asks instead of guessing: the questions appear right in the conversation, and your answer is sent with Continue.
- Several questions in a row – the app pages through them (e.g. "Question 1 of 2"); you answer one after the other.
- Suggested answers – as a rule the AI offers a few options with a short explanation and marks one of them as recommended.
- Your own answer – instead of a suggestion you can always type your own text.
- Multiple choices – for some questions you may pick more than one option.
While the AI waits for your answer, the response is simply paused – nothing is lost. If you would rather not answer, cancel the response with Stop.
Linking Files (@)
Type @ anywhere in your message and a suggestion list opens directly above the input field:
@alone – lists the top level of your shared folders. If you have not shared anything yet, the list starts in your home directory.@name– name search: first inside your shared folders, then (in a bounded scan) inside your home directory. Files you never configured are therefore found as well.@/path,@~/path,@C:\path– path completion anywhere on the file system; folders and files are both suggested. Relative paths such as@daten/q3.csvare resolved against your shared folders first, then against your home directory.
Summarize @bericht.md and add the figures from @daten/q3.csv
Sharing temporarily instead of configuring
An @ reference is itself the permission: you do not have to add a folder under
Settings → System & Prompts → Shared Folders first. Entries that are not covered by a
configured share carry the label Share temporarily in the suggestion list.
- Picking a file – it is attached to the message. The AI receives the content as context and – if allowed – can also write or edit it. Image files referenced this way are automatically sent as image input (see below).
- Picking a folder – the folder is shared for this chat only. Its chip appears above the input field as soon as you select it, and the file tools of this conversation may read and edit inside it – exactly like a folder from the settings, but without a permanent entry.
- Typing a path by hand – a path written out in full (
@/home/…,@~/…,@C:\…) counts as a deliberate share as well, even if no suggestion list was used.
The temporary share belongs to the conversation: it is stored with the chat and stays valid when you reopen it. Other chats are not affected, and nothing is written to your settings. Every temporary share is written to the log file, so you can always retrace which folders a conversation had access to.
Images & Screenshots
Models with image input (vision) can look at pictures. In the "+" menu choose Images to add one or more image files to your next message; the thumbnails appear above the input field and can be removed individually before sending. The image is downscaled and embedded, so it is available to the model even if the file is moved later.
You can also paste an image straight from the clipboard with Ctrl+V (or ⌘+V). If the clipboard contains an image, it is attached – even when it also carries text (browsers and office apps usually do). Text paste is handled separately, so normal text pasting keeps working.
Attaching never blocks the interface: as soon as an image is added, a placeholder chip appears immediately at the final thumbnail size, while the preview is decoded in the background. The finished thumbnail then replaces the placeholder without the toolbar jumping. Removing or reordering images does not decode the remaining previews again, and the same background decoding is used for the images in sent messages and in the artifact preview. If an image cannot be decoded, the chip falls back to a neutral image icon instead of failing.
Important: the Images entry is only active when the selected model supports image input. For all other models it stays grayed out ("Not supported") and cannot be clicked – this avoids requests that the provider would reject. The app detects this per model (Ollama and OpenRouter via their capability APIs, Claude and Gemini by model family, otherwise by model name).
The AI can also take a screenshot itself when a vision model is active:
- list_screens – lists the available monitors with index and resolution.
- capture_screenshot – captures the chosen screen (or the primary one) and returns it to the AI as an image; the screenshot appears directly at the tool call in the chat.
On X11 the app uses the native Java capture. On Wayland that only sees XWayland content, so it prefers the desktop tools (grim, spectacle, gnome-screenshot, import, scrot, maim) and captures the screen without any prompt; the requested monitor is then cropped out of the combined image.
Documents (PDF & Text)
In the "+" menu choose Documents to attach PDFs or text files (TXT, Markdown, CSV, JSON, XML, YAML, HTML, log files, …) to your next message. The attached documents appear as chips above the input field and can be removed individually before sending.
How the document reaches the model depends on the selected model:
- Native document support (Claude, Gemini): the file is sent to the provider as-is, so the model sees layout, tables and images inside a PDF.
- Without native support (Ollama, llama.cpp, DeepSeek, OpenRouter, …): the text is extracted locally first – PDFs are parsed with Apache PDFBox – and inserted into the prompt. The extraction is cached, so a reloaded conversation does not have to parse the file again.
Very large documents are truncated to keep the request within the context window. This works in every chat and in learning mode. Files you only want to reference (without loading their content) are still linked with @ (see Linking Files (@)).
Speech Input
With speech input enabled (see Speech Input), two buttons appear next to the "+" menu:
- Microphone (dictation) – click it, speak, then click stop: the transcript is inserted into the input field. Clicking Send while recording transcribes and sends immediately.
- Voice chat – click the speaker button next to the microphone. Apis AI then listens continuously, shows a live preview while you speak and sends every finished sentence automatically once you stop talking. Speaking while the AI is still answering interrupts the answer, just like sending a normal message. Click the button again to stop.
Setup and troubleshooting: Speech Input.
Skills in Chat
The "+" menu on the input field bundles attachments and skills:
- Skills – enable skills manually selectable per chat (see Rules & Skills).
- Images – add images for vision models (only active when the model supports it).
- Documents – attach PDFs and text files (see Documents).
Below that, the same menu also holds the per-chat settings that used to sit as separate pills next to the input:
- Provider & Model – one entry for both: the submenu shows the providers on the left, and the models of the highlighted provider on the right. Clicking a provider only highlights it; the chat is switched by the model click. That way a provider can never be selected without a model (the row shows both, e.g. Llama (lokal) · hermes35). The model list is searchable, marks favorites and can be refreshed.
- Terminal sandbox – one click toggles between sandbox and full access for this chat. The dot on the right shows the state: green = sandbox on (reads only), red = full access. A click always means "not the default".
- Todo reminder – override the global reminder for this chat (Default (global), on, off).
- Thinking – toggle extended thinking for this chat when the model supports it.
- Plan Mode – the AI only reads, asks questions and writes the plan; write tools are blocked. The dot on the right shows the state (green = on, red = off). See Plan Mode.
The model list is fetched once per provider and then cached for the rest of the app run.
Opening the submenu or switching chats/providers does not start a new search
(for llama this means no repeated GGUF folder scan). Only the refresh button
in the list header forces a new query – e.g. so freshly added .gguf files show up
without restarting the app. While a provider has never been loaded, the list stays empty and a
spinner runs; on error the list stays empty rather than showing stale entries. Changing a
provider's endpoint, key, GGUF folders or auto-start in the settings drops its cached list and
loads it again.
Hovering a row opens its submenu to the right; the panel itself stays in place. Every setting here applies only to the current chat.
Active Provider & Model
Right next to the "+" menu a small chip is always visible in the input row. It shows the provider and model that are active for the current chat, e.g. Ollama · qwen3:14b. You no longer have to open the "+" menu to see which model will answer.
- Per chat – every chat shows its own provider/model pair; switching chats switches the chip.
- Updates immediately – when you change the provider or model in the "+" menu, the chip follows right away, without switching the chat or restarting.
- Thinking active – a small brain icon appears in the chip when extended thinking is enabled for this chat.
- Long names – the chip stays on one line, is shortened with an ellipsis and shows the full text as a tooltip on hover. The microphone and send buttons always remain fully usable.
- No model selected – the chip shows Select a model… as a placeholder.
The chip is purely informational; click the "+" menu to actually switch provider or model.
Right Sidebar (Preview, Tasks & Diff)
On the right edge of the chat window sits a narrow bar. The Preview, Tasks and Diff area behind it is collapsed by default, so the conversation uses the full window width. Click the bar to open it.
- Open – click the chevron on the bar. The panel opens on the tab that was active last.
- Open a specific tab – the three icons in the bar open the panel directly on Preview, Tasks or Diff.
- Close – the chevron in the panel header (top right) folds the panel back into the bar.
- New artifacts while collapsed – a counter badge on the preview icon shows how many artifacts are waiting. The panel never pops open on its own, so a deliberately closed panel stays closed.
- Changed files while collapsed – a counter badge on the diff icon shows how many files the AI has changed in this chat so far.
- No layout jump – the width is animated, so the chat column grows and shrinks smoothly instead of snapping.
- Artifacts still switch the tab – as soon as a new artifact exists, the panel (when opened) shows Preview; without artifacts it shows Tasks. A tab you picked yourself – including Diff – is never taken away.
The panel belongs to the chat: the collapsed state is remembered for the current app session and applies to chat and learning mode. In workflows and scripts the area is not shown at all.
Artifacts & Charts
Code blocks, SVG drawings and diagrams are collected in the right panel under Preview:
- Code – with syntax highlighting and copy function.
- SVG – directly rendered preview.
- Charts – the AI creates diagrams via the chart tool; the diagram appears directly at the tool call and can be downloaded or saved as PNG.
Inline References to Generated Images
Diagrams the AI creates (create_chart) and screenshots it takes (capture_screenshot) are no longer only shown at the tool call. The AI can point at them from its running text: each generated image gets a short reference token such as [[art:1]]. Where the AI writes that token, the app places the image on its own full-width line in the message – right where it belongs, without scrolling through every tool call.
- The token is assigned when the image is created and is handed to the AI in the tool result; the AI only ever uses tokens it actually received.
- The image gets its own line (never squeezed between words): text before and after the token flows around it as separate paragraphs.
- The chart's tool call is collapsed by default – the image itself is shown where the AI references it, so you no longer have to scroll through tool calls. Expand the tool call only if you want its raw details.
- Numbering is per conversation and follows the order in which the images were created.
- The image also stays attached to its tool call (and remains downloadable there).
- Works in normal chat and in learning mode.
Markdown, Code & Trees
Responses are rendered as Markdown: headings, lists, tables, quotes, links, inline code as well as bold and italic. Markdown is also rendered inside quotes (> …) – headings, lists, code and tables appear there just as they do in the body text.
Mathematics is displayed: display formulas in $$ … $$ or \[ … \] are rendered as formula images (fractions, roots, superscripts/subscripts, Greek letters and operators). Inline formulas in $ … $ or \( … \) appear directly in the text with superscript/subscript characters. For actual calculations the AI uses the math_resolve tool (see Tools & Security): it evaluates single expressions or a whole batch and labels every result as exact, float approximation, undefined (domain) or NaN, so it does not have to guess at arithmetic and you can tell an exact value from a rounded one.
Code blocks appear in the bundled monospace font JetBrains Mono (uniform character width regardless of the system) with syntax highlighting, copy button and horizontal scrolling.
Every message can be selected and copied with the mouse: select text with the mouse button held down, then Ctrl+C (or ⌘+C). This also applies to thoughts, tool output and the entire message history.
ASCII trees made of box-drawing characters – such as scene or file trees – are recognized automatically by the app and rendered as a graphical tree instead of plain text:
- each node as a chip, the root highlighted in color,
- type labels such as
(Node3D)as a badge, - comments after
←/→as a muted annotation, - drawn connecting lines instead of dashes.
This also works without a code fence. Use the button at the top right to switch between tree and text view; the copy function always returns the original text.
Tool Calls & Thoughts
On every turn you see collapsed:
- Thoughts (thinking) – the model's reasoning steps, provided thinking is active. During this the app shows "Thinking…".
- Tool calls – status (running / OK / error) including the result. File changes appear as a Git-style diff.
One entry per uninterrupted run of tool calls. An agent run usually makes one call per turn, so the calls are bundled instead of listed one row after the other:
- A single call needs no group – the call itself is the entry, headed by its tool name (e.g.
shell_cmd). Clicking it opens the arguments and the result. - Two or more calls in a row are bundled into one collapsible entry Tool calls (n). Opened, it lists every call with its own name and status. The entry keeps the place of the first call, so the reading order stays intact.
- A run ends at a new section – a thinking block, answer text or the next user message starts a new entry. If the AI calls a tool, thinks, and then calls again, those are two entries.
The AI can use tools until the configured max tool rounds limit is reached (0 = no limit). Which tools a model receives in the first place is decided per model on the card Tool Selection per Model – see Settings.
Auto-Scroll & Long Thinking
While an answer or a thinking block streams in, the view follows the new content automatically – as long as you stay at the bottom. As soon as you scroll up, following stops so you can read in peace; scroll back to the bottom (or click the down-arrow button that appears) and the view follows along again. This also works with a single thinking block that is taller than the window: the view keeps the newest lines in sight instead of pinning the block to the top.
File Edits & Diffs
Every change the AI makes to a file appears in the conversation as a Git-style diff: removed lines in red with a leading -, added lines in green with a leading + and, above them, a neutral header line naming the file and the changed line range. The view uses the monospace font, scrolls on its own and is capped in height, so even extensive edits do not push the chat apart.
Tool calls appear collapsed as a row with the tool name and its status (running, OK, error). Clicking the row opens it – for a file edit that reveals the diff instead of the raw arguments. Scripts are the only exception: their terminal output is visible while they run.
How the AI Edits a File
For changes to an existing file the AI has exactly one tool: local_edit_file. It has two modes:
- Text mode (default) –
oldTextis the exact excerpt from the file and is replaced bynewText. It has to occur exactly once: with zero hits the tool reports that the excerpt is stale, with several hits it asks for more surrounding lines. Nothing can shift here, so an off-by-one line range is impossible. - Line range mode –
startLinetoendLine(1-based, inclusive) is replaced bynewContent. Kept for cases where the exact range is known; the line numbers shift after every edit. - Read first – the AI reads the spot with
local_read_file(numbered=true) and copies the excerpt verbatim, without the line numbers and without a trailing "…". - Read in slices –
local_read_filetakesoffset(1-based) andlimit, so a long file does not have to be read at once. The numbers are the real file line numbers even for a slice, and the footer names the range plus the offset for the next page. - Search with context –
local_greptakesbefore/afterand returns surrounding lines aspath:line- text(hits aspath:line: text), likegrep -B/-A. - New files –
local_write_filecreates files or overwrites them completely. It is not used for partial changes, because a full rewrite would hide what actually changed. - Large edits – the diff shows up to 200 removed and 200 added lines per edit; beyond that a summary line names how many further lines there are. The file itself is always written in full.
local_read_file,
local_grep, local_list_dir and local_find_files instead
of cat/sed/grep in the terminal: they return real line
numbers, respect your shared folders and cost fewer tokens. The terminal stays for builds,
tests, git and processes those tools cannot run.
sed -i, perl -pi, tee or a
> redirect – the command is rejected and the AI is told to use
local_edit_file instead, so that the change stays visible as a diff.
Binary files and paths outside your shared folders are not affected.
Checking and Reverting a Change
The status at the tool call tells you whether the edit went through; on an error the file was left unchanged. Since the diff contains the removed lines, a change can be taken back: ask the AI to restore the previous wording of that range – it sees the removed lines in the diff and edits the same spot again.
Deleting a whole file is a separate step and asks for confirmation as long as Can delete files on its own is off (see Tools & Security). File tools only reach shared folders, and in a workflow node they can be switched off entirely – without file tools there are no diffs either.
Diff Tree – All Changes in the Chat
The individual diff at the tool call shows one edit. The Diff tab in the right sidebar collects all changes of the current chat in one place – as a folder tree with Git-style line counters, exactly like a change list in an IDE.
- The button – the diff icon in the collapsed rail (or the Diff tab in the panel header). While collapsed, a counter badge on the icon shows how many files have been changed in this chat.
- Tree instead of list – files are grouped below their common base folder. Folders show the sum of their files, deep single-child folder chains are compacted (
src/main/kotlinin one row), folders come first and everything is sorted alphabetically. - Git notation – every file carries
+addedin green and-removedin red; a deleted file shows a deleted marker instead. - Aggregated per session – a file that was edited three times appears once, with the totals of all edits. The counters cover the whole chat, including messages that were already folded into a compression summary.
- Click a file to see the changes – a click on a file opens a large diff view over the chat (the panel itself is too narrow to read a diff). It shows every change of that file in order: the tool's own header line with the changed line range, the removed lines in red and the added lines in green, monospace and horizontally scrollable for long lines.
- Close the view – the X button, a click next to the card or Esc. Opening another file replaces the content of the view.
- Display only – the tree and the diff view never change a file: nothing is written, reverted or opened in an editor. They show what already happened.
- Live while working – the tree grows while the AI is still working: a file edit that just finished appears immediately, a running call is only counted once it is done.
The counters are derived from the tool calls themselves, not from the rendered diff text:
local_edit_file counts the replaced line range as removed and the lines of
newContent as added, local_write_file counts all lines as added,
and only calls that finished without an error are counted at all. Shell edits are not
listed (they are blocked in shared folders, see above), and neither are file changes made
through MCP tools – their output is not a diff.
The diff view reads the removed lines from the tool result, because only that result knows
what was there before. For a full write (local_write_file) the written text
from the tool arguments is shown as added lines. If a result no longer carries the diff
lines – for example after a rewind or when the result was shortened – the view says so
instead of inventing content. Both sides are capped at 200 lines per change; a note marks
the rest.
History Compression
As soon as the history reaches the compression threshold, the app summarizes older messages into a structured handover report. The threshold is measured against the usable input budget (context window minus a reserve for the answer: min. 20,000 or max. tokens). The 75 % threshold applies to the messages; the tool schemas that are sent along only trigger a compression when the whole request no longer fits the usable budget. That way a chat with many tools does not compress on every turn even though the messages leave plenty of room. The real token usage reported by the provider is used as that overflow bound, so the estimate calibrates itself after the first turn. A notice in the conversation marks the compressed messages; the most recent messages stay in their original form.
- One rolling report instead of a growing stack – a new compression does not add another report: the earlier report and the new conversation are merged into one updated report, and only that one is sent. The superseded reports stay visible and searchable in the chat/archive, but no longer cost context. That is what keeps a long chat from permanently overflowing.
- Tool results are summarized, then dropped – tool results count as facts for the report (distilled, not dumped) and leave the context once they are folded. A tool-heavy turn therefore shrinks instead of just adding a report.
- Tool schemas count – the tool definitions sent to the model (files, shell, MCP, tasks, …) are part of the budget. If they alone fill the usable budget, compression cannot help; the app says so once instead of compressing in a loop. The budget line in the log names history and tools separately.
- Calibration via usage – for OpenAI-compatible providers the app asks for the real prompt tokens of the request (
stream_options.include_usage). Providers that do not support the flag are simply sent the request once more without it; the app then keeps working with the estimate. - The original goal is preserved – the first message of the chat (your original task) and the pinned active task are never compressed and are sent to the AI again after every compression.
- Strict local templates – the summarize request carries exactly one system message, so local chat templates (which only allow a system message at the very beginning) do not abort it.
- Verbatim tail by budget – the messages that stay in full length are chosen by a token budget, not only by a fixed count. Eight very long messages no longer blow up the tail.
- Report quality – the handover report must contain all five sections. A report without any usable content is rejected and the history stays unchanged; the reason is shown in the chat. Individual sections that legitimately have nothing to say (e.g. no architectural decisions) are allowed.
- Provider overflow – if the provider still rejects a request as too long, media in older messages is replaced and the app compresses once, then repeats the request exactly once. Only when this one replay does not succeed either does the turn end with an error; the cause (including the number of system messages in the summarize request) is written to the log.
Archive: Looking Up Lost Details
The complete original messages remain stored even when they are no longer in context. The AI can look them up specifically:
- history_overview – lists all messages (including compressed ones) with ID and preview.
- history_search – searches the entire history for keywords and returns matching snippets.
- history_read – reads a specific original message by ID or index.
This way the AI does not have to guess early instructions (such as "use AI only to explain, not to replace") but can find them verbatim.
browser_snapshot returns up to
16,000 characters per step, and ten steps would fill a 40k window on their own – although the
model only ever needs the newest snapshot. For the same reason the Playwright MCP server is
worth starting with --image-responses omit (no screenshots for text-only models)
and, if you can do without page snapshots, --snapshot-mode none.
Rewind – Back to an Earlier Message
Every user message has a Return button. It deletes everything after that message and puts your text back into the input field so you can change and resend it. Stored compressed histories are restored in the process. Rewind is available in normal chats as well as in learning mode and is disabled while a generation is running.
Tasks
The AI can create and maintain tasks via task management. They appear in the right panel under Tasks with status (Open / In Progress / Done / Discarded) and optional subtasks.
Long-Term Plan
While Tasks are a scratchpad for a single response, the Long-Term Plan is for goals that span several messages or sessions – for example “learn linear functions” or a multi-week project. The AI maintains it via the plan tools and it appears in the right panel above the tasks.
Plan entries are saved with the conversation: they survive new user messages and a history compression. On every new message the AI is reminded of the open entries, so it does not lose the thread even in long chats. Entries have the same statuses as tasks (Open / In Progress / Done / Discarded) and can have subtasks.
Confirmations
When the AI wants to delete a file and the Can delete files on its own option is disabled, the app asks first. You can confirm or reject the action. Details under Tools & Security.