Approval modes
When you send a capture, the approval mode controls whether the agent runs immediately or waits for your approval. Choose based on how much control you want and how confident you are in the instruction.
The three modes
Ask
Always pause before the agent starts. You see the capture and approve before any files are touched.
- Best for: learning, exploring, or untested instructions
- Flow: capture → review pre-run → approve → agent runs → review diff → approve changes
- Safety: highest — you control both pre-run and post-run
Smart
Pause only for runs that will edit files in your workspace. Safe default for mixed sessions (e.g., inspecting design tools while editing your codebase).
- Best for: balanced workflow with most captures safe and some risky
- Flow: capture → (if risky, pause for approval) → agent runs → review diff → approve changes
- Safety: medium — you approve risky edits but not read-only inspections
Allow
Run immediately without pre-execution approval. Still shows the diff after, so you can review and reject if needed.
- Best for: fast iteration when you're confident, or fully hands-free auto-run
- Flow: capture → agent runs immediately → review diff → approve/reject changes
- Safety: lowest — relies on your post-run review
Choosing a mode
Set the approval mode from the Agent panel's dropdown in the toolbar. It's attached to each capture when you send it, so changing it mid-session only affects new captures — not ones already in flight.
Auto-run (fully hands-free)
Auto-run is on by default — the only thing missing is QUEY_CODEX_CWD, the absolute path to the repo you want the agent to edit. Without it, auto-run has nowhere to write and each capture just records an error asking you to set it:
{ "mcpServers": { "quey": { "command": "npx", "args": ["-y", "@quey/mcp", "server"], "env": { "QUEY_CODEX_CWD": "/absolute/path/to/repo" } } }}With auto-run active:
- You send a capture from the browser, with whatever approval mode is selected in the Agent panel.
- The MCP runner detects it and launches Claude Code or Codex automatically — whichever provider the capture targets.
- The agent edits the file and marks the capture as resolved.
- The diff appears in the toolbar for your review.
QUEY_AUTO_RUN=0 to disable auto-run entirely (e.g. to drive Claude/Codex manually via MCP tools instead). Cursor doesn't use auto-run at all — it reads pending captures directly through MCP tools, so neither variable matters for it.For a truly hands-free loop where your agent watches for captures continuously, use quey_watch in your agent's automation:
while True: capture = quey_watch() # blocks until a new capture arrives # process capture quey_resolve(capture.id, summary="Applied changes")QUEY_CODEX_CWD (absolute path to your repo) to be set. Without it, auto-run is disabled.When to use each mode
- Ask: First time with a tool, testing new instructions, high-risk edits
- Smart: Daily development, mixed sessions, most captures are safe
- Allow: Repetitive edits, hands-free workflows, trusted instructions
- Auto-run: CI/CD pipelines, fully automated workflows, stable instructions