Local fork of continuedev/continue for auto-approve and full-access mode experiments
Find a file
semantic-release-bot 35ea59f439 chore(release): 1.4.0 [skip ci]
# [1.4.0](https://github.com/continuedev/cli/compare/v1.3.6...v1.4.0) (2025-07-17)

### Features

* dim user msg text color ([b22429b](b22429ba0a))
2025-07-17 01:11:18 +00:00
.continue feat: integrate SDK into CLI (#1) 2025-05-02 13:15:45 -07:00
.github/workflows rename --headless instances to -p 2025-07-16 14:02:34 -07:00
.vscode rename --headless instances to -p 2025-07-16 14:02:34 -07:00
spec Add readonly and no-tools modes with tool permission filtering 2025-07-16 00:46:00 -07:00
src Merge pull request #60 from continuedev/correct-exp-backoff 2025-07-16 18:10:42 -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: release index.js 2025-07-13 21:34:11 -07:00
.nvmrc .nvmrc 2025-04-25 20:44:10 -07:00
.releaserc.json fix: release index.js 2025-07-13 21:34:11 -07:00
AGENTS.md onboarding flow 2025-07-15 23:49:27 -07:00
CHANGELOG.md chore(release): 1.4.0 [skip ci] 2025-07-17 01:11:18 +00:00
jest.config.mjs fix warnings 2025-07-15 19:29:29 -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 bump openai-adapters 2025-07-16 16:49:00 -07:00
package.json chore(release): 1.4.0 [skip ci] 2025-07-17 01:11:18 +00:00
README.md rename --headless instances to -p 2025-07-16 14:02:34 -07:00
test-file.txt Add file search functionality with @ trigger in user input 2025-07-14 01:29:30 -07:00
test-rule.md Add --rule flag support for loading custom rules from files, hub, or direct strings 2025-07-16 11:12:04 -07:00
TODO.md Add comprehensive unit tests for pure functions across the codebase 2025-07-16 10:24:24 -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

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

Each terminal window maintains its own separate session, so you can have multiple concurrent conversations without them interfering with each other.

Advanced Usage

# Resume session with specific assistant
cn --resume --config my-assistant

# Resume session in headless mode
cn --resume -p

Command Line Options

  • -p: Run in headless mode (no TUI)
  • --config <path>: Specify assistant configuration path
  • --resume: Resume the last session for this terminal
  • <prompt>: Optional prompt to start with

Session Storage

Sessions are stored in ~/.continue-cli/sessions/ and are automatically managed per terminal window using environment variables like:

  • TERM_SESSION_ID
  • SSH_TTY
  • TMUX
  • STY

If none of these are available, the process ID is used as a fallback.