Skip to content
qqthe agent runtime
DocsFAQ

FAQ

Short answers to common questions about QQ.

A single Rust binary that runs AI coding agents: interactively in a terminal UI, unattended from scripts (qq run), and as a local HTTP/SSE server that several clients can share. Agents read, search, and edit your files, run commands, call MCP tools, and spawn sub-agents, with every action gated by an approval mode you choose, a snapshot before each run that qq undo restores, and every event stored in SQLite so sessions survive restarts.

How is it different from Codex, OpenCode, Pi, or Claude Code?

Section titled “How is it different from Codex, OpenCode, Pi, or Claude Code?”

Mostly in emphasis. QQ is built for running many agents at once with bounded resources and a durable record — sessions are first-class, the default mode works unattended in your checkout with a snapshot to undo, the server is part of the design rather than an add-on, and it is one static binary with no runtime. It is younger and has fewer integrations. A detailed comparison lives in the archived harness comparison (2026-09-16 snapshot).

Any model from OpenAI, Anthropic, Google, xAI, Amazon Bedrock, a ChatGPT Codex subscription, or any endpoint speaking the OpenAI Responses, OpenAI Chat Completions, Anthropic Messages, or Google GenerateContent protocol (gateways, LiteLLM, local servers). Providers.

No. QQ asks you to choose one once because the choice decides cost and capability, and the error that asks lists every way to set it. A repository can commit its team default in .qq/config.ron.

In your OS keyring (Secret Service, Keychain, Credential Manager). Never in configuration files, never in the session database. qq auth list shows names and backends only. In environments without a keyring, --allow-file opts into a user-only file, or use environment variables.

No. QQ makes network requests only to the model providers and MCP servers you configure, and to an organization manifest URL if you enroll one.

Files it reads with tools, output of commands it runs, and at the start of a run the root AGENTS.md (or CLAUDE.md when AGENTS.md is absent), capped at 64 KiB. For native file tools, QQ automatically checks only the ancestors of the paths the agent actually names. When a nested instruction is new or has changed, QQ returns its complete source, scope, hash, and text before touching the target, and the agent reviews it and retries. QQ does not infer paths from arbitrary shell or exec command text. @path in a prompt attaches a file explicitly.

How do I give the agent project instructions?

Section titled “How do I give the agent project instructions?”

Write AGENTS.md at the repository root: conventions, how to build and test, what not to touch. QQ loads it into the stable run prompt. Nested AGENTS.md files scope instructions to descendants; at any scope, CLAUDE.md is the fallback only when AGENTS.md is absent, and the more-specific scope wins. Native file tools discover these rules automatically from explicit target paths, including targets in ignored directories and worktrees. Instructions guide the agent but do not grant extra tool or approval authority.

Why does it ask me before running cargo test?

Section titled “Why does it ask me before running cargo test?”

Under the default auto mode it should not: Auto runs commands without asking. A prompt means the session is in ask mode, which asks before every non-read call. The top row shows the mode; switch with /approval. Permissions.

Yes: qq run --approval auto --format jsonl … with credentials from the environment. Commands run as the CI user, so give the job only the credentials it needs. Headless › In CI.

Run qq on that machine over SSH. qq serve binds only to loopback, and there is no remote client or remote authentication yet.

Every exit prints the session id and the commands to continue it: qq --session ID for the TUI, qq run --session ID "…" unattended. Inside the TUI, /sessions lists them by name.

Where is the data, and how do I back it up or delete it?

Section titled “Where is the data, and how do I back it up or delete it?”

qq config paths prints the data directory; sessions.sqlite3 there holds everything. Copy it to back up; delete it to start over. Trust decisions live alongside it.

Delete the binary, then optionally the directories qq config paths lists and each credential via qq auth logout. Install › Uninstall.

How do I report a bug or ask for a feature?

Section titled “How do I report a bug or ask for a feature?”

Issues with the templates there; include qq version output. Security problems: see ../../SECURITY.md.

../README.md: design (the system as built), ADRs (why), plans (what is next), runbooks (how to). AGENTS.md at the repository root is the contributor contract, and yes, agents read it too.