CodeDNA
The file is the channel. Every fragment carries the whole.
Install ·
Problem ·
Solution ·
Evidence ·
Multi-language ·
How it works ·
Docs
English · Italiano
An in-source communication protocol where AI agents embed architectural context directly in the files they write. The next agent — different model, different tool, different session — reads it and knows what to do.
No infrastructure. No retrieval pipeline. No external memory. The code carries its own context.
+ NAVIGATION ACCURACY ████████████████ +17pp F1 SWE-bench · 3 models · 10/0/0 DeepSeek
+ FIX QUALITY ████████████████ 7 / 7 Django #13495 · Claude Sonnet
+ TEAM VELOCITY █████████████░░░ 1.6× 5-agent team · DeepSeek R1
+ PROTOCOL ADOPTION ███████████████░ 98.2% multi-agent SaaS · no instruction
CodeDNA Challenge — €200
Public own-project evaluation (not SWE-bench). Real working project (≥25 files), declared tech stack + CodeDNA install, same methodology for everyone (two branches / checkouts / twin projects), ≥10 same tasks with/without CodeDNA, copy-paste agent prompt, metrics PR — even if results go against CodeDNA. Bugs must be reported (experimental across agents). Meet presentation may be required; public board updates as valid PRs arrive.
Prize unlocks at ≥5 valid submissions. Duration: 1 month.
Install
Recommended setup — works with every agent
Install the CLI once, then install the instructions and optional hooks for the tool used in this repository:
pipx install git+https://github.com/Larens94/codedna.git # requires Python 3.11+; isolated install (avoids global env conflicts)
codedna install --path . --tools codex --no-wiki-sync # replace codex using the table below
codedna init . --no-llm # annotate every auto-detected language
codedna doctor --path . # confirm the setup
codedna install creates .codedna, installs the Git pre-commit gate, and adds the native instruction file for the selected agent. It preserves existing instruction files and Git hooks instead of overwriting them.
| Agent/tool | --tools value | Installed integration |
|---|
| Claude Code | claude | CLAUDE.md + active hooks |
| Codex | codex | cross-vendor AGENTS.md |
| OpenCode | opencode | AGENTS.md + active JS plugin |
| Aider | aider | AGENTS.md; start with aider --read AGENTS.md or configure read: AGENTS.md |
| Cursor | cursor | .cursorrules + active hooks |
| GitHub Copilot | copilot | Copilot instructions + active hooks |
| Cline | cline | Cline rules + active hooks |
| Windsurf | windsurf | .windsurfrules (instructions only) |
| Roo Code | roo | .roorules (instructions only) |
| Antigravity | agents | AGENTS.md + .agent/workflows/codedna.md |
Use multiple values for mixed teams, for example codedna install --path . --tools claude codex opencode --no-wiki-sync. Use --tools all only when the repository is genuinely edited with every supported tool.
Claude Code plugin — interactive alternative
Claude Code users can instead install the plugin: