Local fork of continuedev/continue for auto-approve and full-access mode experiments
Find a file
Chad Metcalf f1961e7e54
refactor: extract shared flag processing logic to eliminate duplication
Extract common flag processing logic from TUI and headless code paths into
shared flagProcessor module. This eliminates code duplication where both
paths independently converted readonly/auto flags to mode and structured
permission overrides.

Changes:
- Add src/flags/flagProcessor.ts with shared flag processing functions
- Replace duplicated logic in chat.ts (lines 168-173 and 259-264)
- Add comprehensive unit tests for all flag processing scenarios
- Add validation for conflicting --readonly and --auto flags

This is a pure refactor with no behavior changes. All existing functionality
preserved while eliminating 20+ lines of duplicated code.
2025-08-03 15:14:54 -07:00
.continue rename to agent in a few places 2025-07-19 20:56:52 -07:00
.github/workflows Disable scheduled releases in GitHub workflow 2025-07-31 19:59:01 -07:00
.vscode fix: remote url no port 2025-07-21 15:26:18 -07:00
media zoom in on gif 2025-07-29 15:48:36 -07:00
spec more notes 2025-08-01 12:47:46 -07:00
src refactor: extract shared flag processing logic to eliminate duplication 2025-08-03 15:14:54 -07:00
.env.example feat: integrate SDK into CLI (#1) 2025-05-02 13:15:45 -07:00
.gitignore chore: ignore notes.md 2025-07-13 21:00:34 -07:00
.npmignore fix: update npmignore 2025-07-20 11:33:51 -07:00
.nvmrc .nvmrc 2025-04-25 20:44:10 -07:00
.releaserc.json Merge pull request #70 from continuedev/onboarding-more 2025-07-19 17:31:35 -07:00
AGENTS.md fix: streaming tests, built in tool flag 2025-07-30 13:58:40 -07:00
CHANGELOG.md chore(release): 1.4.2 [skip ci] 2025-07-17 09:03:00 +00:00
demo.md cap 2025-07-20 22:16:49 -07:00
example-permissions.yaml feat: permissions.yaml 2025-07-27 13:24:29 -07:00
jest.config.mjs fix lint errors 2025-07-31 11:00:46 -07:00
jest.resolver.cjs more test fixes 2025-07-22 18:57:46 -07:00
jest.resolver.js more test fixes 2025-07-22 18:57:46 -07:00
jest.setup.ts fix tests 2025-07-28 16:13:15 -07:00
LICENSE chore: update README and add cn alias, remove test files, add LICENSE 2025-07-14 01:12:14 -07:00
package-lock.json test: preprocess tests 2025-07-30 11:12:00 -07:00
package.json remove new jest script 2025-07-31 09:12:25 -07:00
README.md revert README.md 2025-07-31 13:09:25 -07:00
REFACTOR_PLAN.md refactor next step 2025-07-22 13:45:46 -07:00
tsconfig.build.json fixes 2025-07-31 11:24:16 -07:00
tsconfig.json Add markdown rendering support with comprehensive test coverage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> 2025-07-14 18:32:12 -07:00
vitest.config.ts test: preprocess tests 2025-07-30 11:12:00 -07:00

Continue CLI

The Continue CLI (cn) is a customizable command line coding agent.

Continue CLI Demo

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