Local fork of continuedev/continue for auto-approve and full-access mode experiments
Add --silent flag to headless mode (-p/--print) that removes <think></think> tags and excess whitespace from LLM responses. This enables clean output suitable for shell piping and automation. ## Why --silent instead of --no-think The flag was renamed from --no-think to --silent because: - Commander.js treats --no- prefix as negation flags, expecting a base --think option - --silent provides clearer semantic meaning for "quiet, clean output" - Follows Unix convention where --silent typically means suppress extra output ## Problem Solved Many models (like Nemotron - Llama 3.3 Nemotron Super 49B v1.5) emit <think></think> tags that interfere with shell piping: Without --silent: ``` $ cn -p "Echo a shell script that prints 'Hello World' Output only the script and NOTHING ELSE. No code fences. No markdown." <think> I need to write a shell script. Let me think about this. The user wants a simple Hello World script. </think> #\!/bin/bash echo "Hello World" ``` With --silent: ``` $ cn -p --silent "Echo a shell script that prints 'Hello World' Output only the script and NOTHING ELSE. No code fences. No markdown." #\!/bin/bash echo "Hello World" ``` This makes piping work correctly: ``` $ eval $(cn -p --silent "Write a shell script that prints 'Hello World'") Hello World ``` ## Features - Strips all <think></think> blocks and their content - Reduces excessive whitespace (3+ consecutive newlines become 2) - Works with --format json flag - Includes comprehensive unit and e2e tests - Only available with -p/--print flag (headless mode) |
||
|---|---|---|
| .continue | ||
| .github/workflows | ||
| .vscode | ||
| media | ||
| spec | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| .npmignore | ||
| .nvmrc | ||
| .releaserc.json | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| demo.md | ||
| example-permissions.yaml | ||
| jest.config.mjs | ||
| jest.resolver.cjs | ||
| jest.resolver.js | ||
| jest.setup.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| REFACTOR_PLAN.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||
Continue CLI
The Continue CLI (cn) is a customizable command line coding agent.
Installation
npm i -g @continuedev/cli
Usage
cn
Headless Mode
cn -p "Generate a conventional commit name for the current git changes."
Session Management
The CLI automatically saves your chat history for each terminal session. You can resume where you left off:
# Resume the last session in this terminal
cn --resume
Command Line Options
-p: Run in headless mode (no TUI)--config <path>: Specify agent configuration path--resume: Resume the last session for this terminal<prompt>: Optional prompt to start with
