Docs Get started
Concepts
The ideas behind Quad Harness in one place, from sessions, workspaces and worktrees to models, agents, permission modes, goals, checkpoints and tools.
This page explains the parts you will meet everywhere else in the docs. Each section links to the page that goes deeper.
Sessions
A session is one conversation with the agent about one piece of work. It has a title, a folder it works in, a model, a permission mode, and a history of everything that happened: your messages, the agent’s replies, every tool call and its result, approvals, compactions and errors.
A session’s history is an append-only log on disk. Nothing is rewritten in place, which is what makes rewind, forks and crash repair possible. If the app quits in the middle of a turn, the next launch closes up the unfinished turn: calls that had no result are marked as such (they are never retried, since their effects are uncertain), pending approvals are denied, and the transcript shows a notice.
Sessions appear in the Sessions window, grouped by folder, newest first. You can pin, rename, archive or mark a session done, open it in its own window, hand off part of its work, or delete it. Sessions get a short title automatically after your first message.
Workspaces
The workspace is the folder a session works in. File tools resolve paths against it, shell commands run in it, and instruction files are read from it and the folders above it up to the top of the git repository.
A new session asks for its folder before the first message. The top bar shows the current workspace and, if it is a git repository, its branch.
Note. The workspace is where the agent works, not a fence. In Unrestricted mode the agent can reach anything your user account can. See Permissions.
Worktrees
A worktree is a second checkout of the same git repository on its own branch. When you start a session with A new worktree of the folder, the app creates one under its data folder (worktrees/<name>) on a new branch named quad/<name>. The agent changes files there, and your own checkout stays as it was.
Automations can also run in a fresh worktree. When the work is over, a worktree with nothing changed and nothing committed is removed with its branch. One with work in it is kept. Settings → Automations lists the worktrees and can create new ones.
The engine
Behind the window runs the engine: the part that holds sessions, runs turns, calls the model, runs tools, asks for approvals, applies hooks, and keeps the index. The desktop window talks to it directly. The same engine can also run without a window as a JSON-RPC server for other programs (see CLI and protocol).
A turn is one round of work: you send a message, the agent thinks, calls tools, reads results, and repeats until it answers. A session can have one turn running at a time. Several sessions can run turns at once.
Models, agents and providers
These words mean different things in Quad Harness:
| Term | Meaning |
|---|---|
| Model | An endpoint the engine talks to directly: a base URL, a model id, an optional key and a protocol. Quad Harness runs the agent loop itself and gives the model its tools. Set up in Settings → Models and agents → Models and keys. See Models. |
| Agent provider | An agent program you already use (Claude Code, Codex or Antigravity) that runs its own loop. Quad Harness starts the program for each turn, streams what it prints, and records it in the same session log. Set up in Settings → Models and agents → Agents. See Agent providers. |
| Account | One sign-in of an agent provider, kept in its own config folder. Claude Code and Codex can have several. |
| Named agent | A Markdown file that describes a specialist (instructions and a tool list). The main agent can hand work to it by name. See Instructions and commands. |
| Subagent | A child agent the main agent starts for a self-contained task, with its own context. See Subagents and sessions. |
Both models and agent providers appear in the same model picker, and you can switch a session between them.
Permission modes
Each session has one of three modes. The composer chip and Settings → General use slightly different labels for the same thing:
| Mode | Composer chip | Settings label | Behaviour |
|---|---|---|---|
| Unrestricted | Auto | Full access | Every tool runs without asking. This is the default for a fresh install. |
| Standard | Ask | Standard | Anything that changes files, runs a command, sends a message or reaches a server asks first. Reading never asks. |
| Plan | Read-only | Read-only | Anything that would change something is blocked. The agent can propose a plan for you to approve. |
Always allow rules let you skip the question for narrow, safe calls in Standard mode. Hooks can deny or force a question whatever the mode. See Permissions.
Goals
A goal is a sentence that says what a session is working towards, such as “every test in the parser crate passes”. While a goal is active it rides in the agent’s system prompt on every turn, so the agent keeps it in mind through long sessions and compactions. You set, change and complete it from the Plan window or the command palette. See Goals, checkpoints and rewind.
Plans
When the agent works through a task in steps, it keeps a plan: a short list of steps it ticks off as it goes. The Plan window shows it. In Plan mode the agent can also put a whole plan to you for approval. Approving carries on the same run in the mode you choose (asking before each change, or not).
Checkpoints and rewind
Before a file tool changes a file, the engine saves the file’s previous content as a checkpoint. The Rewind window lets you move back through the session’s timeline and restore files to how they were at any point, or branch a new session from that moment. Changes a shell command makes are not checkpointed, because the engine cannot know which files a command will touch.
Compaction
Every request carries the conversation so far. When it gets long, the engine compacts it: the earlier part is summarised and replaced by the summary. This happens automatically at a sensible size (about 160,000 tokens in the default Balanced profile) rather than when a huge window is nearly full. You can also compact by hand with /compact or from the Context map window. The full history stays in the session log.
Tools and tool packs
Tools are what the agent uses to act: read a file, run a command, search, fetch a page, drive a browser, query a database, and many more. Built-in tools come in packs (files, shell, git and dev tools, code intelligence, network, data, documents, media, Mac apps, browser, phones, computer use, memory, script tools).
A small core set is sent with every request. The rest are listed by name and loaded on demand when the agent searches for them, so a hundred tools do not fill the context window. You can add more tools through MCP servers, plugins and script tools. See Tools.
Subagents and sub-sessions
The agent can start a subagent for a self-contained task. It runs inside the current turn and returns its answer. A handoff moves a piece of work into a new sub-session that runs on its own in the background. Both appear nested under their parent in the Sessions window. A child never has more permission than its parent. See Subagents and sessions.
Features
Everything beyond the core has a switch in Settings → Features. A feature that is off is not offered to the agent, leaves the window, and stops anything it ran in the background. See Feature switches.