# Command Code

> A terminal coding agent built around open models that learns your coding preferences from every accept, reject and edit

- Category: AI Coding / Autonomous Coding Agents
- Language: Distributed as an npm package (Node.js 22+)
- Licence: Proprietary (npm package published as UNLICENSED; source not public)
- Repository: https://github.com/CommandCodeAI/command-code
- Website: https://commandcode.ai
- Canonical page: https://ai-tldr.dev/tools/command-code/

## In short

Command Code is an AI coding agent that runs in your terminal. You start it with the cmd command inside a project and ask it to build features, fix bugs, write tests or refactor code. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in Distributed as an npm package (Node.js 22+) and licensed Proprietary (npm package published as UNLICENSED; source not public).

## Overview

Command Code is an AI coding agent that runs in your terminal. You start it with the cmd command inside a project and ask it to build features, fix bugs, write tests or refactor code. Its site positions it around open models: DeepSeek, Qwen, Kimi, GLM and MiniMax ship out of the box alongside models from Anthropic, OpenAI, Google and xAI, and the project says the harness validates and repairs tool calls in flight so that open models behave reliably as agents.

What sets it apart is Taste. Every accept, reject, edit or correction you make in a session becomes a signal for taste-1, which the docs describe as a meta neuro-symbolic model with continuous reinforcement learning. It is not an LLM: it classifies each signal as a real preference or not, and the learnings are written out as readable taste.md files under .commandcode/taste/ in the project (or ~/.commandcode/taste/ globally). Teams can share them with npx taste push and npx taste pull.

Command Code is not open source. The npm package is published as UNLICENSED, and the GitHub repository holds only the README and issue templates; it serves as the public home for bug reports while the CLI itself ships closed-source through npm. Using it requires a Command Code account (browser login or an API key), with paid plans listed on the project's site.

## What it does

- Interactive terminal sessions: / opens the slash-command menu, ! runs a line as a shell command, and @ mentions a file as context
- Taste learning: taste-1 turns your accepts, rejects and edits into taste.md preference files you can version, lint, push and pull
- Model choice per session with -m / --model, a quick switcher (alt+p) and --list-models, covering open and commercial model vendors
- Permission modes (default, accept edits, plan, yolo) cycled with shift+tab, plus checkpoint rewind with esc twice
- Headless use with -p / --print and --output-format json, and isolated runs in a managed git worktree with -w
- Extensible through MCP servers (cmd mcp), agent skills (cmd skills) and mods (cmd mods)

## Getting started

Command Code needs Node.js 22 or newer and runs on macOS, Linux, WSL and Windows. These steps follow the project's README and quickstart.

1. Install the CLI

   Install the package globally from npm and check the version.

```bash
npm i -g command-code
cmd --version
```

2. Log in

   Authenticate in the browser, or create an API key and paste it into the terminal when prompted.

```bash
cmd login
```

3. Start a session in your project

   Run cmd in the project directory, trust the folder when asked, then type your first prompt. On native Windows the command is cmdc.

```bash
cd your-project
cmd
```

4. Run it non-interactively

   Print mode runs a single request and exits, which suits scripts; --model pins a specific model for the run.

```bash
cmd -p "write tests for the date utils"
cmd --list-models
```

5. Share your taste with the team

   Learned preferences live in .commandcode/taste/. Push them to your Command Code account and pull them into another project or machine.

```bash
npx taste push --all
npx taste pull username/project-name
```

## When to use it

- Running an agentic coding workflow on open models such as DeepSeek, Qwen, Kimi or GLM from the terminal
- Teams that want a coding agent to pick up their review preferences and conventions, and share them as versioned taste files
- Scripting code changes in CI or shell scripts through print mode with JSON output
- Trying several model vendors from one CLI without switching tools
