# DeepCode

> DeepCode is an open-source agent for coding. Autonomous framework that turns research papers into working code repositories. It is available on self-hosted and CLI.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** self-hosted, CLI
- **Website:** http://arxiv.org/abs/2512.07921
- **Repository:** https://github.com/hkuds/deepcode
- **GitHub stars:** 16,848
- **License:** MIT
- **Categories:** coding, research
- **Listing updated:** 2026-11-14

## About

DeepCode comes from a research paper that treats repository generation as a problem of managing information under limited context. It tackles paper-to-code synthesis by applying four operations: blueprint distillation of the source, stateful code memory for indexing, retrieval-augmented knowledge injection and closed-loop error correction.

On the PaperBench benchmark the authors report it outperforming commercial agents including Cursor and Claude Code, and exceeding PhD-level experts on key reproduction metrics. These are the authors' claims.

The project is open source under MIT, from the HKUDS lab, written in Python.

## Features

- **Blueprint distillation:** Compresses the source document into a plan.
- **Stateful code memory:** Structured index of generated code.
- **RAG knowledge injection:** Pulls in relevant knowledge conditionally.
- **Closed-loop correction:** Detects and fixes errors.
- **PaperBench evaluation:** Reported results on a paper-reproduction benchmark.

## Good for

- Reproduce a research paper as code
- Generate a repository from a specification document
- Study agentic coding research

## FAQ

### What does it generate?

Code repositories from documents such as scientific papers.

### What benchmark?

PaperBench.

### Licence?

MIT.

### Is DeepCode free?

Yes. DeepCode is open source, so you can use and self-host it for free.

### What are the best alternatives to DeepCode?

The closest alternatives to DeepCode are gemini-cli, deer-flow, ruflo, learn-claude-code and openinterpreter.

## Alternatives

- [gemini-cli](https://ai-powered.com/agents/gemini-cli): gemini-cli is an open-source agent for ai models and llm tooling.
- [deer-flow](https://ai-powered.com/agents/deer-flow): deer-flow is an open-source agent for ai models and llm tooling.
- [ruflo](https://ai-powered.com/agents/ruflo-2): ruflo is an open-source agent framework for knowledge and memory.
- [learn-claude-code](https://ai-powered.com/agents/learn-claude-code): learn-claude-code is an open-source hosted agent for ai models and llm tooling.
- [openinterpreter](https://ai-powered.com/agents/openinterpreter): openinterpreter is an open-source agent for coding.
- [ai-agent-book](https://ai-powered.com/agents/ai-agent-book): ai-agent-book is an open-source hosted agent for knowledge and memory.
- [Codewhale](https://ai-powered.com/agents/codewhale): Codewhale is an open-source agent for coding.
- [oh-my-pi](https://ai-powered.com/agents/oh-my-pi): oh-my-pi is an open-source agent for coding.

---
Source: https://ai-powered.com/agents/deepcode
