continue-custom/extensions/cli
continue[bot] 1c067901a9
feat: Add preview panel to session selector (cn ls / /resume) (#8231)
* feat: Add preview panel to session selector for chat history

- Created SessionPreview component to display chat history
- Updated SessionSelector to show two-column layout with preview on right
- Preview shows first 10 messages with truncation for long content
- Preview only displays when terminal width > 100 columns
- Automatically loads and displays session history as cursor moves

Fixes CON-3892

Generated with Continue(https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: Username <nate@continue.dev>

* chore: Adjust session selector layout to 30/70 split

- Changed list width from 45% to 30% of terminal width
- Preview panel now takes up 70% of the right side
- Provides more space for chat history preview

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: Username <nate@continue.dev>

* fix lint

* preview pane takes full width

* check terminal height and skip empty messages

---------

Co-authored-by: Continue Agent <agent@continue.dev>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: Username <nate@continue.dev>
Co-authored-by: Ting-Wai To <40179554+tingwai@users.noreply.github.com>
2025-10-17 14:24:36 -07:00
..
.github cai: workflow to auto-fix tests (disabled for now) 2025-08-31 16:40:13 -07:00
docs feat: --id flag for cn serve (#7884) 2025-09-21 13:24:39 -07:00
media Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
spec Add CONTINUE_ALLOW_ANONYMOUS_TELEMETRY env var for anonymous telemetry control 2025-10-07 20:03:22 +00:00
src feat: Add preview panel to session selector (cn ls / /resume) (#8231) 2025-10-17 14:24:36 -07:00
stubs chore: format 2025-08-21 17:38:41 -07:00
test-fixtures chore: format 2025-08-26 09:23:06 -07:00
.env.example Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
.gitignore feat: asciinema recordings setup (#8154) 2025-10-08 22:08:17 -07:00
.npmignore chore: add package-lock 2025-08-20 20:00:53 -07:00
.releaserc.json Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
AGENTS.md chore: format 2025-09-11 14:48:58 -07:00
BUILD.md Revise build steps in BUILD.md (#8130) 2025-10-08 07:27:45 -07:00
build.mjs feat: mark unread (#7886) 2025-09-22 19:54:46 -07:00
CHANGELOG.md Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
demo.expect feat: asciinema recordings setup (#8154) 2025-10-08 22:08:17 -07:00
eslint.config.js Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
package-lock.json chore(deps-dev): bump happy-dom from 20.0.0 to 20.0.2 in /extensions/cli 2025-10-15 21:00:03 +00:00
package.json chore(deps-dev): bump happy-dom from 18.0.1 to 20.0.0 in /extensions/cli 2025-10-11 00:09:39 +00:00
README.md Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
smoke-test.mjs chore: format 2025-08-26 09:23:06 -07:00
tsconfig.build.json Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
tsconfig.json fix: lint errors from core 2025-08-26 18:19:44 -07:00
validate-aliases.mjs refactor: shared function for constructing llm api 2025-08-29 10:29:35 -07:00
vitest.config.ts fix: delete unecessary build options 2025-08-27 15:58:32 -07:00
vitest.e2e.config.ts Add 'extensions/cli/' from commit 'e27a5c87d520e28844c9eac10bc6d301feee4b5e' 2025-08-20 17:19:56 -07:00
vitest.setup.ts Add CONTINUE_ALLOW_ANONYMOUS_TELEMETRY env var for anonymous telemetry control 2025-10-07 20:03:22 +00: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

# List recent sessions and choose one to resume
cn ls

# List sessions in JSON format (for scripting)
cn ls --json

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

Commands

  • cn: Start an interactive chat session
  • cn ls: List recent sessions with TUI selector to choose one to resume
  • cn login: Authenticate with Continue
  • cn logout: Sign out of current session
  • cn remote: Launch a remote instance
  • cn serve: Start HTTP server mode

Session Listing (cn ls)

Shows recent sessions, limited by screen height to ensure it fits on your terminal.

  • --json: Output in JSON format for scripting (always shows 10 sessions)