Concepts
The words the rest of the documentation uses, and how the pieces relate.
The daemon and its journal
Section titled “The daemon and its journal”qccd owns everything: threads, their timelines, settings, projects, automations and the plugins.
It writes every event to a journal (SQLite, in the data directory, ~/.local/share/qcc by
default) and builds what clients see from it. Clients — the qcc CLI, the desktop app, agents
calling qcc from their sessions — talk to it over JSON-RPC on a unix socket. Closing the app does
not stop the agents; restarting the daemon does not lose a thread, its timeline or its queued
messages.
Threads
Section titled “Threads”A thread is one agent working on one thing: a conversation with a provider in a working directory. It has a state:
| State | Meaning |
|---|---|
working |
a turn runs, a message waits for one, or the session is starting |
waiting |
the agent waits for the user to answer an approval or a question |
idle |
nothing runs; the thread goes on with the next message |
failed |
the agent's session could not be started or died with an error |
archived |
put away: its session is released, its worktree removed, its timeline kept |
A thread also has a provider, model, effort and permission mode, all of which can change between turns (Switching agent and model), and optionally a project, an environment and a parent.
Turns and sessions
Section titled “Turns and sessions”A turn is one round of work: it starts with a message to the agent (or a command such as compaction) and ends when the agent is done, fails or is interrupted. A message sent while a turn runs is queued for the next turn, or steered into the running one when the provider can do that (Messages during a turn).
A session is the agent process and its conversation behind a thread. A thread keeps its session
across turns and resumes it after a restart of the daemon. Starting a new conversation (thread reset) or switching to another agent starts a new session in the same thread; the new agent is
given the conversation so far. A thread can also be forked from the end of any earlier turn into
a new thread (Forking a thread).
The timeline
Section titled “The timeline”Every thread has a timeline: the same kinds of items whatever the agent.
- the user's messages and the agent's messages, its reasoning and plans;
- commands with their output and exit code;
- file edits with their diffs, files read, searches;
- tool calls, MCP tool calls included, skills put to use and sub-agents started;
- the agent's task list as it stands (Task list);
- interactions: approvals and questions the agent waits on, answered from the app or with
qcc interaction resolve; - items of plugins' own kinds, drawn by the plugin's UI.
Agents speak different protocols. A provider turns what its agent says into a small set of deltas; the daemon assembles deltas into timeline items, giving them ids and order. That is the rule the whole design rests on: the bridge knows the dialect, the core knows the timeline.
Providers
Section titled “Providers”A provider is the plugin that drives one kind of agent: claude-code (claude -p with
stream-json), codex (codex app-server), opencode (opencode acp, through the shared ACP
bridge), and echo, a test agent. A provider declares what its agent can do — the permission modes
it enforces, steering, compaction, forking — and qcc offers only that. Models and effort levels are
asked of the agent itself. See Agents and sessions.
Environments
Section titled “Environments”An environment gives a thread a working directory of its own, made from the directory it was
started in. The bundled one is git-worktree: a git worktree on a branch of the thread's own, so
agents work side by side without touching your checkout or each other. Its work is reviewed as a
diff, commented on line by line and brought back with qcc thread deliver (as uncommitted changes
or as a merge). See Projects and worktrees.
Projects
Section titled “Projects”A project is a name and several repositories or folders. Threads are grouped by project in the
app and in qcc thread list; a thread joins the project whose folder holds its directory, and its
agent sees the project's other folders. See Projects.
Parents and children
Section titled “Parents and children”A thread started from inside an agent's session becomes that thread's child: the session has
QCC_THREAD_ID, and qcc thread spawn reads it. A child inherits its parent's provider, project,
permission mode, model and effort unless told otherwise, and never runs with more freedom than its
parent. The parent waits for its children with qcc thread wait and reads their answers.
Archiving a parent archives its children. See Orchestration.
Plugins
Section titled “Plugins”Almost everything beyond the core is a plugin: a wasm32-wasip2 component with a
plugin.toml. Providers, environments, orchestration, reviewers, notifications and GitLab are all
plugins, built from the same SDK as third-party ones and given no privileges. Every capability of
the host — storage, processes, threads, skills, secrets, HTTP — is a permission the plugin's
manifest asks for. A plugin can add:
- commands, run as
qcc <plugin> <command>or from the app; - skills: instructions agents read when a task needs them;
- settings, shown in the app and checked by the daemon;
- screens, thread tabs and timeline items in the desktop app.
See Writing a plugin.
Shared setup
Section titled “Shared setup”What qcc keeps in the daemon reaches every agent, on top of the agent's own configuration:
- MCP servers set up once in qcc are given to every session; one thread can turn some off (MCP servers).
- Skills offered by plugins (Skills).
- Per-agent settings: the program's path, environment variables, default model, effort and permission mode (Settings).
- Secrets: tokens and passwords agents use through
qcc secret execwithout seeing them (Secrets). - Automations: prompts sent to an agent on a schedule (Automations).