deepcode-cli

Deep Code CLI

[![][npm-release-shield]][npm-release-link] [![][npm-downloads-shield]][npm-downloads-link] [![][github-contributors-shield]][github-contributors-link] [![][github-forks-shield]][github-forks-link] [![][github-stars-shield]][github-stars-link] [![][github-issues-shield]][github-issues-link] [![][github-issues-pr-shield]][github-issues-pr-link] [![][github-license-shield]][github-license-link] English · [中文](./README.md)
[Deep Code](https://github.com/lessweb/deepcode-cli) is a terminal AI coding assistant optimized for the `deepseek-v4` model, with support for deep thinking, reasoning effort control, Agent Skills, and MCP (Model Context Protocol) integration. ## Installation ```bash npm install -g @vegamo/deepcode-cli ``` Run `deepcode` inside any project directory to get started. ![intro2](resources/intro3.png) ## Configuration Create `~/.deepcode/settings.json`: ```json { "env": { "MODEL": "deepseek-flash", "BASE_URL": "https://api.deepseek.com", "API_KEY": "sk-..." }, "thinkingEnabled": true, "reasoningEffort": "max" } ``` The configuration file is shared with the [Deep Code VSCode extension](https://github.com/lessweb/deepcode-cli) — configure once, use everywhere. For complete configuration details (multi-level priority, environment variables, etc.), see [docs/configuration.md](docs/configuration.md). ## Key Features ### **Skills** Deep Code CLI supports agent skills that allow you to extend the assistant's capabilities: Skills are discovered from these locations, in priority order: | Scope | Path | Purpose | | :------ | :-------------------- | :---------------------------- | | Project | `./.deepcode/skills/` | Deep Code's native location | | Project | `./.agents/skills/` | Cross-client interoperability | | User | `~/.deepcode/skills/` | Deep Code's native location | | User | `~/.agents/skills/` | Cross-client interoperability | ### **Optimized for DeepSeek** - Specifically tuned for DeepSeek model performance. - Reduce costs by using [Context Caching](https://api-docs.deepseek.com/guides/kv_cache). - Natively supports [Thinking Mode](https://api-docs.deepseek.com/guides/thinking_mode) and Effort Control. ## Slash Commands & Keyboard Shortcuts | Slash Command | Action | |------------------|---------------------------------------------------------| | `/` | Open the skills / commands menu | | `/new` | Start a fresh conversation | | `/resume` | Choose a previous conversation to continue | | `/fork` | Fork the current conversation | | `/continue` | Continue the active conversation or pick one to resume | | `/compact` | Manually compact the current conversation context | | `/copy` | Copy the last assistant response's text to the clipboard | | `/model` | Switch model, thinking mode, and reasoning effort | | `/experimental` | Configure experimental features, such as reasoning summaries | | `/permissions` | Configure tool permissions | | `/raw` | Toggle display mode (Normal / Lite / Raw scrollback) | | `/init` | Initialize an AGENTS.md file (LLM project instructions) | | `/skills` | List available skills | | `/mcp` | View MCP server status and available tools | | `/undo` | Restore code and/or conversation to a previous point | | `/exit` | Quit (also `Ctrl+D` twice) | | Key | Action | |------------------|----------------------------------------------------------| | `Enter` | Send the prompt | | `Shift+Enter` | Insert a newline (also `Ctrl+J`) | | `Ctrl+V` | Paste an image from the clipboard (`Alt+V` on Windows) | | `Ctrl+Y` | Copy input text to clipboard | | `Ctrl+R` | Search user input in the current and previous sessions | | `Esc` | Interrupt the current model turn | | `Ctrl+D` twice | Quit Deep Code | ## Supported Models - `deepseek-flash` (V4.1 Flash, recommended) - `deepseek-v4-pro` - `deepseek-v4-flash` - `deepseek-v4-flash-vision-exp` - Any other OpenAI-compatible model ## Architecture and Benchmarks In ["Better Models: Worse Tools"](https://lucumr.pocoo.org/2026/7/4/better-models-worse-tools/), Armin Ronacher argues that tool schemas are not "neutral": models (LLMs) inherit tool-use habits formed during training and reinforcement learning, so they may perform well in one mainstream harness but become unstable with a different tool shape. This is the architectural starting point for Deep Code: it is tuned specifically for DeepSeek, so the harness itself can stay aligned with DeepSeek's behavior. Deep Code's gains come from the combined effect of tool constraints, context management, Agent Skills, permission policy, and other architectural decisions. The [deepcode-qrcode-benchmark](https://github.com/qorzj/deepcode-qrcode-benchmark) project shows that on a real and challenging Python requirement, Deep Code + DeepSeek + `/plan` mode has an effectiveness advantage over Claude Code + DeepSeek. > See also: [Deep Code Architecture](docs/architecture_en.md) ## FAQ ### Does Deep Code have a VSCode extension? Yes. Deep Code offers a full-featured VSCode extension, available on the [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=vegamo.deepcode-vscode). The extension shares the `~/.deepcode/settings.json` configuration file with the CLI, so you can switch seamlessly between the terminal and the editor. ### Does Deep Code support understanding images? Yes. The `deepseek-flash` model can read local images directly, or you can paste images from the clipboard with `Ctrl+V` (`Alt+V` on Windows), so the model can see the image content directly. Non-multimodal models such as `deepseek-v4-pro` and `deepseek-v4-flash` continue to use the `UnderstandImage` image-understanding tool. Deep Code detects model capabilities automatically; you can also override the detection with the `multimodal` setting. By default, images are sent inline as base64. With `filesApiEnabled`, Deep Code uploads images through the DeepSeek Files API and reuses the `file_id` in subsequent requests. See [docs/configuration_en.md](docs/configuration_en.md#deepseek-files-api). ### How do I enable web search? Deep Code supports the [official DeepSeek web search](https://api-docs.deepseek.com/guides/search) — set `deepseekSearchApiEnabled` to `true` in `~/.deepcode/settings.json` to enable it. If you prefer to use a custom script for web search, set the `webSearchTool` field in `~/.deepcode/settings.json` to the full path of your script. For detailed steps, refer to: https://github.com/qorzj/web_search_cli ### Does it support Coding Plan? Yes. Just set `env.BASE_URL` in `~/.deepcode/settings.json` to an OpenAI-compatible API endpoint. If you have a [DeepCode Plus subscription](https://www.deepcodeplus.com/plus/plan), run `deepcode --plus`, paste your API Key and press Enter. The CLI will save the configuration automatically: ```bash $ deepcode --plus DeepCode Plus API Key: sk-··· (paste and press Enter) ``` ### How do I configure MCP? Deep Code supports MCP (Model Context Protocol) to connect external services such as GitHub, browsers, databases, and more. Configure the `mcpServers` field in `settings.json` to enable it, then use the `/mcp` command to view MCP server status and available tools. For detailed setup instructions, see: [docs/mcp.md](docs/mcp.md) ### How to configure Deep Code to send notifications after a task completes? Set the `notify` field in `~/.deepcode/settings.json` to the full path of an executable notification script. After the AI assistant completes a task, Deep Code runs the script to send a message to a channel such as Slack or display a system notification. For detailed configuration instructions, see: [docs/notify_en.md](docs/notify_en.md) ### Does Deep Code only support YOLO mode? No. Deep Code has a built-in fine-grained permission control mechanism that lets you confirm operations before the AI assistant executes shell commands, reads/writes files, accesses the network, and more. You can configure each permission scope's policy — always allow, always ask, or deny — via the `permissions` field in `settings.json`. See [docs/permission.md](docs/permission.md) for details. ## DeepCode Plus DeepCode Plus aims to provide an all-in-one experience for AI coding and creative work. It offers DeepSeek model subscription plans and additional capabilities such as image understanding, web search, image generation, and video generation. It is entirely optional: you do not need a Plus subscription to use Deep Code. Homepage: https://www.deepcodeplus.com · https://deepcode.vegamo.cn (Chinese) ## Contributing Contributions are welcome! Here's how to get started: ```bash # Clone the repository git clone https://github.com/lessweb/deepcode-cli.git cd deepcode-cli # Install dependencies npm install # Run tests npm test # Local CLI development (typecheck + lint + format check + bundle) npm run build # Link the CLI globally (local global install) npm link # Local VSCode extension development npm run build:vscode ``` - Make sure `npm run check` passes before submitting a PR (typecheck + lint + format check) - We recommend running `npm run format` before building to avoid errors ## Getting Help - Report bugs or request features on GitHub Issues (https://github.com/lessweb/deepcode-cli/issues) ## License - MIT ## Support Us If you find this tool helpful, please consider supporting us by: - Giving us a Star on GitHub (https://github.com/lessweb/deepcode-cli) - Submitting feedback and suggestions - Sharing with your friends and colleagues [npm-release-link]: https://www.npmjs.com/package/@vegamo/deepcode-cli [npm-release-shield]: https://img.shields.io/npm/v/@vegamo/deepcode-cli?color=4d6BFE&labelColor=black&logo=npm&logoColor=white&style=flat-square&cacheSeconds=1800 [npm-downloads-link]: https://www.npmjs.com/package/@vegamo/deepcode-cli [npm-downloads-shield]: https://img.shields.io/npm/dt/@vegamo/deepcode-cli?labelColor=black&style=flat-square&color=4d6BFE&cacheSeconds=1800 [github-contributors-link]: https://github.com/lessweb/deepcode-cli/graphs/contributors [github-contributors-shield]: https://img.shields.io/github/contributors/lessweb/deepcode-cli?color=4d6BFE&labelColor=black&style=flat-square&cacheSeconds=1800 [github-forks-link]: https://github.com/lessweb/deepcode-cli/network/members [github-forks-shield]: https://img.shields.io/github/forks/lessweb/deepcode-cli?color=4d6BFE&labelColor=black&style=flat-square&cacheSeconds=1800 [github-stars-link]: https://github.com/lessweb/deepcode-cli/network/stargazers [github-stars-shield]: https://img.shields.io/github/stars/lessweb/deepcode-cli?color=4d6BFE&labelColor=black&style=flat-square&cacheSeconds=1800 [github-issues-link]: https://github.com/lessweb/deepcode-cli/issues [github-issues-shield]: https://img.shields.io/github/issues/lessweb/deepcode-cli?color=4d6BFE&labelColor=black&style=flat-square&cacheSeconds=1800 [github-issues-pr-link]: https://github.com/lessweb/deepcode-cli/pulls [github-issues-pr-shield]: https://img.shields.io/github/issues-pr/lessweb/deepcode-cli?color=4d6BFE&labelColor=black&style=flat-square&cacheSeconds=1800 [github-license-link]: https://github.com/lessweb/deepcode-cli/blob/main/LICENSE [github-license-shield]: https://img.shields.io/github/license/lessweb/deepcode-cli?color=4d6BFE&labelColor=black&style=flat-square&cacheSeconds=1800