DeepCode README

README проекта с github.com/HKUDS/DeepCode. Одним файлом markdown: README.md.

DeepCode Logo
    ██████╗ ███████╗███████╗██████╗  ██████╗ ██████╗ ██████╗ ███████╗
    ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝██╔═══██╗██╔══██╗██╔════╝
    ██║  ██║█████╗  █████╗  ██████╔╝██║     ██║   ██║██║  ██║█████╗
    ██║  ██║██╔══╝  ██╔══╝  ██╔═══╝ ██║     ██║   ██║██║  ██║██╔══╝
    ██████╔╝███████╗███████╗██║     ╚██████╗╚██████╔╝██████╔╝███████╗
    ╚═════╝ ╚══════╝╚══════╝╚═╝      ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
HKUDS%2FDeepCode | Trendshift HKUDS%2FDeepCode | Trendshift

DeepCode Logo DeepCode: Open Agentic Coding

Advancing Code Generation with Multi-Agent Systems

Quick Start — Get Started Now Website — hkuds.github.io/DeepCode Paper — arXiv

English 中文

GitHub stars Python 3.12+ Feishu group WeChat group

DeepCode provides TUI, Desktop, and Web clients over one shared local service. They share Projects, Session history, models, Skills, permissions, Goals, and Automations. Use deepcode, deepcode desktop, or deepcode web; see Quick start for installation and your first task.


DeepCode was starred by people affiliated with the companies, universities and research institutes shown here.

🎬 Introduction Video

DeepCode Introduction Video

🎯 Watch the DeepCode V2 introduction - Long-horizon tasks, loop engineering, the agent harness, and self-evolution in 100 seconds

Watch Video


"Where AI Agents Transform Ideas into Production-Ready Code"


📑 Table of Contents

The DeepCode framework: the TUI, Desktop, Web and scripts talk to one local service. Highlighted is what DeepCode adds: completion verified by checks DeepCode runs and an optional independent reviewer, context that keeps your words with automatic stops, and Goals kept across restarts. Self-evolution is planned.


What's new

Earlier updates
  • 2026-11-02 — Goals you can trust to finish: confirmed checks DeepCode runs itself, an optional independent reviewer, time limits and automatic stops
  • 2026-10-31 — Long tasks read better on the Web, a calmer Web and Desktop interface, and a terminal UI that wraps Chinese text
  • 2026-10-29 — Lighter compaction, checked Goal completion, folder browsing on the Web, and clearer approvals
  • 2026-10-28 — Agent presets that remove tools, file tools that ask before writing hooks, and unpinned MCP packages flagged
  • 2026-10-21 — A quiet Windows service, a separate code font, and community fixes
  • 2026-10-14 — Sessions that keep their history, a tighter sandbox, and the Desktop and Web apps in Chinese
  • 2026-10-13 — Smoother streaming, a self-managing background service, and safer Web sign-in
  • 2026-10-12 — DeepCode v2.3.1: Markdown answers in the TUI, a Windows service that stays up, /compact for coding sessions, and community fixes
  • 2026-10-10 — A steadier terminal UI: answers shown once, keys that keep your draft, and an orderly /compact
  • 2026-09-28 — DeepCode v2.3.0: voice dictation, Opper and Bedrock, Desktop polish, and opt-in hardening
  • 2026-09-09 — TUI, Desktop, and Web share one local background service
  • 2026-09-06 — DeepCode v2.2.0: Session context-window caps, compaction that leaves a memory, and a fully localized Desktop
  • 2026-09-03 — Desktop catalog race, an honest command screen, GLM-5.2, and two dependency bumps
  • 2026-08-28 — Community fixes: plugin credential warnings and a wider zh-CN Desktop
  • 2026-08-25 — Command executors close two bypasses
  • 2026-08-23 — Five repaired contributions land together
  • 2026-08-19 — Sessions that survive resume, compaction, and a second window
  • 2026-08-18 — Steadier context handling in the runtime, and the TUI gets a face
  • 2026-08-17 — Fixes from a review pass over the new settings and TUI work
  • 2026-08-16 — The TUI answers every bare command with a selector
  • 2026-08-15 — Settings grow up: a new settings dialog, declared models, and a safer config
  • 2026-08-14 — Subagent runtime, compaction, and one-way persistence
  • 2026-08-13 — Desktop typography, themes, and native controls
  • 2026-08-12 — Reviewed upstream core Skills, a managed MCP catalog, OAuth, and real connection checks
  • 2026-08-10 — Generic MCP runtime and portable local Plugins
  • 2026-08-09 — Skills now have a real runtime contract
  • 2026-08-07 — Thinking controls, more providers, and a Desktop you can tune
  • 2026-08-04 — Skills that work wherever you do
  • 2026-08-03 — 🎉 DeepCode v2.0 is here
  • 2026-07-31 — One execution model across CLI and Desktop
  • 2026-07-21 — Durable Goals and safe Session lifecycle
  • 2026-07-20 — Session-level model control and shared Skills
  • 2026-07-17 — Durable Session navigation and replay
  • 2026-07-10 — Loop Engineering and parallel agents
  • 2026-07-08 — General coding agent, durable Sessions, and memory
  • 2026-07-04 — Agent Harness foundation
  • Earlier history: legacy README

All changes: CHANGELOG.md.


What Deep means in DeepCode

Most Coding Agents can generate code. The hard part is understanding a real project, making changes within the right boundaries, continuously correcting course from runtime results, and making it clear why the outcome can be trusted.

DeepCode is an open-source Coding Agent for real software engineering. Give it a simple change or a goal that takes dozens of steps. It can understand the project, work on the code, run tools, verify results, and continue after an interruption, restart, or model switch.

“Deep” represents four kinds of depth that remain with the task from start to finish:

Depth What it means for you
Deep Context Understand the task through project structure, engineering rules, Skills, Session history, and long-term memory.
Deep Execution Search, edit, run commands, and execute tests instead of stopping at suggestions—and show the work as it happens.
Deep Verification Check results with tests, builds, diagnostics, Diffs, and task Artifacts rather than treating a plausible answer as done.
Deep Continuity Preserve conversations, decisions, tool records, and evidence across time, directories, clients, and model changes.

DeepCode stands out in three ways, numbered as in the figure above:

Next, DeepCode will learn from its verified runs and turn what worked into memory and Skills. This self-evolution is planned and not yet in a release.

DeepCode is not designed to make an Agent look busier. It is designed to help you finish real software engineering work more reliably.


Why DeepCode

The DeepCode Web client after a real Goal: the agent fixed the code and tests, and the Goal card shows the completion check that passed, with each requirement and its evidence

The Web client after a real Goal: the agent fixed two bugs and added tests, DeepCode ran the confirmed checks, and an independent review proved every requirement before the Goal counted as complete.

Quick start

1. Install. With uv:

uv tool install --python 3.12 deepcode-hku
deepcode init

deepcode init creates ~/.deepcode and sets the default access to Ask. If your shell cannot find deepcode, run uv tool update-shell and open a new terminal. On Windows, install uv with winget install --id astral-sh.uv --exact.

2. Add a model. This example uses OpenRouter; any supported provider works the same way. The key is read without echo and stored in ~/.deepcode/credentials.json.

deepcode provider set my-openrouter --template openrouter --api-key
deepcode provider models my-openrouter --refresh
deepcode provider test my-openrouter --model MODEL_ID

Replace MODEL_ID with a model from the list. In Desktop or Web you can do the same under Settings → Models.

Model connections in DeepCode settings

3. Run it in a project.

cd /path/to/your-project
deepcode --trust --connection my-openrouter --model MODEL_ID

--trust is needed once per project. Later, run deepcode in that folder and use /model to switch models. Try a first task:

Explain how this project is organized and how to run its tests.
Do not change any files yet.

The step-by-step tutorial is Your first coding task.

Choosing a client

All clients connect to the same local service, so a session started in one can be continued in any other.

Client Start with Use it for
TUI deepcode Working in the terminal. See The terminal UI.
Web deepcode web The full workbench (diffs, files, terminal, Goals) in your browser, from the same install. See Web client.
Desktop deepcode desktop The same workbench as a native app. Runs from a source checkout for now, see below.
Headless deepcode exec "<task>" One turn from a script or CI job; --json prints events as NDJSON. deepcode loop "<goal>" runs a Goal. See Headless and automation.

deepcode web --no-open prints the sign-in link instead of opening a browser. The link works once and expires after 60 seconds.

Desktop

There are no Desktop installers on the Releases page yet. Desktop runs from a source checkout and needs Node.js 22+, Rust (stable) and the Tauri 2 prerequisites for your platform:

git clone https://github.com/HKUDS/DeepCode.git
cd DeepCode
npm --prefix desktop ci
npm --prefix desktop run build:web
uv tool install --python 3.12 --force .
deepcode init
deepcode desktop

The first launch builds the app's resources and takes a few minutes; keep the terminal open while Desktop runs. Windows toolchains and troubleshooting are in the Desktop guide.

The background service

Starting any client starts the service if it is not running. Closing a client leaves accepted work running; pending approvals wait for you, and the computer must stay awake.

Task Command
Check whether it is running deepcode service status
Read recent logs deepcode service logs --lines 100
Stop after current work finishes deepcode service stop --drain --timeout 60
Start it when you log in deepcode service install --at-login

Upgrades and backups: Upgrading DeepCode. Problems: Troubleshooting.

Requirements and platforms

Python 3.12 or later (CI tests 3.12, 3.13 and 3.14)
Operating systems macOS, Linux and Windows
Tools Git, for change review and worktrees. On Linux, bubblewrap (bwrap) for the command sandbox.
Model An API key for a supported provider, or a local Ollama or vLLM server. The model must support tool calling; deepcode provider test <id> --agent checks it.
Web client A current browser on the same computer
Desktop Node.js 22+, Rust and the Tauri prerequisites (source build)

Core features

How a Goal reaches complete: Turns of work, a completion claim, then a rule check, the checks you confirmed and an independent review, with the claim turned back while anything is missing

Models and providers

Built-in templates: OpenRouter, Requesty, Opper, Forge, Amazon Bedrock, Anthropic, OpenAI, DeepSeek, Gemini, Zhipu AI, DashScope, MiniMax, Ollama and vLLM. A Custom connection points at any endpoint that speaks the OpenAI Chat Completions, OpenAI Responses or Anthropic Messages API. deepcode provider list shows them and which ones are ready.

Security and data

Details: Security and data. To report a vulnerability, see SECURITY.md.

Documentation

Topic Guide
First task, step by step Getting started
Terminal UI keys and commands The terminal UI
Resume, compact and manage sessions Sessions
Providers, local models, reasoning Models and providers
Project instructions, memory, Skills Skills and memory
Goals, automations, headless runs Goals and automation
Config file and environment variables Configuration
Data, sandbox, approvals Security and data
Startup and connection problems Troubleshooting
Scripts, CI and administration Headless and automation
MCP servers MCP guide
Background service Local background service
Upgrades and backups Upgrading DeepCode
Desktop from source Desktop guide
Paper2Code Paper2Code

Research origin

DeepCode started as Paper2Code, a multi-agent system that turns research papers into working code. On PaperBench it scored 75.9% on the human-expert subset, above the best reported human baseline (72.4%). The method is described in DeepCode: Open Agentic Coding. Paper2Code is still available in Desktop and Web; see Paper2Code.

DeepCode PaperBench results

🎬 Live Demonstrations

These recordings show projects produced by earlier DeepCode workflows. They are output demonstrations rather than screenshots of the current Desktop UI.

📄 Paper2Code

Research to implementation

Paper2Code demonstration

▶ Watch demonstration

Reproduce a research paper as an executable project.

🖼️ Generated vision project

Image workflow example

Generated image-processing project

▶ Watch demonstration

See an earlier generated image-processing workflow in use.

🌐 Generated web project

Frontend implementation example

Generated frontend project

▶ Watch demonstration

Follow a complete frontend implementation from idea to result.

The DeepCode V2 introduction video gives a broader walkthrough.


Contributing

Development setup, checks and pull request guidelines are in CONTRIBUTING.md. Everyone who has opened a pull request is listed in CONTRIBUTORS.md.

Support


⭐ Star History

Community growth trajectory

DeepCode Star History chart

🚀 Ready to build with DeepCode?

Get started View DeepCode on GitHub Star DeepCode


🙏 Appreciation

Thanks to everyone in the open-source community — your stars, issues, pull requests and discussions shape where DeepCode goes next.

DeepCode contributors

Everyone who has opened a pull request is listed in CONTRIBUTORS.md, including contributions that predate the v2.0 rebuild and so are not reflected in the graph above.


📖 Citation

If DeepCode contributes to your research, cite:

@misc{li2025deepcodeopenagenticcoding,
  title         = {DeepCode: Open Agentic Coding},
  author        = {Zongwei Li and Zhonghang Li and Zirui Guo and Xubin Ren and Chao Huang},
  year          = {2025},
  eprint        = {2512.07921},
  archivePrefix = {arXiv},
  primaryClass  = {cs.SE},
  url           = {https://arxiv.org/abs/2512.07921}
}

📄 License

MIT License

DeepCode is available under the MIT License.
Copyright © 2025 Data Intelligence Lab at The University of Hong Kong.

DeepCode (HKUDS/DeepCode)

Ищем в базе…

Что это такое?Открытая агентская платформа для программирования от HKUDS: мультагентная оболочка, которая превращает запросы на естественном языке и даже научные статьи в готовый к продакшену код, работая прямо в вашем репозитории.
Это терминальный инструмент или есть графическое приложение?И то, и другое, и третье: TUI ('deepcode'), нативное десктоп-приложение и браузерный вордбенч ('deepcode web') — все они подключены к одному общему локальному фоновому сервису, который синхронизирует сессии, модели, скиллы и разрешения.
Как его запустить?Установите рантайм, настройте подключение к модели, затем запустите клиент: 'deepcode' для TUI, 'deepcode desktop' или 'deepcode web'. Quick start проведёт вас через первую задачу.
Какие модели ИИ можно подключить?Любые — сохранённые подключения к облачным или локальным моделям работают во всех трёх клиентах. Можно просматривать каталог каждой модели и проверять стриминг и вызовы инструментов, прежде чем доверять кастомному серверу; один только OpenRouter предлагает почти тысячу моделей.
Что будет, если я закрою приложение посреди выполнения задачи?Работа продолжится в общем фоновом сервисе; переподключитесь из любого клиента, чтобы следить за диалогом и подтверждать запросы. Нюанс: компьютер должен оставаться включённым, а ожидающие подтверждения всё равно потребуют вашего ответа.
Мой код остаётся на моей машине?Да — три клиента общаются с одним локальным сервисом на вашей машине, и веб-клиенту не нужен аккаунт DeepCode. Код уходит только тому провайдеру моделей, которого вы сами подключили.
Что он вообще умеет делать в моём репозитории?Он запускает циклы, ориентированные на цель: планирует, вносит правки и проверяет изменения с завершением на основе доказательств, сохраняет долговременную историю сессий между возобновлениями и компакцией, повторно использует скиллы, запрашивает явные разрешения и запускает параллельных агентов, которые не конфликтуют за файлы.
Что такое Paper2Code?Его главная фича: скормите ему научную статью — и он выдаст работающую реализацию, превращая опубликованные идеи в готовый к продакшену код. В README описаны исходная архитектура и научные результаты, на которых она основана.
Можно ли запускать его в headless-режиме, например из скриптов или CI?Да — есть режим headless-автоматизации: 'deepcode exec' и goal-запуски выполняют задачи программно, так что DeepCode можно встроить в пайплайны вместо ручного ввода в TUI.
Что происходит, когда длинная задача выходит за пределы контекстного окна модели?Можно ограничить окно сессии (например, /context 64k в TUI). Компакция сжимает старую историю, сохраняя недавний хвост дословно, и складывает сводку в память рабочего пространства, чтобы важный контекст не потерялся.
Какие есть похожие проекты?hive, deepagents, Baize, lean-ctx, Raven, openrig, SystemOneHarness, gentle-shell
Автор
HKUDS
Размер
93.3 MB
Звёзды
16.9K
Возраст
1 г
Коммиты · 90 дней