Skip to content

CLI reference

qcc is the client of the daemon, qccd: for people at a terminal and for agents inside their sessions alike. Every command takes two global options:

  • --json prints machine-readable JSON instead of text.
  • --socket <SOCKET> is the socket of the daemon (default $XDG_RUNTIME_DIR/qcc/qccd.sock, or $QCC_SOCKET when it is set).

Inside an agent session started by qcc, QCC_THREAD_ID holds the session's thread: qcc thread spawn makes new threads its children, and plugin commands act on it by default.

Plugins add commands of their own, run as qcc <plugin> <command> [--thread <id>] [--<param> <value>]…; qcc command list shows what is installed. The bundled ones are described with their plugins, for example handoff and review.

Inspect the daemon.

Show whether the daemon is running and where it lives.

Terminal window
qcc daemon status [OPTIONS]

Create, drive and inspect threads.

  • qcc thread spawn — Start a new thread with a provider.
  • qcc thread send — Send a message to a thread. While a turn is running the message is queued behind it, or fed into it with --steer.
  • qcc thread mode — Change a thread's permission mode: read-only, ask, accept-edits, auto, full, or default for the agent's own configuration.
  • qcc thread skills — The skills a thread's sessions get; with --on and --off, turn skills on or off for this thread alone. Off takes effect with its next session; on is told to a running session with the next message.
  • qcc thread mcp — The MCP servers of a thread's session and the ones it keeps off; with --off and --on, turn servers set up in qcc (qcc mcp list) off or on for this thread alone, not the threads it starts. The agent's own servers are shown, not switched.
  • qcc thread rename — Name a thread.
  • qcc thread reset — Start the conversation afresh in the same thread: the next message starts a new session. What came before stays in the timeline as an earlier conversation.
  • qcc thread turns — List the turns of a thread that ended, numbered, and whether the thread can be forked from each one.
  • qcc thread fork — Fork a thread from the end of one of its turns: a new thread whose agent goes on from there with the conversation up to it. The thread itself is left as it is. Only the conversation is forked; the files are as they are now.
  • qcc thread context — Show what the agent's context window holds, part by part, as it last said; for agents that do not break it down, only how full it is.
  • qcc thread compact — Ask the agent to compact its context: to sum up the conversation so far and go on from the summary. Only for agents that can (qcc plugin list).
  • qcc thread deliver — Bring what a thread did in its worktree back to the directory it was made from: as uncommitted changes, or with --merge as a merge of its branch.
  • qcc thread isolate — Move a thread that works in its directory into a worktree of its own, between turns. With --carry its uncommitted changes go along and leave the directory.
  • qcc thread project — Put a thread into a project (id or name), or take it out with none.
  • qcc thread parent — Place a thread under another thread, or let it stand on its own with none.
  • qcc thread unqueue — Take a queued message back before it is delivered and print it. The id is the queue_id that thread send --json printed.
  • qcc thread agent — Go on with another agent, model or effort. Another agent starts a new session and is told the conversation so far; qcc provider models lists the models and their effort levels.
  • qcc thread stop — Interrupt the running turn of a thread.
  • qcc thread wait — Wait until threads settle (idle, failed or archived) and print each one's state and last message. Exit code 0: every last turn completed; 1: one failed or was interrupted; 124: the timeout ran out first.
  • qcc thread list — List threads, oldest first, children under their parents.
  • qcc thread changes — List the files a thread changed in its environment, and the commits it made there.
  • qcc thread paths — Find files and folders in a thread's working directory by a fuzzy query, as the app's composer does after @: best first, one path a line, a folder with / at its end.
  • qcc thread cat — Print a text file of a thread's working directory, as the app's viewer reads it. Paths are relative to that directory and may not lead out of it.
  • qcc thread ls — List a folder of a thread's working directory as the app's file tree does: what git ignores is left out, folders first with / at their end.
  • qcc thread search — Find a word in the files of a thread's working directory, as the app's viewer looks up where a name is used: one match a line, as path:line:column: text. The query is literal text, not a pattern; what git ignores, binary files and files over 2 MiB are left out.
  • qcc thread diff — Print everything a thread changed in its environment as a unified diff.
  • qcc thread archive — Put a thread away: release its session and remove its environment. The timeline stays readable.
  • qcc thread show — Show a thread and its timeline.
  • qcc thread events — Print a thread's events.

Start a new thread with a provider.

Terminal window
qcc thread spawn [OPTIONS]
  • --provider <PROVIDER> — Provider id, as listed by qcc plugin list [default: the parent's].
  • --prompt <PROMPT> — The first message to the agent.
  • --attach <FILE> — Attach a file to the first message: qcc keeps a copy, and the agent looks at an image or reads the file. Repeatable.
  • --cwd <CWD> — Working directory of the thread [default: the current directory].
  • --env <ENVIRONMENT> — Give the thread a working directory of its own, made from --cwd by this environment (git-worktree: a worktree on a new branch).
  • --base <REF> — What the environment starts from: for git-worktree a branch, tag or commit [default: the current HEAD].
  • --env-dir <DIR> — Where the environment makes the thread's directory, instead of qcc's data directory: for git-worktree the worktree itself, e.g. tasks/BGT-123/bgt-auth. Relative to the current directory. It must not exist yet or be empty, and inside another git checkout it must be ignored there. Archiving the thread removes it.
  • --branch <NAME> — What the environment calls the thread's branch, e.g. feature/BGT-123 [default: qcc/<thread id>]. A branch that exists already, locally or on a remote, is refused without --reuse-branch. Archiving the thread keeps a branch named here unless nothing was committed on it.
  • --reuse-branch — Continue on --branch if it exists already: the local branch, or else the one fetched from a remote. Changes are then counted from where the branch stood.
  • --model <MODEL>
  • --effort <LEVEL> — How hard the model thinks: a level qcc provider models lists for it [default: the parent's, the one set for the agent, or the agent's own].
  • --parent <PARENT> — Parent thread [default: $QCC_THREAD_ID, set inside agent sessions]. Environment: QCC_THREAD_ID.
  • --root — Start a thread of the user's own, under no other, even from inside an agent session: the session's thread is recorded as the one that started it.
  • --hidden — Keep the thread out of lists and overviews; it is reached by its id.
  • --project <PROJECT> — Project id or name [default: the parent's, or the project whose folder holds --cwd].
  • --permission-mode <MODE> — How much the agent may do unasked: read-only, ask, accept-edits, auto or full [default: the agent's own configuration].
  • --skill <NAME> — Give the thread a skill offered on request (qcc skill list). Repeatable.
  • --without-skill <NAME> — Leave out a skill every session gets. Repeatable.
  • --follow — Stream the thread's events until the first turn settles.

Send a message to a thread. While a turn is running the message is queued behind it, or fed into it with --steer.

Terminal window
qcc thread send [OPTIONS] <THREAD> <TEXT>
  • <THREAD>
  • <TEXT>
  • --steer — Feed the message into the running turn instead of queueing it. Queued anyway if the provider cannot steer.
  • --about <THREAD> — Tell the agent the message is about this thread. Repeatable.
  • --comment <ID> — Hand the agent this comment on its changes in full (qcc comment list). Repeatable.
  • --attach <FILE> — Attach a file to the message: qcc keeps a copy, and the agent looks at an image or reads the file. Repeatable.
  • --follow — Stream the thread's events until the turn that takes this message settles.

Change a thread's permission mode: read-only, ask, accept-edits, auto, full, or default for the agent's own configuration.

Terminal window
qcc thread mode [OPTIONS] <THREAD> <MODE>
  • <THREAD>
  • <MODE>

The skills a thread's sessions get; with --on and --off, turn skills on or off for this thread alone. Off takes effect with its next session; on is told to a running session with the next message.

Terminal window
qcc thread skills [OPTIONS] <THREAD>
  • <THREAD>
  • --on <NAME> — Turn this skill on in the thread. Repeatable.
  • --off <NAME> — Turn this skill off in the thread. Repeatable.

The MCP servers of a thread's session and the ones it keeps off; with --off and --on, turn servers set up in qcc (qcc mcp list) off or on for this thread alone, not the threads it starts. The agent's own servers are shown, not switched.

Terminal window
qcc thread mcp [OPTIONS] <THREAD>
  • <THREAD>
  • --off <NAME> — Keep this server off in the thread. Repeatable.
  • --on <NAME> — Turn this server on again. Repeatable.

Name a thread.

Terminal window
qcc thread rename [OPTIONS] <THREAD> <TITLE>
  • <THREAD>
  • <TITLE>

Start the conversation afresh in the same thread: the next message starts a new session. What came before stays in the timeline as an earlier conversation.

Terminal window
qcc thread reset [OPTIONS] <THREAD>
  • <THREAD>

List the turns of a thread that ended, numbered, and whether the thread can be forked from each one.

Terminal window
qcc thread turns [OPTIONS] <THREAD>
  • <THREAD>

Fork a thread from the end of one of its turns: a new thread whose agent goes on from there with the conversation up to it. The thread itself is left as it is. Only the conversation is forked; the files are as they are now.

Terminal window
qcc thread fork [OPTIONS] <THREAD> [TURN]
  • <THREAD>
  • <TURN> — The turn to fork from: its number in qcc thread turns, or its id [default: the latest one it can be forked from].
  • --env <ENVIRONMENT> — Make the fork a working directory of its own from the thread's [default: the thread's own environment, if it has one].
  • --same-dir — Work in the thread's own directory, even if it has an environment.
  • --prompt <PROMPT> — The fork's first message.
  • --follow — Stream the fork's events until its first turn settles.

Show what the agent's context window holds, part by part, as it last said; for agents that do not break it down, only how full it is.

Terminal window
qcc thread context [OPTIONS] <THREAD>
  • <THREAD>

Ask the agent to compact its context: to sum up the conversation so far and go on from the summary. Only for agents that can (qcc plugin list).

Terminal window
qcc thread compact [OPTIONS] <THREAD>
  • <THREAD>
  • --follow — Stream the thread's events until the compaction settles.

Bring what a thread did in its worktree back to the directory it was made from: as uncommitted changes, or with --merge as a merge of its branch.

Terminal window
qcc thread deliver [OPTIONS] <THREAD>
  • <THREAD>
  • --merge

Move a thread that works in its directory into a worktree of its own, between turns. With --carry its uncommitted changes go along and leave the directory.

Terminal window
qcc thread isolate [OPTIONS] <THREAD>
  • <THREAD>
  • --env <ENVIRONMENT> Default: git-worktree.
  • --carry
  • --env-dir <DIR> — Where the environment makes the thread's directory, instead of qcc's data directory: for git-worktree the worktree itself, e.g. tasks/BGT-123/bgt-auth. Relative to the current directory. It must not exist yet or be empty, and inside another git checkout it must be ignored there. Archiving the thread removes it.
  • --branch <NAME> — What the environment calls the thread's branch, e.g. feature/BGT-123 [default: qcc/<thread id>]. A branch that exists already, locally or on a remote, is refused without --reuse-branch. Archiving the thread keeps a branch named here unless nothing was committed on it.
  • --reuse-branch — Continue on --branch if it exists already: the local branch, or else the one fetched from a remote. Changes are then counted from where the branch stood.

Put a thread into a project (id or name), or take it out with none.

Terminal window
qcc thread project [OPTIONS] <THREAD> <PROJECT>
  • <THREAD>
  • <PROJECT>

Place a thread under another thread, or let it stand on its own with none.

Terminal window
qcc thread parent [OPTIONS] <THREAD> <PARENT>
  • <THREAD>
  • <PARENT>

Take a queued message back before it is delivered and print it. The id is the queue_id that thread send --json printed.

Terminal window
qcc thread unqueue [OPTIONS] <THREAD> <QUEUE_ID>
  • <THREAD>
  • <QUEUE_ID>

Go on with another agent, model or effort. Another agent starts a new session and is told the conversation so far; qcc provider models lists the models and their effort levels.

Terminal window
qcc thread agent [OPTIONS] <THREAD> <PROVIDER>
  • <THREAD>
  • <PROVIDER>
  • --model <MODEL> — Absent: the agent's default model.
  • --effort <LEVEL> — Absent: the agent's default effort.

Interrupt the running turn of a thread.

Terminal window
qcc thread stop [OPTIONS] <THREAD>
  • <THREAD>
  • --release — Also release the provider session.

Wait until threads settle (idle, failed or archived) and print each one's state and last message. Exit code 0: every last turn completed; 1: one failed or was interrupted; 124: the timeout ran out first.

Terminal window
qcc thread wait [OPTIONS] <THREADS>...
  • <THREADS>
  • --any — Return when any of them settles.
  • --timeout <SECONDS> — Give up after this many seconds.

List threads, oldest first, children under their parents.

Terminal window
qcc thread list [OPTIONS]
  • --archived — Include archived threads.
  • --parent <THREAD> — Only the children of this thread.
  • --state <STATE> — Only threads in this state: working, waiting (for the user), idle, failed or archived.
  • --hidden — Include hidden threads, which plugins keep for their own use.

List the files a thread changed in its environment, and the commits it made there.

Terminal window
qcc thread changes [OPTIONS] <THREAD>
  • <THREAD>
  • --uncommitted — Only what is not committed yet.
  • --from <COMMIT> — Only the changes after this commit, as qcc thread changes lists them; after the base when only --to is given.
  • --to <COMMIT> — Only the changes up to this commit, included; up to the directory as it is now, uncommitted work too, when only --from is given.

Find files and folders in a thread's working directory by a fuzzy query, as the app's composer does after @: best first, one path a line, a folder with / at its end.

Terminal window
qcc thread paths [OPTIONS] <THREAD> [QUERY]
  • <THREAD>
  • <QUERY> — Characters of the path, in order; every path, shortest first, without it.
  • --limit <LIMIT> — At most this many paths.

Print a text file of a thread's working directory, as the app's viewer reads it. Paths are relative to that directory and may not lead out of it.

Terminal window
qcc thread cat [OPTIONS] <THREAD> <PATH>
  • <THREAD>
  • <PATH>
  • --max-bytes <MAX_BYTES> — Refuse text longer than this many bytes (2 MiB by default).

List a folder of a thread's working directory as the app's file tree does: what git ignores is left out, folders first with / at their end.

Terminal window
qcc thread ls [OPTIONS] <THREAD> [PATH]
  • <THREAD>
  • <PATH> — Relative to the working directory; the directory itself without it.
  • --ignored — List what git ignores too (all but .git), marked (ignored).

Find a word in the files of a thread's working directory, as the app's viewer looks up where a name is used: one match a line, as path:line:column: text. The query is literal text, not a pattern; what git ignores, binary files and files over 2 MiB are left out.

Terminal window
qcc thread search [OPTIONS] <THREAD> <QUERY>
  • <THREAD>
  • <QUERY>
  • --partial — Match inside longer identifiers too, not only the whole word.
  • -i, --ignore-case — Let letters match in either case.
  • --limit <LIMIT> — At most this many matches (500 by default, up to 5000).

Print everything a thread changed in its environment as a unified diff.

Terminal window
qcc thread diff [OPTIONS] <THREAD> [PATHS]...
  • <THREAD>
  • <PATHS> — Only these files, by their paths in qcc thread changes.
  • --uncommitted — Only what is not committed yet.
  • --from <COMMIT> — Only the changes after this commit, as qcc thread changes lists them; after the base when only --to is given.
  • --to <COMMIT> — Only the changes up to this commit, included; up to the directory as it is now, uncommitted work too, when only --from is given.
  • --full — Show each changed file whole, its unchanged lines as context, not just a few lines around each change.

Put a thread away: release its session and remove its environment. The timeline stays readable. The threads started under it go too, at any depth, deepest first; those still working are stopped. One that refuses (uncommitted work without --force) stays, and so do the threads above it; the rest go.

Terminal window
qcc thread archive [OPTIONS] <THREAD>
  • <THREAD>
  • --force — Remove the environments even if uncommitted work is lost.
  • --no-descendants — Archive only this thread and leave the threads under it as they are.

Show a thread and its timeline.

Terminal window
qcc thread show [OPTIONS] <THREAD>
  • <THREAD>
  • --last <N> — Only the last N lines of the timeline (with --json, its last N events).

Print a thread's events.

Terminal window
qcc thread events [OPTIONS] <THREAD>
  • <THREAD>
  • --after <AFTER> — Only events after this sequence number. Default: 0.
  • --follow — Keep printing events as they are appended.

Comments on lines of a thread's changes: left by the user, dealt with by the agent.

The open comments on a thread's changes.

Terminal window
qcc comment list [OPTIONS]
  • --thread <THREAD> — The thread [default: $QCC_THREAD_ID, set inside agent sessions]. Environment: QCC_THREAD_ID.
  • --all — Resolved comments too.

Leave a comment on a line of a thread's changes.

Terminal window
qcc comment add [OPTIONS] <PATH> <LINE> <TEXT>
  • --thread <THREAD> — The thread [default: $QCC_THREAD_ID, set inside agent sessions]. Environment: QCC_THREAD_ID.
  • <PATH> — The file, from the top of the checkout as the thread's diff names it.
  • <LINE> — The line number in the changed file.
  • <TEXT>
  • --old — The line number counts in the code before the change: a removed line.

Mark comments dealt with.

Terminal window
qcc comment resolve [OPTIONS] <IDS>...
  • <IDS>
  • --note <NOTE> — What was done about them.

Open resolved comments again.

Terminal window
qcc comment reopen [OPTIONS] <IDS>...
  • <IDS>

Take a comment back.

Terminal window
qcc comment delete [OPTIONS] <ID>
  • <ID>

Answer approvals and questions agents are waiting on.

Answer a pending approval or question.

Terminal window
qcc interaction resolve [OPTIONS] <--option <OPTION>|--text <TEXT>|--cancel> <THREAD> <INTERACTION>
  • <THREAD>
  • <INTERACTION>
  • --option <OPTION> — Pick one of the offered options by id.
  • --text <TEXT> — Answer with free text.
  • --cancel — Decline to answer.

Secrets agents use without seeing them: store, list, run a command with them, ask the user for one.

  • qcc secret list — The secrets (never their values) and where the values are kept. Inside an agent's thread: the global ones and those of the thread's project.
  • qcc secret set — Store a secret, or replace its value. The value is read from stdin, or asked for without echo on a terminal; one trailing newline is dropped.
  • qcc secret remove — Delete a secret.
  • qcc secret exec — Run a command with secrets in its environment. Its stdout and stderr come back with those values replaced by [secret:NAME]; the exit code is the command's.
  • qcc secret ask — From an agent's thread: ask the user for a secret. The thread waits until the user stores a value in the app (or with qcc secret answer) or declines. Exits non-zero unless it was stored.
  • qcc secret answer — Answer a thread's request for a secret: the value is read like set reads it.

The secrets (never their values) and where the values are kept. Inside an agent's thread: the global ones and those of the thread's project.

Terminal window
qcc secret list [OPTIONS]
  • --project <PROJECT> — A project's secret (by id or name) [default: the project of $QCC_THREAD_ID].
  • --global — A global secret, for every project.

Store a secret, or replace its value. The value is read from stdin, or asked for without echo on a terminal; one trailing newline is dropped.

Terminal window
qcc secret set [OPTIONS] <NAME>
  • <NAME>
  • --project <PROJECT> — A project's secret (by id or name) [default: the project of $QCC_THREAD_ID].
  • --global — A global secret, for every project.

Delete a secret.

Terminal window
qcc secret remove [OPTIONS] <NAME>
  • <NAME>
  • --project <PROJECT> — A project's secret (by id or name) [default: the project of $QCC_THREAD_ID].
  • --global — A global secret, for every project.

Run a command with secrets in its environment. Its stdout and stderr come back with those values replaced by [secret:NAME]; the exit code is the command's.

Terminal window
qcc secret exec [OPTIONS] --env <NAMES> -- <COMMAND>...
  • --env <NAMES> — Secrets to put in the environment, under their own names; repeat or separate with commas. A project's secret wins over a global one.
  • --project <PROJECT> — A project's secret (by id or name) [default: the project of $QCC_THREAD_ID].
  • --global — A global secret, for every project.
  • <COMMAND> — The command and its arguments, after --.

From an agent's thread: ask the user for a secret. The thread waits until the user stores a value in the app (or with qcc secret answer) or declines. Exits non-zero unless it was stored.

Terminal window
qcc secret ask [OPTIONS] --prompt <PROMPT> <NAME>
  • <NAME>
  • --prompt <PROMPT> — What the secret is for and where the user gets it.
  • --project <PROJECT> — A project's secret (by id or name) [default: the project of $QCC_THREAD_ID].
  • --global — A global secret, for every project.
  • --thread <THREAD> — The thread that asks [default: $QCC_THREAD_ID].

Answer a thread's request for a secret: the value is read like set reads it.

Terminal window
qcc secret answer [OPTIONS] <THREAD> <INTERACTION>
  • <THREAD>
  • <INTERACTION>
  • --decline — Refuse to give the secret.

Inspect plugins.

  • qcc plugin list — List installed plugins, whether each is on, and what it contributes.
  • qcc plugin enable — Turn a plugin on and start it, now and on later starts of the daemon.
  • qcc plugin disable — Turn a plugin off and stop it, now and on later starts of the daemon. Its agents, environments, commands and skills go away; threads made with them stay readable.
  • qcc plugin settings — A plugin's own settings and their values.
  • qcc plugin set — Set one of a plugin's own settings; without a value, go back to its default.

List installed plugins, whether each is on, and what it contributes.

Terminal window
qcc plugin list [OPTIONS]

Turn a plugin on and start it, now and on later starts of the daemon.

Terminal window
qcc plugin enable [OPTIONS] <PLUGIN>
  • <PLUGIN>

Turn a plugin off and stop it, now and on later starts of the daemon. Its agents, environments, commands and skills go away; threads made with them stay readable.

Terminal window
qcc plugin disable [OPTIONS] <PLUGIN>
  • <PLUGIN>
  • --force — Even while its agents are working: their turns are cut short.

A plugin's own settings and their values.

Terminal window
qcc plugin settings [OPTIONS] <PLUGIN>
  • <PLUGIN>

Set one of a plugin's own settings; without a value, go back to its default.

Terminal window
qcc plugin set [OPTIONS] <PLUGIN> <SETTING> [VALUE]
  • <PLUGIN>
  • <SETTING>
  • <VALUE>

Group threads by project: named sets of repositories and folders.

List projects and their folders.

Terminal window
qcc project list [OPTIONS]

Make a project. Threads outside any project that work in its folders join it.

Terminal window
qcc project create [OPTIONS] --folder <FOLDERS> <NAME>
  • <NAME>
  • --folder <FOLDERS> — A repository or folder of the project; repeat for several.
  • --icon <ICON> — An icon of the app's set by name (rocket, gamepad-2) or an emoji.
  • --color <COLOR> — The color of a named icon: brand, red, orange, yellow, green, teal, blue, violet, pink or gray.

Add a folder to a project.

Terminal window
qcc project add-folder [OPTIONS] <PROJECT> <FOLDER>
  • <PROJECT>
  • <FOLDER>

Take a folder out of a project.

Terminal window
qcc project remove-folder [OPTIONS] <PROJECT> <FOLDER>
  • <PROJECT>
  • <FOLDER>
Terminal window
qcc project rename [OPTIONS] <PROJECT> <NAME>
  • <PROJECT>
  • <NAME>

Set the icon the app draws for a project: a name from the app's icon set (rocket, gamepad-2), an emoji, or none for the default.

Terminal window
qcc project icon [OPTIONS] <PROJECT> <ICON>
  • <PROJECT>
  • <ICON>
  • --color <COLOR> — The color of a named icon: brand, red, orange, yellow, green, teal, blue, violet, pink or gray.

Delete a project. Its threads stay, outside any project.

Terminal window
qcc project delete [OPTIONS] <PROJECT>
  • <PROJECT>

Prompts the daemon sends an agent on a schedule: every hour, every weekday at nine, ….

List automations, when each runs next and how its last run went.

Terminal window
qcc automation list [OPTIONS]

Make an automation: on its schedule the daemon starts a thread with the prompt.

Terminal window
qcc automation add [OPTIONS] <NAME>
  • <NAME>
  • --schedule <SCHEDULE> — When it runs: a cron expression (0 9 * * 1-5, in local time), @hourly, @daily, @weekly, @monthly, @yearly, or an interval (every 30m, every 2h).
  • --prompt <PROMPT> — The message each run sends the agent.
  • --provider <PROVIDER> — Provider id [default: the agent of the session it runs in ($QCC_THREAD_ID), else the default provider of qcc settings].
  • --cwd <CWD> — Directory the agent works in [default: the current directory].
  • --env <ENVIRONMENT> — Give each new thread a directory of its own made by this environment (git-worktree). --env none drops it.
  • --model <MODEL> — --model default goes back to the agent's default.
  • --effort <LEVEL> — --effort default goes back to the model's default.
  • --permission-mode <MODE> — read-only, ask, accept-edits, auto or full; default for the agent's own configuration. Nobody watches a scheduled run: in ask, it waits for you.
  • --threads <MODE> — new: every run is a thread of its own; continue: every run is a message to one thread, which the first run starts [default: new]. One of new, continue.
  • --overlap <POLICY> — When a run comes due while the previous one still works: skip it, or start it anyway [default: skip]. One of skip, allow.
  • --catch-up <BOOL> — Make up for a run missed while the daemon was not running, once [default: no; --catch-up false turns it off]. One of true, false.
  • --disabled — Make it switched off (add).

An automation's settings and its latest runs.

Terminal window
qcc automation show [OPTIONS] <AUTOMATION>
  • <AUTOMATION>
  • --runs <RUNS> — How many runs to show. Default: 10.

Change an automation; what is not given stays as it is.

Terminal window
qcc automation edit [OPTIONS] <AUTOMATION>
  • <AUTOMATION>
  • --name <NAME> — A new name.
  • --schedule <SCHEDULE> — When it runs: a cron expression (0 9 * * 1-5, in local time), @hourly, @daily, @weekly, @monthly, @yearly, or an interval (every 30m, every 2h).
  • --prompt <PROMPT> — The message each run sends the agent.
  • --provider <PROVIDER> — Provider id [default: the agent of the session it runs in ($QCC_THREAD_ID), else the default provider of qcc settings].
  • --cwd <CWD> — Directory the agent works in [default: the current directory].
  • --env <ENVIRONMENT> — Give each new thread a directory of its own made by this environment (git-worktree). --env none drops it.
  • --model <MODEL> — --model default goes back to the agent's default.
  • --effort <LEVEL> — --effort default goes back to the model's default.
  • --permission-mode <MODE> — read-only, ask, accept-edits, auto or full; default for the agent's own configuration. Nobody watches a scheduled run: in ask, it waits for you.
  • --threads <MODE> — new: every run is a thread of its own; continue: every run is a message to one thread, which the first run starts [default: new]. One of new, continue.
  • --overlap <POLICY> — When a run comes due while the previous one still works: skip it, or start it anyway [default: skip]. One of skip, allow.
  • --catch-up <BOOL> — Make up for a run missed while the daemon was not running, once [default: no; --catch-up false turns it off]. One of true, false.
  • --disabled — Make it switched off (add).

Switch an automation on: its schedule counts from now.

Terminal window
qcc automation enable [OPTIONS] <AUTOMATION>
  • <AUTOMATION>

Switch an automation off; it can still be run by hand.

Terminal window
qcc automation disable [OPTIONS] <AUTOMATION>
  • <AUTOMATION>

Delete an automation and its history. The threads it started stay.

Terminal window
qcc automation remove [OPTIONS] <AUTOMATION>
  • <AUTOMATION>

Run an automation now, whether it is on or not. Its schedule goes on as before.

Terminal window
qcc automation run [OPTIONS] <AUTOMATION>
  • <AUTOMATION>

Show and change the daemon's settings: paths of agent programs, defaults and environment of each agent.

Print the settings and which file each agent program is.

Terminal window
qcc settings show [OPTIONS]

Run this file whenever a plugin runs the program NAME (claude, codex, opencode); without a path, go back to looking it up on PATH.

Terminal window
qcc settings program [OPTIONS] <NAME> [PATH]
  • <NAME>
  • <PATH>

The agent new threads get when none is named; none to unset.

Terminal window
qcc settings default-provider [OPTIONS] <PROVIDER>
  • <PROVIDER>

Defaults and environment of one agent's threads.

Terminal window
qcc settings provider [OPTIONS] <PROVIDER>
  • <PROVIDER>
  • --model <MODEL> — The model new threads get; default to unset.
  • --effort <LEVEL> — The effort new threads get; default to unset.
  • --permission-mode <MODE> — The permission mode new threads get; default to unset.
  • --env <NAME=VALUE> — A variable every session of this agent sees: NAME=VALUE. Repeatable.
  • --unset-env <NAME> — Stop setting this variable. Repeatable.
  • --hidden <HIDDEN> — Leave the agent out of the app's pickers (true or false). One of true, false.

MCP servers every agent session gets on top of those of the agent's own configuration.

  • qcc mcp list — The MCP servers qcc gives agents, and whether each is on.
  • qcc mcp add — Add an MCP server, or replace the one of that name. Either a program the agent starts (qcc mcp add docs -- npx -y docs-mcp) or an HTTP server (qcc mcp add docs --url https://…/mcp). Sessions started from now on get it.
  • qcc mcp remove — Remove an MCP server.
  • qcc mcp enable — Give agents a server that was turned off.
  • qcc mcp disable — Keep a server in the settings but give it to no session.

The MCP servers qcc gives agents, and whether each is on.

Terminal window
qcc mcp list [OPTIONS]

Add an MCP server, or replace the one of that name. Either a program the agent starts (qcc mcp add docs -- npx -y docs-mcp) or an HTTP server (qcc mcp add docs --url https://…/mcp). Sessions started from now on get it.

Terminal window
qcc mcp add [OPTIONS] <NAME> [-- <COMMAND>...]
  • <NAME> — Letters, digits, _ and -.
  • --url <URL> — The server's streamable HTTP endpoint.
  • --header <NAME=VALUE> — A header the agent sends to an HTTP server: NAME=VALUE. Repeatable.
  • --env <NAME=VALUE> — A variable the server program sees: NAME=VALUE. Repeatable.
  • <COMMAND> — The program to start and its arguments, after --.

Remove an MCP server.

Terminal window
qcc mcp remove [OPTIONS] <NAME>
  • <NAME>

Give agents a server that was turned off.

Terminal window
qcc mcp enable [OPTIONS] <NAME>
  • <NAME>

Keep a server in the settings but give it to no session.

Terminal window
qcc mcp disable [OPTIONS] <NAME>
  • <NAME>

Skills plugins offer agents: instructions an agent reads when a task needs them.

  • qcc skill list — The skills plugins offer, and whether each is on. One offered on request reaches only the threads that ask for it (thread spawn --skill).
  • qcc skill enable — Give agents a skill that was turned off. Sessions started from now on get it.
  • qcc skill disable — Give a skill to no session, whatever a thread asks.

The skills plugins offer, and whether each is on. One offered on request reaches only the threads that ask for it (thread spawn --skill).

Terminal window
qcc skill list [OPTIONS]

Give agents a skill that was turned off. Sessions started from now on get it.

Terminal window
qcc skill enable [OPTIONS] <NAME>
  • <NAME>

Give a skill to no session, whatever a thread asks.

Terminal window
qcc skill disable [OPTIONS] <NAME>
  • <NAME>

Inspect agent providers.

  • qcc provider models — The models a provider's agent offers, for thread spawn --model.
  • qcc provider skills — The skills a provider's agent finds by itself (its own folders, its plugins), as the agent reports them. qcc shows them; the agent's configuration decides.
  • qcc provider commands — The slash commands a provider's agent runs when a message sent through qcc starts with /name: built-in, the user's and the project's.
  • qcc provider limits — How much of the subscription's usage limits each provider's account has spent (the 5-hour and weekly windows) and when they start over, as the agents last reported. Asks the agents when nothing is known yet.

The models a provider's agent offers, for thread spawn --model.

Terminal window
qcc provider models [OPTIONS] <PROVIDER>
  • <PROVIDER>
  • --refresh — Ask the agent again instead of using what the daemon remembers.

The skills a provider's agent finds by itself (its own folders, its plugins), as the agent reports them. qcc shows them; the agent's configuration decides.

Terminal window
qcc provider skills [OPTIONS] <PROVIDER>
  • <PROVIDER>
  • --refresh — Ask the agent again instead of using what the daemon remembers.
  • --thread <THREAD> — Ask about this thread's working directory: the project's own skills are found there.

The slash commands a provider's agent runs when a message sent through qcc starts with /name: built-in, the user's and the project's.

Terminal window
qcc provider commands [OPTIONS] <PROVIDER>
  • <PROVIDER>
  • --refresh — Ask the agent again instead of using what the daemon remembers.
  • --thread <THREAD> — Ask about this thread's working directory: the project's own commands are found there.

How much of the subscription's usage limits each provider's account has spent (the 5-hour and weekly windows) and when they start over, as the agents last reported. Asks the agents when nothing is known yet.

Terminal window
qcc provider limits [OPTIONS] [PROVIDER]
  • <PROVIDER> — Only this provider.
  • --refresh — Ask the agents now (without a prompt) instead of using what the daemon remembers.

List the commands plugins contribute.

List every plugin command and how to run it.

Terminal window
qcc command list [OPTIONS]