MCPInstall

deepcode-cli

Terminal AI coding assistant optimized for DeepSeek v4 with deep thinking, reasoning control, Agent Skills, and MCP integration

Installs
245
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/reason-machines/devtools-skills --skill deepcode-cli
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads deepcode-cli automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

DeepCode CLI

Skill by ara.so — Devtools Skills collection.

DeepCode CLI is a terminal AI coding assistant specifically optimized for DeepSeek v4 models. It supports deep thinking mode, reasoning effort control, extensible Agent Skills, and Model Context Protocol (MCP) integration for connecting external services.

Installation

npm install -g @vegamo/deepcode-cli

Run deepcode in any project directory to start the assistant.

Configuration

Create ~/.deepcode/settings.json:

{
  "env": {
    "MODEL": "deepseek-v4-pro",
    "BASE_URL": "https://api.deepseek.com",
    "API_KEY": "sk-..."
  },
  "thinkingEnabled": true,
  "reasoningEffort": "max"
}

Configuration Priority

DeepCode follows a multi-level configuration priority system:

  1. Project-level (highest): ./.deepcode/settings.json
  2. User-level: ~/.deepcode/settings.json
  3. Environment variables: DEEPCODE_MODEL, DEEPCODE_BASE_URL, DEEPCODE_API_KEY
  4. Default values (lowest)

Core Configuration Options

{
  "env": {
    "MODEL": "deepseek-v4-pro",
    "BASE_URL": "https://api.deepseek.com",
    "API_KEY": "sk-..."
  },
  "thinkingEnabled": true,
  "reasoningEffort": "max",
  "temperature": 0.7,
  "maxTokens": 8192,
  "notify": "/path/to/notification-script.sh",
  "webSearchTool": "/path/to/web-search-script.sh",
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
      }
    }
  }
}

Model Options

  • deepseek-v4-pro (recommended for complex tasks)
  • deepseek-v4-flash (faster, lower cost)
  • Any OpenAI-compatible model

Reasoning Effort Levels

  • "min" - Fast, basic reasoning
  • "medium" - Balanced (default)
  • "max" - Deep thinking, slower but more thorough

Key Commands

Slash Commands

CommandDescription
/Open skills/command menu
/newStart new conversation
/resumeResume a previous conversation
/modelSwitch model, thinking mode, and reasoning effort
/initInitialize AGENTS.md file
/skillsList available skills
/mcpView MCP server status and available tools
/exitExit (or press Ctrl+D twice)

Keyboard Shortcuts

KeyAction
EnterSend message
Shift+Enter or Ctrl+JInsert newline
Ctrl+VPaste image from clipboard
EscInterrupt current model response
Ctrl+D (twice)Exit

Agent Skills

DeepCode CLI supports extensible skills to enhance the assistant's capabilities.

User-level Skills

Place skills in ~/.agents/skills/. These are available across all projects.

Project-level Skills

Place skills in ./.agents/skills/ or ./.deepcode/skills/ for project-specific capabilities.

Creating a Custom Skill

Create a SKILL.md file in the skills directory:

---
name: my-custom-skill
description: Description of what this skill does
triggers:
  - when to use this skill
  - another trigger phrase
---

# My Custom Skill

Detailed instructions for the AI assistant on how to use this skill...

## Usage Example

\`\`\`typescript
// Example code showing how to use this skill
\`\`\`

Example: Database Migration Skill

./.agents/skills/migrations/SKILL.md:

---
name: database-migrations
description: Manage database schema migrations using Prisma
triggers:
  - create database migration
  - run migrations
  - rollback migration
  - check migration status
---

# Database Migrations

This skill helps manage database schema changes using Prisma.

## Create a Migration

\`\`\`bash
npx prisma migrate dev --name descriptive_migration_name
\`\`\`

## Apply Migrations in Production

\`\`\`bash
npx prisma migrate deploy
\`\`\`

## Check Migration Status

\`\`\`bash
npx prisma migrate status
\`\`\`

## Rollback (Manual)

Edit migration files in `prisma/migrations/` and create a new migration to undo changes.

MCP Integration

DeepCode supports Model Context Protocol for connecting external services.

Configuring MCP Servers

In ~/.deepcode/settings.json:

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
      }
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"]
    },
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres"],
      "env": {
        "POSTGRES_CONNECTION_STRING": "${DATABASE_URL}"
      }
    }
  }
}

View MCP Status

Use /mcp command in DeepCode to see:

  • Connected MCP servers
  • Available tools from each server
  • Connection status

Common MCP Servers

  • GitHub: @modelcontextprotocol/server-github - Repository management, issues, PRs
  • Filesystem: @modelcontextprotocol/server-filesystem - File operations
  • PostgreSQL: @modelcontextprotocol/server-postgres - Database queries
  • Browser: @modelcontextprotocol/server-puppeteer - Web automation
  • Slack: @modelcontextprotocol/server-slack - Messaging integration

Common Usage Patterns

Starting a New Coding Session

cd my-project
deepcode

Type your request directly or use / to see available skills.

Using Thinking Mode for Complex Problems

In settings.json:

{
  "thinkingEnabled": true,
  "reasoningEffort": "max"
}

Or toggle during session with /model command.

Pasting Code for Review

Simply paste code into the prompt and ask for review, optimization, or explanation.

Multi-modal Input (Images)

  1. Copy image to clipboard
  2. Press Ctrl+V in DeepCode
  3. Add your question about the image

Note: DeepSeek v4 doesn't support multi-modal. Use compatible models like Doubao-Seed-2.0-pro via Volcano Engine.

Resuming Previous Conversation

Use /resume to select from conversation history and continue where you left off.

Working with Different Model Providers

Volcano Engine (Doubao)

{
  "env": {
    "MODEL": "Doubao-Seed-2.0-pro",
    "BASE_URL": "https://ark.cn-beijing.volces.com/api/v3",
    "API_KEY": "${VOLCANO_API_KEY}"
  }
}

Coding Plan (Volcano Engine)

{
  "env": {
    "MODEL": "ark-code-latest",
    "BASE_URL": "https://ark.cn-beijing.volces.com/api/coding/v3",
    "API_KEY": "${VOLCANO_API_KEY}"
  },
  "thinkingEnabled": true
}

OpenAI

{
  "env": {
    "MODEL": "gpt-4",
    "BASE_URL": "https://api.openai.com/v1",
    "API_KEY": "${OPENAI_API_KEY}"
  }
}

Notifications

Configure a notification script to alert you when long-running tasks complete:

{
  "notify": "/usr/local/bin/notify-slack.sh"
}

Example notification script (notify-slack.sh):

#!/bin/bash
WEBHOOK_URL="${SLACK_WEBHOOK_URL}"
MESSAGE="DeepCode task completed!"

curl -X POST -H 'Content-type: application/json' \
  --data "{\"text\":\"$MESSAGE\"}" \
  "$WEBHOOK_URL"

Web Search Integration

Enable web search capability:

{
  "webSearchTool": "/usr/local/bin/web-search.sh"
}

DeepCode includes a built-in free web search tool. Custom scripts allow you to integrate specific search providers.

Initializing Agent Configuration

Use /init to create an AGENTS.md file in your project. This file provides context to the AI about your project structure, conventions, and guidelines.

Example AGENTS.md:

# Project Context for AI Agents

## Tech Stack
- TypeScript
- React
- Node.js
- PostgreSQL

## Code Conventions
- Use functional components
- Prefer async/await over promises
- All API routes in `src/api/`
- Tests in `__tests__/` directory

## Database
- Prisma ORM
- Migrations in `prisma/migrations/`

## Common Tasks
- Run tests: `npm test`
- Start dev server: `npm run dev`
- Build: `npm run build`

Troubleshooting

"API Key not configured"

Ensure API_KEY is set in ~/.deepcode/settings.json or as environment variable DEEPCODE_API_KEY.

Skills not loading

  • Check skills are in ~/.agents/skills/ or ./.agents/skills/
  • Verify SKILL.md files have valid YAML frontmatter
  • Use /skills to see loaded skills

MCP server not connecting

  • Run /mcp to see error messages
  • Verify server package is installed: npx -y @modelcontextprotocol/server-github
  • Check environment variables are set correctly
  • Ensure command and args in config match server requirements

Model responses interrupted

Press Esc to stop current response. If responses consistently fail, check:

  • Model name is correct
  • Base URL is accessible
  • API key has sufficient credits
  • Token limits (maxTokens) are appropriate

Context cache not working

Context caching is automatic for DeepSeek models. To verify:

  • Use deepseek-v4-pro or deepseek-v4-flash
  • BASE_URL should be https://api.deepseek.com
  • Check API dashboard for cache hit rates

Configuration not taking effect

Remember priority order:

  1. Project ./.deepcode/settings.json
  2. User ~/.deepcode/settings.json
  3. Environment variables
  4. Defaults

Check which config file is being used and verify JSON syntax is valid.

FAQ

What does the deepcode-cli skill do?

Terminal AI coding assistant optimized for DeepSeek v4 with deep thinking, reasoning control, Agent Skills, and MCP integration

How do I install deepcode-cli?

Run npx skills add https://github.com/reason-machines/devtools-skills --skill deepcode-cli in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/deepcode-cli/ (personal) or .claude/skills/deepcode-cli/ (project).

Which AI agents can use deepcode-cli?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is deepcode-cli safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains deepcode-cli?

It is published by reason-machines in reason-machines/devtools-skills. It has 245 recorded installs.

More from reason-machines/devtools-skills

View all →

cc-switch-cli

reason-machines/devtools-skills

Open the skill to read its SKILL.md instructions.

315 installs

wx-cli-wechat-local-data

reason-machines/devtools-skills

Open the skill to read its SKILL.md instructions.

284 installs

chrome-devtools-mcp-automation

reason-machines/devtools-skills

Open the skill to read its SKILL.md instructions.

AI & Agents263 installs

officecli-office-automation

reason-machines/devtools-skills

Open the skill to read its SKILL.md instructions.

autocli-web-scraping

reason-machines/devtools-skills

Open the skill to read its SKILL.md instructions.

cli-anything-agent-native-software

reason-machines/devtools-skills

Open the skill to read its SKILL.md instructions.

257 installs

Popular ai & agents skills

View category →

google-agents-cli-publish

google/agents-cli

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

AI & Agents513.9K installs

google-agents-cli-eval

google/agents-cli

This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).

AI & Agents513.5K installs

skill-creator

anthropics/skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

OfficialAI & Agents416.4K installs

codex-pet

prime-skills/runcomfy-agent-skills

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

AI & Agents402.1K installs

full-output-enforcement

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

AI & Agents401K installs

executing-plans

obra/superpowers

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

AI & Agents245.7K installs