Skip to content

Quick start

This page assumes qcc and at least one agent are installed (see Installation). No agent yet? The built-in echo provider is a test agent that answers without any account; in the app it is hidden until Show example plugins is turned on in the settings.

  1. Open the app. It starts the daemon if none is running.
  2. Press Ctrl+N for a new thread. Pick the directory (or a project and its folder), the agent, the model, the effort and the permission mode. Turn on the worktree switch to give the thread a git worktree of its own, so the agent does not touch your checkout.
  3. Write the first message. The timeline shows what the agent does as it does it: messages, commands with their output, edits with diffs, tool calls.
  4. When the agent asks for permission or asks a question, the thread shows Needs your answer in the sidebar; answer it in the thread.
  5. Write the next message while the agent works: it is queued for the next turn, or, with Steer, mixed into the running one.
  6. For a worktree thread, look at the Changes tab, comment on lines if something should be different, then Apply to … or Merge the work into your checkout.

Everything the app shows is described in Desktop app.

Start a thread and follow it until the first turn ends:

Terminal window
qcc thread spawn --provider claude-code --permission-mode ask --prompt 'what is in this directory?' --follow

--follow streams the thread's events to the terminal. Without it the command prints the thread's id and returns; the agent goes on working in the daemon.

Terminal window
qcc thread list # every thread and its state
qcc thread show <thread-id> --last 20 # the last lines of its timeline
qcc thread send <thread-id> 'and one more thing' # queued behind a running turn
qcc thread send <thread-id> 'use the other API' --steer # mixed into the running turn

When an agent waits for an answer (its state is waiting), the request is in its timeline:

Terminal window
qcc thread list --state waiting
qcc thread show <thread-id> --last 5
qcc interaction resolve <thread-id> <interaction-id> --option <option-id> # or --text '…', or --cancel
Terminal window
qcc thread spawn --provider codex --env git-worktree --prompt 'add tests for the parser'
qcc thread changes <thread-id> # files changed and commits made since the base
qcc thread diff <thread-id> # all of it as one patch
qcc thread deliver <thread-id> # apply the work to your checkout as uncommitted changes
qcc thread deliver <thread-id> --merge # or merge the thread's branch
qcc thread archive <thread-id> # release the session and remove the worktree

More on worktrees, their branches and setup scripts in Projects and worktrees.

Inside a session qcc started, the agent has qcc ($QCC_BIN) and its own thread id ($QCC_THREAD_ID). A thread it spawns becomes its child, inherits its project, model and permission mode, and can be waited for:

Terminal window
qcc thread spawn --prompt 'fix the flaky test in tests/e2e.rs' --env git-worktree
qcc thread wait <child-id>

The bundled orchestration plugin gives every agent a skill that teaches it this. See Orchestration.

From a checkout of the repository, ./dev demo starts a temporary daemon, runs a few threads of the echo agent through it and stops it:

Terminal window
./dev demo

With a daemon running, the same agent is available to the CLI:

Terminal window
qcc thread spawn --provider echo --prompt 'hello from qcc' --follow
qcc thread spawn --provider echo --prompt '/tool grep' --follow