DeepV Code: The AI-Powered Intelligent Programming Assistant Transforming Development Workflows

Meta Description: Discover DeepV Code, the revolutionary AI-driven programming assistant that understands full project context, automates complex workflows, and supercharges developer productivity with advanced tooling and seamless integrations.

AI-Powered Intelligent Programming Assistant

Empowering Developers, Accelerating Innovation

 

License
Node.js
TypeScript
npm
VS Code

 

English | Simplified Chinese



Table of Contents


Project Overview

DeepV Code is a revolutionary AI-powered intelligent programming assistant that elevates software development efficiency, quality, and innovation through deep integration of artificial intelligence technologies.

Unlike traditional code completion tools, DeepV Code functions as an intelligent agent capable of understanding full project context and orchestrating tools autonomously to complete complex tasks. It frees developers from repetitive, tedious work, allowing focus on high-level innovation and problem-solving.

What Can DeepV Code Do?

👤 You: Analyze this project's architecture, identify performance bottlenecks, and propose optimization solutions

🤖 DeepV Code:
   ├── 📂 Scan project structure and understand module dependencies
   ├── 🔍 Analyze code hotspots and complexity
   ├── 📊 Identify potential performance issues
   ├── 💡 Generate optimization recommendations and refactoring plans
   └── ✏️ Automatically apply modifications (after your confirmation)

Why Choose DeepV Code

Key Differences from Traditional AI Coding Assistants

Feature Traditional Tools DeepV Code
Context Scope Single file Entire project
Interaction Mode Passive completion Active agent
Task Complexity Simple completion Complex workflows
Tool Invocation None Shell/File/Web
Session Management None Persistent sessions
Extensibility Limited MCP/Hooks/Skills

Core Advantages

  • 🧠 Deep Understanding – Build complete project cognition via the Model Context Protocol (MCP)
  • 🛠️ Autonomous Execution – AI can invoke tools to perform actual operations
  • 🔄 Continuous Conversation – Session save/restore with no lost context
  • 🎨 Multi-Platform Support – CLI + VS Code extension
  • 🔌 Highly Extensible – Hooks, Skills, and MCP servers
  • 🔒 Secure & Controllable – Sensitive operations require user confirmation

Core Features

AI-Driven Code Generation & Refactoring

  • Intelligent Code Generation – Generate complete functions, classes, modules, or even entire applications from natural language descriptions
  • Code Refactoring Recommendations – Identify code smells, provide optimization strategies, and automatically unify code style
  • Intelligent Bug Fixing – Analyze error stacks, locate root causes, and generate fix code
  • Multi-Language Support – TypeScript, JavaScript, Python, Go, Rust, Java, and other mainstream languages

Intelligent Debugging & Problem Solving

  • Error Log Analysis – Deeply parse error information to quickly locate issues
  • Stack Trace Diagnosis – Understand call chains and identify exception root causes
  • Automatic Fix Execution – Generate repair plans and apply with one click (requires confirmation)

Advanced Context Management (MCP)

The Model Context Protocol (MCP) is a core innovation of DeepV Code:

  • Global Project View – Understand file structure, module dependencies, and code semantics
  • Cross-File Analysis – Track function call chains, type references, and import/export relationships
  • Intelligent Context Selection – Automatically identify task-relevant files and code snippets
  • Third-Party MCP Servers – Connect to external data sources and tools

Extensible Tool System

AI interacts with the external environment through tools, with a rich built-in toolset:

📁 File Operations    → read_file, write_file, replace, delete_file, glob
🔍 Code Search        → grep (ripgrep), read_many_files
💻 Command Execution  → shell (bash/powershell)
🌐 Web Access         → web_fetch, web_search (Google)
🧩 MCP Tools          → Invoke tools from any MCP server
📊 Code Analysis      → task (launch analysis sub-Agent)
📝 Task Management    → todo_write
💾 Memory System      → memory (long-term memory)

Hooks Mechanism

Inject custom logic at key workflow nodes:

  • PreToolExecution – Triggered before tool execution
  • PostToolExecution – Triggered after tool execution
  • OnSessionStart – Triggered when a session begins
  • OnSessionEnd – Triggered when a session ends

Supports use cases like automated code checking, formatting, and pre-commit validation.

Session Management

  • Session Persistence – Automatically save conversation history and context
  • Session Restoration – Resume previous work at any time
  • History Compression – Intelligently compress conversation history to save tokens
  • Checkpoint Restoration – File modifications can be rolled back to previous states

Quick Installation

System Requirements

  • Node.js 20.0.0 or higher
  • Operating Systems – Windows / macOS / Linux
  • Terminal – Terminal emulator with ANSI color support

Method 1: Global Installation via npm (Recommended)

# Using npm
npm install -g deepv-code

# Using yarn
yarn global add deepv-code

# Using pnpm
pnpm add -g deepv-code

Verify installation after completion:

dvcode --version

Method 2: Build from Source

# 1. Clone the repository
git clone https://github.com/OrionStarAI/DeepVCode.git
cd DeepVCode

# 2. Install dependencies
npm install

# 3. Build the project
npm run build

# 4. Run in local development mode
npm run dev

# 5. (Optional) Package for production
npm run pack:prod

Getting Started

Step 1: Launch DeepV Code

Run in any project directory:

dvcode

First launch will guide you through authentication.

Step 2: Start a Conversation

┌─────────────────────────────────────────────────────────────┐
│  🚀 DeepV Code - AI-Powered Intelligent Programming Assistant│
│─────────────────────────────────────────────────────────────│
│                                                             │
│  👋 Hello! I'm DeepV Code, your AI programming assistant.   │
│                                                             │
│  💡 Try these commands to get started:                      │
│     • "Analyze this project's architecture"                 │
│     • "Help me write a user login API"                      │
│     • "What's wrong with this code?"                        │
│     • /help to view help                                    │
│                                                             │
└─────────────────────────────────────────────────────────────┘

> What would you like to do?

Step 3: Collaborate with AI

# Example conversation
> Help me create an Express REST API with CRUD operations for users

🤖 Sure, I'll help you create this. First, let me understand the project structure...

[Tool invoked: glob] Scanning project files...
[Tool invoked: read_file] Reading package.json...
[Tool invoked: write_file] Creating src/routes/users.js...
[Tool invoked: write_file] Creating src/controllers/userController.js...
[Tool invoked: shell] Installing dependency: express...

✅ User CRUD API created with the following files:
   - src/routes/users.js
   - src/controllers/userController.js
   - src/models/User.js

Start the server: npm run dev

CLI Command Reference

Global Options

dvcode [options]
Option Shortcut Description
--model <name> -m Specify AI model
--prompt <text> -p Non-interactive mode, execute single prompt
--prompt-interactive <text> -i Execute prompt then enter interactive mode
--sandbox -s Run in sandbox environment (enhanced security)
--debug -d Enable debug mode with detailed logging
--all-files -a Include all project files in context
--yolo -y YOLO mode: auto-execute all operations without confirmation
--continue -c Resume previous session
--session <id> Restore session with specified ID
--list-sessions List all available sessions
--workdir <path> Specify working directory
--version -v Show version number
--help -h Show help information

Usage Examples

# Basic launch
dvcode

# Use Gemini 2.0 Flash model
dvcode -m gemini-2.0-flash

# Execute single task (non-interactive)
dvcode -p "Add unit tests to src/utils.ts"

# Resume previous session
dvcode -c

# YOLO mode (DANGER: auto-executes all operations)
dvcode -y

# Debug mode
dvcode -d

# Specify working directory
dvcode --workdir /path/to/project

# List all sessions
dvcode --list-sessions

# Restore specific session
dvcode --session abc123

Interactive Slash Commands

In interactive mode, use commands starting with / to perform quick actions:

Core Commands

Command Description
/help Show help information and quick start guide
/help-ask AI-powered help assistant to answer usage questions
/quit or /exit Exit the application and show session statistics

Sessions & Models

Command Description
/session Session management: list / new / select <id> / rebuild
/model [name] Switch AI model (show selection dialog if no name provided)
/compress Compress conversation history to reduce token usage
/stats Show session statistics

Tools & Extensions

Command Description
/tools [nodesc] View list of available tools
/mcp [subcommand] MCP server management: add / auth / refresh
/memory Long-term memory management: show / add / refresh

Working Modes

Command Description
/plan [on|off] Planning mode: discuss only, no code modifications
/yolo [on|off] YOLO mode: auto-execute all operations
/vim Toggle Vim edit mode

Files & Editing

Command Description
/restore [id] Restore files to checkpoint state
/refine <text> Text refinement (supports --tone / --lang / --level)
/trim-spaces [on|off] Configure auto-removal of trailing spaces
/copy Copy last AI response to clipboard

Interface & Settings

Command Description
/clear Clear terminal screen
/theme Theme selection dialog
/editor Editor configuration dialog
/about Show system and application information

Account & Authentication

Command Description
/auth Identity authentication management
/account View account information and balance

Project Configuration

Command Description
/init Initialize project configuration file DEEPV.md
/hooks View Hooks mechanism documentation
/ide IDE integration management (available in VS Code mode)

Project Architecture

DeepV Code adopts a modern Monorepo architecture to ensure code consistency and efficient collaboration.

Directory Structure

DeepVCode/
│
├── 📁 packages/                     # Core packages directory
│   │
│   ├── 📁 cli/                      # Command-line interface package
│   │   ├── src/
│   │   │   ├── commands/            # Slash command implementations
│   │   │   ├── ui/                  # Terminal UI components (React Ink)
│   │   │   │   ├── components/      # Reusable UI components
│   │   │   │   ├── dialogs/         # Dialog components
│   │   │   │   └── themes/          # Theme configurations
│   │   │   ├── services/            # Service layer
│   │   │   ├── auth/                # Client authentication
│   │   │   └── utils/               # Utility functions
│   │   └── package.json
│   │
│   ├── 📁 core/                     # Core functionality library
│   │   ├── src/
│   │   │   ├── tools/               # AI toolset
│   │   │   │   ├── shell.ts         # Shell command execution
│   │   │   │   ├── read-file.ts     # File reading
│   │   │   │   ├── write-file.ts    # File writing
│   │   │   │   ├── edit.ts          # File editing (replace)
│   │   │   │   ├── glob.ts          # File search
│   │   │   │   ├── grep.ts          # Content search
│   │   │   │   ├── web-fetch.ts     # Web page fetching
│   │   │   │   ├── web-search.ts    # Google search
│   │   │   │   ├── task.ts          # Sub-Agent tasks
│   │   │   │   └── ...
│   │   │   ├── mcp/                 # MCP engine
│   │   │   ├── prompts/             # Prompt templates
│   │   │   ├── auth/                # Authentication module
│   │   │   ├── hooks/               # Hooks system
│   │   │   ├── skills/              # Skills extensions
│   │   │   ├── services/            # Core services
│   │   │   ├── config/              # Configuration management
│   │   │   └── utils/               # Utility functions
│   │   └── package.json
│   │
│   ├── 📁 vscode-ide-companion/     # VS Code CLI companion extension
│   │   ├── src/
│   │   │   └── extension.ts         # Extension entry point
│   │   └── package.json
│   │
│   └── 📁 vscode-ui-plugin/         # Full-featured VS Code UI plugin
│       ├── src/                     # Extension source code
│       ├── webview/                 # React Webview frontend
│       └── package.json
│
├── 📁 docs/                         # Documentation directory
│   ├── architecture.md              # Architecture design
│   ├── hooks-user-guide.md          # Hooks user guide
│   ├── mcp-improvements-summary.md  # MCP integration documentation
│   └── ...
│
├── 📁 scripts/                      # Build and utility scripts
│   ├── build.js                     # Main build script
│   ├── build_package.js             # Package build
│   ├── clean.js                     # Cleanup script
│   └── ...
│
├── 📄 package.json                  # Root configuration (Workspaces)
├── 📄 tsconfig.json                 # TypeScript configuration
├── 📄 eslint.config.js              # ESLint configuration
├── 📄 esbuild.config.js             # esbuild packaging configuration
├── 📄 DeepV_Code_Whitepaper.md      # Product whitepaper
├── 📄 DEEPV.md                      # Project AI development specifications
└── 📄 LICENSE                       # Apache 2.0 license

Technology Stack Details

Category Technology Description
Language TypeScript 5.x Static typing for improved code quality
Runtime Node.js 20+ Modern JavaScript runtime
CLI UI React + Ink Declarative terminal UI framework
Build Tool esbuild Blazing-fast bundling with millisecond-level builds
Testing Vitest Modern unit testing framework
Code Standards ESLint + Prettier Consistent code style enforcement
Package Management npm Workspaces Monorepo management
AI SDK @google/genai Google Gemini API
MCP @modelcontextprotocol/sdk MCP protocol implementation

Interaction Flow

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   User Input │────▶│  CLI Package │────▶│  Core Package│
│  (Terminal)  │     │ (UI/Interaction)│     │ (Business Logic)│
└─────────────┘     └─────────────┘     └──────┬──────┘
                                               │
                    ┌──────────────────────────┼──────────────────────────┐
                    │                          │                          │
                    ▼                          ▼                          ▼
            ┌─────────────┐           ┌─────────────┐            ┌─────────────┐
            │  AI Model   │           │   Tools     │            │    MCP      │
            │  (Gemini)   │           │ (Shell/File)│            │  Servers    │
            └─────────────┘           └─────────────┘            └─────────────┘

VS Code Extensions

DeepV Code offers two VS Code extensions to meet different usage scenarios:

IDE Companion (CLI Companion)

A lightweight extension that seamlessly connects VS Code with the CLI running in the terminal.

Features:

  • Detect currently open files
  • Retrieve selected code snippets
  • Real-time workspace state synchronization with CLI

Build Instructions:

cd packages/vscode-ide-companion

# Install dependencies
npm install

# Build the extension
npm run build

# Package as .vsix
npm run package

UI Plugin (Full-Featured Interface)

A full-featured graphical AI coding assistant for VS Code.

Features:

  • 📱 Sidebar AI chat window
  • 🖱️ Right-click menu code operations:

    • Explain selected code
    • Optimize code
    • Generate unit tests
    • Add to current conversation
  • ✨ Inline code completion suggestions
  • 🔌 MCP server status management
  • 📜 Custom rule management
  • ⏪ Version history and rollback

Build Instructions:

cd packages/vscode-ui-plugin

# Install extension dependencies
npm install

# Build Webview frontend (required first time)
cd webview
npm install
npm run build
cd ..

# Build the extension
npm run build

# Package as .vsix
npm run package

Install the Extension:

  1. Open VS Code
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS)
  3. Type “Install from VSIX”
  4. Select the generated .vsix file

Built-in Tool System

DeepV Code’s AI interacts with the external environment through a robust tool system—all tools are carefully designed for security and control.

File Operation Tools

Tool Description Security Level
read_file Read file content (supports text, images, PDF, Excel, Word) 🟢 Read-only
read_many_files Batch read multiple files (supports glob patterns) 🟢 Read-only
write_file Create new files or overwrite existing ones 🟡 Requires confirmation
replace Precisely replace specific content in files 🟡 Requires confirmation
delete_file Delete files (backups saved for recovery) 🔴 Requires confirmation

Search Tools

Tool Description Security Level
glob Search filenames by pattern (supports **/*.ts etc.) 🟢 Read-only
grep Search file content with regular expressions (ripgrep) 🟢 Read-only
ls List directory contents 🟢 Read-only

Command Execution

Tool Description Security Level
shell Execute Shell commands (bash/powershell) 🔴 Requires confirmation

Web Tools

Tool Description Security Level
web_fetch Fetch web content (supports local and remote URLs) 🟢 Read-only
web_search Google search 🟢 Read-only

Advanced Tools

Tool Description Security Level
task Launch code analysis sub-Agent 🟢 Read-only
mcp_tool Invoke tools provided by MCP servers 🟡 Dependent on tool
todo_write Manage task lists 🟢 Read-only
memory Save/retrieve long-term memory 🟢 Read-only

Code Quality Tools

Tool Description Security Level
read_lints Read code linter errors 🟢 Read-only
lint_fix Automatically fix linter errors 🟡 Requires confirmation

MCP Protocol Support

The Model Context Protocol (MCP) is the core protocol enabling DeepV Code’s deep context understanding capabilities.

What is MCP?

MCP allows AI models to:

  • Connect to external data sources and tools
  • Retrieve real-time information
  • Interact with third-party services

Configure MCP Servers

Create .deepvcode/settings.json in your project root:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem", "/path/to/allowed/dir"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-github"],
      "env": {
        "GITHUB_TOKEN": "your-token"
      }
    }
  }
}

Manage MCP Servers

# View status of all MCP servers
/mcp

# Add new server
/mcp add github

# Refresh server connection
/mcp refresh github

# Perform OAuth authentication
/mcp auth github

Hooks Mechanism

Hooks enable you to inject custom logic at key workflow nodes.

Configure Hooks

Add the following to .deepvcode/settings.json:

{
  "hooks": {
    "preToolExecution": [
      {
        "matcher": { "toolName": "write_file" },
        "action": {
          "type": "shell",
          "command": "echo 'About to write file: $TOOL_ARGS'"
        }
      }
    ],
    "postToolExecution": [
      {
        "matcher": { "toolName": "write_file", "exitCode": 0 },
        "action": {
          "type": "shell",
          "command": "npm run lint -- --fix $FILE_PATH"
        }
      }
    ]
  }
}

Use Cases

  • Automatic Formatting – Run Prettier automatically after file writes
  • Code Checking – Run ESLint automatically after code modifications
  • Commit Validation – Check branch status before executing Shell commands
  • Logging – Record all tool invocations for audit trails

Related Documentation


Configuration Files

Project Configuration: DEEPV.md

Create DEEPV.md in your project root to provide AI with project-specific context and standards:

# Project Overview
This is a frontend project built with React + TypeScript...

# Tech Stack
- React 18
- TypeScript 5
- Vite
- TailwindCSS

# Code Standards
- Use functional components and Hooks
- Use camelCase for naming
- Use PascalCase for component files

# Directory Structure Notes
- src/components/ - Reusable components
- src/pages/ - Page components
- src/hooks/ - Custom Hooks
- src/utils/ - Utility functions

Use the /init command to generate an initial configuration automatically.

User Configuration: .deepvcode/settings.json

{
  "preferredModel": "gemini-2.0-flash",
  "theme": "dark",
  "trimSpaces": true,
  "mcpServers": {},
  "hooks": {}
}

Development Guide

Environment Setup

# Ensure Node.js version >= 20
node --version

# Clone the repository
git clone https://github.com/OrionStarAI/DeepVCode.git
cd DeepVCode

# Install dependencies
npm install

Common Commands

Command Description
npm install Install all dependencies
npm run build Build all packages
npm run dev Run in development mode (with debugging)
npm run test Run all tests
npm run lint Code style check
npm run lint:fix Auto-fix code style issues
npm run format Format code (Prettier)
npm run typecheck TypeScript type checking
npm run clean Clean build artifacts and cache
npm run pack:prod Package for production
npm run pack:vscode Package VS Code extensions

Development Workflow

  1. Modify Code – Edit files in the relevant packages/*/src directories
  2. Build – Run npm run build
  3. Test – Run npm run dev for local testing
  4. Validate – Run npm run lint && npm run typecheck
  5. Commit – Commit code only after all tests pass

Debugging Tips

# Enable debug mode
npm run debug

# Enable file logging
LOG_TO_FILE=true npm run dev

# View detailed logs
FILE_DEBUG=1 npm run dev

Add New Tools

  1. Create a tool file in packages/core/src/tools/
  2. Implement the tool interface
  3. Register the tool in tool-registry.ts
  4. Add unit tests

Frequently Asked Questions

Installation Issues

Q: npm install fails with permission errors

A: Try these solutions:

# Method 1: Use --unsafe-perm
npm install -g deepv-code --unsafe-perm

# Method 2: Modify npm global directory permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
Q: “Node.js version too low” error

A: DeepV Code requires Node.js 20+. Use nvm to manage versions:

nvm install 20
nvm use 20

Usage Issues

Q: How to switch AI models?

A: Use the /model command or specify at launch:

# Interactive mode
/model gemini-2.0-flash

# Specify at launch
dvcode -m gemini-2.0-flash
Q: How to resume previous sessions?

A: Use the -c parameter or /session command:

# Resume most recent session
dvcode -c

# List all sessions
/session list

# Select specific session
/session select 1
Q: What is YOLO mode?

A: In YOLO mode, all AI operations execute automatically without user confirmation. ⚠️ Use with caution!

# Enable
dvcode -y
# Or
/yolo on

Contribution Guidelines

We welcome community contributions—whether it’s bug fixes, new features, or documentation improvements!

Contribution Workflow

  1. Fork the repository
  2. Create a feature branch:

    git checkout -b feature/AmazingFeature
    
  3. Commit your changes:

    git commit -m 'feat: add some amazing feature'
    
  4. Push to the branch:

    git push origin feature/AmazingFeature
    
  5. Open a Pull Request

Commit Standards

Follow the Conventional Commits specification:

  • feat: New features
  • fix: Bug fixes
  • docs: Documentation updates
  • style: Code formatting (no logic changes)
  • refactor: Code refactoring
  • test: Test-related changes
  • chore: Build/tooling changes

Report Issues

Found a bug or have a feature request? Create an Issue with:

  • Detailed problem description
  • Reproduction steps
  • Expected behavior
  • Environment information (OS, Node.js version, etc.)

Roadmap

Short-Term Goals (v1.x)

  • [ ] Optimize MCP context understanding capabilities
  • [ ] Expand tool system for more use cases
  • [ ] Enhance VS Code extension experience
  • [ ] Add support for additional AI models

Mid-Term Goals (v2.x)

  • [ ] Multi-modal support (diagrams, design drafts)
  • [ ] Deep architecture analysis and design assistance
  • [ ] Open plugin ecosystem
  • [ ] Team collaboration features

Long-Term Vision

  • [ ] Autonomous learning and evolution
  • [ ] Predictive development needs
  • [ ] Fully automated software engineering

License & Legal Information

This project is open-source under the Apache License 2.0.

📄 Legal Details
License Apache License 2.0
Terms of Service Terms & Privacy
Privacy Policy Privacy Policy
Security Security Policy
Copyright 2025 DeepV Code Team

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Star History

Star History Chart

Related Links

Resource Link
🌐 Official Website https://dvcode.deepvlab.ai
📦 npm Package https://www.npmjs.com/package/deepv-code
📖 Whitepaper DeepV_Code_Whitepaper.md
🐛 Issue Reporting GitHub Issues
💬 Discussions GitHub Discussions