Chat
Last reviewed November 18, 2026 (checked against the app).
The Chat page is CPLai's multi-model AI chat interface. It connects you to text, reasoning, and search models across Anthropic, OpenAI, Perplexity, and Google, plus image and video generation through FAL.ai and Kie AI, with model routing suggestions, agentic tool execution, multimodal input, and deep project integration.
Neither desktop nor web Chat lists image or video models in the model picker. On desktop, the Generate Media button above the message input (and on the empty Chat screen) opens a media panel when a FAL.ai or Kie AI key is configured. On web, the Tools menu exposes Generate Image and Generate Video when a Kie AI or FAL.ai key is configured.
Many Chat features described below exist only in the desktop app. Sections that apply to one surface say so.
Web Chat includes a header Export menu, project context binding, Smart Context controls, a selectable skill/toolbox context picker, a credential-gated Tools menu, streamed tool event cards, team coordination cards, and a dynamic slash picker. The slash picker combines built-in commands, saved prompts, installed skills, and active project helpers when a conversation is tied to a project.
Chat can also learn durable user preferences across sessions. Preferences you repeat or correct, such as response style or workflow rules, are stored in Settings and applied to future text and reasoning conversations.
Table of Contents
- Getting Started
- Models and Providers
- How do I use Claude Code or Codex for Chat?
- Quality Tiers
- Intelligent Auto-Routing
- Conversation Modes
- Sending Messages
- Multimodal Input
- @ Mentions and Context
- Project Context
- Smart Context
- Selected Skill and Toolbox Context
- Context Pinning
- Notepads
- Project Rules
- Learned Preferences
- Knowledge Vault RAG
- Agentic Tools (Function Calling)
- Autonomous Mode
- Diff Review Mode
- Apply Model
- The Oracle Tool
- Image and Video Tools
- Conversation Management
- Message Features
- Team Coordination Cards
- Branching and Handoff
- Search
- Export
- Templates
- Slash Picker
- Conversation Persona Overlays
- Chat Command Palette
- Cost and Token Tracking
- Response Length Control
- Focus Mode
- Width Modes
- Voice Output (Read Aloud)
- Scratchpad
- Keyboard Shortcuts
- Session Recovery
- Tips and Best Practices
Getting Started
When you open the Chat page, you see a three-panel layout:
- Left sidebar - conversation list with search, project filtering, and management tools
- Center - the active conversation with messages, input area, and header controls
- Right panel (optional) - model selector, advanced parameters
On the web dashboard, when the Chat page itself is narrower than 1024 pixels (an iPad, a small browser window, or the agent chat dock open beside it), Chat shows one panel at a time: the conversation fills the page, and the Conversations and Models buttons above it open each list over it. Tap outside the list to close it. If the on-screen keyboard leaves too little room, the conversation column scrolls so the message box can come above the keyboard. While you type with the keyboard up and the conversation would be left too little room (an iPad in landscape, or held upright with the agent chat dock open), the model, mode and project rows fold into one line that names them, and the page header above Chat hides, so the conversation keeps its room. The navigation and the agent chat dock stay where they are. To change one of them, close the keyboard: the rows come back on their own. With a hardware keyboard nothing folds.
Click New Conversation (or press Ctrl+N) to start. Type your message and press Enter. CPLai streams the response and generates a title. A conversation created this way uses your default model (see Ollama (Local Models) for the precedence). On desktop, if no conversation is open and you type into the empty Chat screen's input instead, CPLai picks a model from the message (see Intelligent Auto-Routing).
Tip: You can change the model at any time: on desktop from the Models panel on the right (
Ctrl+M), on web from the model picker in the conversation header.
Models and Providers
CPLai gives you access to models across six providers, plus an OpenRouter gateway for 200+ additional models. Each model is categorized by what it does best.
Tip: In both apps the model picker shows only chat-capable models: chat, reasoning, and search. Image and video generation runs through the desktop Generate Media panel and, on web, through the Tools menu, when Kie AI or FAL.ai credentials are configured.
Chat Models
| Model | Provider | Notes |
|---|---|---|
| Claude Opus 5.5 | Anthropic | Newest Opus and the most-capable built-in default; $4 input / $20 output per 1M tokens |
| Claude Fable 5.1 | Anthropic | Newest Fable, the frontier model above Opus, opt-in only; $10 input / $50 output per 1M tokens |
| Claude Fable 5 | Anthropic | Prior Fable, opt-in only; $10 input / $50 output per 1M tokens |
| Claude Sonnet 5.5 | Anthropic | Newest Sonnet, Opus-class agentic; $2 input / $10 output per 1M tokens |
| Claude Opus 5 | Anthropic | Prior flagship Opus |
| Claude Sonnet 5 | Anthropic | Prior Sonnet |
| Claude Opus 4.8 | Anthropic | Older flagship Opus |
| Claude Opus 4.7 | Anthropic | Older flagship Opus |
| Claude Opus 4.6 | Anthropic | Older flagship Opus |
| Claude Sonnet 4.6 | Anthropic | Older Sonnet |
| Claude Haiku 4.5 | Anthropic | Fastest and cheapest |
| GPT-6.1 Sol | OpenAI | Newest Sol; $2 input / $10 output per 1M tokens |
| GPT-6 Astra | OpenAI | Frontier, 5x the Sol price; opt-in only |
| GPT-6 Sol | OpenAI | Prior GPT-6 Sol |
| GPT-6 Luna | OpenAI | Fastest, lowest-cost GPT-6 |
| GPT-5.6 Sol | OpenAI | Limited-preview flagship |
| GPT-5.6 Terra | OpenAI | Limited-preview lower-cost model |
| GPT-5.6 Luna | OpenAI | Limited-preview fastest model |
| GPT-5.5 | OpenAI | Latest general flagship for complex work |
| GPT-5.5 Pro | OpenAI | Maximum quality and compute |
| GPT-5.4 / 5.4 Pro | OpenAI | Affordable frontier model and higher-quality variant |
| GPT-5.4 Mini / Nano | OpenAI | Cost-efficient and high-volume options |
| GPT-5.2 | OpenAI | Previous general-purpose model |
| GPT-4.1 family | OpenAI | Legacy non-reasoning models |
| GPT-4o / 4o Mini | OpenAI | Legacy multimodal models |
| Gemini 2.5 Pro | Strong reasoning | |
| Gemini 2.5 Flash | Fast and capable |
Claude Fable 5.1 and Fable 5 are available in Chat, agent model pickers, Parallel Racing, and through the metered OpenRouter route. CPLai does not select either as a built-in default or Smart Auto winner because their API-equivalent rate is two and a half times the Opus 5.5 rate. Choose it manually when the task justifies the extra cost. You can still make it your own Account default explicitly.
Reasoning Models
| Model | Provider | Notes |
|---|---|---|
| o4 Mini | OpenAI | Fast reasoning and coding |
| o3 | OpenAI | Advanced reasoning |
| o1 | OpenAI | Deep reasoning |
Search Models
| Model | Provider | Notes |
|---|---|---|
| Perplexity Fast | Perplexity | Fast web search (Agent API preset "fast") |
| Perplexity Medium | Perplexity | Search with grounding (preset "medium") |
| Perplexity High | Perplexity | Reasoning combined with search (preset "high") |
| Perplexity Deep Research | Perplexity | Multi-step research with citations (preset "xhigh") |
These run on Perplexity's Agent API. Older conversations and settings still refer to them by their former ids (sonar, sonar-pro, sonar-reasoning-pro, sonar-deep-research).
Image Generation Models
Image models are not in the Chat model picker. On desktop, click Generate Media, choose the provider (FAL.ai or Kie.ai, only those with a key are enabled), an image Intent, and a Model:
| Intent | FAL.ai | Kie.ai |
|---|---|---|
| image - default | FAL Flux Pro 1.1 Ultra | Kie Flux Kontext Pro |
| image - photoreal | FAL Flux Pro 1.1 Ultra (photoreal) | Kie Flux Kontext Max |
| image - text in image | FAL Recraft v3 | Kie Nano Banana 2 |
| image - illustration | FAL Ideogram v3 | Kie Nano Banana |
On web, select Generate Image in the Tools menu and ask for the image in your message.
Video Generation Models
Video models are not in the Chat model picker. On desktop, use Generate Media with a video intent; the panel also offers a Duration field:
| Intent | FAL.ai | Kie.ai |
|---|---|---|
| video - default | FAL Kling 3.0 Pro | Kie Kling v2.5 Turbo |
| video - high motion | FAL Seedance 2.0 | Kie Seedance 1.5 Pro |
| video - cheap draft | FAL Wan 2.2 a14b | Kie Kling 3.0 |
| video - cinematic | FAL Veo 3 | Kie Veo 3 Quality |
On web, select Generate Video in the Tools menu.
Ollama (Local Models)
If you have Ollama running locally, CPLai discovers your installed models at startup and adds them to the model list. Local models show up with an ollama: prefix and cost nothing to use.
For desktop new conversations, model precedence is: an explicit model choice, then Settings -> Appearance -> Default Model, then Settings -> Local models -> Ollama -> Default Model, then Claude Sonnet 5.5 as the safe fallback. A global default with an ollama: prefix stays selected even when discovery has not finished or Ollama is offline. In that case the request reports the Ollama connection problem at send time instead of silently switching providers.
For local model downloads, desktop Chat's Context picker, memory-fit warnings, and vLLM setup, see Local Models.
Ollama Cloud
Ollama Cloud models run on hosted infrastructure instead of your local machine. They appear in the model picker with an ollama-cloud: prefix (for example ollama-cloud:gpt-oss:120b) when you have an Ollama API key configured in Settings -> Providers & keys. Desktop Chat calls Ollama Cloud (https://ollama.com/v1) directly; web Chat sends the request through the CPLai server.
OpenRouter Models
When an OpenRouter API key is configured, additional models from 200+ providers become available in the chat model picker. OpenRouter models are billed per-token through your OpenRouter account. Tool calling is supported for compatible OpenRouter and Ollama Cloud models.
How do I switch models?
On desktop, open the Models panel on the right with Ctrl+M, or open the composer toolbox (the red toolbox icon just above the message box) and click the current model name or Models. When the message box is not focused, Alt+1 to Alt+5 switch straight to Claude Sonnet 5.5, Claude Opus 5.5, GPT-4.1, Perplexity Medium, and o4 Mini.
On web, click the model name in the conversation header to open the model picker.
Image and video models are not in either picker; see Image Generation Models.
How do I use Claude Code or Codex for Chat?
Open Settings -> Chat -> Chat transport and enable Anthropic chats via Claude Code or OpenAI chats via Codex. Both are off by default. Sign in to the corresponding CLI on the computer running CPLai before using it. The next message for a supported model uses that CLI, and the chat header shows Claude Code or Codex.
An OpenAI model that Codex does not support stays on the API; the reply includes a notice. Other providers keep their normal route. To return to the API, turn off the corresponding switch.
The CLI supplies its native file, shell, Git, and web tools. Available CPLai tools connect through an MCP bridge. With Claude Code selected, Extended thinking, Thinking budget, and Prompt caching are managed by the CLI, so their Chat controls are disabled with an explanation. Codex replies can arrive as complete messages instead of appearing word by word.
How do I set how hard an OpenAI model thinks?
Open the advanced parameters and choose Reasoning Effort. The list shows only the levels the chosen model accepts on its route. For example, GPT-6.1 Sol through Codex on a ChatGPT plan offers Low to Ultra, the same model with an OpenAI API key offers Low to Max, and GPT-5.5 stops at Extra high. Model default lets the model decide.
After you switch models, a saved level the new model cannot use is sent as its closest supported level, so the chat keeps working. Claude Code manages its own effort. The web app works the same way, and its Temperature and Max tokens settings apply to every provider that supports them.
How do I use my project's files and instructions?
Select the conversation's project before sending. On desktop, a CLI chat uses that project's repository directory when it exists, so the CLI can find project files and instructions such as CLAUDE.md. Without a usable project directory, it uses your home folder. Changing the conversation's project takes effect on the next turn.
For web Chat, the CLI runs on the CPLai server and uses the project's workspace there. Files must be available on that computer.
How do I continue a CLI conversation after restarting?
Reopen the saved conversation and send your next message. CPLai stores the Codex thread reference with the conversation and uses it to resume after a desktop or service restart. If no saved thread reference is available, a new thread receives the earlier conversation text as context. Claude Code keeps a session between turns and receives saved conversation history when a fresh session is needed.
Tip: These switches apply to the Chat page. The Agent SDK transport setting under Settings -> Agents -> Claude Code separately controls Claude agent chats and runs. See Settings.
Quality Tiers
Quality tiers express a speed/cost/intelligence preference without choosing a specific model. Choosing a tier does not switch the conversation's model by itself; it steers the model suggestions:
- Web: the tier is one of the signals the routing recommendation card and Smart (auto) score (Rush favors speed, Deep favors reasoning). See Model Routing Recommendations (Web).
- Desktop: the tier also feeds the routing card, and it picks the model that the model suggestion banner proposes and the model CPLai reroutes to when a conversation's saved model is no longer available:
| Tier | Search questions | Everything else |
|---|---|---|
| Rush | Perplexity Fast | Claude Haiku 4.5 |
| Balanced | Perplexity Medium | Claude Sonnet 5.5 |
| Deep | Perplexity Deep Research | Claude Opus 5.5 |
Balanced is the default. Switch to Rush for quick questions where speed matters more than depth. Switch to Deep when you need maximum intelligence for complex reasoning, architecture decisions, or thorough analysis.
How do I change the quality tier?
On web, click Rush, Balanced, or Deep in the conversation header. On desktop, open the composer toolbox (the red toolbox icon just above the message box) and click a tier; click the active tier again to clear it. The tier is saved per conversation, so different conversations can use different tiers.
Tip: On desktop, with Rush selected, a search question asked in a chat conversation gets a suggestion banner for Perplexity Fast rather than Perplexity Medium.
Intelligent Auto-Routing
On desktop, CPLai picks a model from your message content in two cases: when you type your first message into the empty Chat screen's input (no conversation open), and when a conversation's saved model is no longer in the model list. A conversation that already has a valid model keeps it; instead, CPLai may show a model suggestion banner (see the tip at the end of this section). The rules:
- URLs or web searches ("search for...", "look up...", "latest news") - routes to Perplexity Medium
- Writing and editing ("write", "rewrite", "summarize", "polish") - routes to Claude Sonnet 5.5
- Deep research requests ("deep dive", "research into", "in-depth analysis") - routes to Perplexity Deep Research
- Code tasks ("function", "debug", "refactor") - routes to Claude Sonnet 5.5
- Complex reasoning ("analyze", "compare", "strategy", "trade-offs") - routes to Claude Opus 5.5
- Short questions (under 60 characters) - routes to Claude Haiku 4.5
- Everything else - defaults to Claude Sonnet 5.5
When a conversation with a quality tier is rerouted, the tier decides instead: search questions go to the tier's Perplexity model and everything else to the tier's Claude model (see Quality Tiers).
On web, model choice works through the routing recommendation card and Smart (auto), described below.
Model Routing Recommendations (Web)
Web Chat includes a model routing recommendation card that appears below the chat header. The routing engine scores every available text model against seven signals detected from your prompt, conversation mode, quality tier, and context:
| Signal | Triggered by |
|---|---|
| Coding | Keywords like "bug", "refactor", "test", "migration", or Debug/Composer/Pair/Agent modes |
| Reasoning | Keywords like "analyze", "design", "strategy", or Plan/Pair modes and Deep tier |
| Research | Keywords like "research", "latest", "verify", "sources" |
| Speed | Keywords like "quick", "brief", "summarize", or Rush tier |
| Economy | Keywords like "cheap", "low cost", "save tokens" |
| Context | Large prompts, many attached files, Smart Context enabled, long conversations |
| Writing | Keywords like "draft", "email", "rewrite", "polish" |
Each model has a profile scoring how well it handles each signal. The engine ranks all text models (chat, reasoning, and search categories) and shows the top recommendation with a confidence percentage and the top three reasons driving the choice.
The recommendation also appears while you create a New Conversation. In the model menu, the top option carries a Recommended pill so you can find it without leaving the picker.
Suggestions only: CPLai never changes a conversation's model by itself, however confident the recommendation is. Click Use on the card to switch, or pick another model. The card shows "Selected" with a checkmark when the recommended model is already active. The one exception is Smart (auto) (below), which you turn on yourself.
What a suggestion never names: a model served through Codex on a ChatGPT sign-in (which models that sign-in accepts can't be known ahead), and a model your sign-in already refused. You can still pick either one yourself from the model picker.
Moving to another engine: when taking a suggestion would move a conversation that already has messages to another engine (for example from Claude Code to Gemini), the card says so: the new engine starts a new session, and the earlier messages are sent along as text.
Race-History Smart Router
In addition to keyword-based routing, CPLai uses your parallel racing history to recommend models. When you have scored enough races (at least 5 for a given task type), the router learns which models consistently win for bugfixes, features, research, refactoring, and other task categories. These data-driven recommendations layer on top of keyword routing and improve over time as you run more races and rate more results. See Smart Model Router for details on task types and scoring.
Sticky Smart (Auto) Mode
On the web dashboard, the model picker includes a Smart (auto) option at the top of the list. Unlike the one-shot "Use" button on the recommendation card, Smart (auto) is a persistent mode: it stays active for the conversation until you manually pick a concrete model. Each time you send a message, the router resolves the best model at send time based on your prompt content and race history. A short explanation line below the picker shows which model was selected and why.
Smart (auto) never picks a model served through Codex, or one your sign-in refused. Once a conversation has messages, it only moves between models of the same engine (for example from Sonnet to Opus on Claude Code), so the conversation keeps its session.
Smart (auto) is off by default. To use it for a new conversation, pick Smart (auto) in the New Conversation dialog's model menu; the dashboard then remembers that choice for later new conversations until you pick a concrete model there.
What if my sign-in doesn't offer a model?
Some models are listed for a sign-in that then refuses them (a ChatGPT sign-in in Codex can refuse a model its own list shows). When a reply fails that way, the chat goes back to the model it was on before and says so, for example: "GPT-6.1 Sol isn't offered on your ChatGPT sign-in in Codex. This chat is back on Claude Sonnet 5.5; send again." Other failures, such as a network error or a rate limit, change nothing.
The model picker then marks that model, for example "Not offered on your ChatGPT sign-in in Codex, tried Nov 18", on every device you use. It stays in the picker: what a sign-in offers can change, so picking it again tries it, and the mark comes back only if it is refused again.
How do I override auto-routing?
Select a specific model: on desktop from the Models panel (Ctrl+M), on web from the header model picker. Once you manually pick a model, that model stays active for the conversation. New conversations start on your default model on both apps. On desktop, CPLai changes a conversation's model by itself only when its saved model is no longer available, and then it stays on the same engine once the conversation has messages. On web, Smart (auto) keeps choosing at each send until you pick a concrete model.
Tip: On desktop, if a banner reading "This looks like it could benefit from ..." appears above the messages, CPLai detected that a model from a different category (for example a search model for a search question) might suit your last message better. Click Switch to change models, or the X to dismiss it.
Conversation Modes
Each conversation has a mode that shapes how the AI behaves. On web the mode selector is in the conversation header; on desktop it is in the composer toolbox. The mode persists per conversation.
Agent Mode (Default)
Full tool access with autonomous execution. The AI can read files, write code, search your vault, run commands, and more. This is the most powerful mode.
Ask Mode
Read-only. The AI answers questions but cannot use tools or modify files. Use this when you just want information without any side effects.
Plan Mode
The AI generates a detailed plan before executing anything. Good for complex features where you want to review the approach before the AI starts writing code.
Debug Mode
Structured debugging methodology. The AI follows a systematic approach: hypothesis generation, log analysis, isolation of variables. The input placeholder changes to "Describe the bug or paste the error..." to guide you.
Composer Mode
Multi-file generation guidance. Use it for tasks that span several files, like scaffolding a feature or generating related components.
How do I use Composer mode in web Chat?
- Select Composer from the mode picker in the chat header.
- Bind the conversation to a project if the work belongs to a repository.
- Ask for the files you want, including paths when you know them.
- Review the generated code in the assistant response.
- Use the Composer file drafts panel to accept or reject each generated file.
Web Chat extracts generated file drafts from Composer responses and shows them in a review panel before any project write happens.
| Action | What it does |
|---|---|
| Accept | Writes that draft to the selected project through the project file API |
| Reject | Marks the draft as rejected without writing a file |
| Select a project | Required before Accept is enabled |
If the conversation is not bound to a project, the panel stays review-only and asks you to select a project before accepting drafts.
How do I change the conversation mode?
On web, click the mode selector in the header bar (it shows the current mode name like "Agent" or "Ask"). A dropdown appears with all five modes and their descriptions.
On desktop, open the composer toolbox (the red toolbox icon just above the message box). The five modes appear as buttons at the top of the panel; click one to switch.
Tip: Mode and quality tier are independent. You can use Debug mode at the Rush tier for quick diagnostic questions, or Plan mode at the Deep tier for thorough architectural planning.
Sending Messages
Type your message in the input area at the bottom and press Enter to send. Press Shift+Enter for a new line without sending.
The input area supports:
- Multi-line text with Shift+Enter
- Drag-and-drop files (images, code, text)
- Clipboard paste (images, code with auto-detection)
- @mentions for context injection (desktop only)
- / slash commands for quick actions
- Draft persistence (your unsent text is saved per conversation)
- Input history (press Up or Down while the input is empty to recall previous messages;
Ctrl+Up/Downjumps between your messages in the conversation instead)
Quick Replies
Desktop only. While the input is empty, context-aware quick reply buttons appear just above it and change based on your conversation mode. Clicking one puts its text in the input for you to send:
- Agent: "Yes, proceed", "Show me an example", "What files did you change?", "Undo that"
- Ask: "Tell me more", "Give me a code example", "What are the alternatives?"
- Plan: "Looks good, execute it", "Revise step 3", "Add more detail", "Start over"
- Debug: "Show me the stack trace", "What did you try?", "Is it reproducible?", "Check the logs"
- Composer: "Generate all files", "Add tests too", "Include types", "Use a different approach"
How do I reply to a specific message?
Right-click (or use the message context menu on) any message and select "Reply." Your input area will show a reply indicator, and the context of the original message is prepended when you send.
How do I edit a sent message?
Click the edit button on any of your (user) messages. This opens the message for editing. When you resend, CPLai automatically reverts any file changes the AI made after that message (using checkpoints) and replays with your updated text.
How do I stop a response?
Click the Stop button that appears while the AI is streaming. The response stops immediately.
How do I retry with a different model?
After a response completes, use the retry button on the assistant message. You can retry with the same model or pick a different one.
Multimodal Input
Images
There are three ways to attach images:
- Drag and drop - Drag image files directly onto the chat input or the empty conversation area. A visual overlay with an accent highlight appears while dragging.
- File picker - Click the paperclip/attachment icon to open a file picker dialog.
- Clipboard paste - Copy an image and press Ctrl+V in the input area. Screenshots from your clipboard work too.
Images are sent as base64 data to the AI. Different providers handle images differently:
- Anthropic models receive images in their native multimodal format
- OpenAI models receive data URL format
- Perplexity models are text-only, so images are stripped (a note is appended)
Voice Input
Click the microphone icon to start voice input. CPLai uses OpenAI Whisper for transcription with Web Speech API as a fallback. Your speech is transcribed to text in the input area, where you can review and edit it before sending.
File Attachments
Drag or pick text and code files to attach them. CPLai reads the file content (up to 100KB), auto-detects the programming language, and wraps it in markdown code fences. Binary files are skipped with a warning.
How do I attach an image from my clipboard?
Just press Ctrl+V while the chat input is focused. If your clipboard contains an image (like a screenshot), it is automatically attached as a thumbnail preview above the input area. Click the X on any attachment to remove it before sending.
@ Mentions and Context
Desktop only. Web Chat has no @ mention picker.
Type @ in the chat input to open the mention picker. This lets you inject context from various sources directly into your message.
| Mention | What It Does |
|---|---|
@file or @folder |
Attach files or folder contents from the top level of your vault folder (Settings -> Vault & search -> Vault folder). File contents are read at send time. |
@terminal |
Injects information about your active terminal tab. |
@web |
Instructs the AI to use the web_search tool to find current information. |
@codebase |
Instructs the AI to use search_codebase to find relevant code in your project. |
@docs |
Finds project documentation and injects it as context. |
@git |
Injects a live git status and diff summary for your current project. |
How do I mention a specific file?
Type @ and start typing the filename. The mention picker lists the special mentions above plus the files and folders at the top level of your vault folder (not your project's repository, and not subfolders), filtered by what you type. If no vault folder is set, the picker does not open. Click a file to select it. The file content is read fresh when you send the message, so you always get the latest version.
Tip: You can mention multiple files in one message. Each
@filemention adds that file's contents to the context sent to the AI.
Project Context
New conversations inherit the company and project selected in the app-wide Workspace and Repo context bar. This gives a new chat the correct project scope without making you select it twice.
Web Chat can also bind or move a conversation to a project explicitly. A project-bound conversation keeps the project id with the conversation, includes that project id when you send messages, and unlocks project-aware slash helpers and Smart Context retrieval.
How do I know which conversations I can access?
Each project-bound conversation belongs to the company that owns its project. On the web dashboard, people only receive conversation history for companies where they are members. Access then follows the person's company role:
| Role | Chat access |
|---|---|
| Viewer | Open and read conversations in their companies |
| Owner, administrator, operator, or member | Create conversations, send messages, and manage conversations in their companies |
| Desktop server owner | Access the installation-wide conversation list, including legacy conversations that do not have a company stamp |
If your web account belongs to one company, a conversation without a project is assigned to that company automatically. If it belongs to several companies, select a Repo before creating the conversation so CPLai can determine the correct company.
Tip: Moving a conversation to a project also moves its company scope to the company that owns that project. CPLai checks your membership before making the change.
How do I filter Chat by project?
On web, use the project dropdown in the Chat sidebar. On desktop, open the sidebar's ... menu and use its Filter group. Choose All projects (All Projects on desktop) to show every conversation, or choose a project to show only conversations attached to that project.
If you start a new conversation while a project filter is active, the new conversation starts in that project by default.
How do I change a conversation's project?
On web, use the Project context bar above the message list. Choose a project to attach the conversation, or click Clear to remove the project binding.
On desktop, right-click the conversation in the sidebar and choose Move to Project, then pick a project, or Remove from project to clear the binding.
Changing the project does not delete messages or drafts. It changes which project context future sends use.
How does project context affect messages?
Project context is used by:
- Smart Context, which searches the bound project's files when enabled
- The slash picker, which adds
/project-contextand/project-plan - Conversation exports, which include project fields in JSON
- Project Workspace links, which can open Chat with the project already selected
Tip: Use project context for broad project-aware work. Use
@file, selected Context, or Smart Context source chips when you need precise files.
Smart Context
Smart Context automatically retrieves relevant project context before sending a message. In the web app, the chat header includes a Smart toggle for each conversation.
When Smart Context is enabled, CPLai:
- Looks at your next message and recent conversation history
- Requests relevant context from the server, using the conversation's project when one is selected
- Adds up to 5 sources and about 12 KB of context to the system prompt
- Shows source chips on the user message after send
Empty results and retrieval errors do not block the message. The message still sends, and the chip shows either "no sources" or "unavailable" so you know what happened.
Automatic Smart Context retrieval uses the same embeddings provider as indexing: local Ollama, OpenAI, or OpenRouter, whichever is configured. No cloud key is needed when local embeddings are selected. See knowledge retrieval settings.
How do I turn Smart Context on or off in web Chat?
Click Smart in the conversation header. The setting is saved per conversation. If you never change it, the conversation follows your Settings default.
How do I review Smart Context sources?
After sending a message, look for the Smart Context chip on your user message. Expand it to see the attached sources, titles, paths, scores, and excerpts.
Tip: Smart Context is best for project-aware questions. For a precise file, use an
@filemention or selected context instead.
Selected Skill and Toolbox Context
The web Chat header includes a Context picker for manually attaching skills and toolbox-style capabilities to the next conversation turns.
Use it when you want the model to follow a specific skill or capability instead of waiting for automatic skill selection.
How do I select skill or toolbox context?
- Click Context in the conversation header.
- Search for a skill or toolbox-style capability.
- Select one or more entries.
- Send your message.
Selected context is stored per conversation and survives a refresh. Click the X on the Context button to clear the current selection.
Selected skills are added to the conversation system prompt before send. If the web app cannot update the system prompt, CPLai falls back to adding the selected context to the outbound message so your request still has the context it needs.
Tip: Use the header Context picker for durable conversation guidance. Use
/skill-{name}when you only want to insert a skill into the current draft.
Context Pinning
Desktop only.
Pinned files are re-read fresh on every message you send, keeping the AI continuously aware of specific files without you needing to re-attach them.
How do I pin a file?
- Open the overflow menu (three dots) in the conversation header
- Click "Pin Context"
- Enter the file path
Pinned files appear as pills below the header bar. Click the X on any pill to unpin a file.
Pinned file contents are truncated at 20KB to keep context manageable.
Tip: Pin your main source file and test file when working on a feature. The AI always has the latest version of both files in context, even across many messages.
Notepads
Desktop Chat includes Notepads, which are persistent scratch pads stored as markdown files in the .cloudpeaklabs/notepads/ folder inside your vault folder (Settings -> Vault & search -> Vault folder), not inside a project's repository. They provide reusable context that you can selectively include in a conversation.
How do I use notepads in desktop Chat?
- Open the Notepad picker at the bottom of the conversation sidebar (it appears only when a vault folder is set)
- Create or select existing notepads
- Selected notepads are injected into the system prompt automatically
Use notepads for things like coding standards, API documentation snippets, project-specific instructions, or any context you want to reuse across conversations.
How do I use Conversation Notes in web Chat?
- Open a conversation in web Chat.
- Click Conversation Notes in the composer toolbar.
- Write or edit the conversation notes, then click Save.
- Turn on Include in context when the saved notepad should be injected into future messages for that conversation.
Web Conversation Notes are conversation-scoped and vault-backed under CloudPeakLabs Notes/Chat/. Notes load when the panel opens, save only from the visible Save action, and are included in AI context only when the include toggle is enabled.
Project Rules
Project rules live in .cloudpeaklabs/rules/ and come in three types:
- Always - automatically included in every message
- Glob - included when mentioned files match a glob pattern
- Manual - only included when you explicitly activate them
Rules shape the AI's behavior for your project. For example, you might have a rule that says "always use TypeScript strict mode" or "follow the repository's existing naming conventions."
Learned Preferences
Learned Preferences are CPLai's cross-session memory for your durable chat preferences. After a chat response finishes, CPLai checks the latest turn for rules, corrections, or preferences that should affect future conversations. Active preferences are saved per user and injected into future text and reasoning chats with a small prompt cap.
Examples of good learned preferences:
- "I prefer concise answers unless I ask for detail."
- "Always include exact file paths when explaining code changes."
- "Do not use em dashes in docs."
CPLai ignores temporary task instructions, secrets, and one-off requests. Image and video generation prompts use their normal media flow instead of the learned-preference block.
How do I teach CPLai a preference?
- State the preference clearly in Chat.
- Let the assistant response finish.
- Open Settings -> Learned preferences to review the saved entry.
How do I stop using a learned preference?
- Open Settings -> Learned preferences.
- Click Edit to adjust the wording, or click the dismiss icon to stop using it.
- To restore it later, turn on Show dismissed above the list and click Keep preference on it.
How do I turn off learning or choose its model?
Each finished reply triggers one short model call that reads your message for preferences.
- Open Settings -> Learned preferences.
- In the Learning card, turn off Learn preferences from chats to stop the check. Saved preferences stay active.
- To control what runs the check, open Settings -> Utility models -> Learned preferences and pick a Preference model. Any provider works, including local vLLM and Ollama models. Choose Custom model id... to type one, such as
vllm:<model>.
Automatic uses the Utility Model first, then Claude Sonnet. Claude models count as available through Claude Code when Anthropic chats via Claude Code is on, even without an Anthropic API key. If the chosen model has no key or transport, a notice appears and Automatic is used until you fix it.
Tip: Use learned preferences for small durable rules. Use Project Rules for repository-specific behavior and Notepads for longer reusable context.
Knowledge Vault RAG
CPLai automatically searches your vault for relevant knowledge and injects it into chat context on every message. The retrieval engine uses the Knowledge Graph: it semantic-ranks vault notes, walks their [[wikilink]] connections to find related context (decisions, debriefs, hubs, person timelines), and merges agent memories into a structured digest.
This works on both Desktop Chat and Web Dashboard Chat. No manual action is needed - the system seeds the search from your message and returns the most relevant graph-connected context.
How do I enable it?
- Set your vault path in Settings
- Ensure Knowledge Injection is enabled in Settings (on by default)
- It works automatically from there
The knowledge_search tool
In Agent mode, the AI can also call knowledge_search on demand for deeper graph traversal. This is useful when the automatic injection covers the right area but you need the AI to pull in additional context mid-conversation.
You can prompt it directly: "Search the knowledge graph for our onboarding decisions" or ask a question that naturally requires company history.
The tool supports configurable hop depth (0-2 hops outward from the best-matching notes), so it can follow chains of linked decisions and debriefs that flat text search would miss.
Tip: The
knowledge_searchtool works even if automatic injection is disabled. The injection toggle controls the automatic pre-message block only, not on-demand tool calls.
For full details on the graph retrieval engine, injection settings, and post-run reflections, see Knowledge Graph.
Agentic Tools (Function Calling)
In Agent mode, the AI has access to over 20 built-in tools plus any dynamic toolboxes you have configured. The exact count depends on which providers are configured (media generation tools appear only when image/video API keys are set). Tools execute in a multi-turn loop of up to 50 rounds, meaning the AI can chain multiple tool calls to complete complex tasks.
In web Chat, the composer includes a Tools menu for selecting which tool classes the assistant can use in the current conversation. Tool activity renders inline as cards, so you can see pending, running, completed, failed, and approval-required tool events while the response streams.
How do I choose tools in web Chat?
- Open a conversation.
- Click Tools above the message input.
- Search or select the tools you want available.
- If you select a write tool, click Approve before sending.
- Send your message.
The Tools menu groups tools by capability. Files and Search are always shown when the tool contract is available. Agent tools appear for enabled project-compatible agents. Media Generation appears only when the account has a Kie AI or FAL.ai key configured, so the model never sees media tools it cannot use.
| Group | Tools |
|---|---|
| Files | Read Files, Search Files |
| Search | Search Vault, Web Search |
| Agents | Enabled CPLai agents available to the conversation |
| Media Generation | Generate Image, Generate Video |
| Write Tools | Run Commands, Edit Files |
Generate Image and Generate Video are write-risk tools in web Chat. Select them, approve the write tools for the next send, then ask for the image or video you want.
If the tool contract cannot load, Chat sends without tools and shows a warning in the Tools menu.
What happens when many tools are connected?
Every message carries the definitions of the tools the model can use. When those come to 8,000 tokens or less, every tool is sent. When they come to more, usually because a large MCP server is connected, the message carries CPLai's own tools plus a find_tools tool, and the MCP and toolbox tools wait behind it. The model searches them by what it wants to do, and the tools it finds can be used from its next step. find_tools names the servers that have tools waiting, so the model knows what it can look for. You see each search in the chat like any other tool call. CPLai's own tools are never held back.
On Claude models, the waiting tools go to Anthropic's own tool search first: Claude loads only the tools it needs, and the conversation's prompt cache is kept. If a model does not accept tool search, CPLai switches to find_tools by itself and remembers that for the model for an hour, so later chats do not fail first.
This applies to chats on Anthropic, OpenAI, Google, OpenRouter and Ollama Cloud, on desktop and web. Web Chat, on a computer or an iPad, does not offer MCP servers or toolboxes yet: it sends only CPLai's own tools, so nothing is held back there, and Anthropic's tool search is used in desktop Chat only until web Chat offers them. Claude Code and Codex in CLI mode manage their own tools. A local vLLM model works the same way, with a limit set by its context window instead (see Local Models).
How do I read tool event cards?
Tool event cards appear inside the message stream. Each card shows the tool name, risk level, status, and a short detail from the arguments, result, or error.
| Status | Meaning |
|---|---|
| Pending | The tool call has been queued |
| Running | The tool is currently executing |
| Completed | The tool finished successfully |
| Failed | The tool returned an error |
| Approval Required | A write-class tool needs explicit approval |
Read-Only Tools (Auto-Execute)
The two tables below describe desktop Chat's built-in tools. Web Chat uses the Tools menu and its approval step described above.
These tools run without asking for permission:
| Tool | What It Does |
|---|---|
read_file |
Read the contents of a file |
list_directory |
List files and folders in a directory |
search_vault |
Search your vault |
search_codebase |
Search code in your project |
code_relationships |
Look up callers, callees, definitions, and type references for a symbol in the project code graph |
search_my_past_runs |
Search your own prior agent run summaries by keyword (agent-scoped) |
web_search |
Search the web via Perplexity |
git_status |
Show git status of your project |
git_diff |
Show git diff output |
grep_search |
Search file contents with regex |
find_file |
Find files by name pattern |
delegate_task |
Delegate a sub-task to another AI |
oracle |
Get a second opinion from a different provider |
load_skill |
Load a skill from the skills library |
scrape_web |
Scrape a web page via Firecrawl |
crawl_site |
Crawl a website via Firecrawl |
memory |
Curate persistent agent memory entries (add, replace, or remove) |
generate_image |
Generate an image through the configured media provider (desktop runs it without asking; web Chat requires approval) |
generate_video |
Generate a video clip through the configured media provider (desktop runs it without asking; web Chat requires approval) |
Read-only MCP tools from connected MCP servers also auto-execute without an approval prompt, following the same pattern as the built-in read tools above.
Write Tools (Require Approval)
These tools ask for your confirmation before executing, unless autonomous mode is on:
| Tool | What It Does |
|---|---|
write_file |
Write content to a file (creates or overwrites) |
create_file |
Create a new file with content |
edit_file |
Edit a specific section of a file using find-and-replace |
patch |
Apply multiple find-and-replace edits atomically with fuzzy matching and syntax checking |
run_command |
Execute a shell command via PowerShell |
open_url |
Open a URL in your default browser |
generate_ui |
Generate a UI component via v0.dev |
propose_skill_edit |
Create a review-only skill edit proposal (never changes the live skill) |
Agent tools, MCP tools that are not read-only, and toolboxes that are not marked safe also ask before running.
How do I see what the AI changed?
After any file write or edit, a diff view appears inline showing exactly what changed (old content vs. new content in a unified diff format). The diff uses LCS-based comparison for accuracy.
How do I undo a file change?
CPLai creates checkpoints before every AI write operation. Edit and resend your message to trigger an automatic revert to the checkpoint state; checkpoints are restored in reverse order. The "Undo that" quick reply only puts that text in the input and asks the AI to undo; it does not restore checkpoints by itself.
Autonomous Mode
When autonomous mode is enabled, the approval-gated tools listed above (write_file, create_file, edit_file, patch, run_command, open_url, and the rest) execute without asking for your approval. The AI works independently, making changes as needed.
How do I enable autonomous mode?
Turn on Chat: skip tool confirmations in Settings -> Chat -> Chat tools. It is one setting for every Chat conversation, not a per-conversation switch, and it does not affect Agents or Races.
Tip: Use autonomous mode when you trust the AI's judgment and want it to work faster. Checkpoints are still created, so you can always undo.
Strict mode for the git and search tools
Chat's git_status, git_diff, find_file and grep_search run without asking for your approval, because they only read. Chat git and search tools: strict mode, in Settings -> Chat -> Chat tools, keeps it that way. It is on by default.
With strict mode on:
- Git skips repository-defined filters, diff programs, hooks, submodules, and downloads of missing objects in a partial clone. Strict status and diff require the
--no-lazy-fetchoption, introduced in Git 2.45. Chat checks the installed Git for that option before it runs either read. On an older Git without that option, the tool says so and does not run. - In a repository that sets up its own filters, such as git-crypt or Git LFS installed for that repository only, a file can show as changed when it is not, and a diff can show the file as git stores it. The tool adds a line saying which filters it did not run.
- The search tools take the folder exactly as written, refuse a search with no folder, and return at most 1,000 results.
With strict mode off, these four tools work as they did before. Either way, nothing a model writes is ever run as a command.
How do I turn strict mode off?
Turn off Chat git and search tools: strict mode in Settings -> Chat -> Chat tools. Do this only if a repository you trust needs its own filters to show correct results in Chat.
Diff Review Mode
When Diff Review Mode is enabled in Settings, file writes are staged rather than applied immediately. You see each proposed change as a diff and can accept or reject it individually.
How do I use Diff Review Mode?
- Enable it in Settings -> Chat -> Chat tools
- When the AI proposes a file change, it appears as a pending diff
- Click "Accept" to apply the change or "Reject" to discard it
- Use "Accept All" or "Reject All" for batch operations
Apply Model
Sometimes a chat model's file edit fails because the text it quotes isn't in the file exactly, or appears in more than one place. With an Apply model set, CPLai asks that model where the change belongs instead of just reporting the failure.
- When CPLai applies the answer: only when the answer quotes the file exactly once and still contains the new text the chat model wanted. Otherwise the original error stands, with the reason added.
- What the chat sees: the edit result says the Apply model placed the change, and on which line.
- Diff Review Mode and checkpoints work as for any other edit.
- What is sent: the Apply model receives the whole file and the intended change. Files over 200,000 characters, and files with an obvious secret such as an API key, are never sent.
- Where it works:
edit_fileandpatchin Chat, on desktop and web. It does not apply to chats sent through Claude Code or Codex (Settings -> Chat -> Chat transport): those edit files with the CLI's own tools. - Agents cannot change this setting.
How do I set an Apply model?
- Open Settings -> Utility models -> Chat edit fix-up.
- Pick a model under Apply model: a local model on your own hardware, an OpenRouter model, or any provider you have a key for. Choose Other model ID... to type one.
- Choose Off (default) to turn it off.
A small, fast model is enough: its only job is to find the right lines.
The Oracle Tool
The Oracle is a second-opinion tool for verification or an alternative perspective. Its direct model chain is configurable in desktop or web Settings -> Providers & keys -> API Keys. The default primary is Claude Opus 5.5 and the default fallback is GPT-5.4. Claude model IDs use your Anthropic key; other choices in the Oracle selectors use your OpenAI key.
The direct Oracle call is one-shot, non-streaming, capped at 2,000 output tokens, and billed by the selected provider. It does not use Claude Max, a ChatGPT/Codex subscription, Antigravity, Ollama, or OpenRouter. A model whose native provider key is missing is skipped, and an error moves to the fallback. Choosing the same model for both selectors disables the second attempt.
Server-side and web Chat have one additional boundary: when neither native key exists, Oracle can use the configured Utility Model and its OpenRouter fallback path. The desktop direct tool still needs an Anthropic or OpenAI key. See Settings - Oracle models for the shared desktop and web controls.
How do I choose the Oracle models?
- Open Settings -> Utility models -> Oracle (second opinion) in the desktop app or web dashboard.
- Choose the primary Oracle Model.
- Choose the Oracle Fallback Model tried after a missing key or provider error.
- Choose the same model twice when you do not want a fallback attempt.
How do I trigger the Oracle?
You do not trigger it directly. The AI decides when to use it based on the conversation context. You can suggest it by saying something like "Can you verify this with another model?" or "Get a second opinion on this approach."
Image and Video Tools
Chat can expose generate_image and generate_video when an eligible Kie AI or fal.ai credential is configured. Desktop also provides a media panel (the Generate Media button) for choosing provider, intent, model, prompt, aspect ratio, and, for video, duration; it has no reference-image input yet. Web exposes the credential-gated tools through the Tools menu. Completed media is persisted through the CPLai media pipeline and rendered inline in the conversation.
How do I ask the AI to generate an image?
Simply describe what you want in your message: "Generate an image of a mountain landscape at sunset" or "Create a logo for a tech startup." In desktop Agent mode, the AI uses the generate_image tool automatically, without an approval prompt. You can also click Generate Media to fill in the request yourself. In web Chat, select Generate Image in the Tools menu and approve the write tool before sending.
How do I save remote images from chat?
When the AI returns a remote image URL (for example from an MCP tool call), the image renders inline with a hover overlay. Click Save to vault to download and persist it to your configured Images folder. See Image and Video - Media persistence for details.
Conversation Management
Sidebar
The left sidebar shows all your conversations, sorted by recency. Each conversation shows its title, model icon, and any tags.
In the web dashboard each conversation row also has an actions button (...) at its end. It opens the same menu as a right-click: Rename, Move to project, Tags, Pin to top, Favorite, Archive, Export as Markdown or Export as JSON, and Delete. On a touch screen, where there is no right-click, tap it.
How do I search conversations?
Use the search bar at the top of the sidebar. It searches both titles and message content (full-text search).
On desktop, toggle the Brain icon next to the search bar to switch to semantic search, which finds conversations by meaning rather than exact keyword matches. The Brain icon appears only when an OpenAI or OpenRouter API key is configured. Web Chat has no semantic search.
How do I organize conversations with tags?
Right-click a conversation in the sidebar (or use its context menu) and select "Tag." Choose from seven color-coded tags:
- Red, Orange, Yellow, Green, Blue, Purple, Pink
A conversation can have multiple tags. Tags appear as colored dots on the conversation entry.
How do I favorite a conversation?
Right-click the conversation and select "Favorite" (or use the star icon). Favorited conversations can be filtered to the top.
How do I archive a conversation?
Right-click and select "Archive" (or press Alt+A). Archived conversations are hidden from the main list but not deleted. You can view archived conversations by toggling the archive filter.
How do I pin a conversation to the top?
Right-click and select "Pin" (or press Alt+P). Pinned conversations always appear at the top of the sidebar regardless of recency.
How do I add a description to a conversation?
Open the overflow menu (three dots in header) and click "Conversation Notes." A text area appears where you can add notes or a description that helps you remember what the conversation is about.
How do I set a custom accent color?
Open the overflow menu and click "Accent Color." A color picker appears. The accent color tints the conversation's header and sidebar entry.
How do I merge two conversations?
Desktop only. Right-click a conversation and select Merge into.... Choose the target conversation. Messages from the source are appended to the target.
How do I delete a conversation?
Right-click and select "Delete." On web, a confirmation dialog appears first. On desktop, the conversation is deleted immediately with no confirmation. Deletion is permanent.
Message Features
Pinned Messages
Pin important messages to create a quick-reference bar at the top of the conversation.
How do I pin a message? Right-click the message and select "Pin." Pinned messages appear as clickable chips in the header area. Click a chip to scroll to that message.
Bookmarks
Bookmark messages you want to find later. Right-click a message and select "Bookmark."
Reactions
Vote messages up or down. This helps you track which AI responses were most useful. Use the thumbs up/down buttons on any assistant message.
Multi-Select
Desktop only. Enable multi-select from the overflow menu ("Multi-select" option), then click messages to select them. The bulk actions are Copy, Bookmark All, Fork from Last (start a new conversation from the last selected message), and Export MD (copies the selected messages to the clipboard as Markdown). Multi-select cannot delete messages.
Local file links on desktop. When an assistant links to an absolute local path, CPLai opens common document, image, audio, and video formats with the system's default app. Paths to executable or unknown file types are revealed in File Explorer instead of being run. Relative paths are blocked because Chat has no safe base folder for resolving them. The web dashboard cannot open files from the desktop machine.
Response Time Indicator
After each AI response, a small indicator shows the model name, response time, token count, and tokens-per-second. It auto-hides after 5 seconds to keep the interface clean.
Voice Output (Read Aloud)
Assistant and agent replies can be read aloud using Edge TTS. Read-aloud is controlled by a single speaker toggle in the chat composer bar (next to the attach and mic icons). Click it to turn read-aloud on (it lights up); click again to mute.
When the toggle is on, every new reply is automatically read aloud as soon as it finishes - in the main Chat and in any agent chat. It is one global switch: turning it on applies to every chat and every agent you talk to. There is no per-message speaker button.
Voice output works on both the desktop app and the web dashboard. The desktop app uses a Rust-side Edge TTS engine (synthesize_tts IPC), while the web version uses the browser's built-in Web Speech API.
Configuring voice and speed. Open Settings -> Appearance -> Voice Output (TTS) to pick the default voice and adjust playback speed (0.5x to 2.0x). Available voices include:
| Voice | Description |
|---|---|
| Aria (US, female) | Default voice |
| Jenny (US, female) | |
| Guy (US, male) | |
| Christopher (US, male) | |
| Sonia (UK, female) | |
| Ryan (UK, male) | |
| Natasha (AU, female), Clara (CA, female), Neerja (IN, female) |
Starting a new reply automatically stops any reply still being read. Toggling read-aloud off stops playback immediately.
Tip: Voice output strips markdown formatting and code blocks from the text before reading. If a message is mostly code, the spoken output may be short or empty.
Per-Agent Voices
Each agent can speak in its own voice. Open the agent's edit modal -> General -> Voice and choose a voice (or leave it on Use global default). When that agent replies and read-aloud is on, it uses its own voice; agents left on the default use the global Settings voice. The choice is saved with the agent (and editable from the web dashboard too).
Message Annotations
Add inline notes or comments to any message. On desktop, right-click the message and select Add note, or hover the message and click the note icon below it. Your note appears alongside the message.
Team Coordination Cards
When an assistant message contains agent coordination output, web Chat renders it as readable cards below the message instead of showing raw tag text.
Supported cards include:
| Card | What it means |
|---|---|
| Tell | A direct message to an agent |
| Handoff | A task handoff to another agent |
| Alert | A high-priority team alert |
| Team insight | Shared team knowledge saved for future runs |
Only assistant messages are parsed this way. If you type tag-shaped text yourself, web Chat leaves it in the message body as normal text.
Branching and Handoff
How do I branch a conversation?
Desktop only. Click the branch/fork icon on any message (or right-click it and choose Fork from here). CPLai creates a new conversation that copies all messages up to that point, preserving the model, mode, and parameters. You can explore a different direction without losing the original thread.
How do I hand off to a new conversation?
Desktop only. Right-click a conversation and select "Continue in New Chat." CPLai summarizes the current conversation with your Utility Model (Settings -> Utility models -> Utility Model; when none is set, GPT-4.1 Nano if an OpenAI key is configured, otherwise a fallback model from your Anthropic or OpenRouter key) and creates a new conversation with that summary as context. If no model is available, no new conversation is created. A link chip connects the two conversations so you can navigate back. The summary and the link are saved with the new conversation, so they survive restarts, and Export as JSON / Import JSON carry them along even before the new conversation has any messages.
Tip: Use handoff when a conversation gets long (30+ messages). The auto-summarization keeps context tight while the link preserves the full history.
Auto-Summarization
After 30 messages, CPLai automatically summarizes older messages to keep the context window manageable. The most recent 20 messages stay in full, and earlier messages are compressed into a bullet-point summary.
Search
Sidebar Search
The search bar at the top of the sidebar searches conversation titles and message content.
In-Conversation Search
Desktop only. Press Ctrl+F to open in-conversation text search. Type a term and use the navigation arrows to jump between matches within the current conversation.
Semantic Search
Desktop only, and only when an embeddings source is set up: local Ollama, OpenAI, or OpenRouter (Settings -> Vault & search -> Embeddings source). Toggle the Brain icon next to the sidebar search bar to switch to semantic search. Instead of matching keywords, semantic search uses vector embeddings to find conversations by meaning. This is useful when you remember the topic but not the exact words.
Export
How do I back up or restore all conversations?
Open the conversation sidebar's More actions (...) menu and use its Data group:
| Action | Result |
|---|---|
| Import JSON | Restores a JSON backup and skips conversations whose ids already exist |
| Export all / Export all (JSON) | Saves a dated, restorable JSON backup with message history |
| Export all (Markdown) | Web only: downloads a readable archive of every loaded conversation |
Desktop opens native file dialogs. Web downloads through the browser and restores through the conversation import endpoint. A backup exported from the all-conversations action can be imported from the same Chat menu.
Only the server owner can restore a backup, because a backup can contain conversations from more than one company. The desktop app always acts as the server owner. On the web dashboard, sign in with the server owner account: any other account, including a company administrator, sees Importing global chat history requires the server owner account. A script restoring through an API key needs the key's Import chat (chat:import) permission and an account that owns or administers at least one company. Every role can still export the conversations it is allowed to see.
On the web dashboard, restored conversations come back without a project or company, so only the server owner sees them at first. To share one with a company, attach it to one of that company's projects from the Project context bar.
How do I export a conversation in the web app?
Use the Export button in the conversation header. The menu supports the current conversation or your full visible conversation list.
| Action | Format | What It Includes |
|---|---|---|
| Current as Markdown | .md |
One readable conversation with metadata, system prompt, params, timestamps, role labels, message text, model labels, and media links |
| Current as JSON | .json |
Raw data for the selected conversation, including messages, params, tags, images, and project fields |
| All as Markdown | .md |
A single readable archive containing every loaded conversation |
| All as JSON | .json |
A backup-style export containing every loaded conversation and its messages |
Markdown exports are best for support handoffs, notes, and readable archives. JSON exports are best for debugging or preserving exact conversation data.
The web app downloads the file directly from the browser. Filenames are sanitized from the conversation title, and all-conversation exports use a dated cloudpeaklabs-conversations-YYYY-MM-DD filename.
How do I export a conversation in the desktop app?
Right-click a conversation in the sidebar to access export options:
- Export as Markdown - saves as a
.mdfile with formatted headers, model info, and messages - Export as JSON - saves the raw conversation data including model, mode, timestamps, and all messages
- Export as HTML - saves a styled HTML page you can open in any browser
- Copy as Markdown - copies the conversation to your clipboard in markdown format (available from the overflow menu)
- Save to Obsidian Vault - saves directly to your configured vault as a note
Desktop file exports open a native save dialog where you choose the location.
Templates
Desktop only. Templates are reusable prompt starters. CPLai includes several built-in templates:
| Template | Purpose |
|---|---|
| Explain Code | Walk through how code works step by step |
| Debug Error | Structured bug fixing |
| Write Tests | Generate comprehensive tests with edge cases |
| Refactor | Improve code quality and structure |
| Build Feature | Plan and implement a new feature |
| Code Review | Review for bugs, performance, and best practices |
| Brainstorm | Generate creative ideas |
| Research | Deep research on a topic |
How do I use a template?
The built-in templates appear on the empty Chat screen (when no conversation is open). Click one to create a new conversation and send that template's prompt right away.
How do I create a custom template?
Hover one of your own (user) messages and click the Save as prompt template icon, then name it. To write one from scratch, open the composer toolbox (the red toolbox icon just above the message box), click Templates, and choose New Template.... Your custom templates appear in that Templates list: click one to send it in the current conversation, or use its X to delete it. They are not added to the empty-screen list.
Slash Picker
Type / at the beginning of the input, or after a space, to open the slash picker. It inserts reusable prompt text into your draft without sending the message.
Use the arrow keys to move through results, press Enter or Tab to apply a result, and press Esc to close the picker.
Built-In Commands
The web app keeps eight built-in commands available even before prompts or skills load:
| Command | What It Does |
|---|---|
/summary |
Summarize the current conversation in 3-5 bullet points |
/explain |
Start a step-by-step code explanation prompt |
/debug |
Start a hypothesis-driven debugging prompt |
/plan |
Start a detailed implementation plan prompt |
/review |
Start a code review prompt focused on bugs, security, and improvements |
/pair |
Start a pair programming workflow (Plan, Code, Test, Compare, Approve) |
/persona Name: ... |
Set a conversation persona overlay (see Conversation Persona Overlays) |
/persona-clear |
Remove the active persona overlay |
Desktop Chat has its own built-in list: /explain, /debug, /test, /refactor, /review, /summarize, /plan, /persona, /persona-clear, /fix, /translate, /optimize, /document, and /compare, followed by your saved prompts and installed skills.
Saved Prompts
Saved prompts from the Prompts page appear as /prompt-{name} entries. Favorites appear first, then higher-use prompts, then the remaining prompts alphabetically.
Selecting a saved prompt inserts the prompt content into your draft.
Skills
Installed skills from the Skills page appear as /skill-{name} entries. Select one to load its skill content into the draft as chat context.
If the web app cannot load the full skill details, it inserts a lightweight skill marker instead so you can still continue.
For persistent selected skills across refreshes, use the Context picker in the web Chat header.
Project Helpers
When the conversation belongs to a project, the web slash picker adds project-aware helpers:
| Command | What It Does |
|---|---|
/project-context |
Frames the answer around the active project |
/project-plan |
Starts an implementation plan for the active project |
How do I filter slash commands?
Keep typing after /. The picker searches command names, labels, descriptions, prompt categories, skill descriptions, and project labels.
Tip: Slash commands never send automatically. They only rewrite the draft. Review the inserted text, add any missing context, then send when ready.
Conversation Persona Overlays
A persona overlay changes how the AI responds for the rest of a conversation without affecting other conversations or your global settings. Use it when you want a specific tone, role, or communication style for one thread.
How do I set a persona?
Type /persona Name: instructions in the message input. For example:
/persona Technical Writer: Respond in clear, concise prose. Use short sentences. Avoid jargon unless defining it first.
The name appears before the colon, up to 80 characters. Everything after the colon is the instruction block the AI follows for the remainder of the conversation.
How do I clear a persona?
Type /persona clear or /persona-clear. The conversation returns to normal behavior.
You can also use /persona reset, /persona off, or /persona none. They all clear the active overlay.
How do I check what persona is active?
Type /persona or /persona ? to see usage help. The persona name is visible in the conversation's system context when active.
How does a persona interact with other context?
The persona overlay is appended to the conversation's system prompt. It stacks with project context, selected skills, learned preferences, and any other context sources. If the persona instruction conflicts with a skill instruction, the most recent context typically takes priority.
Tip: Persona overlays are conversation-scoped. Starting a new conversation resets to default behavior. Use learned preferences in Settings for changes you want applied everywhere.
Chat Command Palette
Desktop only. The Chat command palette is an internal quick-action launcher, separate from the global Ctrl+K command palette.
How do I open the chat command palette?
Open the overflow menu (three dots in the header) and click "Command Palette." A search dialog appears where you can type to filter and select actions.
Available Commands
| Command | Shortcut | Action |
|---|---|---|
| New Conversation | Ctrl+N |
Create a new conversation |
| Focus Mode | Ctrl+Shift+F |
Toggle distraction-free mode |
| Search Messages | Ctrl+F |
Open in-conversation search |
| Toggle Timestamps | - | Show/hide message timestamps |
| Toggle Word Count | - | Show/hide word count on messages |
| Show Keyboard Shortcuts | ? |
Display the app-wide shortcut reference |
| Toggle Scratchpad | - | Show/hide the scratchpad |
| Toggle Advanced Params | - | Show/hide temperature, max tokens, etc. |
| Copy Last Response | Ctrl+Shift+C |
Copy the last assistant message |
| Archive Conversation | Alt+A |
Archive the current conversation |
| Pin Conversation | Alt+P |
Pin the current conversation |
| Retry Last Message | - | Retry the last exchange |
| Toggle Token Counter | - | Show/hide the token counter |
| Narrow Width | - | Set chat to 720px width |
| Normal Width | - | Set chat to 960px width |
| Wide Width | - | Set chat to 1280px width |
Cost and Token Tracking
Desktop only.
Token Counter
Toggle the token counter from the overflow menu ("Token Counter"). When enabled, it shows:
- Input tokens - how many tokens you are sending
- Output tokens - how many tokens the AI generated
- System tokens - tokens used by system prompts, rules, and context
- Total - combined count
Cost Estimate
Open the overflow menu and click "Cost Estimate." CPLai calculates the estimated cost based on:
- Token counts (input and output)
- Model-specific list prices built into CPLai. When no price is known for the conversation's model, the panel says so instead of showing an estimate
- Total per-conversation cost
This is an estimate. Actual billing depends on your provider accounts.
Response Length Control
Desktop only. Control how verbose the AI's responses are:
- Concise - short, direct answers
- Balanced - default response length
- Detailed - thorough, comprehensive responses
How do I change response length?
Open the overflow menu and click the "Response" option. Cycle through the three modes. The current setting is shown in the menu label.
Focus Mode
Desktop only. Focus mode hides the conversation header bar, the toolbox, and the conversation banners, leaving the messages and input area. The conversation sidebar and the Models panel stay as they are; hide them with Ctrl+B and Ctrl+M. It is a distraction-free writing and thinking environment.
How do I enter Focus Mode?
Press Ctrl+Shift+F, select it from the Chat command palette, or click Focus in the composer toolbox. Press the same shortcut (or Esc) to exit.
Width Modes
On a wide display the conversation keeps a reading width, so its lines stay easy to read. Control the maximum width of the conversation area:
| Mode | Width | Best For |
|---|---|---|
| Narrow | 720px | Reading-focused, like a document |
| Normal | 960px | Default, balanced |
| Wide | 1280px | Code-heavy conversations on large screens |
How do I change the width?
In the desktop app, open the overflow menu and click "Width" to cycle through the three options, or use the command palette to jump directly to a specific width. In the web app, click Width in the chat header to cycle them. The choice is not saved: Chat opens at Normal.
Scratchpad
Desktop only. The scratchpad is an inline notepad within the conversation. Use it for quick notes, scratch calculations, or drafting text before sending.
How do I open the scratchpad?
Open the overflow menu and click "Scratchpad." It appears as a collapsible panel. Your scratchpad content persists for the session.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Enter |
Send message |
Shift+Enter |
New line in input |
Ctrl+N |
New conversation |
Ctrl+F |
Search in current conversation |
Ctrl+B |
Toggle sidebar |
Ctrl+M |
Toggle model panel |
Ctrl+K |
Global command palette |
Ctrl+Tab |
Next conversation |
Ctrl+Shift+Tab |
Previous conversation |
Ctrl+Shift+F |
Toggle focus mode |
Ctrl+Shift+C |
Copy last AI response |
Ctrl+Z |
Undo input |
Ctrl+Shift+Z |
Redo input |
Ctrl+Up/Down |
Jump between user messages |
Ctrl+F, Ctrl+B, Ctrl+M, Ctrl+Tab, Ctrl+Shift+Tab, Ctrl+Shift+F, Ctrl+Shift+C, and Ctrl+Up/Down work in the desktop app only. In both apps, pressing Up or Down in an empty input recalls earlier messages.
How do I see all shortcuts?
Click the keyboard icon in the title bar to open the app-wide reference. In desktop Chat, the overflow menu's Keyboard Shortcuts action and the Chat command palette's Show Keyboard Shortcuts action open that same overlay.
Session Recovery
How do I reset a wedged chat session?
If an agent chat session stops responding or gets stuck mid-stream, use the Reset session button to force-close the underlying session and reattach fresh.
- Web ChatDock: Click the Power icon in the dock header bar (next to the refresh button).
- Web Agent Detail page: Click the Reset session button in the chat tab header.
Reset session tears down the current connection, clears any in-flight UI state (pending messages, streaming indicators), then reloads the conversation history from the saved transcript. There is no context loss - the fresh session resumes from where the previous one left off.
Tip: Reset session is a targeted recovery action. It only affects the single agent chat that is stuck. Other open chats and conversations continue normally.
Tips and Best Practices
Start with the suggestions. Let CPLai pick the model (desktop empty-screen input, web Smart (auto) or the routing card). Override only when you know a specific model is better for your task.
Use @mentions for precision (desktop). Instead of describing a file, use
@filenameso the AI reads the actual content. The AI works with real data, not your summary of it.
Pin key files for long sessions (desktop). If you are working on the same files across many messages, pin them. The AI gets fresh content every time without you re-attaching.
Branch before risky changes (desktop). If you are about to try something experimental, branch first. The original thread stays intact.
Use handoff for long conversations (desktop). After 30+ messages, context gets noisy. Hand off to a new conversation with a clean summary.
Match mode to intent. Use Ask mode for pure questions (no file changes). Use Plan mode before big features. Use Debug mode for systematic bug hunting.
Fast models for iteration. When you are going back and forth quickly (reviewing code, asking clarifying questions), pick a fast, cheap model such as Claude Haiku 4.5. The Rush tier steers suggestions that way but does not switch the model for you.
Strong models for architecture. When you need the AI's best thinking on system design, complex debugging, or thorough analysis, pick a model such as Claude Opus 5.5. The Deep tier steers suggestions that way.
Check the diff. Always review the diff view after file edits, even in autonomous mode. Checkpoints let you undo, but catching issues early is better.
Export important conversations. Save key conversations to your vault or as markdown. This builds a knowledge base you can reference later, and RAG will pick it up automatically.

