Agent fundamentals
What Qalatra means by "agent" — and what makes it different.
In Qalatra, an agent is any folder on disk with an agent.config file. That's it. The folder can contain scripts, prompts, datasets, venvs — whatever the agent needs. The config tells Qalatra how to run it.
Why folders
Agents that live on disk are:
- Portable. Copy the folder, you've copied the agent.
- Versionable. Drop it in a git repo. Roll back a bad prompt.
- Sharable. Someone else's
triage-meworks for you, too. - Composable. Agents can invoke other agents via
mcp:dispatch_agent.
Agent lifecycle
- Dispatched — triggered by user, schedule, or another agent
- Running — Qalatra spawns the process, streams stdout into the task detail panel
- Complete — exit 0: task marked done. Non-zero: task marked failed with the real error.
What agents get
Every running agent receives:
- The MCP server URL + auth token as env vars (
QALATRA_MCP_URL,QALATRA_MCP_TOKEN) - The invoking task's id as
QALATRA_TASK_ID - The agent's own folder as cwd
So the simplest working agent is a shell script that calls claude with a prompt. See Writing your own agent.
The Agents screen and conversations
The Agents screen lists every agent the scan found, by category, with what each one is doing and anything it is waiting on you for. Add agent turns a folder inside your agents folder into an agent by writing its agent.config.
Open an agent to start a conversation: a long chat with that agent, separate from tasks. Turns mode runs one turn per message; Live mode runs it in a terminal you can watch. Conversations start at once instead of waiting in the job queue, can create and manage tasks through the Qalatra tools, and take attached files, which are saved in the agent's folder on the server running it. Questions an agent asks you collect under Questions, and your answer is sent back to the run or conversation that asked. An agent can also ask you to approve a message before it sends it: the card shows the email or Slack thread it's replying to and its draft, and you can send it, edit it, ask for changes, or say don't send. File paths and web links in a chat open with a click; Markdown files open in Qalatra's Markdown editor.
If a Live terminal stops on a prompt the chat can't answer, such as Claude's “Do you trust this folder?” the first time it opens in a folder, the chat shows what the terminal is displaying and an Open terminal button. Opening a project shows its agents, conversations, open questions and tasks on one page.
Where agents live
Each Qalatra server scans one folder for agents: the Agents scan root in Settings → General (or the workspace root when that is empty). Any folder under it with an agent.config is an agent. Use Rescan under All agents after adding one by hand.
Running a cloud agent on your computer
If your computer has a copy of a cloud server's agents folder (a git clone, say), the desktop app can run chats in that copy. In Settings → Instances → Local copies, enter where the copy is for that server. Agents whose folder also exists there get a Run on choice in New chat: the server, or Laptop. Laptop chats run on the app's own local server and stay in that server's Chats list, marked Laptop.
Beside each server's folder you can also set the command its laptop chats run, so that server's agents use their own Claude account on your computer, for example CLAUDE_CONFIG_DIR=~/.claude-work claude --dangerously-skip-permissions. Leave it empty to use the agent's own command. One agent can override it with "local": { "command": "…" } in its agent.config; the server ignores that, so the same file works in both places. A chat keeps the command it started with.
The two folders are separate copies; sync them with git as you would any repo. A laptop chat runs only while your computer is on and Qalatra is open. Tasks and questions go to whichever server the agent's Qalatra tools point at, and still show under the chat that made them; answering such a question sends the answer back into the laptop chat.
The All chats tab, before your server tabs, lists the chats of every connected server and your laptop copies together. New chat there asks which server to start on, and offers the same Run on choice for agents with a local copy. Clicking a task there switches to the server that holds it, with the chat and the task open.