Skip to content
qqthe agent runtime
DocsConcepts and glossary

Concepts and glossary

Workspaces, sessions, runs, turns, approval modes, and the other words the guide uses.

The words the rest of this guide uses, one short definition each, with a link to the page that goes deeper. Read How they fit together first; look up the rest when a page uses a word you are unsure of.

workspace the directory QQ works in
└── session one conversation with an agent
├── run one prompt, carried to a final answer
│ └── turn one model reply
│ └── tool call one action the model asked for
└── child session a sub-agent, with runs of its own

A session runs one run at a time; the agent loops through turns, executing the tool calls each turn asks for, until the model answers without asking for more. Its approval mode decides which tool calls run straight away and which are held for you.

WhatKept inSurvives quitting QQ
workspaces, sessions, runs, turns, messages, tool calls and their output, compaction summariesthe sessions database, sessions.sqlite3 in your data directoryyes
profiles, the roster, policyyour config files and the project’s .qq/config.ronyes
which project files you trustedtrust.ron in your data directoryyes
credentialsthe OS keyring (details in Providers)yes
drafts queued with Ctrl-Enterthe TUI’s memoryno
a run in progress, and any tool call it is waiting onthe sessions database, but the work itself is liveno: when the qq process running it exits, the run and its held calls end interrupted, and nothing held runs

qq config paths prints the directories for your machine; the defaults are in Where things live.

The directory QQ works in: the current directory for qq, or --workspace PATH for qq run. Every session belongs to one workspace, and the file tools refuse paths outside it. Shell commands start there but are not confined to it. See qq run.

One conversation with an agent: its history, approval mode, profile, and model. Sessions are saved, so you can quit and resume one with qq --session ID or /sessions. Its id is 32 hexadecimal characters. See Sessions.

A session started under another one: a sub-agent the model spawns with the spawn_agent tool, or one you open with Alt-C. It has its own runs and history and stays in its parent’s workspace. The roster bounds how many and how deep. See delegation.

One prompt carried to a final answer, a failure, or a cancellation. Each prompt you submit starts a run (a steer joins the current one); a session runs one at a time. qq run is one run, unattended. See While a run is executing.

One model reply inside a run. When the reply asks for tools, QQ runs them and the next turn sees the results; the run ends on a turn that asks for none. --max-turns caps them. See Limits.

One action the model asked for in a turn: read a file, edit, run a shell command, fetch a URL, call an MCP tool. The session’s approval mode decides whether it runs, is held for an answer, or is refused. See Permissions and trust.

Send more input to a run while it is working. Enter during a run steers: the text reaches the model at the next boundary between model and tool, without starting a new run. Alt-S interrupts the current turn or tool first. Steering the run has not used when it ends is dropped. See While a run is executing.

Hold a draft until the run ends instead of steering it in. Ctrl-Enter queues; the draft becomes the next run when the session goes idle, and Alt-Up pulls it back. Queued drafts live in the TUI, up to 8 per session, and are lost if you quit. See While a run is executing.

Replacing the older part of a session’s model context with a summary, so a long conversation keeps fitting the model’s context window. QQ compacts on its own near the end of the window; /compact does it on demand and /rollback undoes the newest one. The transcript you see is unchanged. See Prompts.

A named set of session defaults (model, approval mode, reasoning effort, and similar), chosen with /profile or qq run --profile NAME. Anything a profile leaves out comes from the top-level configuration. Not to be confused with a credential profile. See profiles.

The models an agent may spawn child sessions on: delegation.roster, up to 8 routes, each tagged with a role. The same section bounds how deep children may nest (default 1, at most 3) and whether they may edit files. See delegation.

The label on a roster entry: fast, balanced, or strong. The model picks a sub-agent’s model by role; the child keeps its parent’s profile. See delegation.

How much a session may do without asking: read_only, ask, auto (the TUI default), or full. Ask requires fresh human approval for each non-read action. Auto runs everything except the fixed stops without asking, in your checkout and as you; denied actions return tool errors so the agent can choose another approach. Full also runs the fixed stops. Children retain the parent’s authority ceiling. Change modes with /approval or qq run --approval. See Approval modes.

A tool call waiting for a human answer under Ask. It waits until answered, cancelled, or its run deadline or configured approval timeout expires. Auto does not create this approval wait. See the approval prompt.

Your permission for sensitive project configuration to take effect. Untrusted sensitive settings stay disabled while task startup uses trusted configuration; QQ does not prompt merely to start Auto. Review those settings and run qq trust explicitly to enable them. Changing the sensitive content revokes that trust. See Project trust.