DeepCode README

The project's README from github.com/HKUDS/DeepCode. As one markdown file: 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)

Searching Database…

What is this?An open agentic coding platform from HKUDS: a multi-agent harness that turns natural language and even research papers into production-ready code, working directly in your repository.
Is it a terminal tool, or is there a graphical app?All three: a TUI ('deepcode'), a native Desktop app, and a browser workbench ('deepcode web'), all connected to one shared local background service that syncs sessions, models, skills and permissions.
How do I get it running?Install the runtime, configure a model connection, then launch your client: 'deepcode' for the TUI, 'deepcode desktop', or 'deepcode web'. The Quick start walks you through your first task.
Which AI models can I plug in?Any — save cloud or local model connections and they work in all three clients. You can browse each catalog and test streaming and tool calls before trusting a custom server; OpenRouter alone lists near a thousand models.
What happens if I close the app while it's mid-task?Work keeps running in the shared background service; reconnect from any client to follow the conversation and answer approvals. The catch: the computer must stay awake, and pending approvals still need your response.
Does my code stay on my machine?Yes — the three clients talk to one local service on your machine, and the Web client needs no DeepCode account. Code goes only to whichever model provider you connect yourself.
What can it actually do inside my repository?It runs goal-driven loops: plans, edits and verifies changes with evidence-driven completion, keeps durable session history across resumes and compaction, reuses Skills, asks for explicit permissions, and runs parallel agents that don't collide on files.
What is Paper2Code?Its flagship feature: feed it a research paper and it produces a working implementation, turning published ideas into production-ready code. The README documents the original architecture and the research results behind it.
Can I run it headless, say from scripts or CI?Yes — there is a headless automation mode: 'deepcode exec' and goal runs execute tasks programmatically, so you can wire DeepCode into pipelines instead of typing in the TUI.
What happens when a long task outgrows the model's context window?You can cap a session's window (e.g. /context 64k in the TUI). Compaction summarizes older history while keeping the recent tail verbatim, and deposits a summary into workspace memory so important context survives.
Creator
HKUDS
Size
93.3 MB
Stars
16.9K
Age
1y
Commits · 90 Days