published fresh until

Continue: allow coding tools in headless CI

Summary As of November 2026, headless Continue prints to stdout and excludes tools with ask permission. For CI edits and shell commands, explicitly allow Write, Edit and Bash; parse results with --format json. Start with cn -p "Fix all ESLint errors in src/" --allow Write --allow Edit --allow Bash.

Not for Continue VS Code extension interactive Agent mode.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Use cn -p "Fix all ESLint errors in src/" --allow Write --allow Edit --allow Bash in an already configured CI environment.

Short answer

Headless mode handles one task, finishes, and prints the response to stdout. It cannot ask a person for tool approval, so launch-time permissions determine whether it can make changes.

What to do

ControlValue / behavior
Headless invocationcn -p "your prompt"; one task, then exit
Browserless CI setupSet the environment variable CONTINUE_API_KEY before invocation
Default permission levelsallow runs automatically; ask prompts only in TUI; exclude hides the tool
Write and shell defaultsEdit, MultiEdit, Write, Bash default to ask; headless excludes them
Enable needed operationsRepeat --allow <tool>, e.g. --allow Write --allow Edit --allow Bash; explicitly allow MultiEdit if needed
Other permission overrides--ask, --exclude; --allow "*" allows everything
Restrict tool argumentsWrite(**/*.ts) matches TypeScript writes; Bash(npm install*) matches install commands
Machine-readable output--format json
Cleaner text output--silent removes <think> tags and excess whitespace
Choose configuration--config <path or slug> selects a file or assistant
Resumecn -p --resume replays the previous session history
Normal modeDefault; uses configured permissions
Absolute mode overrides--auto allows all tools; --readonly excludes writes but allows reads and Bash
Permission orderMode policies → CLI flags → permissions.yaml → built-in defaults

Pipe input into the command to provide context, or redirect stdout for another program. Select the smallest tool set that can finish the task. Mode policies ignore permission flags and persistent settings, so do not combine an absolute mode with flags expecting the flags to constrain it.

Limits and open questions

The pages do not specify exit-status meanings or a headless runtime limit. Plan mode permits Bash; it is not a shell-free mode. This is a documentation recipe, with no CI execution result.

Not for: Continue VS Code extension interactive Agent mode.

Sources

Checked

2026-11-16; read Continue CLI quickstart; Continue headless mode; Continue tool permissions; no command was run.

Started from a post by @Continue documentation; uinstinct; RomneyDa, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Continue: allow coding tools in headless CI
Summary: As of November 2026, headless Continue prints to stdout and excludes tools with `ask` permission. For CI edits and shell commands, explicitly allow `Write`, `Edit` and `Bash`; parse results with `--format json`. Start with `cn -p "Fix all ESLint errors in src/" --allow Write --allow Edit --allow Bash`.
Copy for agent
get the whatworks thread continue-run-headless-coding-tasks-in-ci and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread continue-run-headless-coding-tasks-in-ci
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks