This is an early release preview. You may encounter bugs.
RPG-ZeroRepo logo
Unclaimed

Tool coding memory

RPG-ZeroRepo

Microsoft just released RPG-Encoder, a universal repository representation that lets LLM agents operate over a semantic

Built by Microsoft

B 73/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
Discussion

01 / Summary

About RPG-ZeroRepo.

RPG-ZeroRepo turns Repository Planning Graphs (RPG) into a control layer for long-horizon AI coding agents. An RPG connects requirements, features, architecture, files, and dependencies in one structured graph, so repository-level context persists across a long task instead of living in chat history and file search.

CoderMind is the agent-facing part of the project. It gives a coding agent a persistent RPG workspace for planning, multi-file generation, repository understanding, and graph-aware editing, reached through three interfaces: a cmind CLI that initializes a workspace in a new or existing repository, slash commands such as /cmind.feature_spec, /cmind.code_gen, /cmind.encode, and /cmind.rpg_edit, and MCP graph tools (search_rpg, explore_rpg, get_node_detail, list_rpg_tree). A post-commit hook can keep the graph in step with code changes. Claude Code and GitHub Copilot are listed as verified agents.

The repository also carries the standalone research code behind two papers, runnable without an agent CLI. ZeroRepo implements the forward pipeline from requirements to an RPG to a repository in three phases: feature planning that decomposes a requirement into a feature tree, architecture design that maps features onto modules, files, classes, interfaces, and data flows, and graph-guided generation that writes interdependent files in dependency order. RPG-Encoder implements the reverse pipeline, lifting an existing codebase back into an RPG through semantic lifting, structure reorganization, and artifact grounding, then maintaining it incrementally from commit-level diffs rather than re-encoding after each change.

RepoCraft is the accompanying benchmark for repository-level code generation. It holds 1,052 tasks across six real-world Python projects (scikit-learn, pandas, sympy, statsmodels, requests, and django) and scores coverage of reference feature categories, accuracy as a unit-test pass rate and a semantic voting rate, and code statistics such as file count, lines of code, and token count.

  • Persistent RPG workspace: requirements, features, architecture, and files stay connected in a graph that outlives a single session
  • Slash-command workflows: build, understand, and update flows run inside the coding agent through /cmind.* commands
  • MCP graph tools: search_rpg, explore_rpg, get_node_detail, and list_rpg_tree let an agent traverse the graph while coding
  • Graph-aware edits: a change request is planned through the affected graph nodes and their dependencies rather than as a local edit
  • Repository encoding: cmind init . --encode turns an existing codebase into an RPG workspace
  • Commit-hook sync: a post-commit hook reflects code changes back into the graph
  • Forward pipeline: ZeroRepo generates a whole repository from a natural-language requirement in planning, architecture, and generation phases
  • Reverse pipeline: RPG-Encoder lifts an existing repository into an RPG and evolves it from commit diffs
  • RepoCraft benchmark: 1,052 repository-level tasks across six Python projects, scored on coverage, accuracy, and code statistics
  • Verified agents: Claude Code and GitHub Copilot
  • Localized docs: the CoderMind guide is available in English, Simplified Chinese, Japanese, Korean, and Hindi

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with RPG-ZeroRepo.

Browse the catalog for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get RPG-ZeroRepo →

Browse the catalog