# Your account and organization Source: https://docs.quadrillion.ai/account-and-organization Manage your profile, plan, and organization members from Qualia Cloud Settings. Manage your Qualia account, plan, and organization in **Settings** in [Qualia Cloud](https://app.quadrillion.ai/settings). These settings apply everywhere you use Qualia, including the desktop app. Editor, agent, and model preferences live in the app's own Settings instead. See [Settings](/settings/overview). ## Open account settings On the **Workspaces** page, choose the **Settings** button (gear) at the top right, or open the account menu (your initials). The sidebar groups pages under **Account** and, if you belong to one, your organization's name. Owners and admins see more organization pages than members. ## Profile **Profile** shows how you appear to teammates. Your **Handle** is your link on Qualia, used in the links to what you share. Choose it carefully, because you can't change it later. If your email shows **Verify email**, see [Verify your email](/settings/general#verify-your-email). ## Security **Security** lists where your account is signed in, including each desktop app and `qualia` CLI session. To end a session you don't recognize, see [Manage sessions](/settings/api-keys#manage-sessions). ## API keys **API keys** lets your own code call models through your Qualia account. Usage from these keys counts toward your plan. These keys are separate from the provider keys you add in the app, described in [Sign-in and API keys](/settings/api-keys). * To make a key, choose **New key**, name it, and copy the secret. Qualia shows the secret only once. * To stop a key working, choose **Revoke**. Anything using it stops working at once. ## Check your usage **My usage** shows how much of your plan's usage you have used this period and when it resets. **Trends** charts your recent usage. To download it, choose **Export CSV**. As you near your limit, Qualia shows a banner in the app with your next step, such as upgrading or contacting your admin. In an organization, the organization sets your limit. ## Change your plan On a personal plan, **Plan & billing** shows your current plan and when it renews. Organization members don't see it, because the organization manages their plan. * **To upgrade**, choose a plan under **Plans**. * **To downgrade**, choose the lower plan. The change takes effect at renewal. * **To cancel**, choose **Downgrade** on the **Free** plan, then **Cancel plan**. * **To keep working past your included usage**, turn on **Allow overage** and set a weekly ceiling. * **For enterprise features** such as SSO and pooled billing, choose **Contact us**. Under **Payment and invoices**, update your payment method or download past invoices. ## Manage your organization Owners and admins manage the organization from its pages in Settings. * **To invite people**, open **Members**, choose **Invite people**, enter email addresses, and pick **Member** or **Admin**. * **To change a role or remove someone**, choose the action from the member's row. * **To set a member's usage limit**, select the member and set **Weekly limit**. * **To see spending**, open **Usage & limits**. * **To manage the plan, seats, or payment**, open **Billing**. For changes it doesn't offer, such as renaming the organization, contact support. * **To set up single sign-on**, open **Security & SSO** and choose **Set up SSO**. * **To keep work inside the organization**, turn off **Share with people outside the organization** on **Security & SSO**. Invitations and join links then work only for members, and public links are unavailable. See [Shared workspaces](/shared-workspaces). Everyone in an organization sees its name, its **Handle**, and their role on **General**. Leaving an organization removes your access to its shared workspaces and moves you to the Free plan. ## Accept an invitation 1. Open the invitation link. 2. Sign in with the email address that received the invitation. If you are signed in with a different account, choose **Switch account** first. 3. Choose **Accept invitation**. # Agents Source: https://docs.quadrillion.ai/agents Run several experiments at once by delegating each to its own agent. Run several experiments at once by delegating each to its own agent. This page covers how to start agents, run them in parallel, and manage them from the **Chats** list in the left sidebar. ## What is an agent? An agent is a chat that works on its own. Each agent has its own conversation history and can attach to a notebook to write and run code. You can assign it [tasks](/tasks), the tracked units of work agents plan. Every agent appears in the **Chats** section of the left sidebar. ## Start an agent To start an agent, type a message in an empty chat. You can also click **New agent** (+) in the **Chats** section header, or right-click blank space in the list. In a shared workspace, creating an agent requires edit access. Your agents also create other agents when work splits well, as described in [Parallel agents](#parallel-agents). ### Execution mode Each agent runs in one of two execution modes: * **Notebook** runs code in an attached notebook, so you see cells and kernel-backed results. A kernel is the process that runs the notebook's code. * **Script** creates and runs standalone files and shell commands. It suits training runs, scraping, batch jobs, and other work that doesn't need cells. Set the default under **Default agent execution mode** in [Settings > Agents](/settings/ai#other-defaults-for-new-agents). An agent keeps the mode it started with, so if you change the setting, existing chats don't change. Chats started from a notebook always use Notebook mode. ## Parallel agents Sequential experiments are slow: you try one thing, wait, check the result, then try the next. Instead, ask Qualia to run the variants side by side. For example: > *"Compare three approaches: (1) random forest with default hyperparameters, (2) XGBoost with early stopping, and (3) a small neural network. Use 5-fold cross-validation for each. Run them in parallel."* Qualia proposes three ideas, one per approach, and gives each its own agent. An idea is a task that tests one hypothesis; see [Ideas and tasks](/tasks). When they finish, you can compare the results side by side. The same pattern works for a hyperparameter sweep, such as three learning rates, or for comparing feature sets. The **Parallelism** control sets how readily Qualia splits work across agents when you don't ask it to. Change it per chat from **Research style** in the chat box, or set a default in [Settings > Agents](/settings/ai#parallelism). An agent created by another agent inherits its execution mode, verbosity, and auto-approve setting. If the parent runs in [autonomous mode](/autonomous-mode), the new agent does too. Its model comes from the **Sub-agent model** setting; see [Agent models](/settings/ai#agent-models). ### Approve new agents To review each new agent before it starts, turn on **New agents require user confirmation** in [Settings > Agents](/settings/ai#other-defaults-for-new-agents). The creating agent then shows an approval card in its chat, and the new agent starts only after you approve. This setting is off by default. ## The Chats sidebar The **Chats** section of the left sidebar lists your agents and the ideas they're working on. You see agents started by another agent nested under it. Click the arrow, or press Right and Left, to expand or collapse a branch. * **Requests**: A bell marks an agent that needs input or approval. Hover over it to see its full question or command. The chat's creator can accept or reject command approvals. * **Tasks**: Assigned tasks appear beneath the agent. See [Ideas and tasks](/tasks) for how ideas appear and sort. Agents that need your input move to the top of the list. While you work in one chat, a reminder tells you when other agents are waiting. Use it to open the next waiting request. Pipeline runs appear under **Pipelines**, grouped by pipeline. A pipeline is a saved set of instructions that produces a report or other artifact each time it runs; see [Pipelines](/rules#pipelines). Expand a group to open a run's conversation. Use **Load more agents** to reach older runs and chats. Use Tab and Shift+Tab to move between agent cards and their task previews, and Enter or Space to open a focused agent. If the list shows **Couldn't load agents**, wait a moment and click **Retry**. If loading more agents fails, your loaded agents stay visible; click **Retry loading agents** below them. ### Agent actions * **Open**: Click an agent to open its conversation. * **Rename or export**: Right-click an agent and choose **Rename agent** or **Export chat**. * **Slack updates**: Right-click an agent and choose **Notify in Slack**, or **Connect Slack…** if Slack isn't connected yet. See [Slack](/settings/slack). * **Delete**: Right-click an agent and choose **Delete agent** to remove it and its history. * **Select several**: Cmd-click or Ctrl-click, Shift-click, or right-click and choose **Select agent**. Check the agents you want, then click **Delete**. Press Escape to leave selection mode. To stop or resume one agent, open its chat and use **Stop generation** or **Resume agent** in the chat input footer. To stop or resume every agent in the workspace, open the **Agents** menu and choose **Stop All Agents…** or **Resume All Agents…**. In Qualia Cloud, a workspace owner stops all running agents, and other members stop their own. Resume all applies to your own chats. ### Drag agents into tabs Agent cards work like tab handles. Drag a card out of the sidebar to place that agent's conversation where you want it: * Drop it **onto a tab bar** to open the conversation as a tab there. Drop between tabs to choose its position. * Drop it **near the edge of the editor area** to open it in a new [split](/tabs#editor-splits). * Drop it **onto a chat box** to mention that agent in your message instead. If the conversation is already open, dragging its card moves the existing tab to where you drop it. ## Agent communication Agents can send each other messages, so one agent can hand results or questions to another. Click a link to an agent in a chat to open that agent. All agents in a workspace share the same [knowledge](/knowledge), the claims and evidence Qualia records as it works. Open it with the **Knowledge** button (lightbulb) in the titlebar, or **View > Knowledge**. ## Agents and tasks Each task has an assigned agent, and each agent works through its own queue. Every idea gets a dedicated agent that works it until it finishes. See [Ideas and tasks](/tasks) for how agents plan and track work. ## Autonomous work To let agents work for hours without stopping for approval, use [autonomous mode](/autonomous-mode). Agents in autonomous mode can post progress to Slack. # Application Menu Source: https://docs.quadrillion.ai/app-menu Find any Qualia command in the application menu, and send feedback or check for updates from it. Use the application menu to run any Qualia command and to learn its keyboard shortcut. Each item shows its shortcut beside its name. ## Open the menu Where the menu appears depends on how you run Qualia: * **macOS desktop app**: in the system menu bar at the top of the screen. * **Windows desktop app**: in a row at the top of the Qualia window. * **Linux desktop app**: press **Alt** to show the menu bar. * **Browser and Qualia Cloud**: in a row at the top of the app. Items are dimmed when they don't apply. For example, **Save As...** is dimmed until you open a file. To search commands by name instead, press **Cmd+P** (Mac) or **Ctrl+P** (Windows/Linux). This opens **Commands & Shortcuts**, which lists every command with its shortcut. **F1** and **Cmd/Ctrl+Shift+/** open it too. ## Find a command The menus group commands by area: **File** for workspaces and files, **Edit** for undo and find, **View** for layout, **Agents** for starting and stopping agents, and **Help** for documentation, feedback, and updates. On macOS, **Settings...**, **Check for Updates…**, and **About Qualia** are in the **Qualia** menu. For the commands each area handles, see [Tabs](/tabs), [Search](/search), and [Agents](/agents). ## Check for updates In the desktop app, choose **Help → Check for Updates…** to look for a new version right away. On macOS, the item is in the **Qualia** menu. It works even when automatic checks are off in [General settings](/settings/general), and it tells you when you are already up to date. ## Send feedback To report a problem or share an idea, choose **Help → Send Feedback…**. You can also choose **Send feedback** from the gear menu in the title bar. A card opens in the bottom-right corner and stays open while you work. Write your message and click **Send**, or press **Cmd/Ctrl+Enter**. In Qualia Cloud, log in first so that Qualia can send it. To give the team more context, turn on **Share this workspace**. The team then receives a copy of the workspace's chats, tasks, knowledge, notebooks, and images. A copy from a local workspace also includes its files, including `.env` files, and the variables in any running kernel. Don't share a workspace that holds credentials or data you can't share. If Qualia can't deliver feedback from the app, it offers to open an email to [support@quadrillion.io](mailto:support@quadrillion.io) instead. # Autonomous Mode Source: https://docs.quadrillion.ai/autonomous-mode Let an agent work through a long research task without stopping for approval, and follow it from Slack. Let an agent work through a long research task without stopping for your approval, and follow its progress from Slack or the **Chats** sidebar. Autonomous mode is the **Auto ∞** level of Independence, one of the [research style](/settings/ai#research-style) controls. ## What changes in autonomous mode In autonomous mode, the agent makes its own decisions instead of waiting for you: * It runs commands without approval cards, as if **Auto-approve commands** were on. * It doesn't ask you questions. It proceeds on its own best judgment. * It ignores Curiosity and Parallelism, so Qualia dims those controls. * Agents it creates also run in autonomous mode. Qualia still asks before a few destructive commands, such as a recursive delete of a drive root or your home folder. > [!WARNING] > > Don't use autonomous mode in a workspace holding data you can't afford to lose, because the agent runs commands without showing them to you first. ## Turn on autonomous mode 1. Click **Research style** in the chat box. 2. Under **Independence**, choose **Auto ∞**. To make it the default for new agents, choose **Auto ∞** under **Independence** in [Settings > Agents](/settings/ai#independence). To leave autonomous mode, choose **Low**, **Medium**, or **High**. If you fork an autonomous chat, the fork doesn't keep **Auto ∞**, so its commands ask first. See [Fork a chat](/chat-and-ai#fork-a-chat). ## Get updates in Slack 1. [Connect Slack](/settings/slack#connect-slack) under **Settings > Integrations > Slack**. 2. Open the chat's **…** (Chat actions) menu, or right-click the agent in the **Chats** sidebar, and choose **Notify in Slack**. The agent posts progress updates, preliminary findings, and completion notices to that chat's Slack thread. Reply in the thread to steer it. For example, propose a new direction, ask it to focus on one approach, or request more detail on a promising result. ## Start an autonomous run 1. Choose **Auto ∞** as described above. 2. Describe a research direction, for example: > *"Explore different architectures for this time series forecasting problem. Try at least 5 approaches and report the best."* 3. Leave the agent to work. It posts to Slack if you turned on **Notify in Slack**. ## Monitor a run While an autonomous agent runs, follow it from three places: * **Slack**: progress updates, findings, and completion notices in the chat's thread. * **Chats sidebar**: the agent hierarchy, activity indicators, and the ideas agents are testing, with their findings and metrics. See [The Chats sidebar](/agents#the-chats-sidebar) and [Ideas and tasks](/tasks). * **Knowledge**: the claims and evidence agents recorded. Click **Knowledge** (lightbulb) in the titlebar, or choose **View > Knowledge**. See [Knowledge](/knowledge). ## When to use autonomous mode Autonomous mode suits work you'd otherwise have to supervise step by step: * **Open-ended exploration**, such as finding the causes of every anomaly in a dataset. * **Model sweeps**, where the agent tries many configurations and follows up on promising ones. * **Long-running experiments**, such as training runs to monitor for hours and stop when they stop paying off. Scheduled [pipeline runs](/rules#scheduled-runs) always run autonomously, because nobody may be around to answer. # Chat & AI Source: https://docs.quadrillion.ai/chat-and-ai Ask Qualia in plain language to analyze data, write and run code, and report what it finds. Describe what you want in the chat panel, and Qualia writes the code, runs it, and shows you the results. Each chat is an [agent](/agents), a conversation that can work on its own and hand work to other agents. ## Send a message Type a message in the chat box at the bottom of the panel. Qualia reads your message and the current state of your notebook. Then it writes and runs code, and shows plots, tables, and text inline. For example: * *"Load sales\_data.csv and show summary statistics grouped by region."* * *"Plot daily revenue with a 7-day moving average."* * *"Compare random forest and logistic regression with 5-fold cross-validation."* * *"Find out why the model performs poorly on some segments, and report back."* Open-ended goals like the last one work best with higher Curiosity, Independence, and Parallelism; see [Research style](#research-style). With **Web search** on in [Settings > Agents](/settings/ai#search-and-chat), Qualia can also look up documentation and references. Depending on the [execution mode](/agents#execution-mode) you choose, the agent runs code in notebook cells or as standalone scripts. Qualia keeps the conversation history, so you can refer back to earlier results and refine them. If a chat fails to load, choose **Retry**. You can inspect and edit any code Qualia runs. Expand an activity group in the chat to see its actions and results. ## Start from a file or folder The new chat screen offers three starting points that ask for a path and then hand it to an agent: * **Explore a dataset** asks for one data file. Qualia profiles it and reports its grain, its quality problems, and the questions it can answer. Checks adapt to the data, such as tabular, time series, text, image, geospatial, or graph data. * **Teach Qualia your workflow** asks for a file or folder, then turns a process you already run into a reusable [skill](/skills). * **Import knowledge** accepts files, folders, links, or notes, and turns past work into [claims](/knowledge), the findings Qualia records with their evidence. In Qualia Cloud, the picker browses your cloud workspace. Use **Upload**, or drag files onto the picker, to add them to the current folder. ## Queue follow-ups While the agent works, type a message and click **Queue follow-up**. By default, the agent reads queued messages at its next step, which can come before the current cell finishes. To hold them until the agent finishes instead, set **Queued messages** to **New turn** in [Settings > Agents](/settings/ai#search-and-chat). Queued messages appear above the chat box. You can edit, reorder, or remove them, or send one right away. If you stop the agent, its queue stays. When a shell command prints a lot, the chat shows its first and last parts. The agent can still read the full output without rerunning the command. ## Answer questions When Qualia asks a question, a card appears above the chat box. You can answer in three ways: * Pick an option, then press **Next** or **Submit**. * Type your own answer in the chat box and press **Enter**. While a question is open, the chat box answers it instead of sending a new message. * Choose **Use best judgment** to let Qualia decide. If there are several questions, use the arrows at the top of the card to move between them. Qualia sends all your answers together when you submit. If you don't answer, a countdown starts. Pause it to take more time; typing also pauses it. If time runs out first, Qualia ignores unsent answers and uses its best judgment. ## Approve commands Before Qualia runs a shell command that isn't trusted yet, a card shows the exact command with **Run** and **Skip**. To trust a command for good, open the arrow beside **Run**. See [Command approvals](/settings/ai#command-approvals) for every option. ## Attach context Attach context to a message so Qualia knows exactly what you mean: * **Cells**: Select one or more notebook cells. Qualia sees both your code and its output. * **Files**: Attach files and images from your computer. * **Table selections**: Select the rows or columns you care about in a data table and attach them. * **Highlighted text**: Select text in a file, a cell, a cell's text output, or a terminal. Choose **Add to chat** in the selection toolbar, or press **Cmd+L** on macOS or **Ctrl+L** on Windows and Linux. A chip names the source; click it to reopen the source. * **Earlier messages**: Select text in the chat and choose **Reply**. The quoted passage stays attached to your message. For a notebook cell, use the cell's **Chat about this cell** action. * **Writeup passages**: Select text and click the Qualia icon in the floating menu, then write your request in the comment. Qualia replies in that thread with suggested edits. See [Comments and suggestions](/writeups#comments-and-suggestions). * **Image regions**: Hold **Cmd** on macOS or **Ctrl** on Windows and Linux, and drag on a plot or chat image to attach only that region. Qualia doesn't send your current selection automatically, so add it when it matters. Attach up to 10 files per message, each up to 50 MB. You can pick, paste, or drag several at once. To remove one before sending, click its **×**. After you send, click an image preview once to focus it, then again to open it in the [image viewer](/notebooks#image-viewer). Click any other file's chip to download a copy. ## Choose a model 1. Click the model name at the bottom of the chat box, or the robot icon when the chat panel is narrow. 2. Choose a Frontier model, or select **All models** to browse the full catalog of models available to your account. 3. To change which model new chats start with, hover a model and choose **Set default**. The current default shows **Default**. **Auto** picks a strong model for you, so it keeps working as models change. To set agent models in Settings, see [Agent models](/settings/ai#agent-models). Use the options menu beside the model picker to adjust its reasoning or thinking level. In narrow panels, these controls appear inside the model menu. Available levels depend on the model. Some models offer **Fast mode**, which lowers latency at premium provider pricing. ### Context window The token usage indicator shows you how much of the model's context window the chat uses. When the chat nears the limit, Qualia summarizes, or compacts, older history and continues. The agent may lose detail from early in the conversation. To compact sooner, type `/compact`, optionally followed by what to keep. For example: `/compact keep the model comparison results`. If the agent is running, compaction waits for its next step. In a chat with many images, the agent stops seeing the oldest ones, and Qualia tells you how to reopen them. Your chat history keeps every image. If you still reach the image limit, start a new chat. ### Account usage limits If your account reaches its usage limit, Qualia stops the current request and shows a message in chat. Choose **View pricing** in that message to compare plans with higher limits. To see how close you are, [check your usage](/account-and-organization#check-your-usage). To raise the limit, [change your plan](/account-and-organization#change-your-plan). ### When a model declines a request If a model refuses a request for safety reasons, Qualia ends the response and names the model. Switch to another model or start a new chat, because the same model will likely refuse again. ## Research style Research style controls how far Qualia explores, how often it asks you, how readily it splits work across agents, and how much detail it writes. Click **Research style** in the chat box to change them for one chat; changes apply from the agent's next step. For each level and its default, see [Research style](/settings/ai#research-style). To let an agent work without approvals or questions, choose **Auto ∞** under Independence. See [Autonomous mode](/autonomous-mode). ## Browser tabs In the desktop app, agents can open browser tabs, visit pages, click, and type. You approve each browser action first. Choose **Always allow in this chat** to skip the prompt for the rest of the chat. A cursor on the page shows you what the agent is doing. To open a browser tab yourself, choose **File > New Browser Tab**. ## Code autocomplete To get AI suggestions as you type in code cells, set **Code completion** to **LM autocomplete** in [Settings > Editor](/settings/editor#code-completion). Press Tab to accept a suggestion. LM autocomplete requires signing in to Qualia and isn't available with your own API keys. ## Copy a message Hover over a message and select **Copy message** beneath it. A copied reply pastes as formatted text in rich editors and as Markdown in plain-text editors. Your own messages copy as plain text. ## Fork a chat Fork a chat to copy it into a new tab, so you can branch off without changing the original. * **Whole chat**: open the **…** (Chat actions) menu and choose **Fork chat**. * **Up to a reply**: hover over a reply and choose **Fork in new chat**. The fork keeps your model and research style. It drops auto-approve and **Auto ∞**, so commands in the fork ask you before running. That keeps the fork from racing the original in the same workspace. ## Export a chat To save a chat as a Markdown (`.md`) file, open the **…** (Chat actions) menu beside the chat tabs and choose **Export**. You can also right-click a chat tab. The export holds the visible transcript: your messages and Qualia's replies. Use it to archive a conversation or share it outside the app. You can export from the desktop app and from Qualia Cloud. Cloud exports show each participant's name beside their messages. ## Customize Qualia * [**Rules**](/rules): persistent instructions for every chat, such as "Always use polars instead of pandas." * [**Skills**](/skills): reusable workflows for a specific kind of task, such as analyzing a time series. * [**Hooks**](/hooks): commands that run at points in the agent's work. * [**MCP integrations**](/mcp-integrations): connections to external tools and data. ## Collaborative chats In a shared cloud workspace, the chat's creator can let everyone in the workspace message its agent. Click the **Chat access** button beside the chat tabs and choose **Everyone in this workspace** or **Only you**. Editors can then message the agent. Viewers and Commenters can read the chat but can't send messages. The agent keeps its creator's permissions, and the workspace owner pays for its usage. See [Chats in shared workspaces](/shared-workspaces#chats-in-shared-workspaces). # CSV Editor Source: https://docs.quadrillion.ai/csv-editor Browse, profile, and edit CSV files of any size in a spreadsheet-style grid. Open a `.csv` or `.tsv` file to browse it, check each column's statistics, and edit cells in a spreadsheet-style grid. A multi-gigabyte file opens as fast as a small one. Remote workspaces may cap the file size the grid accepts, and Qualia shows an error when a file exceeds it. ## Open Excel and Parquet files You can also open `.xlsx` workbooks and `.parquet` files in the same grid, view-only. Browsing, find, copying, column statistics, and missing-data highlighting work as they do for CSV files. * **Excel**: Use the **Worksheet** dropdown in the toolbar to switch sheets. Formula cells show the result Excel last saved with the file, so a formula that was never calculated, such as one a script wrote, appears empty. * **Edit a workbook**: Click **Excel · View only** in the toolbar. On desktop, Qualia opens the workbook in your spreadsheet app and reloads it when you save there. Otherwise, download a copy to edit. > [!NOTE] > > In Qualia Cloud, Excel and Parquet files don't open in the grid yet. Click **Download** to open a copy on your computer. ## Browse data * Toggle **First row is header** to show the first row as column titles. * To jump to a row number, press **Ctrl+G** or choose **Go > Go to Line...**. ## Check column statistics Hover a column header to see statistics for the whole column, such as its type, empty count, and, for numeric columns, its range, mean, and a histogram. Statistics include your unsaved edits. ## Find missing data Toggle **Highlight missing data** in the toolbar to tint empty cells. In number columns, Qualia also tints cells that aren't numbers. Use it to spot gaps and typos before you analyze a file. ## Edit cells, rows, and columns * **Edit a cell**: Double-click it, or select it and press Enter. * **Add or remove rows and columns**: Right-click a row, header, or cell. To act on several rows or columns, select them first. * **Reorder columns**: Drag a column header. * **Rename a column**: With **First row is header** on, right-click a header and choose **Rename column**. * **Paste ranges**: Paste multi-cell data from other spreadsheets across a cell range. Edited cells stay highlighted until you save. Undo and redo cover every edit, including row and column operations and **Replace all**. Save with **Cmd+S** (Mac) or **Ctrl+S** (Windows/Linux). > [!NOTE] > > If the file changes on disk while you have unsaved edits, Qualia won't overwrite it and offers to reload. Reopen the file and apply your changes again. ## Copy data **Cmd+C** (Mac) or **Ctrl+C** (Windows/Linux) copies the selected cells as text. Right-click a selection to copy with headers, or as CSV, TSV, a Markdown table, or JSON records. Copies include unsaved edits. ## Find and replace Press **Cmd+F** (Mac) or **Ctrl+F** (Windows/Linux) to find. To replace, press **Cmd+Alt+F** (Mac) or **Ctrl+H** (Windows/Linux). The search covers the entire file and includes unsaved edits. **Replace all** handles up to 10,000 matches, so narrow the search first if you have more. For searches across files, see [Search](/search). ## Edit the source text Switch the toolbar toggle from **Preview** to **Source** to see the file as plain text. Save your grid edits before switching, because the source view shows the saved file. Files up to 10 MB are editable as text. Larger files show a read-only preview, so edit them in the grid, which works at any size. In Qualia Cloud, **Source** supports [editing text together](/file-explorer#edit-text-files-together-in-cloud). For what each role can do, see [Shared workspaces](/shared-workspaces). # Dashboards Source: https://docs.quadrillion.ai/dashboards Lay out results as a dashboard of cards and value boxes, track pipeline runs, and share the result. Build a dashboard to present results at a glance, as cards, value boxes, and charts arranged in rows and columns. A **dashboard** is a Markdown (`.md`) file written in Quarto dashboard syntax. The saved file holds the layout, text, and values, so it stays readable outside Qualia. For long-form prose, use a [writeup](/writeups) instead. ## Create a dashboard Ask the agent to create one. For example, try "Make a dashboard of this week's experiment results." To write one yourself, create a `.md` file and add `format: dashboard` to its YAML frontmatter: ```markdown theme={null} --- title: Weekly overview format: dashboard --- # Overview ## Row ::: {.valuebox} Completed experiments 42 Up from 38 last week. ::: ::: {.card title="Findings"} The new protocol improved throughput. ::: ``` ## Lay out pages, rows, and columns You set the layout with headings. The frontmatter `title` names a standalone dashboard. * `#` headings create pages, such as `# Overview`. * `##` headings create rows, such as `## Row`. * `###` headings divide a row into columns. Deeper headings keep alternating between rows and columns. To give a column a relative width, add `{width=60%}` to its heading. To start with columns instead of rows, use `format: {dashboard: {orientation: columns}}`. To show a row's or column's cards as tabs, add `{.tabset}` to its heading; each tab takes its name from a card's `title` attribute. ## Fill cards You can put Markdown text, tables, images, and captured Plotly charts in a card. * **Embed a figure**: Put `[[figure:C-123]]` in its own paragraph inside a card. `C-123` is the ID of a captured figure in [Knowledge](/knowledge). * **Cite evidence**: Add `[[claim:C-123]]` after a statement. A **claim** is a recorded finding or piece of evidence, such as a value captured from a notebook. * **Add images**: Keep them in a folder beside the dashboard named `[FILENAME].assets/`, such as `overview.assets/chart.png`. ### Value boxes A `::: {.valuebox}` block shows its first paragraph as the label, its second as the value, and any remaining paragraphs as context. Write numbers, currency, percentages, and comparisons exactly as they should appear. Qualia doesn't calculate dashboard values for you. Ask the agent to compute and verify them in a notebook or script, write them into the file, and cite the evidence. Values stay as saved until you or the agent update the file. > [!NOTE] > > Qualia previews the saved Markdown and captured charts. It doesn't run Quarto code cells, inline calculations, or Shiny servers. ## Edit a dashboard Click **Source** at the top right to edit the Markdown, then **Preview** to see the layout. Save source changes with **Cmd/Ctrl+S**. The preview updates whenever an agent saves changes. ## Follow pipeline runs A **pipeline** is a saved set of instructions that produces a report or dashboard each time it runs, on demand or on a schedule. See [Pipelines](/rules#pipelines) to create one. Each run writes its report to `report.md` in its own run folder, so you keep every earlier run's results. To rename a pipeline's dashboard, rename the pipeline. * **View a run**: Select it in the **Runs** sidebar to see its report and open its agent's chat, where you can ask about the results. * **Start another run**: Click **New run**. ## Share a dashboard In a cloud workspace, click **Share**, then **Copy** beside the link. Only the project owner can choose who may open it: * **Project viewers** (default): People with view access to the project, after signing in. * **Anyone with the link**: Anyone, without signing in. The access setting covers the whole dashboard and all its runs. Switch back to **Project viewers** to turn off anonymous access. A shared link doesn't give access to the rest of the project; to manage project membership, see [Shared workspaces](/shared-workspaces). The link opens a standalone page. Readers can still interact with captured Plotly charts, but they don't see evidence citations or sources. * **Pipeline dashboards** keep the same link when you rename the pipeline, and readers can pick earlier runs. You can share a run before it finishes; its report appears when ready. * **Standalone dashboards** link to the saved file. To let readers see new data on live figures, see [Share live figure data](/writeups#share-live-figure-data). # File Explorer Source: https://docs.quadrillion.ai/file-explorer Browse workspace files, upload files and folders, download them, clone a GitHub repository, and edit text files together in Qualia Cloud. Use the **Files** section of the sidebar to open, organize, upload, and download the files in your workspace. A workspace is the folder, local or in Qualia Cloud, that holds your files, notebooks, and chats. ## Browse and organize files Click a file to open it in a [tab](/tabs). Shift-click to select a range, or Cmd-click (Mac) or Ctrl-click (Windows/Linux) to add items to the selection. Drag items onto a folder to move them there. Right-click a file or folder to rename, duplicate, copy its path, or delete it. In a local workspace in the desktop app, you can also reveal it in Finder or File Explorer. To create files and folders or change the sort order, open **File actions** (**…**) in the Files header. To see dotfiles such as `.gitignore`, turn on **Show hidden files** there. In a [shared workspace](/shared-workspaces), creating, moving, and uploading files requires the Editor or Owner role. ## Clone a repository To start a workspace from a GitHub repository, open an empty workspace and choose **Clone from GitHub**. The option is in **File actions** and in the empty file explorer. Type `owner/repo` or paste a GitHub URL. **Latest commit only** is on by default. It clones much faster but skips history, so tools that read `git log` won't work. Turn it off when you need the history. * If the workspace already has files, create a new workspace to clone into. If **Clone from GitHub** is missing from an empty-looking workspace, turn on **Show hidden files** to check for hidden contents. * If you cancel partway, Qualia removes what had arrived, so the workspace is empty again. Public repositories clone without any setup. To clone a private repository in Qualia Cloud, click **Connect GitHub** in the dialog, or use a personal access token. See [Grant GitHub access](/mcp-integrations#grant-github-access). ## Upload files To add files from your computer, drag them onto the file tree, or choose **File actions → Upload files**. In Qualia Cloud, **File → Upload Files** works too. Dropping onto a folder uploads into that folder. The menu actions upload into the top level of the workspace. To stop an upload, click **Cancel upload** in the Files header or the progress notification. Files that already finished stay in the workspace. Only one upload runs at a time, so wait for it to finish before you start another. If you switch workspaces during an upload, the upload stops. Files that finished stay in the original workspace, and the notification lists them. > [!NOTE] > > Uploading never overwrites a file. If the name is taken, Qualia keeps both and renames the new one, so `data.csv` becomes `data (1).csv`. ### Upload a folder To upload a whole folder, drag it onto the file tree. You can also choose **Upload folder** from **File actions** or a folder's right-click menu. Qualia recreates the folder structure at the destination. Qualia skips dependency and scratch folders, such as `.git`, `node_modules`, and `.venv`, and any file your browser can't read. A message says how many items it skipped. If a folder holds too many files for one upload, split the upload or [clone the repository](#clone-a-repository) instead. ### Upload size limits If a file is too large for your workspace, Qualia shows the limit that applies. Local uploads are limited only by free disk space. A large file can take a while to finish after its transfer looks complete. Keep the app or browser tab open until Qualia confirms the upload. If a file shows **Not visible yet**, click **Retry sync**. ## Download files and folders In a cloud or remote workspace, right-click a file or folder and choose **Download**. Folders download as ZIP archives, and Qualia reports anything it left out. In a local workspace, use **Reveal in Finder** or **Reveal in File Explorer** instead. Files too large for the editor show a **Download** button, so you can open them in another app. ## Edit text files together in Cloud In Qualia Cloud, Owners and Editors can edit the same text file at the same time. Everyone works in one shared draft of unsaved edits, and Viewers and Commenters watch it change live. Undo only reverses your own edits. Your edits reach collaborators on their own, but saving to the file is manual. Choose **File → Save** or press **Cmd/Ctrl+S**. The status beside the editor shows whether the draft is saved to the file. Don't close or refresh the tab while it shows **Syncing…**, because unsynced edits can be lost. ### Changes from agents and the terminal Agents and shell commands read and write the saved file, not the shared draft. If the file changes on disk after the draft started, a notice above the editor lets you view the disk version, keep your draft, discard it, or overwrite the file. To keep both versions, choose **File → Save As...** and save the draft to a new path. ### Other file types * CSV and TSV files support shared editing in **Source** view, unless they're large. See the [CSV editor](/csv-editor). * Notebooks have their own shared editing, where everyone with edit access, agents included, edits at the same time. See [Edit a shared notebook together](/notebooks#edit-a-shared-notebook-together). * Rich-text writeups don't support simultaneous editing. * Visitors on an **Anyone with the link** share see the saved file, not the unsaved draft. # Getting Started Source: https://docs.quadrillion.ai/getting-started Install Qualia or open it in your browser, sign in, open a workspace, and run your first analysis. Install Qualia, open a workspace, and ask the agent for your first analysis. If you'd rather not install anything, start with Qualia Cloud in your browser. ## Try Qualia in your browser Open [Qualia Cloud](https://app.quadrillion.ai) to use Qualia without installing it. You can also choose **Try Qualia** on the [Quadrillion website](https://quadrillion.ai). Qualia Cloud sets up Python for you and runs your work on cloud compute. ## Download and install Download the desktop app from the [download page](https://quadrillion.ai/download). > [tab] macOS > > Qualia needs macOS 12 or later on an Apple Silicon Mac (M1 or newer). Intel Macs are not supported. > > 1. Download the DMG, named `qualia-[VERSION]-macos-apple-silicon.dmg`. > 2. Open the DMG and drag **Qualia** to your Applications folder. > 3. Open Qualia. On first launch, macOS may ask you to confirm because you downloaded the app from the internet. > [tab] Windows > > Qualia needs 64-bit Windows 10 or later on an x64 processor. > > 1. Download the installer, named `qualia-[VERSION]-windows-x64-user-setup.exe`. > 2. Run the installer. It installs Qualia for your Windows account only. > 3. Open Qualia from the Start menu. > > On first launch, Windows Defender SmartScreen may show a warning. Choose **More info**, then **Run anyway**. > [tab] Linux > > Qualia needs Ubuntu 20.04 or an equivalent distribution on an x64 processor. > > Download the `.deb` package or the AppImage. Install the `.deb` with your package manager, or run the AppImage directly. To remove a `.deb` installation, use your package manager. > > For a server without a display, download and extract the server tarball, then start Qualia: > > ```bash theme={null} > tar -xzf qualia-[VERSION]-linux-x64.tar.gz > ./qualia > ``` Qualia checks for updates when it launches and prompts you when a new version is available. ## Sign in On first launch, choose a **Continue with** option, or enter your work email and choose **Continue with SSO**. Qualia finishes sign-in in your browser and creates your account if you are new. On an enterprise deployment, choose **enter your activation key** instead. For every sign-in option, sessions, and your own provider keys, see [Sign-in and API keys](/settings/api-keys). ## Set up a Python kernel A kernel is the process that runs your notebook code. During desktop onboarding, choose **Install Jupyter** to install a managed Python kernel that only Qualia uses. It leaves your other Python installs untouched, and it needs internet access to download packages. If you choose **Skip for now**, Qualia offers the install again on your next launch. Until then, you can connect to remote compute instead. To use your own Python environment or create a `.venv` for a project, see [General settings](/settings/general#python-environment). If the installation fails, share the error shown under **Failed** with your IT team, or contact support at [support@quadrillion.io](mailto:support@quadrillion.io). ## Open a workspace A workspace is the folder Qualia works in. Its files, agents, tasks, and knowledge belong to that workspace. > [tab] Desktop > > On the welcome screen, pick a recent workspace, or choose one of these: > > * **New workspace…** creates a folder, and you pick its name and location. > * **Open folder…** uses an existing folder. > * **Add remote workspace…** connects to Qualia running on another machine. See [Connect to a remote backend](#connect-to-a-remote-backend). > > To switch later, use the workspace selector in the titlebar. > [tab] Qualia Cloud > > The first time you sign in, **Welcome to Qualia** asks for your name, your company, and a handle. Choose **Start** when you are done. > > The **Workspaces** page shows a card for each workspace. Choose a card to open it, or choose **New workspace**. Each workspace has its own link, so you can bookmark it or open several in separate browser tabs. > > Inside a workspace, use the titlebar workspace selector to open a recent workspace or create one. Choose **All workspaces** to return to the **Workspaces** page. ### Rename, delete, or leave a workspace In Qualia Cloud, open a workspace card's **…** menu to **Rename** or **Delete** your workspace, or **Leave** one someone shared with you. Stop any running agents first. Deleting a workspace permanently removes its files, chats, tasks, knowledge, and compute. Connected integrations stay on your account, and new conversations from them arrive in another workspace. If you can't delete a workspace, its tooltip explains why. If Qualia can't open a workspace link, it offers the next step, such as verifying your email, switching accounts, or returning to **All workspaces**. For sharing and roles, see [Shared workspaces](/shared-workspaces). ## Connect to a remote backend To work on data that lives on another machine, run Qualia there and connect the desktop app to it. Save your open files first, because switching workspaces stops local work. 1. Open the workspace selector in the titlebar and choose **Add remote workspace…**. 2. Choose **SSH Connection** and enter the host, username, and private key path. Or choose **Direct URL** and enter the backend URL. 3. Choose **Connect and choose folder**, then pick the folder on the remote machine to use as your workspace. A direct URL must use `https://` unless the server is on `localhost`, such as a port you forwarded over SSH. Once connected, **Open remote folder…** lets you switch folders on that machine without restarting Qualia. To bring your saved keys along, see [Import keys from this computer](/settings/api-keys#import-keys-from-this-computer). ## Run your first analysis After onboarding, a welcome tour shows you how to ask a question, work with agents, and get a writeup. You can skip it, and replay it later from the **Help** menu. **1. Create a notebook** In the Files sidebar, choose **New file**, then **Notebook**. Or open an existing `.ipynb` file. See [Notebooks](/notebooks). **2. Ask the agent** Type a request in the chat panel, for example: * *"Load the iris dataset and show me a summary"* * *"Train some CNNs on the MNIST dataset"* **3. Review the results** Qualia writes code cells, runs them, and shows the output in the notebook, such as plots, tables, and text. You can read and edit every cell it creates. > [!TIP] > > Toggle the chat panel with **Cmd+K** on macOS or **Ctrl+K** on Windows and Linux. For a longer walkthrough that ends in a cited writeup, follow the [Tutorial](/tutorial). # Hooks Source: https://docs.quadrillion.ai/hooks Run your own commands before the agent uses a tool, after it does, or when it is about to finish. Add a hook to check, log, or test the agent's work automatically. A hook is a shell command that Qualia runs at a fixed point in an agent's turn. For example, a hook can refuse a dangerous shell command, format a file the agent edited, or run your tests before the agent finishes. Unlike [rules](/rules), which are instructions the agent reads, a hook runs whether or not the agent remembers it. ## Open the Hooks editor Open the gear menu in the titlebar, choose **Customize agent**, then choose **Hooks**. From there you can: * Choose **Add**, then **Create workspace hook** or **Create personal hook**, to edit a hook file. * Pick a template under **Start with a template**. The three templates need only `python3`, so they work on desktop and on Qualia Cloud: | Template | What it does | | - | - | | **Block destructive shell commands** | Refuses any shell command containing `rm -rf` and tells the agent why. | | **Log shell commands and file edits** | Appends a line to `.quadrillion/hook-log.jsonl` after each shell command or file write. | | **Check Python syntax before the agent finishes** | Compiles the project's `.py` files and sends the agent back to fix syntax errors. | A template adds its hooks to **Workspace hooks** as an unsaved draft and keeps the hooks already in the file. Inside the editor, the **Templates** menu adds the same hooks to the file you have open. To format code or run tests, adapt one of the [examples](#examples). ## Workspace and personal hooks * **Workspace hooks** live in `.quadrillion/hooks.json` in your workspace, so collaborators get the same file. * **Personal hooks** apply across all your workspaces. When several hooks match the same event, Qualia runs them all at the same time. ## Enable reviewed hooks A hook file does nothing until you enable it. After you save, choose **Enable reviewed hooks**. Enabling applies to you only, and to that exact version of the file. If the file changes afterwards, its hooks stop running until you review and enable the new version. For example, a collaborator's edit to `.quadrillion/hooks.json` turns the workspace hooks off for you. The agent tells you in chat when it skipped hooks for this reason, or when an enabled hook file was deleted. If `hooks.json` changes on disk while you are editing it, **Save** fails. Choose **Copy edits** on the error to keep your draft, then **Reload**. Qualia asks before **Reload** discards unsaved edits. > [!WARNING] > > Enabling covers `hooks.json` only, not the scripts it calls. Review those scripts too, and keep them somewhere you control, because a later change to a script never asks for review. ## Configuration ```json theme={null} { "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "python3 .quadrillion/hooks/check_command.py", "timeout": 10 } ] } ] } } ``` Each event holds a list of groups. Each group has an optional `matcher` and one or more commands. | Event | When it runs | | - | - | | `PreToolUse` | Before a tool runs. Can block the tool. | | `PostToolUse` | After a tool succeeds. | | `PostToolUseFailure` | After a tool fails. | | `Stop` | When the agent is about to finish. Can send it back to work. | | Option | Default | Meaning | | - | - | - | | `command` | required | Shell command to run from the workspace folder. | | `timeout` | `10` | Seconds before Qualia stops the command, from 1 to 120. | | `loop_limit` | `5` | `Stop` only. How many times this hook can send the agent back to work in one turn, from 1 to 5. After that, the agent finishes. | | `fail_closed` | `false` | `PreToolUse` only. Blocks the tool if this command fails, times out, or prints a response Qualia cannot read. | A file holds at most 32 commands. ### Matchers A matcher selects tools by name. Separate alternatives with `|` and use `*` as a wildcard, such as `Edit|Write` or `mcp__github__*`. An empty matcher, `*`, or `.*` matches every tool. `Stop` groups ignore the matcher. You can use Qualia's tool names, such as `bash_command` or `edit_cell`, or these common names: | Common name | Matches | | - | - | | `Bash` or `Shell` | Shell commands | | `Read`, `Write`, `Edit` | File reads, writes, and edits | | `mcp__[SERVER]__[TOOL]` | A tool from an [MCP server](/mcp-integrations) | Web search and page fetches are the `web_search` and `web_fetch` tools, so a matcher can select them too. The agent's replies to you are not tool calls, so no matcher selects them. To act when the agent finishes, use a `Stop` hook. > [!NOTE] > > While a `PreToolUse` hook matches a tool, that tool's output does not stream live. It appears once the hook allows it. A `PreToolUse` group that matches every tool holds back every cell, edit, and write, and the Hooks editor warns you about it. Narrow the matcher to keep live streaming for the other tools. ## What your command receives Qualia sends each command a JSON object on standard input: | Field | Contents | | - | - | | `hook_event_name` | The event, such as `PreToolUse`. | | `session_id` | The chat session. | | `cwd` | The workspace folder. | | `tool_name` | The common name when the tool has one, such as `Bash`, otherwise Qualia's name. | | `qualia_tool_name` | Qualia's own name, such as `bash_command`. | | `tool_input` | The tool's arguments. Shell tools include `command`; file tools include `file_path`. | | `tool_response` | After a tool runs: whether it succeeded and its output. | | `tool_use_id` | An ID for this tool call. | | `stop_hook_active` | `true` once a `Stop` hook has already sent the agent back to work in this turn. | | `truncated` | `true` when Qualia shortened long strings to fit. | Check `truncated` before you trust the full content of a large input or response. The `QUALIA_PROJECT_DIR` and `CLAUDE_PROJECT_DIR` environment variables hold the workspace folder. Qualia does not provide `transcript_path`, so scripts that read the conversation transcript won't work unchanged. ## Respond to Qualia Your command tells Qualia what to do through its exit code: * **Exit code 0** allows the action. If the command prints a JSON object, Qualia reads it as a response (see below). * **Exit code 2** blocks a `PreToolUse` tool, or sends the agent back to work from a `Stop` hook. From `PostToolUse` or `PostToolUseFailure`, it passes the reason to the agent and keeps it working, but the tool has already run. Qualia shows the agent standard error as the reason. * **Any other exit code** is a hook error. Qualia reports it in chat and the agent carries on, unless the command sets `fail_closed`. A JSON response can use these fields: | Field | Effect | | - | - | | `decision: "block"` | Blocks the tool (`PreToolUse`), sends the agent back to work (`Stop`), or passes the reason to the agent after a tool ran. | | `hookSpecificOutput.permissionDecision: "deny"` | `PreToolUse` only. Blocks the tool. | | `reason`, `hookSpecificOutput.permissionDecisionReason` | The reason shown to the agent. | | `hookSpecificOutput.additionalContext` | Context shown to the agent. It takes the place of `reason`, but not of `permissionDecisionReason`. | | `systemMessage` | An extra message shown to the agent. | | `continue: false` with `stopReason` | Hooks never end the agent's turn. Qualia passes `stopReason` to the agent instead, and a `PreToolUse` hook also blocks the tool. | Hooks can't ask you for approval or rewrite a tool's input. A `PreToolUse` response with `permissionDecision: "ask"` or `updatedInput` blocks the tool, so that it never runs unreviewed. Responses follow the Claude Code format. Qualia ignores fields it does not use, such as Cursor's `permission` and `followup_message`. ## Where hooks run On desktop, hooks run on your computer. When the sandbox is on, they run inside the same sandbox as the agent's shell commands (**Settings** > **Agents** > **Permissions**). On Qualia Cloud, hooks run in your workspace's cloud sandbox. Hooks can use the same programs as the agent's shell commands: * **On desktop**, that is whatever your shell finds on its `PATH`. * **On Qualia Cloud**, the sandbox has `python3` and common shell tools, but not project tools such as `pytest` or `ruff`. Install them in the sandbox, or point the hook at a copy inside your project, such as `.venv/bin/pytest`. ## Examples These hooks call tools that Qualia does not install. Install `ruff` or `pytest` [where hooks run](#where-hooks-run) first. If the tool is missing, the hook reports an error that names it, and the agent carries on. To format Python files with `ruff` after the agent edits them: ```json theme={null} { "hooks": { "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "python3 -c \"import json, shutil, subprocess, sys; path = json.load(sys.stdin)['tool_input'].get('file_path') or ''; path.endswith('.py') or sys.exit(0); shutil.which('ruff') or sys.exit('ruff is not installed where hooks run, so ' + path + ' was not formatted.'); subprocess.run(['ruff', 'format', path], check=False)\"", "timeout": 30 } ] } ] } } ``` To run `pytest` before the agent finishes and send it back with the last lines of output when tests fail: ```json theme={null} { "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "command -v pytest > /dev/null || { echo 'pytest is not installed where hooks run, so the tests were not checked.' >&2; exit 1; }; output=$(pytest -q -x 2>&1); code=$?; [ $code -eq 0 ] || [ $code -eq 5 ] || { echo 'Tests are failing. Fix them before finishing.' >&2; printf '%s\\n' \"$output\" | tail -n 20 >&2; exit 2; }", "timeout": 120 } ] } ] } } ``` A project with no tests passes, because `pytest` exits with code 5 when it collects none. ## Import from Claude Code or Codex Choose **Import from Claude Code** or **Import from Codex** to copy supported command hooks into the file you are editing. Qualia reads these files: | Hooks | Claude Code | Codex | | - | - | - | | Workspace | `.claude/settings.json`, `.claude/settings.local.json` | `.codex/hooks.json`, `.codex/config.toml` | | Personal (desktop only) | `~/.claude/settings.json` | `~/.codex/hooks.json`, `~/.codex/config.toml` | Each source shows a preview first. Choose **Add \[N] hook(s) to draft**, then save, review, and enable the result as usual. If your draft is nearly full, the preview says how many hooks fit within the 32-command limit and skips the rest. Imports copy commands only. Qualia does not copy the scripts they call, and later changes in Claude Code or Codex don't sync. The preview lists everything it skips or changes: * **Unsupported events, options, and tools**: Qualia skips them. For example, it drops `MultiEdit` from `Write|Edit|MultiEdit` and keeps the rest. * **Renamed tools**: Claude Code names map to Qualia's names: `Grep` to `ripgrep`, `Glob` to `list`, `WebFetch` to `web_fetch`, `WebSearch` to `web_search`, and `NotebookEdit` to `edit_cell|append_cell`. These tools take different input fields, so check scripts that read `tool_input`. * **Timeouts**: a missing timeout, or one above 120 seconds, becomes 120 seconds. Before you enable an imported `PreToolUse` guard, check whether its script asks for approval or returns `updatedInput`. Qualia blocks the tool in both cases (see [Respond to Qualia](#respond-to-qualia)). ## Test a hook Enable the hook file, open **Test a hook** below the editor, and choose **Run test**. The sample event is a `PreToolUse` call to `bash_command`, and you can edit it. Test runs execute your hook commands for real, so they can change files, but they never run the agent tool. Each result shows why a hook failed, such as a timeout, a nonzero exit status, or a response Qualia could not read. # Overview Source: https://docs.quadrillion.ai/index Find the page you need to research with Qualia, from your first prompt to a cited writeup. Ask Qualia a research question in plain language, and it writes and runs the code in notebooks, then shows the results inline. Qualia is a research agent built by [Quadrillion](https://quadrillion.ai). To install it and run your first analysis, start with [Getting Started](/getting-started) or the [Tutorial](/tutorial). To see Qualia with the team, choose **Get a Demo** on the [Quadrillion website](https://quadrillion.ai/qualia), or **Talk to our team** on the [Enterprise page](https://quadrillion.ai/enterprise). ## Core features > [card] [Chat](/chat-and-ai) > > Describe an analysis in plain language, and Qualia writes the code, runs it, and shows the results. > [card] [Notebooks](/notebooks) > > Run, edit, and export Jupyter-compatible notebooks with code, Markdown, and plots. > [card] [Ideas and tasks](/tasks) > > Split a question into ideas that each get their own agent, and follow the tasks they plan. > [card] [Knowledge](/knowledge) > > Review the claims Qualia records and trace each one back to its evidence. ## Research workflow > [card] [Parallel agents](/agents) > > Test several hypotheses at once, such as different models, hyperparameters, or feature sets. > [card] [Autonomous mode](/autonomous-mode) > > Let Qualia work unattended for hours, and get Slack updates when it finds results. > [card] [Task variables](/q-vars) > > Pass variables between tasks in a multi-step workflow with the `qualia` package. ## Tools > [card] [Terminal](/terminal) > > Run shell commands in your workspace without leaving Qualia. > [card] [Writeups](/writeups) > > Write research documents whose citations link to your knowledge. > [card] [Dashboards](/dashboards) > > Present results as cards, value boxes, and charts, and share them. ## Customization & Settings > [card] [Settings](/settings/overview) > > Choose models, themes, and how agents behave. > [card] [Rules](/rules) > > Give the agent persistent instructions to follow. > [card] [Skills](/skills) > > Save a workflow once and invoke it with a slash command. > [card] [Hooks](/hooks) > > Run your own checks before or after agent tools, or when the agent finishes. > [card] [MCP](/mcp-integrations) > > Connect external tools to the agent with Model Context Protocol. ## Interface > [card] [Tabs](/tabs) > > Arrange files, notebooks, and chats in a multi-pane layout. > [card] [Search](/search) > > Find text in files, notebooks, and chats. # Kernel Toolbar Source: https://docs.quadrillion.ai/kernel-toolbar Choose a notebook's kernel, run or stop its code, and fix kernels that won't start. Use the toolbar at the top of each notebook to pick its kernel, run cells, and stop or restart execution. A **kernel** is the process that runs a notebook's code, such as a Python 3.12 interpreter in a virtual environment. Each notebook has its own kernel; notebooks never share a running kernel. A notebook's kernel starts when you run its first cell. ## Choose a kernel Click the kernel button at the left of the toolbar. It shows the kernel's name, environment path, and status, such as **Ready** or **Busy**. In the menu, click a kernel to switch this notebook to it. * Click **Refresh kernels** after you install a new interpreter or environment. * On the desktop app, click **Discover kernels** to search a folder for Jupyter kernels that Qualia didn't find. To set up Python, R, or Julia environments, see [General settings](/settings/general#python-environment). ## Toolbar actions Use the toolbar to interrupt the running cell, run all or some cells, clear outputs, or restart or shut down the kernel. Restarting starts a fresh kernel, which clears all variables. When the notebook is narrow, actions that don't fit move into the **More notebook actions** menu. For keyboard shortcuts, see [Notebooks](/notebooks#run-cells). While a cell runs, click **Executing...** in the toolbar to scroll to the running cell. ## Set the default kernel To choose the kernel that notebooks without a saved kernel open with, go to **Settings > Notebooks > Default Kernel**. If the default kernel disappears, for example because you deleted its virtual environment, Settings shows which kernel Qualia uses instead. ## Kernels in Qualia Cloud In Qualia Cloud, notebooks run on managed compute, so the menu lists what that compute provides rather than what is on your machine. The **Compute** group lets you move this notebook between CPU and GPU compute; switching restarts the kernel. * **Python** runs on all cloud compute types. * **R** and **Julia** run on CPU compute, in the same managed environment as Python. Julia notebooks use Julia 1.11. R and Julia on GPU compute aren't available yet. Qualia records the Python packages you install in a cloud workspace and reinstalls them when compute restarts. R and Julia packages last only until that compute shuts down, so install them again in a fresh environment. ## Fix kernel problems ### Kernel won't start * Check that the Python, R, or Julia installation still exists. * Read the error next to the kernel name in the kernel menu. * Click **Refresh kernels** after installing or moving an environment. On the desktop app, if a notebook's saved environment is gone, Qualia starts the notebook on another installed kernel of the same language. The notebook keeps its original kernel choice, so rebuilding that environment brings it back. ### Kernel keeps dying * Check your system's free memory, because running out of memory is a common cause of crashes. * Try the package in a fresh environment if you suspect a broken install. ### Packages are missing If an import fails for a package you installed, check that the path in the kernel button matches the environment you installed it into. Don't install packages into a different interpreter than the one the notebook runs, because the kernel can only import from its own environment. # Knowledge Source: https://docs.quadrillion.ai/knowledge Browse what your research has established and trace every finding back to the evidence behind it. Use Knowledge to see what your workspace has learned and to check the evidence behind any conclusion. Knowledge is the workspace's shared record of **claims**: recorded statements, each tied to a source. Every agent in the workspace reads from it, and it persists across sessions. ## What is a claim? A claim is either evidence or a finding. * **Evidence** records what a source says or what code produced, such as an accuracy of 0.94 read from a notebook. * A **finding** interprets evidence, such as "The regularized model generalizes better than the baseline." Each finding cites the claims it rests on. Each claim has an ID such as `C-1722010625f1`, a list of sources, and a [recall priority](#recall-priority). You cite a claim by ID in [writeups](/writeups) and chat. ## Kinds of evidence ### Runtime-captured values A runtime-captured claim records a value read from running code: a notebook kernel, or a script an agent ran. Agents can ask Qualia to capture a value, but they can never type the value in themselves. Qualia always reads it from the live runtime, so the number is what the code actually computed. Each value links to the cell or script line that produced it. To capture values yourself, or to pass them between tasks, use the `qualia` package described in [Task variables](/q-vars). ### File-captured quotes A file-captured claim quotes a workspace file or PDF, with its path and line range or page. Qualia accepts the quote only if the text appears in the file, so a quote can't cite text the file doesn't contain. If the file later changes or disappears, the claim's source flags it. The original quote stays as the record of what Qualia captured. Agents citing that evidence are told about the change. Inspect the file and ask an agent to recapture the evidence if needed. You can create file-captured claims yourself with [Save as evidence](#save-a-selection-as-evidence). > [!NOTE] > > A quote proves where text came from, not where a number came from. Ask agents to capture computed values from the runtime instead of writing them to a file and quoting it. ### Figures and tables A figure claim captures a chart from a notebook cell or a script's saved image. Supported charts keep their underlying values, so you can read points and toggle series. To keep chart data when saving from a script, use [save\_figure](/q-vars#save-a-figure-from-a-script). A table claim holds records that code wrote, such as one row per model with its scores. Agents use shared tables to compare ideas, and findings cite the table directly. ### Live figures A live figure updates as new observations arrive, for example while a model trains. Ask the agent for a live figure to follow training, solver, or simulation output. To log metrics yourself from a Python notebook cell, write rows to a named table. An agent can then plot the table as a live figure. ```python theme={null} await qualia.table("training").write([{"step": step, "loss": loss}]) ``` A script must run this call inside `asyncio.run(...)`, as shown in [Task variables](/q-vars#capture-from-a-script). To plot existing Weights & Biases logs, ask the agent to follow a local run directory or its parent `wandb/` folder and choose the metrics. Qualia reads local log files only. Keep the workspace runtime running to receive updates. ### Findings Agents write findings, also called synthesized claims, to state what the evidence means, so each task leaves a record of what it established. **Related claims** cover the same subject without one supporting the other. They appear in a claim's **Related** section and never count as evidence. ## Open Knowledge Click **Knowledge** (the lightbulb) in the top right of the window, or choose **View > Knowledge**. A blue dot on the button means there is knowledge you haven't seen. * In the **Chat-first** layout, Knowledge opens in the side panel beside your chat, with a **Files** tab next to it. * In the **Editor-first** layout, Knowledge opens as an editor tab. To switch layouts, see [Layout mode](/settings/general#layout-mode). Knowledge follows the chat you have open. If that chat belongs to an [idea](/tasks), you see that idea's knowledge. Otherwise you see knowledge from that agent and the agents it started. ## Read the summary and cards A short summary at the top states the approach and results so far, with citations you can click. Cards below it show findings, figures, tables, and live figures. Evidence appears inside each card as its sources rather than as separate cards. Qualia lists the most useful cards first, and cards you pin stay at the top. To search, click the search icon and type part of a claim's text or its ID, such as `C-1722`. ## Inspect a claim Click a card to open it with its full content and sources. If the card is a single piece of evidence, the click opens its source directly instead. * **Notebook cells**: Opens the cell that produced the evidence. * **Files**: Opens the file at the quoted lines, or a PDF at the quoted page. * **Scripts**: Opens the script at the line that produced the value. * **Other claims**: Steps into that claim. Use the breadcrumb trail, starting at **All knowledge**, to step back. Follow sources from any finding back to the raw data and code that support it. Clicking a citation in chat or a writeup opens Knowledge with that claim in view. In chat, an **Added to Knowledge** card at the end of a turn counts the new findings, figures, tables, and evidence. Click it to open them. ## Act on a card Open a card's **...** menu for these actions. They require edit access to the workspace. * **Pin to top** keeps the card first in your list on this device. * **Reply** opens the chat of the agent that wrote the card, with the card attached, ready for your message. If that chat is gone, Qualia uses your open chat or starts a new agent. * **Fork reply** [forks](/chat-and-ai#fork-a-chat) that agent's chat and attaches the card, so you can ask about it in a separate copy of the conversation. ### Remove an item from knowledge Choose **Remove from knowledge** to hide a card. Click **Undo** in the confirmation to bring it back. Removing a card doesn't delete its source file or notebook. ## Save a selection as evidence You can file evidence yourself from any text you can quote. 1. Select text in a file, or in a notebook cell's text output. A **Save as evidence** button appears at the end of your selection. You can also choose **Save Selection as Evidence** from the menus or the command palette. 2. Add an optional **Caption** that says what the text shows. It becomes the claim's headline, with the quote beneath it. 3. Choose a **Recall priority**, then save. You can't edit the quote after you save it, so an agent reading the claim can always tell your caption from the source's words. Select enough text to identify a unique passage, up to 4,000 characters. To quote a **PDF**, switch it to the **Text** view with the toggle above the document. The claim cites the page. A scanned page has no text layer, and the view says so. Selecting a cell's code doesn't offer the button, because claims made from that code's output already link to the cell. Text that Qualia highlights for you, such as a find match, doesn't offer it either. Select the text yourself to quote it. ## Import existing work To turn earlier work into claims, such as old notebooks, results files, and papers, choose **Import knowledge** on the new chat screen. Add files or folders from your workspace, files from your computer, links, or typed notes. When you start the import, one agent reads everything and records what it establishes. Qualia saves imported sources in the workspace's `sources/` folder so claims can link back to them. Use files with readable text. You can't import scanned PDFs, images, or archives this way. For pages behind a login or paywall, download a readable copy and upload it yourself. See [Upload files](/file-explorer#upload-files). ## Recall priority Every claim has a **recall priority**: how readily future agents should see it again. It describes the claim's standing, not how confident anyone is that it's true. It applies to all claims, so a captured value can outrank a finding. | Priority | Meaning | | - | - | | **High** | A canonical result or constraint. Qualia shows it to every agent in the workspace on each turn. | | **Medium** | Worth finding on related work. Agents find it more readily when they search, but nobody sees it automatically. | | **Low** | Recalled when it's directly relevant. This is the default for agent-written claims. | Most knowledge is **Low**, and that's intended. It means "recall this when it matters", not "this doesn't matter". Reserve **High** for facts every agent should know, so that a finding one agent files reaches the others at their next step. ## How agents use knowledge Agents receive High claims automatically and search the rest when they need them. In chat, activity rows show when agents create, update, or search knowledge. Expand a search row to see what it returned. Each claim records the task that produced it. When an agent captures a task's required variables, they become runtime-captured claims. For how tasks and ideas work, see [Ideas and tasks](/tasks). # MCP Integrations Source: https://docs.quadrillion.ai/mcp-integrations Give the agent tools from services like GitHub, Linear, and Google Drive by installing connectors or adding your own MCP servers. Install a connector or add an MCP server so the agent can use outside tools during your chats. For example, connect Linear and the agent can read and file issues from what it finds. MCP (Model Context Protocol) is an open standard in which a server publishes tools and Qualia calls them. You decide which servers run and which tools need your approval. Manage everything in **Customize agent > MCP Servers**, which you open from the gear menu in the titlebar. > [!WARNING] > > Only connect MCP servers you trust, because a server can read the data and chat content you send its tools. ## Browse the connector catalog Click **Browse connectors** to install a preconfigured connector. How you connect depends on the connector: | Connector | How you connect | Where it works | | - | - | - | | Linear, Atlassian, Sentry, Notion, Stripe | Sign in through the browser. See [Sign in to a connector](#sign-in-to-a-connector). | Cloud and desktop | | Google Drive, BigQuery | **Connect with Google**. See [Connect Google Drive and BigQuery](#connect-google-drive-and-bigquery). | Cloud and desktop | | OneDrive | **Connect with Microsoft**. See [Connect OneDrive](#connect-onedrive). | Cloud and desktop | | GitHub | Credential saved in settings. See [Grant GitHub access](#grant-github-access). | Cloud and desktop | | Slack, Databricks, Snowflake, Postgres | Set up in **Settings > Integrations**. See [Managed connectors](#managed-connectors). | Cloud and desktop | | Playwright | Runs as a local command, with no setup. | Desktop only | In Qualia Cloud you can also add any MCP server that has a public URL. Your servers are visible only to you, and Qualia encrypts the headers you configure. Command-based servers, which run as local processes, work only in the desktop app. ## Sign in to a connector Linear, Atlassian, Sentry, Notion, and Stripe use browser sign-in. **1. Install the connector** In **Browse connectors**, choose the connector and install it. **2. Sign in** Select **Sign in** on the server and authorize access. Finish in the same browser where you started, because an authorization link opened elsewhere fails. **3. Return to Qualia** Choose **Return to Qualia**. Qualia loads the connector's tools and returns you to the workspace where you started. If loading tools fails, choose **Refresh tools**. In Qualia Cloud, to revoke a server's authorization, select it and choose **Unlink account**. Deleting the server alone keeps the authorization in case you reinstall it. Changing a server's URL or OAuth client may require signing in again. ## Connect Google Drive and BigQuery **1. Choose the service** In **Browse connectors**, choose **Google Drive** or **BigQuery**. For BigQuery, enter the **Execution and billing project** first. **2. Authorize Google** Click **Connect with Google**, approve access, and select **Return to Qualia**. Each service connects separately, and connecting the second asks for its additional permission. * **BigQuery** explores datasets and tables in your saved project and runs read-only queries. Your Google account needs permission to run jobs in that project and read the queried tables. Google bills the saved project. * **Google Drive** searches and reads Docs, Sheets, Slides, and other files you can access, including shared drives. Files with download restrictions stay restricted. To see your Google account, reconnect, or disconnect, select the service in the MCP Servers list. To change BigQuery's billing project, edit it and choose **Reconnect with Google**. Disconnecting one service keeps the other connected, so disconnect both before switching Google accounts. If you use the desktop app, connect Qualia Cloud in settings first, then sign in with the same Qualia account when your browser opens. Desktop and Cloud share one Google connection, so disconnecting in either affects both. If Google connections are unavailable, contact your Qualia administrator. ## Connect OneDrive In **Browse connectors**, choose **OneDrive**, then **Connect with Microsoft**. The connector is read-only and doesn't need a Copilot license. The agent can search your OneDrive and read Word and text files. For example, ask it to summarize a document or compare two. It reads your own OneDrive only, not SharePoint libraries or sharing links. If a Word file is too large to read, split it or export it as text. If Microsoft connections are unavailable, contact your Qualia administrator. ## Managed connectors A managed connector is backed by a built-in Qualia integration instead of a server you configure. You sign in once in settings, and Qualia handles the credentials, so there is no token to paste into the server. | Connector | Set up in | | - | - | | Databricks (Genie) | [Settings > Integrations > Databricks](/settings/databricks) | | Slack | [Settings > Integrations > Slack](/settings/slack) | | Snowflake | [Settings > Integrations > Snowflake](/settings/snowflake). On desktop, sign-in happens on your first query. | | Postgres | **Settings > Integrations > Postgres**. See [Connect Postgres](#connect-postgres). | | GitHub | **Settings > Integrations > GitHub**. See [Grant GitHub access](#grant-github-access). | Some managed connectors also appear in the MCP Servers list, where you can set their tool permissions. To change or remove one, choose **Manage connection** to open its settings. Connect and authorize each integration before you ask the agent to use it. For Databricks, also select a Genie Space. If you connect a service during an agent turn, send another message to use its tools. ### Grant GitHub access Connecting GitHub serves two purposes: it powers the GitHub connector, and it lets Qualia clone your private repositories. To clone, use **Clone from GitHub** in the **File actions** menu or on an empty workspace, or ask the agent. See [Clone a repository](/file-explorer#clone-a-repository). Public repositories need no connection. Set up access in **Settings > Integrations > GitHub** in one of two ways: * **Connect the Qualia GitHub App** (Qualia Cloud). Click **Connect GitHub**, then pick the account and repositories Qualia may read on GitHub. The App can only read contents, metadata, issues, and pull requests, so you can't grant more by accident. To change repositories later, click **Manage on GitHub**. * **Paste a fine-grained personal access token** into **Fine-grained personal access token**. Use this on desktop, in organizations that block third-party GitHub Apps, or if you prefer a token. Qualia accepts only fine-grained tokens, which start with `github_pat_`. Classic tokens carry the `repo` scope, which grants read and write access to every repository you can reach. A token is bound to one account or organization, so use the App if your repositories span several. If you set up both, Qualia uses the App. If a clone fails because the App doesn't cover a repository, the clone dialog links to the GitHub page that fixes it. ### What the token needs One token serves both cloning and the GitHub connector, so scope it for whichever you use. Restrict it to the repositories Qualia should reach. | Permission | Needed for | | - | - | | Contents: Read-only | Cloning a private repository | | Metadata: Read-only | Granted automatically with Contents | | Issues and Pull requests: Read-only | Connector tools that read issues or pull requests | | Contents: Read and write | Only if the agent should push | On desktop, cloning uses the git credentials already on your machine, the same ones `git clone` uses in your terminal. The token still matters there for the GitHub connector. > [!WARNING] > > Save your token in settings, not inside a repository URL, because a URL can expose it in your workspace files. ### Connect Postgres To let the agent query a PostgreSQL database from your notebooks, paste its connection URL into **Settings > Integrations > Postgres**. Use a URL such as `postgresql://[USER]:[PASSWORD]@[HOST]:5432/[DATABASE]`. Qualia masks the credentials once you save, and the agent never sees the URL in chat. To disconnect, click the trash icon next to the field. * **Connect as a read-only database role** so the agent can't change your data, because the agent can write when you ask it to. * **If you use Qualia Cloud**, the database must accept public connections over TLS. Qualia Cloud can't reach a database behind an IP allowlist or inside a private network. Connect from the desktop app instead. In Qualia Cloud, each member saves their own connection URL. ## Add a custom server **1. Open MCP Servers** Open a workspace, then open **Customize agent > MCP Servers** from the gear menu in the titlebar. **2. Start a new server** Click **Add custom server**. **3. Configure it** Enter a **Server name**, then fill in the fields below or paste a JSON configuration. Click **Create**. **4. Sign in if needed** If the server uses OAuth, click **Sign in** and complete the browser flow. ### Command-based (stdio) servers A command-based server runs as a local process, so it works only in the desktop app. Set: * **Command**: the executable to run, such as `npx` or `python`. * **Arguments**: command-line arguments, passed in order. * **Environment variables**: tokens or settings the server needs. Put every token the server needs under **Environment variables**, because Qualia doesn't pass through variables exported in your shell. ### URL-based (HTTP/SSE) servers A URL-based server runs elsewhere and works in Qualia Cloud and on desktop. Set: * **URL**: the server endpoint. * **Headers**: optional authentication headers, such as `Authorization: Bearer [YOUR_TOKEN]`. On desktop you can use any `http` or `https` URL, including a local server such as `http://localhost:3000/mcp`. Qualia Cloud needs a publicly reachable URL, and OAuth sign-in needs HTTPS. ### Paste a JSON configuration Switch **Input mode** to JSON and paste a configuration. Qualia accepts a single server's settings, or the `mcpServers` format that Cursor's `mcp.json` uses: ```json theme={null} { "mcpServers": { "my-server": { "command": "npx", "args": ["-y", "my-mcp-server"] } } } ``` ## Manage tools Select a server to see its tools. Each tool shows its name, description, and permission. Use the **Enabled** switch to turn a whole server on or off. If a server can't connect, its error appears at the top of its detail view. ### Set tool permissions | Permission | Behavior | | - | - | | **Always allow** | Runs without asking. | | **Ask each time** | Asks before each use. | | **Never allow** | Blocks the tool. | Most new tools default to **Ask each time**. When the agent wants one of those tools, an approval request appears above the message box. Choose **Run** to approve this use, or **Skip** to decline and let the agent continue without it. To approve future uses too, pick an **Always allow** option from the request's dropdown. ### View a tool's schema Click **Show schema** on a tool to see the parameters it accepts and their types. ### Refresh tools If a server's tools change, such as after an update, click **Refresh tools** to rediscover them. ## Edit the configuration file In the desktop app, Qualia stores MCP servers in `mcp.json` in your Qualia config directory, next to `settings.json`: | System | Directory | | - | - | | macOS | `~/Library/Application Support/io.quadrillion.qualia` | | Windows | `%APPDATA%\io.quadrillion.qualia` | | Linux | `$XDG_CONFIG_HOME/io.quadrillion.qualia`, defaulting to `~/.config/io.quadrillion.qualia` | ```json theme={null} { "mcpServers": { "my-server": { "command": "npx", "args": ["-y", "my-mcp-server"], "enabled": true, "tool_permissions": { "some-tool": "always" } } } } ``` Valid `tool_permissions` values are `always`, `ask`, and `never`. Qualia picks up edits to the file automatically. ### Timeouts Two optional per-server fields, in seconds, bound how long Qualia waits. Set them only if a server legitimately needs longer. | Field | Default | Covers | | - | - | - | | `startup_timeout_seconds` | 30 | Connecting to the server and listing its tools | | `tool_call_timeout_seconds` | 30 | A single tool call | ```json theme={null} { "mcpServers": { "slow-server": { "url": "https://example.com/mcp", "tool_call_timeout_seconds": 120 } } } ``` Raise `startup_timeout_seconds` for a server that is slow to boot. For example, a server started with `npx -y` is slowest on its first run, while the package downloads. Raise `tool_call_timeout_seconds` for tools that do long-running work. ## Troubleshooting ### Server won't connect The server's detail view shows the error. Check that the command or URL is correct, that the server's dependencies are installed, and that any credentials it needs are set. ### Server doesn't respond If a server accepts the connection but never answers, Qualia stops waiting after `startup_timeout_seconds` and shows the error in chat. Common causes are a wrong command or URL, a missing dependency or credential, or a command waiting for input. If the server is slow to start, raise `startup_timeout_seconds`. ### Server needs signing in again OAuth tokens eventually expire. When Qualia can't renew one, the server shows a **Sign in** button, and its tools stop working until you sign in again. If this happens during a chat, a sign-in card appears in the conversation. Use the card to sign in, and the agent continues with other work meanwhile. If the sign-in window doesn't close after you authorize, close it yourself. On desktop, signing in to a local MCP server opens your default browser and a sign-in dialog in Qualia. If sign-in doesn't finish on its own, such as over SSH, paste the full callback URL from the browser's address bar into the dialog. Qualia rejects expired or mismatched callback URLs, so start again if that happens. ### Server needs an OAuth client Most OAuth servers let Qualia register itself on first sign-in, so there is nothing to configure. A few don't, such as custom GitHub OAuth setups, Slack's remote server, and Microsoft Entra. Those fail before a browser opens, with a message that the server needs an OAuth client. To connect one, register an OAuth app with that provider. Then select the server, click **Edit**, expand **OAuth client**, and fill in: * **Client ID**: from the app you registered. Required. * **Client secret**: only if the provider issued one. Leave it empty for a public client, which uses PKCE instead. * **Redirect URI** (desktop): a loopback address with a port that the app is registered with, such as `http://localhost:8400/callback`. Leave it empty if the provider accepts any loopback port, and Qualia picks a free one. In Qualia Cloud, leave **Redirect URI** empty. Register `https://[API_HOST]/api/mcp/oauth/callback` with the provider instead, where `[API_HOST]` is your deployment's API hostname. Sign in again after you change the client ID. * **GitHub OAuth apps** need a client secret. Register the same loopback redirect URI you enter in Qualia, then click **Sign in**. * **Slack** also requires the app to be published to the Slack directory or internal to your workspace, and a workspace admin must approve MCP servers. # Notebooks Source: https://docs.quadrillion.ai/notebooks Write, run, and share Python, R, and Julia notebooks that open in any Jupyter tool. Create and run notebooks in Python, R, or Julia, and work in them alongside agents. Qualia saves every notebook as a standard `.ipynb` file, so it also opens in JupyterLab, VS Code, or any other notebook tool. By default, a new agent works in a notebook. It edits the open notebook's cells and runs them on the **kernel**, the process that executes the notebook's code. For standalone scripts or long training runs, set **Default agent execution mode** to **Script** in **Settings > Agents** before you create the agent. See [Execution mode](/agents#execution-mode). ## Create a notebook 1. Press **Cmd/Ctrl+N**, choose **File > New File...**, or click **New file** in the Files sidebar. 2. Choose **Notebook** and name the file. To open an existing notebook, click its `.ipynb` file in the Files sidebar. Notebooks open in [tabs](/tabs). Right-click a file in the sidebar to rename, duplicate, or delete it. ## Work with files To upload or download files, see [File Explorer](/file-explorer). If a file is too large for the editor, read it from notebook code or a [terminal](/terminal) instead. In cloud compute, `/project` holds the shared workspace. Read inputs and save outputs there so that other notebooks and agents can use them, for example `/project/data/input.csv`. ## Cell types * **Code cells** run Python, R, or Julia, with syntax highlighting, bracket matching, and auto-indentation. * **Markdown cells** hold formatted text and LaTeX math. * **Raw cells** hold unformatted text that passes through unchanged, for example for nbconvert. For inline math in notebook Markdown, use `$x^2$`. Use `$$x^2$$` if the same text must also render in chat and writeups. For a display equation, put `$$` on its own line before and after it. ## Add cells * Hover above or below a cell and click **Code** or **Markdown**. * In command mode, press **A** to insert a code cell above, or **B** to insert one below. To change a cell's type, use the cell's **Change cell type** menu. In command mode, you can also press **Y** (code), **M** (Markdown), or **R** (raw). ## Run cells | Shortcut | Action | | - | - | | **Shift+Enter** | Run the cell and move to the next one | | **Cmd/Ctrl+Enter** | Run the cell and stay on it | | **Cmd/Ctrl+Alt+Enter** | Run all cells | Markdown and raw cells render instead of running. To run, interrupt, or restart from the toolbar, see [Kernel Toolbar](/kernel-toolbar). ## Command mode shortcuts Press **Escape** to leave the editor and enter command mode. Press **Enter** to go back to editing the cell. | Key | Action | | - | - | | **J** / **K** or arrow keys | Move to the next or previous cell | | **A** / **B** | Insert a code cell above or below | | **Y** / **M** / **R** | Convert to code, Markdown, or raw | | **C** / **X** | Copy or cut the cell | | **V** / **Shift+V** | Paste below or above | | **Shift+M** | Merge with the cell below | | **D**, **D** | Delete the cell | | **I**, **I** | Interrupt the kernel | | **0**, **0** | Restart the kernel | Qualia asks you to confirm before deleting a cell. Anyone else editing the notebook can still click **Restore** on it. ## Navigate code Turn on the Python language server in **Settings > Editor > Code intelligence** to jump around code in cells and text files: | Key | Action | | - | - | | **F12** or **Cmd/Ctrl+click** | Go to the definition of the symbol under the cursor | | **Shift+F12** | List all references to the symbol | | **Ctrl+-** (macOS) / **Alt+Left** (Windows/Linux) | Go back to where you jumped from | | **Ctrl+Shift+-** (macOS) / **Alt+Right** (Windows/Linux) | Go forward again | ## Outputs Qualia renders all standard Jupyter outputs, such as text, pandas DataFrames, matplotlib and Plotly charts, images, ipywidgets, and tracebacks. A running cell keeps its output when you reload or reconnect. Qualia shortens long text output so that the notebook stays responsive. Click **Show all** to display the hidden lines; find in the notebook still searches them. If an output is extremely long, the cell notes how much it left out and names a log file with the full text, so you and the agent can still search all of it. ## Select an image region To send part of an image to [chat](/chat-and-ai), hold **Cmd** (macOS) or **Ctrl** (Windows and Linux) and drag across the image. Then click **Attach selection**. This works on plot outputs, Markdown images, and chat images. If a region is selected, use the expand button in the image's top-right corner to open the image viewer. ## Image viewer To open the image viewer, focus an image preview and click it again, or focus it with Tab and press Enter or Space. Previews include plot outputs, images in Markdown cells and writeups, chat images, and [knowledge](/knowledge) figures. Image files from the Files sidebar open straight in the viewer. In the viewer you can: * **Zoom and pan**: use the toolbar, **Cmd/Ctrl+scroll**, or **Cmd/Ctrl** with **+**, **−**, or **0**. Hold **Cmd/Ctrl** and drag to pan. * **Select a region**: drag across the image. Press **Escape** or click **Clear** to deselect. * **Copy, download, or attach**: right-click or use the toolbar. Images from a notebook attach to that notebook's agent, and images from a chat return to that chat. ## Plotly charts Qualia-managed Python environments can display Plotly charts inline. If you use your own environment, install `plotly` and `nbformat` there first. To use a chart in a [writeup](/writeups) or dashboard, ask the agent to capture it. ## Set default plot style Use **Settings > Plotting** to set the defaults every matplotlib plot starts from, such as resolution, figure size, font, line width, grid, color cycle, and colormap. Its export settings set the resolution and file format for `plt.savefig()` calls that don't pass their own `dpi` or `format`. Code in a notebook still wins. For example, `plt.figure(figsize=(10, 4))` or `plt.rcParams["font.size"] = 14` overrides the setting. To make your own color cycle, click **Create custom scheme** next to **Color cycle**, name it, and add colors with the picker or as hex codes, such as `#1f77b4`. Matplotlib reads these defaults when a kernel first imports it. To apply new settings to a running notebook, restart its kernel from the [kernel toolbar](/kernel-toolbar), then re-run the cells that draw plots. ## Tag cells Add tags to cells to mark what they are for, such as `preprocessing` or `model-v2`. Click the tag icon (**Edit cell tags**) in the cell's toolbar, type a tag, and press Enter. To remove a tag, open the same menu and click it. Agents follow the descriptions of three built-in tags: | Tag | Meaning for the agent | | - | - | | **IMMUTABLE** | Don't modify this cell; it holds reference or must-not-change code | | **CRITICAL** | The notebook depends on this cell, so change it with care | | **NEEDS FIX** | This cell has errors or incomplete code to fix or improve | For example, tag a cell that loads a fixed dataset **IMMUTABLE** so that the agent doesn't rewrite it while it edits the cells below. To delete a custom tag's definition, use **Settings > Notebooks > Custom tags**. ## Save a notebook Press **Cmd/Ctrl+S** to write the notebook to its `.ipynb` file. Everyone editing the notebook sees unsaved edits, and the toolbar shows whether the notebook has unsaved changes. If the file changes on disk after you open it, for example through `git checkout`, a banner asks what to do. Choose **Keep mine** to write your edits over the file, or **Load disk version** to replace your edits with the file. ## Edit a shared notebook together In a shared cloud workspace, Owners and Editors edit the same notebook at the same time, and so do agents. Each cell shows who else is editing it. Viewers and Commenters see **You have view access** in the toolbar, with editing, running, and kernel controls turned off. See [Shared workspaces](/shared-workspaces) for roles. ## Find in a notebook Press **Cmd/Ctrl+F** to search the current notebook. See [Search](/search) for options such as regular expressions and replace. ## Export and import a workspace You can save a whole workspace as one `.qualia` archive: its chats, tasks, knowledge, notebooks, and images. To export, choose **File > Workspace Transfer > Export Workspace…**, or **Export .qualia** from the workspace menu in the Files sidebar. In Qualia Cloud, choose **File > Export Workspace…**. On the desktop app with a local workspace, turn on **Include workspace files** to add data, scripts, and modules so the imported workspace can run. This option leaves out caches, virtual environments, version-control folders, and credential folders such as `.ssh` and `.aws`, but it keeps `.env` files. Don't share an archive with workspace files carelessly, because it carries everything else in the folder. To import, choose **Import Workspace…** or **Import .qualia**. Imports add to the active workspace without changing its settings, and never overwrite a file that already exists. If an archive comes from a newer version of Qualia, update the app and try again. ## Export a notebook To get a copy that runs without Qualia, with captured values written in place of `qualia.get()` calls, see [Export a notebook that runs without Qualia](/q-vars#export-a-notebook-that-runs-without-qualia). ## Related * [Kernel Toolbar](/kernel-toolbar): choose, interrupt, and restart kernels * [Search](/search): find in a notebook and across files * [Terminal](/terminal): run shell commands # Task variables (qualia) Source: https://docs.quadrillion.ai/q-vars Capture values from notebooks and scripts as evidence, and read them in later tasks with the qualia package. Use the `qualia` package to record values your code computes as evidence, and to read those values back in later tasks. It works in Python, R, and Julia, in notebook kernels and in scripts an agent runs. A **task** is one step of the research plan, and a task can list **required variables**, the named results it must produce. A captured value becomes a **runtime-captured claim**: a fact in the [knowledge system](/knowledge) that links back to the cell or script line that produced it. See [Tasks](/tasks) for how agents plan tasks. ## How capture works Qualia records a variable's value only by reading it out of running code. Neither you nor an agent can type a value in as variable evidence. That way, every captured value traces back to the code that computed it. 1. An agent creates a task with required variables, such as `best_model` and `accuracy`. 2. Code in a notebook cell or script assigns those names. 3. Qualia reads the values from the running kernel or script and records them as claims. 4. A later task reads the values with `qualia.get()` instead of recomputing them. ```mermaid theme={null} flowchart LR task1["Task 1: Train model"] capture["Capture: accuracy = 0.94"] task2["Task 2: Summarize results"] read["Read: qualia.get(variable_names=['accuracy'])"] task1 --> capture capture --> task2 task2 --> read ``` ## Capture a required variable in a notebook In a notebook, you don't call anything. When a cell finishes, Qualia captures every global variable whose name matches a required variable on an in-progress task in the same chat. For example, if a task requires `best_model` and `accuracy`, running this cell captures both: ```python theme={null} best_model = "random_forest" accuracy = 0.94 ``` The `qualia` package is already loaded in every notebook kernel, so you don't need to import it. ## Submit a value explicitly To capture a value right away, for example from inside a function, call `submit_variable` from the code that produced it. The value fills the matching required variable on each in-progress task in the chat. ```python theme={null} accuracy = 0.94 await qualia.submit_variable(variable_name="accuracy", value=accuracy) ``` If Qualia can't record a name, it prints the reason, such as an unsupported type or a slot that is already filled. ## Record extra evidence To keep a value that no task asked for, use `add_evidence`. It records a claim without filling a required variable. Qualia looks the name up in the calling code, so the variable must exist when you call it. ```python theme={null} class_counts = [120, 80, 45] await qualia.add_evidence( "class_counts", description="Rows per class in the training set", recall_priority="high", ) ``` `recall_priority` controls how readily later agents see the claim: `"low"` (the default), `"medium"`, or `"high"`. Only `"high"` claims appear to agents on every turn; agents find lower ones by searching. See [recall priority](/knowledge#recall-priority). ## Capture from a script Scripts use the same package, with two differences. A script has no cell boundary, so nothing is captured automatically, and the script must import the client itself. The Python capture methods are async. A notebook cell can `await` them directly, but a script must run them inside an event loop because top-level `await` is a syntax error there. > [tab] Python > > ```python theme={null} > import asyncio > import qualia > > async def main(): > scores = [0.91, 0.94, 0.93] > accuracy = sum(scores) / len(scores) > await qualia.submit_variable(variable_name="accuracy", value=accuracy) > > asyncio.run(main()) > ``` > [tab] R > > ```r theme={null} > source(Sys.getenv("QUALIA_R_SOURCE_PATH")) > > scores <- c(0.91, 0.94, 0.93) > accuracy <- mean(scores) > submit_variable("accuracy", accuracy) > ``` > [tab] Julia > > ```julia theme={null} > using Qualia > > scores = [0.91, 0.94, 0.93] > accuracy = sum(scores) / length(scores) > Qualia.@submit_variable accuracy > ``` > [!WARNING] > > Don't drop the `await` in Python, because without it the call never runs and nothing is captured. In Julia scripts, use the `@add_evidence` macro: ```julia theme={null} using Qualia class_counts = [120, 80, 45] Qualia.@add_evidence class_counts description="Rows per class" ``` A script claim cites the command that ran the script and, where available, the line that produced the value. If you later edit that line, the claim's source shows it changed. ## Read captured values In a downstream task, read values captured by earlier tasks: > [tab] Python > > ```python theme={null} > # pandas DataFrame indexed by (notebook_id, variable_name) > df = qualia.get(variable_names=["accuracy", "best_model"]) > ``` > [tab] R > > ```r theme={null} > df <- qualia_get(variable_names = c("accuracy", "best_model")) > ``` > [tab] Julia > > ```julia theme={null} > rows = Qualia.get_evidence(variable_names = ["accuracy", "best_model"]).rows > ``` To read the values one task produced, for example after a kernel restart, filter by task ID: ```python theme={null} result = await qualia.get_evidence(task_id="[TASK_ID]", variable_names=["accuracy"]) rows = result["rows"] ``` Each row holds the task ID, variable name, value, and value type. ## Save a figure from a script To save a chart from a script along with the values it plots, use `save_figure` instead of the library's own save. A figure saved this way supports data inspection once it is captured, such as reading points and toggling series. > [tab] Python > > ```python theme={null} > import matplotlib.pyplot as plt > import qualia > > folds = [1, 2, 3, 4, 5] > rmse = [0.42, 0.39, 0.41, 0.38, 0.40] > fig, ax = plt.subplots() > ax.plot(folds, rmse) > qualia.save_figure(fig, "figures/rmse_by_fold.svg") > ``` > [tab] R > > ```r theme={null} > library(ggplot2) > source(Sys.getenv("QUALIA_R_SOURCE_PATH")) > > df <- data.frame(fold = 1:5, rmse = c(0.42, 0.39, 0.41, 0.38, 0.40)) > p <- ggplot(df, aes(fold, rmse)) + geom_line() > qualia_save_figure(p, "figures/rmse_by_fold.svg") > ``` > [tab] Julia > > ```julia theme={null} > using Plots > using Qualia > > plt = plot(1:5, [0.42, 0.39, 0.41, 0.38, 0.40]) > Qualia.save_figure(plt, "figures/rmse_by_fold.svg") > ``` * Extra arguments, such as `dpi` or `bbox_inches`, pass through to the library's save. The call returns the path it wrote. * Save inside your workspace, and prefer SVG because it scales to any size and keeps text as text. * If you use the library's own save, an agent can still capture the figure, but only as a picture with no values behind it. * For Plotly, Altair, and ggplot2 figures, Qualia also keeps an interactive version of the chart. * Plotly image saves need the `kaleido` package, and Altair image saves need `vl-convert-python`. To add a script's figure to the knowledge graph, ask the agent to capture it. The agent records the image together with the script that saved it. ## Supported values Qualia captures: * **Primitive values**: numbers, strings, and booleans. NumPy scalars, such as the result of `argmax`, count as numbers. * **Lists** whose items all share one primitive type, such as `[0.91, 0.94]`. Qualia rejects dicts, DataFrames, arrays, and mixed lists, so capture separate scalar variables instead. Evidence values over 1 MB are also rejected; save large results to a file and capture a summary, such as a path or a metric. ## Export a notebook that runs without Qualia On the desktop app, right-click a notebook and choose **Open with Default App**. Qualia saves a copy to `Downloads/Qualia Exports` with each `qualia.get()` call, or its R and Julia equivalent, replaced by the captured values. The copy runs in other tools, such as JupyterLab or VS Code. # Rules Source: https://docs.quadrillion.ai/rules Write instructions once so Qualia follows them in every chat, or only when you call them. Write an instruction once, such as "Always use type hints," and Qualia follows it in every chat. A rule is a saved instruction that Qualia adds to an agent's context, either on every message or only when you mention it. To package a step-by-step procedure instead, write a [skill](/skills). See [Skills vs rules](/skills#skills-vs-rules) for when to use each. ## What is a rule? A rule has four parts: * **Name**: lowercase letters, numbers, and hyphens, such as `python-style`. * **Description**: an optional summary shown when you mention the rule. * **Instructions**: the guidance itself. * **Mode**: whether the rule applies on every message or only when you call it. Rules persist across sessions. You manage them from **Customize agent**, the page where you also manage [skills](/skills), [hooks](/hooks), and [MCP servers](/mcp-integrations). ## Rule modes * **Always applied** rules join every message's context with no action from you. Use them for preferences you always want, such as "Use SI units for all measurements" or "Never delete files without confirmation." * **Manual** rules apply only to a message that mentions them. Use them for guidance you need sometimes, such as conventions for one kind of analysis. ## Rule scope Under **Applies in**, every rule is either **Global** or **This workspace**: * **Global** rules apply in every workspace. * **This workspace** rules apply only in the current workspace. Pick the scope when you create a rule, and change it later by editing the rule. If you administer an organization, **Available to** also lets you share a rule with your organization instead of keeping it to **Just me**. A shared rule applies in all members' workspaces, and only admins can edit it. ## Create a rule 1. Open the gear menu in the titlebar, choose **Customize agent**, then choose **Rules**. 2. Open the **New rule** menu and choose **New rule**. 3. Choose where it applies, then enter a **Name**, an optional **Description**, and the **Instructions**. 4. Choose a **Mode**: **Always applied** or **Manual**. 5. Click **Create**. ## Use a manual rule To apply a manual rule, type `@rule:` followed by its name in your message: > *"@rule:data-analysis Analyze this dataset and find anomalies"* Qualia adds the rule's instructions to that message's context only. ## Add a file path rule A file path rule points the agent at a folder of code on disk. With it, the agent assumes imports in your notebooks resolve from that path. To add one, open the **New rule** menu and choose **New file path**. File path rules are always applied. Like other rules, they can be global or scoped to a workspace. Use a global file path for code you share across workspaces, and make sure the path exists on the machine running the workspace. ## CLAUDE.md and AGENTS.md If your workspace root has a `CLAUDE.md` or `AGENTS.md` file, Qualia reads it on every message, like an always-applied rule. Keep workspace instructions in these files so that they live in version control beside your code. ## Import rules Import rules from other tools on local workspaces. These options read folders on the machine your workspace runs on, so they don't appear in Qualia Cloud. Each option is in the **New rule** menu on the **Rules** page. * **Import from Cursor** copies the rules in `~/.cursor/rules/`. A rule with `alwaysApply: true` becomes an always-applied rule; every other rule becomes manual. * **Import from Claude Code** copies the `RULE.md` files in `~/.claude/rules/` and in the workspace's `.claude/rules/` folder. * **Import from file…** asks for the full path to one file, such as a `CLAUDE.md` outside your workspace. Its contents become a new always-applied rule. If a rule named like the imported file already exists, **Import from file…** skips it rather than replacing it. Rename the existing rule first if you want the file's contents to win. ### Re-import rules Importing makes a copy, so later edits in Cursor or Claude Code don't reach Qualia on their own. If you import again after the source changed, Qualia lists the rules it would replace and asks first: * **Keep mine** leaves your copies as they are. * **Update from Cursor** or **Update from Claude Code** replaces each listed copy with the source version. Edits you made to those rules in Qualia are lost. Rules that are new to Qualia import either way. Workspace-scoped rules and rules named after a built-in rule are never replaced. ## Edit rule files on disk On local workspaces, open the **New rule** menu and choose **Open Rules folder** to open the rules folder in your file manager. Each rule has its own folder with a `RULE.md` file. Qualia picks up edits you make on disk automatically. Qualia Cloud has no rules folder to open, so edit rules on the **Rules** page instead. ## How rules combine Rules stack. Every always-applied rule, your workspace's `CLAUDE.md` or `AGENTS.md`, and any manual rules you mention all apply to the same message. A common setup: * One always-applied rule for your global preferences. * Manual rules for different contexts, such as data analysis, model training, or visualization. * A `CLAUDE.md` for workspace-specific conventions. ## Write effective rules * **Be specific.** Don't write vague rules such as "write good code," because they give the agent nothing to act on. Write "Use tqdm in for loops" or "Add docstrings to all functions" instead. * **Keep each rule to one concern.** Don't mix Python style and chart styling in one rule, so that you can change each on its own. * **Test new rules.** After creating a rule, try a few prompts to confirm Qualia follows it. * **Review rules as your work changes.** Outdated rules keep steering the agent toward old habits. ## Pipelines A pipeline is a saved set of instructions that produces an artifact each time it runs, such as a report, dashboard, or presentation. Find pipelines under **Customize agent > Pipelines**. To start a run, select a pipeline and click **Run now**. Each run opens its own chat, which you'll find under **Pipelines** in the [Chats sidebar](/agents#the-chats-sidebar), and writes its own output. To create a pipeline, click **New pipeline** and fill in its **Name**, **Target artifact**, **Artifact folder**, and **Instructions**. You can also ask in chat, for example: *"Make a pipeline that downloads Hacker News data and visualizes current trends."* The agent investigates the sources and asks you about missing decisions. Then it saves the instructions and continues in the same chat as run 1. The first run builds its artifact in its own output folder and leaves your existing files where they are. Later runs follow the saved instructions, write separate outputs, and can read earlier results to explain what changed. See [Follow pipeline runs](/dashboards#follow-pipeline-runs) for how report outputs display. In a [shared workspace](/shared-workspaces), pipelines and their schedules belong to the person who created them. Collaborators can see the resulting files and run chats, and they manage their own pipelines. Two people's pipelines with the same name keep separate run histories. ### Scheduled runs On Qualia Cloud, a pipeline can run on a schedule. In local workspaces, you start runs manually. 1. Select the pipeline and click **Edit pipeline** (the pencil). 2. Under **Schedule**, choose a **Frequency**: **Every N minutes**, **Hourly**, **Daily**, **Weekly** (pick the weekdays), **Monthly** (pick the day), or **Custom cron**. 3. Choose a **Timezone**. Schedules follow that timezone's clock, so 9 AM in New York stays 9 AM across daylight-saving changes. 4. Choose when it **Ends**: **Never**, on a date, or after a number of runs. A schedule that reaches its end turns itself off. 5. Check the summary and the next run times, then save. The pipeline list shows each schedule's next run time. Pause, resume, or remove a schedule at any time. A scheduled run starts even while you work in the workspace, and opens as a new chat. Scheduled runs are fully autonomous: the agent never stops to ask, because nobody may be around to answer. See [Autonomous mode](/autonomous-mode). * If the previous run is still going when the schedule fires, Qualia skips that occurrence instead of queuing it. * After downtime, Qualia starts at most one run, rather than replaying every missed run. * Scheduled runs pause when the account reaches its [usage limit](/account-and-organization#check-your-usage). * If the pipeline's creator loses Owner or Editor access, its scheduled runs stop. # Search Source: https://docs.quadrillion.ai/search Find and replace text in the current tab, search chat history, and search across your workspace's files, chats, tasks, and knowledge. Find text in the tab you're working in, or search your whole workspace for files, chats, tasks, and knowledge. ## Find in the current tab Press **Cmd+F** (Mac) or **Ctrl+F** (Windows/Linux) to open the find bar in the current tab. Matches highlight as you type. * Press **Enter** for the next match and **Shift+Enter** for the previous one. * Press **Esc** to close the find bar. Use the buttons in the find bar to narrow the search: | Button | Effect | | - | - | | **Match case** | Matches capitalization exactly | | **Match whole word** | Skips matches inside longer words | | **Use regular expression** | Treats your search as a regular expression, such as `log\d+` | ### Replace text Click the arrow at the left of the find bar to show the replace field. You can also press **Cmd+Option+F** (Mac) or **Ctrl+H** (Windows/Linux). Type the replacement text, then press **Enter** to replace the current match, or **Shift+Enter** to replace all matches. ### Find in a notebook In a notebook, find searches code and Markdown cells. To include cell outputs, turn on **Search outputs** in the find bar. Click a match to jump to its cell. See [Notebooks](/notebooks) for more on cells and outputs. ### Find in Markdown and writeups When a Markdown file is in **Preview**, or a [writeup](/writeups) is in **Visual** mode, find searches the rendered text. Replace isn't available there. To search or replace Markdown syntax, switch to **Source** mode. ### Find in chat When the chat pane has focus, **Cmd/Ctrl+F** searches the visible conversation, your messages and the agent's replies. **Match case**, **Match whole word**, and **Use regular expression** work the same way. The agent's reasoning, command output, and web-search results are collapsed by default. To search them too, turn on **Expand content** in the find bar. While it's on, collapsed sections open as you search. ## Search across the workspace Press **Cmd+Shift+F** (Mac) or **Ctrl+Shift+F** (Windows/Linux) to open search in the sidebar. You can also click **Search** in the header of the Files section, or choose **Edit → Find in Workspace…**. Type your search. Results appear as you type, grouped into **Files**, **Agents** (chats), **Tasks**, **Knowledge** (claims, the findings Qualia records with their evidence), **Customization** ([skills](/skills), [rules](/rules), and pipelines), **Commands**, and **Settings**. To see only one category, choose it from the category menu, or click **View all … results** under a category. Click a result to open it. A file opens at the matching line, and a claim opens in [Knowledge](/knowledge). A skill, rule, or pipeline opens in **Customize agent**, and a command runs. Task results are listed for reference and don't open anything. Notebook results include visible text outputs and unsaved edits. > [!NOTE] > > In Qualia Cloud, workspace search doesn't cover file contents or file names. To search inside a file, open it and use **Cmd/Ctrl+F**. ### Search options Click the **Search options** button to turn on **Match case**, **Match whole word**, or **Use regular expression**. Regular expressions don't apply to tasks and knowledge. In Qualia Cloud, a regular-expression search matches chat titles only, not messages. ### Search previous chats A chat appears under **Agents** when your search matches its title or any message. Each result shows the matching messages, labeled **You** or **Agent**. Click the chat title to open the conversation, or click a message to jump to it. Search covers only the messages you see in the chat, not the agent's internal history. ### Replace across files To replace text in every matching file, press **Cmd/Ctrl+Shift+H**, or click **Toggle Replace** next to the search box. 1. Type the replacement text. 2. Click **Replace All**. 3. Confirm in the dialog. Files open in an editor, including notebooks, receive the replacements as unsaved changes. > [!WARNING] > > Replace All can't be undone for files that aren't open. Review your search results before you confirm. Replace across files isn't available in Qualia Cloud. ### Large workspaces If Qualia says results were limited or may be incomplete, narrow your search to find what you need. ## Keyboard shortcuts | Shortcut | Action | | - | - | | **Cmd/Ctrl+F** | Find in the current tab | | **Enter**, **F3**, or **Cmd/Ctrl+G** | Next match | | **Shift+Enter**, **Shift+F3**, or **Cmd/Ctrl+Shift+G** | Previous match | | **Cmd+Option+F** (Mac), **Ctrl+H** (Windows/Linux) | Replace in the current tab | | **Esc** | Close the find bar | | **Cmd/Ctrl+Shift+F** | Search across the workspace | | **Cmd/Ctrl+Shift+H** | Replace across files | # Agent Settings Source: https://docs.quadrillion.ai/settings/ai Set how new agents work, which commands they run without asking, and when they notify you. Open **Settings > Agents** to set defaults for new agents, decide what they can run without asking, and choose how they notify you. An agent is a chat that works on your behalf; see [Agents](/agents) for how agents run and delegate work. ## Research style Research style is a set of controls that shape how an agent approaches your request. The values under **Defaults for new agents** apply to every agent you start from then on. Every control starts at **Medium**. To change one chat without touching your defaults, click **Research style** in the chat box. A change you make while the agent works applies from its next step. Agents that another agent creates inherit some of these values; see [Parallel agents](/agents#parallel-agents). ### Curiosity Curiosity sets how far the agent explores beyond your explicit request. | Level | Behavior | | - | - | | **Low** | Stays focused on exactly what you asked | | **Medium** | Explores related areas when relevant | | **High** | Actively investigates tangential questions | ### Independence Independence sets how often the agent uses its own judgment instead of asking you. | Level | Behavior | | - | - | | **Low** | Asks for confirmation frequently | | **Medium** | Makes routine decisions, asks about significant ones | | **High** | Assumes most things, asks only about major choices | | **Auto ∞** | Runs in [autonomous mode](/autonomous-mode), with no approval cards and no questions | When you choose **Auto ∞**, Qualia dims Curiosity and Parallelism because autonomous mode ignores them. **Auto-approve commands** shows as on, because Auto ∞ already includes it. ### Parallelism Parallelism sets how readily the agent splits work across additional [agents](/agents). | Level | Behavior | | - | - | | **Low** | Usually keeps work in one agent | | **Medium** | Delegates independent work when it is useful | | **High** | Proactively splits suitable work across multiple agents | ### Verbosity Verbosity sets how much detail the agent writes in replies, findings, and reports. It doesn't change how much research the agent does. | Level | Behavior | | - | - | | **Low** | Short and direct, leading with the result | | **Medium** | Balanced detail | | **High** | Fuller explanations of methods, evidence, and uncertainty | ### Auto-approve commands Turn on **Auto-approve commands** in a chat's **Research style** menu to let the agent run shell commands and scripts without an approval card. The agent keeps your Independence level, so it can still ask you questions. Library installs, MCP tools set to **Ask each time**, and recursive deletes of a drive root or your home folder still ask first. Auto-approve is off by default. To turn it on for every new agent, choose **Run everything** under [When agents run commands](#when-agents-run-commands). ## Other defaults for new agents | Setting | What it does | Default | | - | - | - | | **Default agent execution mode** | **Notebook** runs code in notebook cells. **Script** runs standalone files and shell commands. See [Execution mode](/agents#execution-mode). | Notebook | | **New agents require user confirmation** | When on, an agent asks for your approval in chat before it creates another agent. | Off | ## Command approvals When an agent wants to run an untrusted shell command or script, a card above the message box shows you the exact command. * Click **Run** to run it once. * Click **Skip** to decline. Qualia tells the agent, and the agent continues. * Type a message instead to cancel the command and send your message as new instructions. * Open the arrow beside **Run** to always allow the command. If it has several parts, check the prefixes to trust, or check **All**, then click **Run**. Library installs and new-agent requests use the same **Run** and **Skip** card. ### When agents run commands Under **Settings > Agents > Permissions**, choose the default for new agents: | Option | Behavior | | - | - | | **Ask first** | You approve each command. No sandbox limits. | | **Run sandboxed commands** | Limits commands to allowed folders and sites, and runs them without asking. Available only where this machine can run the sandbox. | | **Run everything** | Never asks and applies no sandbox limits. This turns on auto-approve for new agents. | Chats you've already started keep their own auto-approve setting. While your default Independence is **Auto ∞**, Qualia locks this choice to **Run everything**. ### Always-allowed commands Expand **Always-allowed commands** to see the command prefixes you trusted with **Always allow & run**. These run without asking, whichever option you picked above. * Add a prefix yourself, such as `git status`, or remove one to require approval again. * Approvals are specific to your operating system. * Risky flags still ask first, such as `-rf` on `rm`. * Shells and inline scripts can't be always allowed, because that would let any command run unattended. For example, approving `python script.py` doesn't approve `python -c "..."`. ### Other permissions * **Auto-approve GPU requests** (Qualia Cloud): lets agents add GPUs without asking, up to an hourly price. Choose **Always ask**, **$2/hr**, **$10/hr**, **\$50/hr**, or **Any price**. The default is **Always ask**. * **Sandbox limits**: set the folders agents can edit, the files they can never edit, and the sites their commands can reach. * **Computer use** (desktop, experimental): lets agents open and use apps on your computer. You approve each app the first time a chat uses it, unless the chat is autonomous. ## Search and chat | Setting | What it does | Default | | - | - | - | | **Web search** | Lets agents search the web for documentation and references. When off, agents use only local context. | On | | **Show message suggestions** | Offers suggested follow-up messages in chat. | On | | **Messages interrupt waiting agents** | A message ends an agent's wait on a run, task, other agent, or timer, so the agent reads it right away. When off, your message waits until the wait ends. | On | | **Queued messages** | **Next step** inserts queued messages before the agent's next step. **New turn** holds them until the agent finishes and sends each as a new turn. | Next step | ### Web search with your own keys If you use your own OpenAI or Anthropic key under **Settings > Models > Provider access**, choose how agents on those models search under **Web search with your own keys**: * **Provider search** (default): agents search through the provider, under your agreement with it. * **Qualia search**: every model searches through Qualia. The control appears only on bring-your-own-key accounts; see [API keys](/settings/api-keys). ## Notifications In a browser, including Qualia Cloud, click **Enable notifications** under **Browser notifications**, then choose **Allow** in your browser's prompt. Qualia also offers this when an agent first asks for your input. After you allow it, click **Send test notification** to check delivery. | Setting | What it does | Default | | - | - | - | | **Notify when an agent needs input** | Alerts you when an agent asks a question or needs command approval while Qualia is unfocused. Click the alert to return to that chat. | On | | **Notify when agents finish** | Alerts you when all agents in the workspace have finished while Qualia is unfocused. | On | | **Agent interaction sounds** | Plays sounds when agents need input or finish. | On | > [!NOTE] > > Browser alerts arrive only while the Qualia tab stays open and connected in a supported desktop browser. Grant permission separately in each browser you use. If alerts don't appear, check your browser's site settings and your system's Focus or Do Not Disturb settings. ## Advanced | Setting | What it does | Default | | - | - | - | | **Max search results** | Caps the results an agent's search tool returns. | 10,000 | | **Compaction threshold** | Summarizes older chat history once a conversation passes this many tokens. Models with smaller context windows compact sooner. The minimum is 150,000. | 500,000 | ## Agent models Set agent models under **Settings > Models**: * **Agent Model** is the model for the agents you start. If you never choose one, Qualia uses **Auto**, which picks a strong model for you. * **Sub-agent model**, under **Advanced model overrides**, is the model for agents that other agents create. Turn on **Use parent agent** to reuse the creating agent's model instead. A faster, cheaper model often suits these focused tasks. Changing **Agent Model** also changes existing chats, unless you picked a model in that chat's model selector. A chat with an explicit pick keeps it until you change it there. To pick a model for one chat, see [Choose a model](/chat-and-ai#choose-a-model). ## Related pages * [Rules](/rules): persistent instructions that apply to every chat. * [Skills](/skills): reusable workflows agents follow for a specific kind of task. * [Autonomous mode](/autonomous-mode): let an agent work without approvals or questions. * [MCP integrations](/mcp-integrations): connect agents to external tools. * [Appearance settings](/settings/appearance): chat display options. # Sign-in and API keys Source: https://docs.quadrillion.ai/settings/api-keys Sign in to Qualia, end sessions you don't recognize, and route model calls through your own provider keys or endpoints. Sign in to Qualia to use your account's models, then add your own provider keys if you want a provider to bypass Quadrillion. You configure provider keys in **Settings** > **Models** > **Provider access**. ## Sign in to Qualia The first time you open the desktop app, choose a **Continue with** option, or enter your work email and choose **Continue with SSO**. Qualia opens your browser to finish. When you are done, choose **Continue to Qualia** to return to the app. Signing in creates your account if you are new. In [Qualia Cloud](https://app.quadrillion.ai), the sign-in page offers the same options. After you sign in, Qualia returns you to the page you were opening. If sign-in fails, choose **Return to login** to retry. To sign in or out later on desktop, open **Settings** and choose the account menu at the bottom of the sidebar. Then choose **Sign in** or **Sign out**. You can also sign in from the notice above chat. ### Activate an enterprise deployment On an enterprise deployment, choose **enter your activation key** on the sign-in screen. Paste the key your administrator gave you and choose **Activate**. Activation needs internet access. If Qualia rejects the key, ask your administrator to check it. ### Sign in to the quad-code terminal app In quad-code, the Qualia terminal app, press **Enter** on the welcome screen to sign in through your browser. Later, use **Ctrl+K** > **Account**. To sign in from another device, press **P** and paste the sign-in token back into the terminal. Press **M** to manage sessions. ## Manage sessions Each sign-in to the desktop app or the `qualia` CLI is a session. To review them, choose **Manage sessions** from the account menu at the bottom of the **Settings** sidebar. This opens **Security** in [Qualia Cloud Settings](https://app.quadrillion.ai/settings/security). **Security** lists this browser and each desktop and terminal app session, with when it was last active. Choose **Sign out** beside a session to end its access, or **Sign out all** to end every one. Don't leave a session you don't recognize signed in, because it can use your account's models. ## Use your own provider keys Qualia routes model calls through Quadrillion by default. To use your own key for OpenAI, Anthropic, or Google Gemini, open **Settings** > **Models** > **Provider access** and choose that provider's auth mode: * **Quadrillion proxy** keeps the provider on your Qualia account, or on your activation on an enterprise deployment. * **API key or custom endpoint** calls the provider with your own key, a [custom endpoint](#custom-provider-endpoints), or both. * **Azure Entra ID** and **Azure (API key)** call Azure deployments. See [Azure endpoints](#azure-endpoints). You set each provider separately, so you can bring your own Anthropic key and keep OpenAI on Quadrillion. A status line above each provider shows which route is in effect. To get a Google Gemini key, open [Google AI Studio](https://aistudio.google.com/apikey). ### Custom provider endpoints To route a provider to an OpenAI-, Anthropic-, or Gemini-compatible endpoint, choose **API key or custom endpoint** and set that provider's base URL. Add the provider API key if the endpoint needs one. * Leave the base URL blank to use the provider's default endpoint. * Use an `http` or `https` URL, and include any required path prefix, such as `/v1` for OpenAI-compatible endpoints. * Only use an endpoint you trust with your provider API key. * On a shared deployment, enter your own provider API key alongside a custom base URL. For a basic Bedrock-compatible gateway that accepts API key authentication, enter the matching provider API key and the gateway's base URL. ### Model ID aliases A self-hosted endpoint sometimes serves a model under a different ID than Qualia's catalog uses. For example, it might serve `claude-fable-5` as `claude-fable-5-CAVEAT[1m]`. Under the provider, choose **Add alias** under **Model ID aliases** and map the catalog model to the ID your endpoint expects. Requests to your endpoint use the alias, while the model picker still shows the catalog model. Aliases never apply when requests route through Quadrillion. ### Custom headers Some gateways in front of a provider, such as Portkey or Azure API Management, need extra HTTP headers. To add them, choose **Add header** under **Custom headers**, enter each name and value, and choose **Save headers**. Every request to that provider's endpoint then carries those headers. * After you save, Settings shows only the header names. Choose **Replace headers** to enter new values, or **Clear** to remove them. * You can't set `Host`, `Content-Length`, `Transfer-Encoding`, or `Connection`. * Custom headers never apply when requests route through Quadrillion. Custom headers don't change how Qualia sends the API key. If your gateway expects the key as a bearer token instead of Anthropic's `x-api-key` header, set **Anthropic API key header** to **Authorization: Bearer**. Qualia then sends the key only as `Authorization: Bearer [YOUR_KEY]`. For example, to use Anthropic through a Portkey gateway: 1. Paste the Portkey key as the **Anthropic API Key**. 2. Set **Anthropic API key header** to **Authorization: Bearer**. 3. If your gateway routes by provider, add an `x-portkey-provider: [PROVIDER_SLUG]` custom header. ### Short-lived keys from a command Some gateways, such as TrueFoundry, issue keys that expire after a few hours, so a saved key stops working. Instead, enter a shell command that prints a key in **OpenAI API key command**, **Anthropic API key command**, or **Google Gemini API key command**. For example: `timeout 30 llmgw get token`. These fields appear in **API key or custom endpoint** mode. * Qualia runs the command to get a key, and again whenever your endpoint rejects the key. * The command's key replaces the saved API key. The base URL, API key header, model ID aliases, and custom headers still apply. * The command must print only the key on standard output and exit with status 0 within 60 seconds. On a remote backend, it runs on the remote machine. * If the command fails, chat shows its exit status and error output. * A helper written for Claude Code's `apiKeyHelper` setting works unchanged. You can't set an API key command in Qualia Cloud or on a shared self-hosted deployment. For a TrueFoundry gateway: 1. Set the base URL to your gateway's `/api/llm` endpoint, such as `https://[TENANT].truefoundry.cloud/api/llm`. 2. Set **Anthropic API key header** to **Authorization: Bearer**. 3. Add a **Model ID alias** for each model you use, because TrueFoundry names models `[PROVIDER_ACCOUNT]/[MODEL]`. For example, map `claude-sonnet-5` to `my-anthropic/claude-sonnet-5`. ## Azure endpoints For Azure OpenAI or Anthropic models in Azure Foundry, set the auth mode to **Azure Entra ID** and enter the Azure endpoint URL. If your Azure deployment uses a key instead, choose **Azure (API key)** and paste the key alongside the endpoint URL. Azure Entra ID uses credentials already on the host, such as a managed identity, an Azure CLI login, or service-principal values (`AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, and `AZURE_CLIENT_SECRET`). Leave **Azure Entra scope** blank unless your administrator gives you a custom scope. ## Manage saved keys * Settings shows a saved key as a masked hint. You can't reveal the saved value, and in Qualia Cloud your keys stay private to your account. * To replace a key, focus its field and enter the new one. Qualia saves it automatically. * To remove a key, choose its **Clear credential** button. ## Where your keys are stored On desktop, Qualia encrypts saved keys and protects them with your operating system's keychain. If no keychain is available, Qualia saves them in a file only your user account can read, and a notice below the titlebar tells you. If saved keys stop working because the keychain is locked, see [Keychain locked](#keychain-locked). In Qualia Cloud, Qualia encrypts your keys and keeps them private to your account. ## Import keys from this computer When you connect the desktop app to a remote backend that has missing keys or different preferences, a banner offers **Review**. In **Import settings from this computer**, review the proposed changes and choose **Import**. Qualia never shows key values in the dialog. Existing remote keys stay unchanged. To connect to a remote backend, see [Getting started](/getting-started#connect-to-a-remote-backend). ## Fix common problems ### Invalid key errors * Check that you copied the key without extra spaces. * Check that the key is active in the provider's dashboard. * Check that you haven't exceeded the key's usage limits. If Qualia reports a sign-in error, choose **Sign in** from the account menu at the bottom of the **Settings** sidebar. In quad-code, use **Ctrl+K** > **Account**. ### Out of credits Qualia names the account that ran out, so you know who can fix it. * **If you use your own provider key**, the message points at your provider account. Add credits or update billing with that provider, then retry. * **If you use Quadrillion's API**, the message points at your Qualia plan. See [Account usage limits](/chat-and-ai#account-usage-limits) and [Change your plan](/account-and-organization#change-your-plan). * **If the message says the problem is on Qualia's side**, your account is fine. Try another model or contact support. ### Model not available * If chat says **Couldn't load models**, choose **Retry** to reload the list. * Check your sign-in in the account menu at the bottom of the **Settings** sidebar. * Check your provider credentials in **Settings** > **Models** > **Provider access**. * Some models require specific account access or waitlist approval. ### Keychain locked On desktop, Qualia protects saved keys with your operating system's keychain. If macOS asks for keychain access, choose **Always Allow**. If your keychain is locked when Qualia needs a stored key, the key shows as not configured. Your saved keys are intact. Unlock the keychain and reconnect, or enter the key again. A locked keychain never blocks saving a key. # Appearance Settings Source: https://docs.quadrillion.ai/settings/appearance Choose color themes, hide sensitive content while screen sharing, and change how the file explorer looks. Change Qualia's colors, file icons, and what shows on screen from **Settings → Appearance**. To open Settings, see the [settings overview](/settings/overview). ## Choose a theme Under **Theme**, set **Color mode** to **System**, **Light**, or **Dark**. **System** follows your operating system's setting. Pick a **Light theme** and a **Dark theme**. Qualia uses the one that matches the current color mode. Each theme has its own **Syntax highlighting** option for code. Leave it on **Same as theme** to match the theme's colors, or pick a different set. ## Create a custom theme Click **Create theme** to copy your current theme and change any color. Custom themes appear in the theme pickers under **Custom**. To change or remove a custom theme, click the **…** button beside it and choose **Edit** or **Delete**. Deleting a theme can't be undone. ## Hide content while screen sharing Turn on **Privacy mode** before you share your screen. It redacts content such as chat messages, comments, file and agent names, file contents, notebook cells and outputs, and images. Themes and privacy mode are saved per device, so another computer or browser keeps its own choice. ## Change the file explorer These **Interface** settings change the [file explorer](/file-explorer) and agent labels: | Setting | What it does | Default | | - | - | - | | **Explorer file icons** | **Standard** uses simple grayscale icons. **Complete** uses colored icons for each file type. | Complete | | **Show hidden files** | Shows dotfiles and hidden folders, such as `.gitignore` or `.config`. | Off | | **Show agent emojis** | Shows each agent's emoji in the [Chats sidebar](/agents#the-chats-sidebar) and on chat tabs. | Off | Operating-system files such as `.DS_Store` stay hidden even with **Show hidden files** on. You can also toggle hidden files from **File actions** in the file explorer. ## Related settings * [Agent settings](/settings/ai) control chat options such as **Show message suggestions**. * [Editor settings](/settings/editor) control fonts and code display. * [Tabs](/tabs) explains the workspace layout. # Databricks Integration Source: https://docs.quadrillion.ai/settings/databricks Connect a Databricks workspace so the agent can ask Genie questions and query your SQL warehouse as you. Connect your Databricks workspace so the agent can reach your lakehouse two ways. **Genie** answers plain-language questions over a curated Genie Space. The **SQL warehouse** runs queries from your notebooks. By default, Qualia queries Databricks as you, so Unity Catalog enforces your own permissions on both paths. For example, a table you can't `SELECT` stays hidden from the agent too. * **A SQL warehouse query** runs on the warehouse you select, so you need access to that warehouse as well as the data. * **A Genie question** runs on the compute inside the Genie Space, so you need permission to run the Space. Unity Catalog still decides which rows come back. > [!NOTE] > > Qualia has the Databricks permissions of whoever it queries as. To prevent writes, grant only read access to the tables you want to explore. ## Prerequisites Your workspace needs: * **Unity Catalog**, with at least one catalog you want Qualia to read. * **A SQL warehouse**. Serverless is recommended, because it starts in seconds where a classic warehouse can take minutes. * **A Genie Space** covering the tables the agent should answer questions about. * **Partner-powered AI features** turned on in workspace admin settings, because Genie doesn't answer without them. * **An OAuth application** registered in your Databricks account console. Databricks doesn't support automatic app registration, so you can't skip this. Registering the OAuth application needs access to the Databricks **account console**. In Qualia Cloud, saving the workspace configuration also needs an organization admin in Qualia. On desktop you configure it yourself. ## Required privileges Each person who signs in needs these in Databricks. None of them require workspace admin rights. | Privilege | On | Why | | - | - | - | | `databricks-sql-access` entitlement | The workspace | Query a SQL warehouse | | `CAN USE` | The SQL warehouse | Run queries | | `CAN RUN` | The Genie Space | Ask Genie questions | | `USE CATALOG` | Each catalog to read | Resolve three-level names | | `USE SCHEMA` | Each schema to read | Resolve three-level names | | `SELECT` | Each table to read | Read data | ## Register the OAuth application In the Databricks account console, create an OAuth application: **1. Copy the client ID** Note the **client ID**. Create a **client secret** too if you want a confidential client. A public client works without one. **2. Add the redirect URL** Add the **Redirect URL** shown in **Settings > Integrations > Databricks**. It must match exactly. * **If you use Qualia Cloud**, it ends in `/api/databricks/callback` on your Qualia API host. * **If you use the desktop app**, it defaults to `http://127.0.0.1:8020/api/databricks/callback`. **3. Grant the scopes** Grant `sql`, `genie`, `unity-catalog`, `offline_access`, `openid`, `email`, and `profile`. ## Connect Qualia Databricks settings have two steps. **Step 1, Workspace** points Qualia at a workspace and its OAuth application. **Step 2, Your access** is your personal sign-in, available once step 1 is saved. **1. Open Databricks settings** Go to **Settings > Integrations > Databricks**. **2. Describe the workspace** Enter the **Workspace URL** as a hostname, such as `dbc-a1b2c3d4-e5f6.cloud.databricks.com`, and pick its **Cloud**. **3. Paste the client credentials** Paste **OAuth client ID**, and **OAuth client secret** if you created one. Confirm **Redirect URL** matches what you registered. **4. Save** Click **Save and continue**. **5. Sign in** Under **Your access**, click **Sign in with Databricks** and authorize. **6. Choose what to query** Qualia runs **Workspace checks** and lists the Genie Spaces and SQL warehouses you can reach. Click **Use** next to one of each. A failed check names the grant that fixes it. You can also pick a **Default catalog and schema**, which sets what an unqualified table name resolves against. Generated SQL still uses full `catalog.schema.table` names, so the default is a convenience. What happens next depends on how you use Qualia: * **If you use Qualia Cloud**, every other member signs in individually from the same page. The workspace, warehouse, Genie Space, catalog, and schema are shared, and only an organization admin can change them. Each authorization stays personal. * **If you use the desktop app**, the configuration and the authorization are both yours alone. ### Finish sign-in by hand on desktop If desktop sign-in doesn't complete, paste the callback address yourself. After you authorize, copy the full address from the browser, even if the page shows a connection error, and paste it into **Callback URL**. You need this in three cases: * **The browser never returns to Qualia.** Click **Didn't return to Qualia? Paste the callback URL** under the sign-in button. * **Another program holds the callback port.** Qualia says another process is already using it. Free the port, or change the port in **Redirect URL**, save, and register the new URL in Databricks. * **Qualia runs on a remote backend or over SSH.** The callback lands on the machine running the browser, so paste it from there. ## Query as a service principal In Qualia Cloud, an admin can make every query run as one Databricks service principal instead of each person. Then the service principal's Unity Catalog grants apply to everyone, and no answer is attributable to an individual. Keep **Query as** on **Each person** if you want per-user governance. **Each person** is the default, and the only option on desktop. **Service principal** uses token federation, so you store no secret in Qualia. Qualia doesn't accept personal access tokens. ### Set up token federation **1. Create the service principal** In the Databricks account console, go to **User management > Service principals** and create one. Grant it `CAN USE` on the SQL warehouse, `USE CATALOG` and `USE SCHEMA` on the parents, and `SELECT` on the tables. **2. Switch Qualia to the service principal** In **Settings > Integrations > Databricks**, under **Authentication method**, set **Query as** to **Service principal**. Enter the **Service principal application ID**. Leave **Federation audience** blank unless your policy needs a specific one, then save. **3. Copy the policy values** A **Federation policy** section appears with the exact values Qualia signs, each with a copy button. They are specific to your organization. **4. Add the federation policy in Databricks** In the account console, open the service principal and add a federation policy with the copied values. Leave **token signature validation** empty. | Field | Value | | - | - | | Issuer URL | Exactly what Qualia shows, such as `https://api.quadrillion.ai`, with no trailing slash | | Subject | `qualia:org:[ORGANIZATION_ID]:databricks:[CONNECTION_ID]`, exactly as Qualia shows it | | Audiences | `databricks`, unless you set a different **Federation audience** | Under **Service principal**, nobody signs in individually, so step 2 has no **Sign in with Databricks** button. The warehouse and Genie Space pickers appear once you save, listing what the service principal can reach. ## Connect through Partner Connect If you start from the Qualia tile in Databricks **Partner Connect**, Databricks provisions the workspace details for you. An organization admin lands on the settings page with the workspace filled in, confirms it, then picks a warehouse and Genie Space. Partner Connect provisions Qualia Cloud only. Re-running the tile for a connected workspace updates it instead of creating a second connection. If your trial lapses, Qualia disables the connection without deleting it. Re-run the tile after you convert to restore it. ## Query from a notebook Ask the agent, or call the Databricks helper yourself from Python, R, or Julia: ```python Python theme={null} import qualia_databricks df = qualia_databricks.query("SELECT * FROM main.sales.orders LIMIT 100") ``` ```r R theme={null} df <- databricks_query("SELECT * FROM main.sales.orders LIMIT 100") ``` ```julia Julia theme={null} using DataFrames df = DataFrame(Qualia.Databricks.query("SELECT * FROM main.sales.orders LIMIT 100")) ``` Python returns a pandas DataFrame, R a `data.frame`, and Julia a column table that `DataFrame` accepts. All three take `catalog` and `schema` arguments that override the connection's defaults. To check which workspace, warehouse, catalog, and schema a notebook uses without exposing the token, call `qualia_databricks.workspace_info()`, `databricks_workspace_info()`, or `Qualia.Databricks.workspace_info()`. Pass values as parameters instead of building them into the SQL string, so the warehouse treats them as data and never as SQL: ```python Python theme={null} qualia_databricks.query( "SELECT * FROM main.sales.orders WHERE total > :floor", {"floor": 100}, ) ``` ```r R theme={null} databricks_query( "SELECT * FROM main.sales.orders WHERE total > :floor", list(floor = 100) ) ``` ```julia Julia theme={null} Qualia.Databricks.query( "SELECT * FROM main.sales.orders WHERE total > :floor"; parameters = Dict("floor" => 100), ) ``` In Python, `query` opens its own connection each time. For several statements, use `connect`, which returns a reusable DB-API connection: ```python theme={null} with qualia_databricks.connect() as connection: with connection.cursor() as cursor: cursor.execute("SELECT count(*) FROM main.sales.orders") total = cursor.fetchone()[0] ``` Always use the three-level `catalog.schema.table` name. A bare table name resolves against the connection's default, which is the most common cause of an unexpected "table not found". > [!NOTE] > > The R and Julia helpers cap a single result at 25 MiB, a Databricks API limit. Aggregate or add `LIMIT` in SQL instead of pulling a whole table into the kernel. Python has no such cap. The Python helper needs `databricks-sql-connector[pyarrow]`. Qualia Cloud kernels already have it. On desktop, the first query reports it missing and the agent offers to install it, once per kernel environment. ## Ask Genie With a Genie Space selected, the agent can ask it a question in plain language. The answer shows **Powered by Genie** with a link to the Space that produced it. Genie knows the joins and business definitions your admin curated, so it is often a better first stop than SQL against unfamiliar tables. Genie returns an answer to read, not data in your notebook. Use Genie to orient, then query through the helper when you need values to compute on. A Genie answer can't serve as [evidence](/knowledge), the runtime values that back a finding. ## Manage the connection * **Expired authorization**: if settings say your Databricks authorization expired, click **Sign in with Databricks** again. * **Rotate the client secret**: enter the new value in **OAuth client secret** and save. Leaving the field blank keeps the stored secret, and existing sign-ins survive the rotation. * **Disconnect**: removes your own authorization. In Qualia Cloud, other members stay connected. * **Remove**: under **Remove connection**, deletes the workspace configuration and every authorization it covers. In Qualia Cloud only an organization admin can do this. Query results stay in your notebook, and Genie answers stay in chat, after you disconnect. ## Troubleshooting | Symptom | Fix | | - | - | | "Could not reach Databricks at …" | Check **Workspace URL**. Enter the hostname only, with no path. | | Sign-in returns to a failure page | The redirect URL registered in Databricks doesn't exactly match **Redirect URL** in Qualia. | | No Genie Space listed | None exists, or you lack `CAN RUN` on it. Create Genie Spaces in Databricks. | | No SQL warehouse listed | You lack `CAN USE` on every warehouse. | | Genie returns nothing useful | The Space may not cover those tables, because Genie only sees what its Space includes. | | Queries are slow to start | A classic warehouse is starting. Switch to serverless if that matters. | | "This Databricks connection is disabled" (Cloud) | A Partner Connect trial ended. Re-run the Qualia tile in Partner Connect, or remove the connection and set it up again. | | The authorization keeps expiring | Grant the `offline_access` scope to the OAuth application. | | "Could not exchange the Databricks workload identity assertion" | The federation policy doesn't match. Compare its issuer, subject, and audience with what Qualia shows, character for character, and confirm it is on the right service principal. | | A keychain message, or Databricks shows disconnected (desktop) | Unlock your keychain and retry, or sign in again. Your connection is intact. | | `databricks-sql-connector is not installed` | Ask the agent to install it. It stays installed for that environment. | | The connector goes missing again (desktop) | Add `databricks-sql-connector[pyarrow]` to the managed environment's package list, so that a rebuild keeps it. | # Editor Settings Source: https://docs.quadrillion.ai/settings/editor Set the editor font, line display, autocomplete, and code intelligence, plus how notebook cells show results. Use **Settings > Editor** to change how code looks and which suggestions appear as you type. This page also covers the cell display options in **Settings > Notebooks**. ## Font | Setting | What it controls | Default | | - | - | - | | **Editor font** | Monospace font for code and Markdown editors and notebook outputs | Inconsolata | | **Editor font size** | Text size, from 10 to 22 px | 13 px | | **Editor line height** | Spacing between lines, from **1.2 (Compact)** to **2.0 (Relaxed)** | 1.5 | ## Display | Setting | What it controls | | - | - | | **Line numbers** | Show line numbers in code cells and the editor | | **Line wrapping** | Wrap long lines instead of scrolling horizontally. Press **Alt+Z** to toggle it. | | **Replaceable preview tabs** | Open files in a reusable preview tab. Double-click a tab or choose **Keep Open** to keep it. Off by default. | ## Code completion In the **Autocomplete** group, **Code completion** chooses where inline suggestions come from: | Option | Behavior | | - | - | | **Traditional autocomplete** (default) | Standard IDE completion of symbols and methods | | **LM autocomplete** | AI suggestions you accept with Tab | | **Off** | No automatic completions | LM autocomplete uses nearby cells and their outputs to suggest relevant code. **LM autocomplete profile** chooses between **Fast** (default) and **Smart** completions. LM autocomplete requires signing in to Qualia. It isn't available when you use your own model provider keys. See [Sign-in and API keys](/settings/api-keys). ## Code intelligence Turn on the **basedpyright** language server for completion, hover, go-to-definition, and diagnostics in Python files and notebook cells. It is marked **Experimental**. See [Navigate code](/notebooks#navigate-code) for the shortcuts it enables. Under **Formatters and linters**, turn individual tools on or off. Formatters rewrite your code, and linters show problems in the editor. To add your own, list them in `linters.toml`. ## Notebook cell display These settings live in **Settings > Notebooks**: | Setting | What it controls | | - | - | | **Execution time format** | How cell run times appear: **Compact (e.g., 5025.00s)** or **Full (e.g., 1h 23m 45s)** | | **CSV rows per page** | Rows per page when you view a CSV file: **100**, **1,000** (default), or **10,000**. Larger pages take longer to load. | | **LaTeX rendering** | Render math in Markdown and chat messages | With LaTeX rendering on, `$...$` renders inline math and `$$...$$` renders display math. Currency amounts such as `$5` stay as text. To write inline math that also works in chat and writeups, use `$$...$$`. **Settings > Notebooks** also holds **Default Kernel** (see [Kernel Toolbar](/kernel-toolbar#set-the-default-kernel)) and **Custom tags** (see [Tag cells](/notebooks#tag-cells)). ## Related settings * [General settings](/settings/general): environments and terminal shell * [Agent settings](/settings/ai): agent behavior, including **Max search results** * [Appearance settings](/settings/appearance): themes and layout # General Settings Source: https://docs.quadrillion.ai/settings/general Set your layout, response language, and updates, and choose the Python, R, Julia, and shell environments your workspace uses. Use **Settings > General** to choose how workspaces open, which language Qualia replies in, and how the desktop app updates. This page also covers **Settings > Environments**, where you pick the interpreters and shell your workspace uses, and email verification for Qualia Cloud. ## Layout mode Choose how every workspace opens: * **Chat-first** (default) centers on managing agents. Files and knowledge open beside the chat as they come up. Click **Show files** in the chat header to see the files an agent worked on. * **Editor-first** centers on editing files, with agents working around your project, as in an IDE. The setting applies to every workspace. The desktop app and Qualia Cloud keep separate layout settings, so you can work editor-first on desktop and chat-first in the cloud. In the cloud, the setting follows you to other browsers and devices. ## Response language **Response language** sets the language agents reply in. **Auto (system default)** matches your system language, or you can pick one, such as Español or 日本語. This setting changes agent replies, not the app's interface language. ## Updates **Check for updates automatically** is on by default on the desktop app. Turn it off to stop background checks, or click **Check now** to look for an update at any time. You can also choose **Qualia > Check for Updates…** on macOS, or **Help > Check for Updates…** on Windows and Linux. When an update is available, choose **Download**, then **Restart** to install it. In Qualia Cloud, an open tab shows **A new version is available** when Qualia updates. Click **Refresh** to load it. ## Python environment The interpreter settings live in **Settings > Environments > Interpreters**. They appear on the desktop app when a workspace is open, because Qualia Cloud manages environments for you. **Default Python Environment** sets the interpreter for new notebooks. Pick from the Python installations Qualia detects, such as Homebrew, pyenv, Conda, and virtual environments. To choose the kernel for notebooks that don't have a saved kernel, use **Settings > Notebooks > Default Kernel**. See [Set the default kernel](/kernel-toolbar#set-the-default-kernel). ### Create a virtual environment To give your workspace its own Python environment, click **Create .venv** under **Workspace virtual environment**. Qualia creates `.venv` in the workspace root, installs your project's dependencies, and selects the new environment. The row describes what the button will do before you click it. Qualia reads dependencies from the workspace root: * **`pyproject.toml`** with a `[project]` table: Qualia installs it with uv, using the locked versions in `uv.lock` if one exists. Set the Python version with `requires-python` or `.python-version`. * **`requirements.txt`**: Qualia installs the listed packages. * **Neither**: Qualia creates an empty environment that can run notebooks. If uv isn't installed, Qualia skips `pyproject.toml` dependencies and warns you. > [!NOTE] > > Running `uv sync` yourself later removes `ipykernel`, because your project doesn't declare it. Qualia marks the environment **ipykernel missing** and reinstalls it when you select it again. To keep it, run `uv add --dev ipykernel`. To remove the environment, click **Delete .venv**. ## Julia and R environments **Julia Environment** and **R Environment** set the installations Qualia uses for Julia and R notebooks, such as a Juliaup version or a system R. Their kernels appear in the [kernel picker](/kernel-toolbar#choose-a-kernel) in their own groups. To have Qualia search more folders for kernels and environments, add them under **Settings > Environments > Kernel discovery**. ## Terminal shell On the desktop app, set **Settings > Environments > Terminal > Terminal shell** to the shell new terminals use, such as `/bin/zsh` or `cmd.exe`. See [Choose a shell](/terminal#choose-a-shell). ## Environment variables in kernels and shell commands On the desktop app, kernels, terminals, and agent shell commands inherit your environment. Qualia withholds variables whose names contain `KEY`, `SECRET`, `TOKEN`, `PASSWORD`, or `CREDENTIAL`, so that your credentials never reach child processes by accident. If your code needs one of those variables, such as `MY_SITE_TOKEN`, add its name under **Settings > Environments > Secret passthrough**. This setting is desktop-only. ## Notifications To choose when Qualia notifies you about agents, see [Agent settings](/settings/ai#notifications). ## Account Open the account menu at the bottom of the **Settings** sidebar to sign in, sign out, or manage sessions. See [Sign-in and API keys](/settings/api-keys) for details. ## Verify your email > [!NOTE] > > Email verification applies to Qualia Cloud. Signing in with Google, or with your organization's single sign-on on a domain it has verified, proves your address. GitHub, Apple, and organization guest sign-ins show an **Unverified** badge until you verify. 1. Open the account menu at the bottom of the **Settings** sidebar and choose **Verify email**. 2. Open the link Qualia emails you while signed in to the same account. If you open the link while signed in to a different account, choose **Switch Account** on the page that appears. The link works for 24 hours, and only the newest link you requested works. Verification matters for [shared workspaces](/shared-workspaces). You need a verified address to share a workspace, and a workspace shared with your address opens only after you verify it. If a shared workspace prompted the verification, confirming the link takes you straight to it. ## Related settings * [Editor settings](/settings/editor): code editing preferences * [Agent settings](/settings/ai): agent behavior and notifications * [Kernel toolbar](/kernel-toolbar): kernel controls in notebooks # Settings Overview Source: https://docs.quadrillion.ai/settings/overview Open Settings, find an option, and jump to the page that explains each section. Use Settings to change how Qualia looks, how agents behave, and which services it connects to. ## Open Settings Open Settings in any of these ways: * Press **Cmd+,** (Mac) or **Ctrl+,** (Windows/Linux). * Click the gear in the top-right title bar and choose **Qualia settings**. * Choose **File → Settings...**. In the macOS desktop app, choose **Qualia → Settings...** instead. Settings opens in a dialog over your workspace. Press **Esc** or click the close button to return to your work. ## Find a setting Type in **Search settings…** at the top of the dialog. The search matches setting names, descriptions, and related keywords, so `dark mode` finds the theme options. You can also find settings from [workspace search](/search#search-across-the-workspace) under its **Settings** category. Most settings save as soon as you change them. A form with a **Save changes** button, such as the [Databricks](/settings/databricks) connection, applies only when you click it. ## Settings sections | Section | What it controls | Docs | | - | - | - | | **General** | Layout mode, response language, onboarding, and updates | [General settings](/settings/general) | | **Appearance** | Themes, privacy mode, and file explorer display | [Appearance settings](/settings/appearance) | | **Agents** | Research style, permissions, web search, and notifications | [Agent settings](/settings/ai) | | **Models** | Default model and provider keys | [API keys](/settings/api-keys) | | **Editor** | Fonts, line display, autocomplete, and code intelligence | [Editor settings](/settings/editor) | | **Notebooks** | Default kernel, cell display, and custom cell tags | [Editor settings](/settings/editor#notebook-cell-display), [Tag cells](/notebooks#tag-cells), [Kernel toolbar](/kernel-toolbar) | | **Plotting** | Default Matplotlib style | [Set default plot style](/notebooks#set-default-plot-style) | | **Environments** | Python, Julia, and R interpreters, kernel discovery, and terminal shell | [General settings](/settings/general) | | **Integrations** | Slack, Databricks, Snowflake, GitHub, and Postgres | [Slack](/settings/slack), [Databricks](/settings/databricks), [Snowflake](/settings/snowflake), [Postgres](/mcp-integrations#connect-postgres), [MCP integrations](/mcp-integrations) | | **Licenses** | Third-party software notices. Search by package name or license, such as `MIT`. | | For usage and plans, see [Check your usage](/account-and-organization#check-your-usage). ## Settings scope Settings apply to every workspace you open. For example, turning on **Show hidden files** shows dotfiles in all of them. **Layout mode** is kept separately for the desktop app and Qualia Cloud. Themes and privacy mode are saved per device, so another computer or browser keeps its own. To change agent behavior for one workspace only, use workspace files instead: * [Rules](/rules), persistent instructions the agent follows, such as an `AGENTS.md` file. * [Skills](/skills), reusable step-by-step procedures stored in your workspace. # Slack Integration Source: https://docs.quadrillion.ai/settings/slack Connect Slack so agents post updates there and you can chat with Qualia from any channel. Connect Slack to get agent updates in threads and to start or steer chats without leaving Slack. Agents in [autonomous mode](/autonomous-mode), which run for hours without asking for approval, use Slack to report progress and findings. Slack works the same in the desktop app and in Qualia Cloud. You connect once from settings, then invite the bot to the channels you want it in. ## Connect Slack **1. Open Slack settings** Go to **Settings > Integrations > Slack**. **2. Authorize Qualia** Click **Connect to Slack** and approve the request in the Slack window that opens. **3. Invite the bot** When the status shows **Connected**, invite **@Qualia** to each channel you want it to join. In Qualia Cloud, the connection belongs to the workspace where you started it. New DMs and @-mentions create chats in that workspace. If you reconnect from another Qualia workspace, new conversations go there instead. Existing threads keep routing to their original workspaces. ### One Qualia account per Slack account You can connect a Slack account to only one Qualia account at a time. If you authorize the same Slack account from a second Qualia account, the connection moves there. Reconnecting from the first account moves it back. While the connection is elsewhere, Qualia can't answer chats the first account started in Slack. If someone replies in one of those threads, Qualia answers that the account moved. ## Choose where Slack messages run Under **Where Qualia runs**, choose where messages from Slack execute. The default, **Qualia Cloud**, answers whether or not your computer is on. Choose **This machine** when a Slack request needs data or compute that only exists on your computer. Qualia then answers only while it is running on that machine: * If Qualia isn't running, Slack replies with a note asking you to start it. Qualia doesn't queue the message, so send it again once Qualia is running. * If your machine sleeps mid-response, the run stops and may leave a partial reply. Ask again once it wakes. ## Choose which chats post to Slack Each Slack-backed chat has its own thread. To turn updates on or off for a chat, toggle **Notify in Slack** in the chat tab menu or in an agent's right-click menu. If Slack isn't connected yet, the menu shows **Connect Slack…** instead. Chats you start from Slack post there automatically. A chat you start in the app creates a direct-message thread the first time it posts. In a shared cloud workspace, only the owner can change **Notify in Slack**, and only the owner's chats can post updates. See [shared workspaces](/shared-workspaces) for roles. Agents post progress updates, findings, completion notices, and questions with answer buttons. ## Chat from Slack * **Start a conversation**: @-mention the bot in a channel it has joined, or DM it. Qualia creates a chat and replies in a thread. * **Reply in a thread**: anyone in the Slack workspace can reply. The agent reads the reply and adjusts its work. * **Address another agent**: mention a uniquely named workspace agent in the thread. That agent answers in the same thread. * **Answer questions**: fill in the answers in the Slack message and click **Submit**. Only Slack users who connected Slack from their own Qualia account can start a conversation. Thread replies work for anyone in the workspace. ## Let the agent read and post in Slack Once Slack is connected, the agent can list channels, read channels and threads, and post messages during any chat. It reads by channel and thread, and can't search Slack. Which channels the agent can read depends on where the turn started: * **A chat you started in Qualia Cloud** sees what you see in Slack, including your private channels. * **A turn started from a Slack thread** sees only channels Qualia was invited to, because anyone can reply in that thread. * **The desktop app** offers these tools when **Where Qualia runs** is **This machine**, and sees only channels Qualia was invited to. Posts always go out as the Qualia app, never as you. The agent confirms the wording and destination with you before sending anything you didn't dictate. To change whether each tool needs your approval, open **Customize agent > MCP Servers** and select **Slack**. See [MCP integrations](/mcp-integrations#set-tool-permissions) for the permission options. ## Disconnect Slack To revoke access, click **Disconnect** next to **Disconnect Slack** in Slack settings. Removing the Qualia app from your Slack workspace also disconnects it. After you disconnect, agents stop posting to Slack. Agents in autonomous mode keep working but no longer report progress. You can reconnect at any time. ## Troubleshooting | Symptom | Fix | | - | - | | The bot doesn't post | Invite the bot to the channel, check that Slack settings show **Connected**, and check the chat's **Notify in Slack** toggle. | | The bot ignores an @-mention | The sender hasn't connected Slack from their own Qualia account. Ask them to connect, or reply in an existing agent thread instead. | | The bot says your machine is offline | **Where Qualia runs** is **This machine** and Qualia isn't running there. Start Qualia and resend, or switch to **Qualia Cloud**. | | A thread says the account moved | Someone authorized this Slack account from another Qualia account. Reconnect from the original account to move it back. | # Snowflake Integration Source: https://docs.quadrillion.ai/settings/snowflake Connect a Snowflake account with per-user OAuth so the agent queries your data as you, including through single sign-on. Connect your Snowflake account so the agent can query it from a notebook as you, not as a shared service account. Snowflake enforces your own grants, and every query runs under one role your admin chooses. Sign-in works for accounts with no password to give. If your account signs in through Microsoft Entra, Okta, or another identity provider, Snowflake hands you off to that provider and back. Nobody types a Snowflake password into Qualia. > [!NOTE] > > Qualia has your Snowflake permissions under the chosen role. To prevent writes, make that role read-only and list only it in `ALLOWED_ROLES_LIST`. ## Prerequisites * **A Snowflake account** where someone with `ACCOUNTADMIN` can create a security integration. On a trial account you have it. In an enterprise account, ask whoever owns it. * **A role** for Qualia sessions. One role covers every sign-in. * **A warehouse** that role can use. * **No network policy that blocks Qualia.** Qualia Cloud can't reach an account behind an IP allowlist, so connect from the desktop app instead. Creating the security integration needs `ACCOUNTADMIN` once. In Qualia Cloud, saving the connection also needs an organization admin in Qualia. ## Required privileges Each person who signs in needs these in Snowflake: | Privilege | On | Why | | - | - | - | | The role named in the connection | Their user | Snowflake issues the token for exactly that role | | `USAGE` | The warehouse | Run queries | | `USAGE` | Each database and schema to read | Resolve names | | `SELECT` | Each table to read | Read data | ## Create the security integration An `ACCOUNTADMIN` runs one statement by hand. Qualia Cloud and the desktop app each need their own integration. > [tab] Qualia Cloud > > **1. Copy the redirect URL** > > Open **Settings > Integrations > Snowflake** and click the copy button next to **Redirect URL**. Snowflake matches it character for character, so paste it rather than retyping it. > > **2. Create the integration** > > Run this in Snowflake, replacing the bracketed values: > > ```sql theme={null} > CREATE SECURITY INTEGRATION QUALIA_OAUTH > TYPE = OAUTH > OAUTH_CLIENT = CUSTOM > OAUTH_CLIENT_TYPE = 'CONFIDENTIAL' > OAUTH_REDIRECT_URI = '[REDIRECT_URL_FROM_QUALIA]' > OAUTH_ENFORCE_PKCE = TRUE > OAUTH_ISSUE_REFRESH_TOKENS = TRUE > OAUTH_REFRESH_TOKEN_VALIDITY = 7776000 > ALLOWED_ROLES_LIST = ('[READ_ONLY_ROLE]') > PRE_AUTHORIZED_ROLES_LIST = ('[READ_ONLY_ROLE]') > IS_AGENTIC = TRUE > ENABLED = TRUE > COMMENT = 'Qualia (Quadrillion) - per-user read access'; > ``` > > **3. Get the client ID and secret** > > Run `SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS('QUALIA_OAUTH');` and keep the client ID and secret for the next section. > [tab] Desktop app > > **1. Check the redirect URL** > > Open **Settings > Integrations > Snowflake** and copy **Redirect URL**. It is `http://127.0.0.1:8021/` unless you changed the port. > > **2. Create the integration** > > Run this in Snowflake, replacing the bracketed value: > > ```sql theme={null} > CREATE SECURITY INTEGRATION QUALIA_OAUTH_DESKTOP > TYPE = OAUTH > OAUTH_CLIENT = CUSTOM > OAUTH_CLIENT_TYPE = 'PUBLIC' > OAUTH_REDIRECT_URI = 'http://127.0.0.1:8021/' > OAUTH_ALLOW_NON_TLS_REDIRECT_URI = TRUE > OAUTH_ENFORCE_PKCE = TRUE > OAUTH_ISSUE_REFRESH_TOKENS = TRUE > OAUTH_REFRESH_TOKEN_VALIDITY = 7776000 > ALLOWED_ROLES_LIST = ('[READ_ONLY_ROLE]') > IS_AGENTIC = TRUE > ENABLED = TRUE > COMMENT = 'Qualia desktop (Quadrillion) - per-user read access'; > ``` > > `OAUTH_ALLOW_NON_TLS_REDIRECT_URI` is required even for a loopback address, because Snowflake refuses any `http` redirect URI without it. > > **3. Get the client ID** > > Run `SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS('QUALIA_OAUTH_DESKTOP');` and keep the client ID. Ignore the secret, because a public client doesn't use one. > > If another program already uses port 8021, set the `SNOWFLAKE_CALLBACK_PORT` environment variable before starting Qualia. Then register the redirect URL Qualia shows instead. ### What the parameters do * **`ALLOWED_ROLES_LIST` is the access bound.** Snowflake blocks every role not on the list for this integration. * **`PRE_AUTHORIZED_ROLES_LIST`** skips the consent screen for the listed roles. Snowflake supports it for confidential clients only, so the desktop integration leaves it out. * **`OAUTH_ISSUE_REFRESH_TOKENS`** keeps you signed in. After `OAUTH_REFRESH_TOKEN_VALIDITY` lapses, at most 90 days, everyone signs in again. * **`IS_AGENTIC`** marks these sessions as agent access in your audit history. Don't set `OAUTH_USE_SECONDARY_ROLES` to `IMPLICIT`, because that activates each user's default secondary roles and bypasses `ALLOWED_ROLES_LIST`. Leave it unset so it keeps its default, `NONE`. ## Connect Qualia Snowflake settings have two steps. **Step 1, Account** points Qualia at your account and its security integration. **Step 2, Your access** is your personal sign-in, available once step 1 is saved. **1. Open Snowflake settings** Go to **Settings > Integrations > Snowflake**. **2. Enter the account identifier** Enter the part of your Snowsight URL before `.snowflakecomputing.com` in **Account identifier**. Both the `[ORG]-[ACCOUNT]` form and the legacy `[LOCATOR].[REGION]` form work. **3. Paste the client credentials** Paste **OAuth client ID**. If you use Qualia Cloud, also paste **OAuth client secret**. The desktop app has no secret field. **4. Set the role and warehouse** Enter the **Role** you listed in `ALLOWED_ROLES_LIST`, and optionally a **Warehouse**, **Default database**, and **Default schema**. The warehouse applies to queries that don't name one. **5. Save** Click **Save connection**. Then sign in: * **If you use Qualia Cloud**, click **Sign in with Snowflake** under **Your access** and authorize. Each other member of your organization signs in the same way. The account configuration is shared, but each authorization is personal. * **If you use the desktop app**, there is no sign-in button. Your first query opens the browser to sign in, and later queries and new kernels don't ask again. If your account uses single sign-on, Snowflake sends you to your identity provider during sign-in. > [!NOTE] > > Changing the role, the account, or the OAuth client signs everyone out, so everyone must authorize again. ## Query from a notebook Ask the agent, or write the query yourself: ```python theme={null} import qualia_snowflake df = qualia_snowflake.query("SELECT * FROM analytics.public.orders LIMIT 100") ``` The result is a pandas DataFrame in the notebook kernel, the process that runs your code. Qualia can then trace a [claim](/knowledge), a finding recorded in your project, back to the data behind it. On desktop, the agent installs the Snowflake connector before your first query. ## Disconnect or remove the connection * **Disconnect** under **Your access** (Qualia Cloud) revokes your own saved authorization. Other members stay connected. * **Remove** under **Remove connection** deletes the account configuration. In Qualia Cloud it also removes every member's authorization. On desktop, **Remove** clears the settings but not the Snowflake connector's cached sign-in. To revoke that immediately, revoke the grant in Snowflake. ## Troubleshooting | Symptom | Fix | | - | - | | "Redirect URI must point at this application" | The URL you registered isn't the one Qualia serves. Use the copy button next to **Redirect URL**. | | Snowflake shows an invalid redirect URI | `OAUTH_REDIRECT_URI` doesn't byte-match the URL Qualia sent, and a trailing slash counts. Run `ALTER SECURITY INTEGRATION QUALIA_OAUTH SET OAUTH_REDIRECT_URI = '[REDIRECT_URL_FROM_QUALIA]';`. | | "Your Snowflake authorization expired" | The 90-day refresh token lapsed, or someone revoked the grant in Snowflake. Click **Sign in with Snowflake** again. | | Sign-in works but queries fail on the role | The role must be granted to that user and listed in `ALLOWED_ROLES_LIST`. | | Snowflake refuses the connection entirely | Check for an account-level network policy. Qualia Cloud can't connect through an IP allowlist. On desktop, a policy that allows your office or VPN range works. | | A browser opens on every query (desktop) | Reinstall `snowflake-connector-python[pandas,secure-local-storage]>=4.1.0` so that the connector can remember your sign-in. | # Shared Workspaces Source: https://docs.quadrillion.ai/shared-workspaces Share a Qualia Cloud workspace with teammates as Viewers, Commenters, or Editors, comment on notebooks and knowledge, and chat with agents together. Share a Qualia Cloud workspace so teammates can view your research, comment on it, or work in it with you. A workspace holds your files, notebooks, chats, tasks, and knowledge. > [!NOTE] > > Sharing is available in Qualia Cloud only. Desktop workspaces live on your computer and can't be shared. ## Roles Each person you add gets one role. The workspace owner is the person who created it. | Role | What they can do | | - | - | | **Viewer** | View files, notebooks, chats and their full history, tasks, and knowledge. They can't change anything or message agents. | | **Commenter** | Everything a Viewer can do, plus leave [comments](#comments) on notebook cells and knowledge. | | **Editor** | Edit files, writeups, tasks, and knowledge, run notebooks, start chats, run agents and pipelines, comment, and export the workspace. | | **Owner** | Everything an Editor can do, plus use the terminal, manage sharing, settings, credentials, and billing, and delete the workspace. | The workspace owner pays for usage in the workspace. Some limits apply to Editors: * Only the owner can use the integrated [terminal](/terminal). Editors can still ask their agents to run shell commands. * Pipelines and their schedules belong to the person who created them. Runs use the creator's current access, and scheduled runs stop if the creator loses Editor access. People who join through a link always join as Viewers. To give someone the Editor or Commenter role, add them by email. ## Share a workspace You must own the workspace, and your email address must be [verified](/settings/general#verify-your-email). Signing in with Google verifies it automatically, and so does organization single sign-on (SSO) on a domain your organization has verified. **1. Open the share dialog** Click **Share** at the top right of the workspace, or choose **File → Share Workspace…**. **2. Add people by email** Type one or more email addresses in **Add people by email**. Choose **Viewer**, **Commenter**, or **Editor**, add an optional message, and click **Send**. Each person gets an email with an **Open workspace** link. To share without sending email, clear **Notify people by email** first, then tell people yourself. **3. Choose who can open the link** Under **General access**, choose who can use the workspace link: * **Restricted**: only people under **People with access** can open the workspace. * **Anyone in \[YOUR\_ORGANIZATION] with the link**: members of your organization sign in and join as Viewers. This option appears only for organization workspaces. * **Anyone signed in with the link**: anyone with a Qualia account joins as a Viewer. * **Anyone with the link**: anyone can view the workspace read-only, without signing in. If an option is unavailable, the menu says why. For example, your organization may only allow sharing inside the organization. **4. Copy the link** Click **Copy link**. If the dialog says the link is only shown where it was created, choose **Reset link** to make a new one you can copy. To choose which tabs the link opens, turn on **Open with your tabs**. An address doesn't need a Qualia account yet. If your organization restricts sharing to members, the dialog tells you when an address isn't allowed. ### Anyone with the link **Anyone with the link** lets people view the workspace without a Qualia account. Visitors see chats, files, notebooks, command output, tasks, and knowledge, read-only. They can't edit, run code, comment, chat, or download files. Visitors see saved files, not unsaved [shared drafts](/file-explorer#edit-text-files-together-in-cloud). Don't rely on hiding a file to keep it private. Remove it from the workspace instead. To stop public viewing, switch to another **General access** option, or choose **Reset link**. A visitor with an old link sees **This view link is no longer available**. > [!WARNING] > > Viewers and anyone with a public link see every chat, file, notebook output, and piece of knowledge in the workspace. Share only workspaces whose contents suit that audience. ## Open a workspace shared with you Click **Open workspace** in the invitation email and sign in with the address the owner invited. If the owner didn't send an email, sign in with that address and find the workspace under **Shared with me** on the Workspaces page. * If you have no account, sign in with the invited address to create one for free. The workspace opens once you're in. * If you're signed in with a different address, Qualia says so and offers to switch accounts. You can't request access for another address, so ask the owner to share with it. * If you signed in with GitHub or Apple, Qualia asks you to [verify your email](/settings/general#verify-your-email) first. The verification link takes you straight to the workspace. * If the owner stops sharing or deletes the workspace while you have it open, you return to the Workspaces page with a note saying why. Shared workspaces appear under **Shared with me**, with their owner's name. While one is open, the title bar shows your role. To remove a shared workspace from your list, choose **Leave** from its menu. ## Work in a shared workspace Everyone with the workspace open sees notebooks, chats, and files change as they happen. Owners and Editors can [edit a notebook together](/notebooks#edit-a-shared-notebook-together), agents included, and [edit text files together](/file-explorer#edit-text-files-together-in-cloud). To see the latest knowledge, close and reopen it. Avatars in the title bar, and on files and chats, show who is connected and what they have open. ## Comments Comments are discussion threads attached to notebook cells and knowledge cards. Everyone with access sees them. Owners, Editors, and Commenters can write them. ### Leave a comment 1. Click **Comment** at the top right of the title bar (bottom right on mobile). 2. Hover over a notebook cell or knowledge card until it's outlined, then click it. 3. Type your comment and press **Enter**. Press **Esc** or click the exit button to leave comment mode. Pins, outlines, and threads show only in comment mode. ### Read and resolve comments * **Read** a thread by clicking its pin. To list every thread, including resolved ones and threads on items not on screen, choose **See All**. * **Resolve** a thread with the check in its header. A new reply reopens it. Owners, Editors, and Commenters can resolve or reopen any thread. * **Edit or delete** your own comments from the comment's hover menu. Owners and Editors can delete anyone's comment. ## Chats in shared workspaces Every chat belongs to the person who started it. Everyone with access can read every chat. Only Owners and Editors can start chats or message agents. Viewers and Commenters never message agents, even in a collaborative chat. By default, only a chat's creator can message its agent. To let teammates join, the creator clicks the **Chat access** button beside the chat tabs and chooses **Everyone in this workspace**. To turn collaboration off, the creator chooses **Only you**. The workspace owner and Editors can stop, rename, or delete any chat. Only the owner can change **Notify in Slack**, and only for chats the owner created. See [Slack](/settings/slack). ### Work together in a chat Messages show who sent them, and everyone with access can read the whole conversation. * **Permissions**: the agent uses its creator's permissions. * **Controls**: participants can stop or resume the agent and change its model and research style. Only the creator approves commands or changes other chat settings. * **Questions**: any participant can answer an agent's question. Qualia uses the first answer and labels it with that person's name. * **Queue**: messages sent while the agent works wait in a shared queue. You can edit or remove your own queued messages, or choose **Send now**. If a message fails, use **Send now** to retry it. * **Ending participation**: turning collaboration off, or removing someone's access, removes their queued messages. If the creator loses access, the agent's work stops. In the **Agents** menu, **Stop All Agents…** stops the chats you created, or every chat if you own the workspace. **Resume All Agents…** resumes only your own chats. See the [application menu](/app-menu). ## Manage access Open the menu next to a person's name under **People with access** to change their role, choose **Send email again**, or choose **Remove access**. * **Removing access** ends their open sessions. If a link option other than **Restricted** is on, Qualia warns that they could rejoin with the link. Choose **Remove and reset link** to stop that. Nobody else loses access. * **Removing someone who hasn't opened the workspace** deletes the invitation. Signing in with that address later grants nothing. * **Changing an Editor to Viewer or Commenter**, or removing them, stops their agents and background jobs. Stopping their notebook code can interrupt other code in the same notebook. Their scheduled pipelines stop until they regain Editor access. * **Reset link** in the **General access** menu makes a new link and stops the old one. People who already joined keep their access, so remove them one by one if needed. ### Organization sharing controls Organization admins can turn off **Share with people outside the organization** on the organization's **Security & SSO** page. Invitations and link joins then work only for members, and public links are unavailable. People who already have access keep it. Organization changes also affect sharing: * Removing a member from an organization removes access to the workspaces they shared, and removes them from workspaces other members shared with them. * Canceling an enterprise subscription does the same for every remaining member. * When a personal account joins an organization, Qualia turns off sharing on its personal workspaces. The workspaces stay, but you need to share them again if you return to a personal account. # Skills Source: https://docs.quadrillion.ai/skills Save a workflow as a skill so agents follow the same steps whenever that kind of work comes up. Save a workflow you repeat as a skill, so agents follow the same steps every time. For example, save your first pass over a new time series. A skill is a named set of instructions for one kind of task. Unlike a [rule](/rules), which sets standing behavior, a skill is a procedure an agent loads when that task comes up. ## What is a skill? A skill has four parts: * **Name**: lowercase letters, numbers, and hyphens, such as `time-series`. You invoke the skill by this name. * **Description**: when to use the skill. Agents read it to decide whether the skill fits a request. * **Instructions**: the steps to follow. * **Mode**: whether agents can load the skill on their own. Skills persist across sessions. Agents can combine skills with [rules](/rules) and [hooks](/hooks), which run commands at fixed points in a turn. The **Skills** page lists skills you created, skills your organization shares, and built-in skills from Qualia. Filter the list by source. ## Skill modes * **Auto-invoke** skills appear in the agent's context with their name and description. If your request matches, the agent loads the skill and follows it, with no action from you. Use this mode for workflows Qualia should recognize, such as "run exploratory data analysis on a new dataset." * **Manual** skills stay out of the agent's context until you type `/` and the skill's name. Use this mode for sensitive operations, or for procedures you want to start deliberately. When an agent loads a skill on its own, a **Loaded skill** line appears in the chat. Click the skill's name to open it in **Customize agent**. ## Create a skill 1. Open the gear menu in the titlebar, choose **Customize agent**, then choose **Skills**. 2. Open the **Add** menu and choose **New skill**. 3. Enter a **Name** and a **Description**, such as "Initial analysis of a time series column." 4. Choose a **Mode**: **Auto-invoke** or **Manual**. 5. Write the **Instructions**, then click **Create**. You can also have Qualia write a skill for you from the new chat screen: choose **Teach Qualia your workflow** and pick a file or folder. See [Start from a file or folder](/chat-and-ai#start-from-a-file-or-folder). ## Use a skill To invoke any skill, type `/` followed by its name: > */time-series* Qualia loads the skill's instructions, and the agent follows them. Typing `/` opens a menu of your skills with their descriptions. The menu also lists built-in commands, such as [`/compact`](/chat-and-ai#context-window). For an auto-invoke skill, describe what you want instead: > *"Analyze this time series data"* If a `time-series` skill has a matching description, the agent recognizes the request and loads the skill. ## Write a skill A good skill covers four things: 1. **Context**: the situation that calls for the skill. 2. **Steps**: the actions to take, in order. 3. **Verification**: how to confirm the work succeeded. 4. **Error handling**: what to do if something fails. For example: ```markdown theme={null} # Time Series Analysis Use this skill for initial analysis of a time series column. ## Steps 1. Make a time series plot, a histogram, and a partial autocorrelation plot. 2. Test for long-term trends and drifts. 3. Analyze the time series in frequency space and identify cyclic behavior or interesting frequencies. 4. Find any anomalous time periods. ``` * **Match each skill to one recognizable task.** If a skill grows long, split it into smaller skills. * **Write specific descriptions.** Agents decide whether to load an auto-invoke skill from its description, so name the trigger, such as "a new CSV file." * **Test triggering.** After creating an auto-invoke skill, check that it loads for several phrasings of the same request. ## Import skills Import skills from other tools on local workspaces. These options read folders on the machine your workspace runs on, so they don't appear in Qualia Cloud. Both are in the **Add** menu on the **Skills** page. * **Import from Cursor** copies the skills in `~/.cursor/skills/`. * **Import from Claude Code** copies the skills in `.claude/skills/` and the commands in `.claude/commands/`, from both your home folder and the workspace. If a skill and a command share a name, the skill wins. ### Re-import skills Importing makes a copy, so later edits in the source don't reach Qualia on their own. If you import again after the source changed, Qualia lists the skills it would replace and asks first: * **Keep mine** leaves your copies as they are, without the source's edits. * **Update from Cursor** or **Update from Claude Code** replaces each listed copy with the source version. Edits you made to those skills in Qualia are lost. Skills that are new to Qualia import either way. Qualia never replaces a skill named after a built-in skill. If you re-import often to pick up source edits, link the folder instead. ## Link a skills folder Link a folder to use its skills live, without copying them. Edits in the source reach Qualia without re-importing, so linking suits a skills repository you maintain yourself. 1. On the **Skills** page, open the **…** (Skill library options) menu and choose **Linked folders**. 2. Enter the absolute path to a folder on the workspace host, then click **Link**. When Qualia runs on your own computer, click **Browse…** to pick the folder instead. Each skill must sit directly inside the folder, at `[FOLDER]/[SKILL_NAME]/SKILL.md`. Each linked folder shows whether it's valid and how many skills it contributes, so you can spot a mistyped path or an empty folder. You can't change linked skills in Qualia. You can't edit, delete, or change their mode here; the `disable-model-invocation` field in each `SKILL.md` controls auto-invoke. If a linked skill has the same name as one you created in Qualia, yours takes precedence. Linking works for local, remote, and self-hosted workspaces, but not in Qualia Cloud. ## Manage skills * **Open the skills folder**: on local workspaces, open the **Add** menu and choose **Open skills folder**. Each skill has its own folder with a `SKILL.md` file. Qualia Cloud has no skills folder to open. * **Edit**: change your own skills on the **Skills** page or on disk. Qualia picks up edits automatically. Edit linked skills in their source folder. * **Delete**: delete your own skills from the **Skills** page. To remove linked skills, unlink the folder under **Linked folders**, which never changes the source. * **Sync across devices**: keep your skills folder in a git repository, then link it on each machine. * **Stop a skill loading on its own**: switch its mode to **Manual**. ## Skills vs rules | Aspect | Rules | Skills | | - | - | - | | **Purpose** | Standing behavior | A procedure for one kind of task | | **When it applies** | Every message, or when you mention it | When a request matches, or when you invoke it | | **Content** | Constraints and preferences | Step-by-step instructions | | **Example** | "Always use polars instead of pandas" | "How to analyze a time series" | Use both together: rules for how to work, skills for what to do. # Tab Management Source: https://docs.quadrillion.ai/tabs Open, arrange, pin, and split tabs so you can work on several files, chats, and terminals at once. Arrange your workspace by opening files, chats, and terminals in tabs, then splitting the editor to see them side by side. ## Panes A pane is an area of the window that holds tabs. The sidebar on the left holds the file explorer, the Chats list, and [search](/search). The editor in the center holds files, notebooks, chats, terminals, and web pages. The [terminal](/terminal) pane sits at the bottom, and the chat pane on the right holds conversations with Qualia's [agents](/agents). The terminal and chat panes hide when they have no tabs. To rearrange the window around chat or the editor, choose **View → Chat-first** or **View → Editor-first**. You can also set **Layout mode** in [General settings](/settings/general). ## Open a tab * Click a file in the file explorer. Press **Enter** on a selected file to open it too. * Click a result in [search](/search) to open the file at the match. * Press **Cmd+N** (Mac) or **Ctrl+N** (Windows/Linux) to create a file. * Press **Ctrl+\`** to open a terminal in the focused pane. * Choose **File → New Browser Tab** to open a web page in the desktop app. * Drag a chat from the Chats sidebar onto a tab bar to open it there. See [Drag agents into tabs](/agents#drag-agents-into-tabs). If you turn on **Replaceable preview tabs** in [Editor settings](/settings/editor), a single click opens a file in a reusable preview tab. To keep it, double-click the tab or choose **Keep Open** from its right-click menu. A dot on a tab means it has unsaved changes. ## Close tabs To close one tab, click its **×** or press **Cmd/Ctrl+W**. To close several at once, such as every saved tab or every tab to the right, right-click a tab and choose an option. ## Move and reorder tabs Drag a tab left or right to reorder it, or drag it to another pane to move it there. On a touch screen, press and hold a tab briefly before you drag it. ## Pin a tab Pin a file, notebook, or chat you keep returning to so that it stays in place. Right-click the tab and choose **Pin Tab**. Pinned tabs sit at the front of the tab bar, and bulk close options such as **Close Others** leave them open. To unpin a tab, click its pin icon. ## Editor splits Split the editor to work on two documents side by side. To create a split, do one of these: * Drag a tab toward an edge of the editor. A highlight shows where the split will appear; drop the tab to create it. * Drag a file from the file explorer toward an edge of the editor. * Right-click a tab and choose **Split Right** or **Split Down**. * Choose **View → Split Editor → Split Right** or **Split Down**. Drag the divider between splits to resize them. When you close the last tab in a split, the split closes. ## Saved layout Qualia saves your open tabs and pane layout for each workspace. When you reopen Qualia, your tabs come back where you left them. Each workspace keeps its own tabs, so switching workspaces swaps the whole layout. ## Keyboard shortcuts On a Mac, use **Cmd** where the table shows **Cmd/Ctrl** and **Option** for **Alt**. On Windows and Linux, use **Ctrl** and **Alt**. | Shortcut | Action | | - | - | | **Cmd/Ctrl+N** | Create a file | | **Cmd/Ctrl+T** | Start a new chat | | **Cmd/Ctrl+W** | Close the active tab | | **Ctrl+\`** | Open a terminal | | **Cmd/Ctrl+Alt+Right** | Next tab | | **Cmd/Ctrl+Alt+Left** | Previous tab | | **Cmd/Ctrl+B** | Show or hide the sidebar | | **Cmd/Ctrl+K** | Show or hide the chat pane | | **Cmd/Ctrl+J** | Show or hide the terminal pane | | **Cmd/Ctrl+Shift+E** | Show the file explorer | > [!NOTE] > > In a web browser, the browser may keep some shortcuts for itself, such as **Cmd/Ctrl+W** and **Cmd/Ctrl+T**. Use the [application menu](/app-menu) for those commands instead. In the desktop app, zoom with **Cmd/Ctrl++** and **Cmd/Ctrl+-**, and reset with **Cmd/Ctrl+0**. These are also under **View**. For every command and shortcut, press **Cmd/Ctrl+P** to open **Commands & Shortcuts**. # Ideas and tasks Source: https://docs.quadrillion.ai/tasks Split research into ideas that each get their own agent, and follow the tasks agents plan along the way. Split a research question into ideas that run in parallel, compare their results, and follow up on the promising ones. A **task** is a tracked unit of work that an agent plans, such as "Clean the survey data" or "Fit a gradient-boosted model". An **idea** is a task that tests one hypothesis or approach, and Qualia gives each idea its own [agent](/agents). ## What is a task? Each task you see has a title, an objective, a status, and an assigned agent. A task can also depend on other tasks. For example, "Compare models" waits for "Train model A" and "Train model B" to finish. Tasks come in two kinds: * **Ideas** test a hypothesis or experiment worth pursuing on its own, such as "Try a transformer encoder". Qualia creates a dedicated agent for each idea, and that agent works the idea until it finishes. * **Work tasks** are helper steps, such as downloading data or refactoring a script. They stay with the agent doing them, so you won't see them in your list of ideas. ## Plan work in chat Ask an agent to plan the work in natural language. For example: > *"Compare three ways to predict churn on this dataset, then summarize which works best."* The agent proposes ideas, creates an agent for each one, and adds work tasks where it needs helpers. You don't need tasks for simple questions; the agent answers those directly. To change how readily agents split work across more agents, adjust **Parallelism** in [AI settings](/settings/ai#parallelism). ## Follow your ideas You'll find ideas in the **Chats** list in the left sidebar, beneath the chat that proposed them. A follow-up idea connects to the idea it builds on. Helper agents that aren't ideas collapse under **Supporting agents**; click it to expand them. * **Hover an idea** to see its description, its findings, and its metric values. * **Click an idea** to open its agent's chat, where you can ask about its work. * **Watch progress**: A progress bar appears when an idea's agent reports progress. When an idea finishes, Qualia stops the helper agents working for it. The idea's own agent stays available, so you can still ask it questions. For everything else in the sidebar, such as nested agents and waiting requests, see [Agents](/agents). ## Sort ideas by a metric When agents compare ideas on a shared measure, such as validation accuracy or error, you see that metric's value beside each idea. An **Ideas** heading then appears above the list. * Click the metric name on the right of the heading, then choose a metric under **Sort by metric**. Each option says whether lower or higher is better. * Click **Ideas** to return to lineage order, which groups follow-ups under the ideas they build on. If agents have defined several metrics, Qualia picks a default. You can switch to another at any time. ## Add a follow-up idea 1. Open a chat first, because the new idea's agent starts from the open chat. 2. Hover an idea and click **Follow-up idea**, or right-click it and choose **Follow-up idea**. 3. Describe the idea to test, then press Enter. Press Escape to cancel. Your follow-up starts after the original idea finishes. ## Verify an idea To get an independent check of a result, hover an idea and click **Verify with new agent**. Qualia adds an idea titled "Verify: \[IDEA\_TITLE]" whose agent reviews the original idea's notebook, evidence, and results. It reports whether the result holds. ## Task statuses | Status | Meaning | | - | - | | **Planned** | Defined but not started. A planned task is **Blocked** while its upstream tasks are unfinished, and **Ready** once they finish. | | **In progress** | An agent is working on it. | | **Completed** | Finished successfully. | | **Failed** | The agent couldn't complete it. | | **Cancelled** | Stopped before completion, for example because you deleted its agent. | | **Paused** | You stopped its agent. The task waits until you resume. | Completed, failed, and cancelled tasks are final, and they release any tasks waiting on them. A paused task isn't final, so tasks downstream of it stay blocked until you resume its agent. If an error interrupts an agent, Qualia pauses its chat instead of failing the task. The task stays **In progress** with its saved results. Resume the agent or send it a message to continue. ## Track tasks in a chat Above the chat composer, a task summary shows how many of the agent's tasks are done, such as "2/5", and names the current one. Click it to expand the full list, ordered by status. Chat activity also shows you when agents create, update, or reassign tasks. In the **Chats** list, you can see an agent's assigned tasks beneath it. ## Tasks and knowledge Agents record what a task established as claims in [Knowledge](/knowledge), where you can trace each one to its evidence. A **claim** is a recorded statement backed by evidence, such as a captured value or a quoted line from a file. Each claim links back to the task and chat that produced it. A task can also declare **required variables**: values an agent must capture from running code before it completes the task. Downstream tasks then read those values. To capture or read them yourself, see [Task variables](/q-vars). # Terminal Source: https://docs.quadrillion.ai/terminal Run shell commands in your workspace from a terminal tab inside Qualia. Open a terminal tab to run shell commands in your workspace, such as `git`, `pip install`, or a training script. On the desktop app, the terminal runs on your machine. In Qualia Cloud, it runs in your workspace's cloud environment. In cloud workspaces, only the workspace owner can open a terminal. Editors can ask their agents to run shell commands instead. ## Open a terminal * Press **Ctrl+\`**. * Choose **File > New Terminal**. * Click **+** in the terminal panel. ## Work with several terminals Each terminal is its own tab. You can drag terminal tabs between panes in [split view](/tabs). To close a terminal, click the X on its tab or type `exit`. When you quit and reopen the desktop app, your terminal tabs come back with fresh shells. Each shell starts over, so environment variables and the current directory reset. ## Local terminals and notebooks A desktop terminal sees the same workspace files as your local notebooks. Files you create in the terminal show up in notebooks right away. The terminal inherits your environment, except that Qualia withholds variables with credential-like names, such as `MY_API_TOKEN`. To let one through, see [Environment variables in kernels and shell commands](/settings/general#environment-variables-in-kernels-and-shell-commands). ## Terminals in Qualia Cloud A cloud terminal opens a `bash` session in your workspace's cloud environment. You don't need to start a notebook first. The terminal and your notebook kernels share workspace files, but each has its own processes and installed packages. For example, a package you `pip install` in the terminal isn't available to a running notebook kernel. * The terminal starts in your workspace folder, and files a command creates show up in Files. * Closing the tab ends the session, and so does the environment shutting down when idle. * If your connection drops, Qualia reconnects you to the same shell while the environment is still running. * If the terminal asks you to restart the environment, wait for running work to finish first. Restarting keeps your files but stops running kernels. ## Choose a shell On the desktop app, set **Settings > Environments > Terminal > Terminal shell** to the shell you want, such as `/bin/zsh` or `/bin/bash`. The setting applies to new terminals only. If you leave it empty, Qualia uses your `SHELL` environment variable on macOS and Linux, and PowerShell on Windows. Cloud terminals always run `bash`. ## Keyboard shortcuts Qualia passes standard terminal shortcuts, such as **Ctrl+C**, straight to the shell. App shortcuts that work from a terminal include: | Shortcut | Action | | - | - | | **Ctrl+\`** | Open a new terminal | | **Cmd/Ctrl+J** | Show or hide the terminal panel | | **Cmd/Ctrl+W** | Close the current tab | | **Cmd/Ctrl+L** | Add the selected text to chat | # Tutorial Source: https://docs.quadrillion.ai/tutorial Go from a question about your data to a cited writeup in one sitting. Follow these steps to take one question from your data to a writeup whose every claim traces back to evidence. Along the way you get a notebook of the analysis, parallel ideas the agent tests, and knowledge that later work builds on. Each step builds on the previous one. **1. Download Qualia** Get the desktop app from [quadrillion.ai/download](https://quadrillion.ai/download). For per-platform install steps, see [Getting Started](/getting-started). To skip the install, open [Qualia Cloud](https://app.quadrillion.ai) instead. **2. Open your workspace** Launch Qualia and open the folder where your data lives. A workspace is the folder Qualia works in, and the agent can read every file in it. For example, CSV, Parquet, and Excel files in that folder are available right away, with no import step. If the data sits on another machine, [connect to a remote backend](/getting-started#connect-to-a-remote-backend). **3. Start with a prompt** Describe what you want in the chat box, for example *"explore sales\_q3.csv"*. If the file isn't in your workspace yet, attach it with the paperclip. To start from an example instead, choose one of the example prompts below the chat box. ![Empty Qualia workspace with the chat box and example prompt cards](https://mintcdn.com/quadrillionlabs/icWk9RY386Kkxcf-/images/tutorial/01.png?fit=max\&auto=format\&n=icWk9RY386Kkxcf-\&q=85\&s=0525811e68d56e7693e9e89baec7d958) **4. Watch the analysis in a notebook** The agent loads your data and runs the analysis in a Jupyter-compatible [notebook](/notebooks). It narrates what it finds in the chat panel as it goes. Every cell is ordinary, editable code, so you can rerun it, change it, or add your own. You can also describe a change in chat and let the agent make it. ![Agent writing and running notebook cells with a summary in the chat panel](https://mintcdn.com/quadrillionlabs/icWk9RY386Kkxcf-/images/tutorial/02.png?fit=max\&auto=format\&n=icWk9RY386Kkxcf-\&q=85\&s=c64d9c634cae8bcea8a4a8cc1d12e3e2) **5. Follow parallel ideas** For bigger questions, Qualia splits the work into ideas. An idea tests one hypothesis or approach, and Qualia gives each idea its own [agent](/agents). The ideas appear in the **Chats** list in the left sidebar, beneath the chat that proposed them. Choose one to follow its agent's work. See [Ideas and tasks](/tasks). > [!TIP] > > To change how readily Qualia splits work across agents, choose **Research style** in the chat box and adjust **Parallelism**. See [Parallelism](/settings/ai#parallelism). **6. Run a skill** A [skill](/skills) is a saved workflow you invoke on demand, so you don't re-explain a process each time. Type `/` in the chat box to see the list. Start with a built-in skill such as `/dataset-exploration` or `/optimize`. ![Skill picker opened with the slash key in the chat box](https://mintcdn.com/quadrillionlabs/icWk9RY386Kkxcf-/images/tutorial/04.png?fit=max\&auto=format\&n=icWk9RY386Kkxcf-\&q=85\&s=2bf851805db12975af68791dbf92f45f) You can also write your own skills, or import the ones you have from Claude Code or Cursor. To browse skills, [rules](/rules), [MCP servers](/mcp-integrations), and more, open the gear menu and choose **Customize agent**. ![Skills library open in the Customize agent tab](https://mintcdn.com/quadrillionlabs/icWk9RY386Kkxcf-/images/tutorial/05.png?fit=max\&auto=format\&n=icWk9RY386Kkxcf-\&q=85\&s=5b5f367c9b67234fc35d810cd3dc423a) **7. Get a research writeup** Ask in chat for a write-up of the findings. You get a [writeup](/writeups), a research document with findings, figures, and numbered citations. Edit it alongside the notebook, and export it when it's ready to share. ![Generated writeup with figures and numbered citations](https://mintcdn.com/quadrillionlabs/icWk9RY386Kkxcf-/images/tutorial/06.png?fit=max\&auto=format\&n=icWk9RY386Kkxcf-\&q=85\&s=8ec3bf194d9dc27c24f37d78272acb75) **8. Trace any claim to its evidence** Choose a citation in the writeup to preview its supporting evidence. Then choose **Open in Knowledge** to inspect the claim in [Knowledge](/knowledge). A claim is a finding Qualia records with links to the evidence behind it. Knowledge persists across sessions, so later work builds on what earlier work established instead of rediscovering it. ## Next steps * [Chat & AI](/chat-and-ai): prompting, models, and chat features * [Notebooks](/notebooks): cell operations, keyboard shortcuts, and exports * [Ideas and tasks](/tasks): how agents split and track work * [Knowledge](/knowledge): claims, evidence, and recall priority * [Agents](/agents): running parallel experiments * [Skills](/skills): save, write, and import reusable workflows * [Writeups](/writeups): research documents with citations * [Autonomous mode](/autonomous-mode): longer unattended runs with Slack updates * [Rules](/rules): persistent instructions for the agent * [Settings](/settings/overview): models, appearance, and more # Vega Chart Viewer Source: https://docs.quadrillion.ai/vega-viewer Preview, edit, and export Vega and Vega-Lite charts without leaving your workspace. Open a Vega or Vega-Lite spec to see the chart, edit its JSON with a live preview, and export it as an image. Qualia renders files ending in `.vg.json`, `.vl.json`, `.vg`, or `.vl`. ## Switch view modes Use the toolbar toggle to show the chart (**Preview**), the JSON beside the chart (**Split**), or the JSON alone (**Source**). Save with **Cmd+S** (Mac) or **Ctrl+S** (Windows/Linux). To make a chart resize with the pane, set `"width": "container"` or `"height": "container"` in its spec. ## Edit with a live preview In **Split** view, the chart redraws as you edit. If the JSON is invalid, the last valid chart stays on screen with the error beneath it. Tooltips, selections, and other signals defined in the spec work in the preview. ## Load data files A spec can load data by URL. A relative URL, such as `"data": {"url": "data.csv"}`, points to a file in the chart file's own folder. Keep a spec and its data files together so the chart still loads after you move the folder. ## Export a chart Choose **Export** in the toolbar, then **Export as PNG** or **Export as SVG**. If an agent edits the spec while you have unsaved edits, Qualia warns you and offers to reload. To have an agent build a chart from your data, ask in [chat](/chat-and-ai). To find text inside a spec, see [Search](/search). # Writeups Source: https://docs.quadrillion.ai/writeups Write research reports in Markdown, cite evidence from Knowledge, review agent edits, and share or export the result. Write a research report that cites its evidence, review the edits agents suggest, and share or export it. A **writeup** is a Markdown (`.md`) document for prose: findings, conclusions, and the argument that connects them. Use [notebooks](/notebooks) for the code and analysis, and a writeup for the story you tell about it. A writeup is an ordinary `.md` file. You can read it in any editor, diff it in Git, and open it outside Qualia. ## Create a writeup 1. Choose **File > New File...** or press **Cmd/Ctrl+N**. 2. Enter a name and choose **Write-up**. Qualia creates a `.md` file titled with the name you entered. Any Markdown file opens as a writeup when its frontmatter says so: ```markdown theme={null} --- qualia: writeup --- # Model comparison ``` The first `#` heading is the document's title. Markdown files without `qualia: writeup` open in the standard source-and-preview editor. ## Ask Qualia to write Ask in chat to write up your findings or revise a passage. For example, try "Write up the model comparison for a reader who hasn't seen the notebooks." Qualia uses the built-in `writeups` [skill](/skills) whenever it drafts or edits writeup prose, including revisions requested in comments. A skill is a saved set of instructions an agent follows for one kind of task. You can also run it yourself by typing `/writeups` in chat. To change when it runs, open **Customize agent > Skills** and change its mode. ## Edit a writeup A writeup opens in a visual editor. Click **Source** in the top right to edit the Markdown underneath. Both views edit the same document, and switching never loses unsaved work. Markdown syntax formats as you type. For example, type three backticks to start a code block, or `#### ` for a level-four heading. For math, use `$$x^2$$` inline, or put `$$` on separate lines around a display equation. Single dollar signs stay literal, so amounts such as `$100k` read normally. Select text to open the formatting menu. Formatting requires edit access, and comments require comment access. For what each role can do, see [Shared workspaces](/shared-workspaces). | Shortcut | Action | | - | - | | **Cmd/Ctrl+B** | Bold | | **Cmd/Ctrl+I** | Italic | | **Cmd/Ctrl+Shift+X** | Strikethrough | | **Cmd/Ctrl+E** | Inline code | | **Cmd/Ctrl+Shift+1** … **6** | Toggle heading level | | **Cmd/Ctrl+Shift+8** | Bulleted list | | **Cmd/Ctrl+Shift+9** | Numbered list | | **Cmd/Ctrl+Alt+M** | Comment on selected text | ### Autosave and outside changes Writeups save automatically. If an agent or another person changes the file while you have unsaved edits, Qualia keeps your draft and offers to reload. If a save conflicts with the version on disk, choose **Keep mine** or **Use theirs**. ### Older `.qua` writeups Files in the older `.qua` format open in a block editor. You can't share `.qua` files, so ask the agent to recreate one as a Markdown writeup first. ## Link to workspace files In **Source**, write `[[file:notebooks/m1_sequential.ipynb]]` to add a file reference. In the visual editor, click the file name to open that file or switch to its tab. Paths are relative to the workspace root, not the writeup's folder. Add a label after a second colon, such as `[[file:notebooks/m1_sequential.ipynb:Sequential experiment]]`. Shared reports show the label without giving access to the linked file. ## Cite evidence Cite a claim from [Knowledge](/knowledge) by its ID. A **claim** is a recorded finding or piece of evidence, such as a captured value or a quoted line from a file. ```markdown theme={null} The regularized model had lower holdout error. [[claim:C-1722010625f1]] ``` Qualia displays the citation by name. Click it to preview its source beside the document, such as the notebook cell and output a value came from. From the preview, open the underlying file or the full claim in Knowledge. A citation travels with its sentence, so rewriting or deleting the sentence takes the citation with it. ## Add tables and figures Give a table or figure a caption line, which also carries its citation. **Source** shows the `Table:` or `Figure:` prefix that marks a caption. ```markdown theme={null} | Model | Holdout RMSE | | --- | --- | | Regularized | 0.182 | Table: Holdout error by model. [[claim:C-8f21c0d4ae55]] ``` ### Live tables Add `[live]` to a table caption to refresh the table from Knowledge: ```markdown theme={null} Table: Holdout error by model. [live] [[claim:C-8f21c0d4ae55]] ``` Keep real rows in the Markdown table, so the values stay readable outside Qualia. ### Captured figures Insert a captured figure by its claim ID, in its own paragraph. The caption is optional. ```markdown theme={null} [[figure:C-22058ba02a2a]] Figure: Residual error by fitted value. ``` The same syntax works for Matplotlib, seaborn, and Plotly figures and captured static images. Use `[[claim:C-…]]` to cite a figure without embedding it, and ordinary Markdown image links for screenshots. Captured Matplotlib and seaborn figures support hover readouts and series toggles. Plotly figures support interactions such as axis zoom and 3D rotation. Ask the agent for the library that suits your presentation. The figure token is a Qualia extension, so plain Markdown viewers show the token itself. To get ordinary image links, use **Export > Markdown**. ### Explore live curves A live figure updates as new data arrives, for example from a training run. Drag a rectangle across the chart to zoom, and double-click the plot to reset. Click a series name below the chart to hide it, and hover the plot to read values. Your zoom and hidden series survive incoming updates. ## Images and assets Click an image to focus it, then click it again to open it in an image-viewer tab. Qualia keeps a writeup's images in a folder beside it, named after the document: ```text theme={null} reports/ model-comparison.md model-comparison.assets/ residuals.svg ``` Images use relative paths, so you can copy, zip, or commit the folder and they still resolve. Keep the asset folder with the report when you copy it, because captured figure embeds depend on it. ## Comments and suggestions Select text to open the selection menu, then choose how to comment: * **Ask Qualia**: Click the Qualia icon. A comment opens on the right with `@Qualia` filled in. Write your request and click **Comment**, and Qualia replies in the same thread. * **Leave a comment**: Click the comment icon to start an ordinary thread. Type **@** to mention an agent, or a teammate in your cloud workspace. Choose **Create a new agent: …** to start a new agent for the request. Post with **Comment**, **Reply**, or **Cmd/Ctrl+Enter**. Each mentioned agent receives the request, and the thread shows which agent is working on it. If the agent is busy, it takes your request when it finishes. To ask for more work in the same thread, mention the agent again. ### Review suggested edits Agents propose edits as **Add**, **Delete**, or **Replace** suggestions. The thread previews the change, and the document shows the proposed text before the struck-through original. * Hover or select the thread, then click **✓** to accept or **×** to reject. Review each suggestion separately. * You can edit the proposed text before accepting. **Accept** keeps your edits, and **Reject** restores the original. * Suggestions stay pending when you close and reopen the document. Review a pending suggestion before requesting another change to the same passage, so the two edits don't collide. ### Resolve threads Click **Resolve** beside a thread's first comment to archive it. Resolving a thread doesn't accept its suggestions. A thread also archives itself once you review its last suggestion. To reopen one, click the comment-history button beside **Source**, select the thread, and click its restore icon. Commenters can post and reply. Requesting agent work and accepting or rejecting edits require edit access. For workspace roles, see [Shared workspaces](/shared-workspaces). ## Share a writeup In a cloud workspace, click **Share** at the top right of the writeup, then **Copy** beside the link. Only the project owner can choose who may open it: * **Project viewers** (default): People with view access to the project, after signing in. * **Anyone with the link**: Anyone, without signing in. The link opens a standalone, read-only page with the saved document, and later saves appear at the same link. Shared writeups show saved tables and figures, with hover and series toggles for supported Matplotlib figures. They leave out comments, unresolved suggestions, and links to evidence sources. An unresolved suggestion shows its original text. Sharing a writeup doesn't give access to the rest of the project. Switch back to **Project viewers** to turn off anonymous access. To manage project membership, see [Shared workspaces](/shared-workspaces). ### Share live figure data A shared writeup shows each live figure as of its last save. To let readers see new data as it arrives: 1. Choose **Anyone with the link**. 2. Review the curves listed under **Future figure data**. 3. Click **Share future data for these curves**. Adding sources or curves to a figure requires approving it again. Click **Stop sharing future data** to stop updates; the curve list stays, so you can approve it again later. Readers keep anything they already downloaded. Qualia doesn't automatically upload data that exists only on your computer. The same controls apply to shared [dashboards](/dashboards). ## Export a writeup Use the **Export** menu in the writeup header: | Format | File | | - | - | | PDF | `.pdf` | | Word | `.docx` | | Markdown | `.zip` (Markdown plus assets) | | LaTeX | `.zip` (`.tex` plus assets) | Resolve any save conflict before you export. If Qualia can't prepare a figure, the download stops and names the chart that needs attention. * **PDF and Word** include figures as static images and tables as native tables, with their captions attached. Table cells stay editable in Word. These formats leave out citations. * **Markdown and LaTeX** keep citations as footnotes. Markdown bundles include saved Matplotlib figure data, so the extracted report keeps hover and series toggles when you open it in Qualia. Exports are snapshots. Live tables keep their saved values and figures use saved images. Exports use the original text of pending suggestions and leave out comment threads, so accept the changes you want first. The source Markdown keeps pending suggestions for later review.