Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
"DeepCode: Open Agentic Coding (Agent Harness & Loop Engineering & Multi-Agent Orchestration)"
Fetched from the repository for this visit.
|
██████╗ ███████╗███████╗██████╗ ██████╗ ██████╗ ██████╗ ███████╗
██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║ ██║█████╗ █████╗ ██████╔╝██║ ██║ ██║██║ ██║█████╗
██║ ██║██╔══╝ ██╔══╝ ██╔═══╝ ██║ ██║ ██║██║ ██║██╔══╝
██████╔╝███████╗███████╗██║ ╚██████╗╚██████╔╝██████╔╝███████╗
╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
|
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.
🎯 Watch the DeepCode V2 introduction - Long-horizon tasks, loop engineering, the agent harness, and self-evolution in 100 seconds
"Where AI Agents Transform Ideas into Production-Ready Code"
deepcode mcp test --all checks every enabled MCP server in
one run, a blocked shell command now tells the agent to use a narrower
command or ask you instead of pointing to a waiver that does not exist, the
Python package ships only DeepCode's own modules, and the README shows where
DeepCode's stargazers work and study.file: URLs are checked
against protected paths, memory tidy-up keeps every topic link, and
Paper2Code no longer mistakes reading several files for a loop or splits
sections at a comment in a code block./compact for coding sessions, and community fixes/compactAll changes: CHANGELOG.md.
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.
deepcode exec share the same projects, sessions, models, Skills and
permissions: close the TUI, reopen the session in the browser, and answer
the pending approval there.
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.
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.
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.
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.
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.
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.
| 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) |
/goal <objective> in the TUI or the Goal panel in Desktop and
Web. The Goal continues across turns and is kept across restarts. Its
completion is checked: DeepCode runs the checklist you confirmed, and an
independent reviewer can prove each requirement (Settings → General). A
token budget or time limit bounds it.
Goals and automation/resume, /compact and per-session context caps
keep long work going. SessionsAGENTS.md and CLAUDE.md, and
keeps project notes in .deepcode/memory/.
Skills and memory.agents/skills and
~/.agents/skills, eight bundled Skills, and a Skill creator. Plugins
package Skills and MCP servers. Skills ·
Local pluginsdeepcode mcp serve exposes DeepCode itself as an
MCP server. MCP guideBuilt-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.
~/.deepcode (or $DEEPCODE_HOME). Project notes are in
<project>/.deepcode/memory/. DeepCode has no account system and sends no
analytics.127.0.0.1 only (port
3081, or a free port if that is taken). Native clients authenticate with a
private token; the Web client signs in with a one-time link.deny rules apply under
every preset.deepcode hooks approve.~/.deepcode/credentials.json with
owner-only permissions and never returned to a client. Shell commands do not
see them.providers.egress
can restrict which hosts are allowed. A local model keeps everything on your
machine.Details: Security and data. To report a vulnerability, see SECURITY.md.
| 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 |
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.
These recordings show projects produced by earlier DeepCode workflows. They are output demonstrations rather than screenshots of the current Desktop UI.
The DeepCode V2 introduction video gives a broader walkthrough.
Development setup, checks and pull request guidelines are in CONTRIBUTING.md. Everyone who has opened a pull request is listed in CONTRIBUTORS.md.
Thanks to everyone in the open-source community — your stars, issues, pull requests and discussions shape where DeepCode goes next.
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.
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}
}
DeepCode is available under the MIT License.
Copyright © 2025 Data Intelligence Lab at The University of Hong Kong.
GitHub checked 63h ago - refresh overdue. Recently viewed repositories target hourly refresh.