RepoDNA
by Cihanak1
README.md
# RepoDNA
<!-- mcp-name: io.github.cihanak1/repodna -->
**Understand your codebase before you change it.**
Open-source, local-first architecture and code intelligence for developers and AI coding agents — with zero execution of analyzed target repository code.
[](https://github.com/Cihanak1/RepoDNA/actions/workflows/ci.yml)
[](https://pypi.org/project/repodna-engine/)
[](https://marketplace.visualstudio.com/items?itemName=Cihanak1.repodna-vscode)
[](https://github.com/Cihanak1/RepoDNA/releases/tag/v1.0.2)
[](https://www.python.org/)
[](https://github.com/Cihanak1/RepoDNA/blob/main/LICENSE)
[Documentation (EN)](https://github.com/Cihanak1/RepoDNA/blob/main/docs/README.md) · [Dokümantasyon (TR)](https://github.com/Cihanak1/RepoDNA/blob/main/docs/README.tr.md) · [PyPI (`repodna-engine`)](https://pypi.org/project/repodna-engine/) · [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Cihanak1.repodna-vscode) · [Good First Issues](https://github.com/Cihanak1/RepoDNA/blob/main/docs/GOOD-FIRST-ISSUES.md)
---
## Quickstart
Install from PyPI (Python 3.12+ — bundles the full React Workstation UI, no Node.js build required):
```bash
pip install repodna-engine
repodna start --open-browser
```
Run CLI analysis, verify your environment, or inspect the bundled multi-repository demo workspace:
```bash
repodna --version
repodna doctor
repodna analyze . --format json
repodna workspace analyze demo/repodna-workspace.yml --format json
```
Install the official **VS Code Extension** from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Cihanak1.repodna-vscode):
```bash
code --install-extension Cihanak1.repodna-vscode
```
> **Package Naming Notice:** The PyPI name `repodna` belongs to an unrelated third-party project (`github.com/repodna/repodna`). Always install `repodna-engine` (`pip install repodna-engine`). Inside Python and your terminal, `import repodna` and the `repodna` CLI command remain unchanged; `repodna-engine` (`v1.0.2+`) is also provided as a backwards-compatible CLI alias for direct `uvx repodna-engine mcp` invocation.
---
## Live Product Demo

*Real 16-second capture of RepoDNA v1.0.1 analyzing its own repository locally. A full 72-second walkthrough video is available at [`docs/media/repodna-demo.mp4`](https://github.com/Cihanak1/RepoDNA/blob/main/docs/media/repodna-demo.mp4).*
| Architecture Studio & Package Clusters (1440×900) | Explainable Health & Transparency Report (1440×900) |
| :---: | :---: |
|  |  |
---
## Core Capabilities
- **9-Language Tree-sitter AST Analysis**: Python, TypeScript, JavaScript, Go, Rust, C#, Java, C, and C++ with bounded complexity hotspots, Winnowing Type-1/Type-2 clone detection, conservative unused-code candidates, static test relationship mapping, AST security signals (with `[REDACTED]` secret masking), and validated SARIF 2.1.0 export.
- **Architecture Graph, Guardian, Time Machine & Refactoring Advisor**: Directed module and package dependency graphs, Tarjan SCC circular dependency detection, declarative architecture contracts, Git commit history evolution, and graph-theoretic refactoring recommendations.
- **AI Agent Intelligence & 47 Read-Only MCP Tools**: Deterministic EN/TR task localization, signature-first repository maps, token-budgeted context packing (`exact` vs `estimated` tokenizer disclosure), acknowledged delta packs, read-only change preflight/patch/postflight verification, and 47 read-only MCP tools (`--tool-profile minimal|architecture|code-intelligence|full`).
- **Live Architecture Engine**: Opt-in local filesystem monitoring with debounced incremental reconciliation, bounded SSE event streaming, and independent core/quality freshness tracking.
- **Multi-Repository Intelligence**: Explicit `repodna-workspace.yml` federation, canonical repository identity (preventing basename collisions), multilingual package & version constraint checks, static service cataloging, SSRF-safe OpenAPI 3.0/3.1 structural compatibility, and bounded cross-repository change impact.
- **Developer Ecosystem**: 7-domain Workstation UI (Light/Dark/High-Contrast themes, EN/TR localization), declarative zero-execution Plugin SDK (`sdk/`), [VS Code extension](https://marketplace.visualstudio.com/items?itemName=Cihanak1.repodna-vscode) (`extensions/vscode/`), fork-safe Composite GitHub Action (`integrations/github-action/`), and hardened non-root Docker image (`docker/`).
---
## Verified Distribution Channels
| Channel | Status | Install / Reference |
| :--- | :---: | :--- |
| **PyPI (`repodna-engine`)** | **Python `v1.0.2`** | `pip install repodna-engine` / `uvx repodna-engine mcp` ([PyPI](https://pypi.org/project/repodna-engine/)) |
| **VS Code Marketplace** | **Published (`v1.0.1`)** | `code --install-extension Cihanak1.repodna-vscode` ([Marketplace](https://marketplace.visualstudio.com/items?itemName=Cihanak1.repodna-vscode)) |
| **GitHub Releases** | **Python `v1.0.2` / Ext `v1.0.1`** | Wheel, sdist, VSIX, `SHA256SUMS.txt`, CycloneDX 1.5 SBOM ([Releases](https://github.com/Cihanak1/RepoDNA/releases)) |
| **GitHub Action (Direct Ref)** | **Available** | `uses: Cihanak1/RepoDNA/integrations/github-action@v1.0.2` |
| **Official MCP Registry** | **Prepared (`server.json`)** | `io.github.cihanak1/repodna` — metadata prepared for publication after `v1.0.2` PyPI release |
| **Open VSX / GitHub Actions Marketplace** | **Not Published** | Not published to these registries; use the verified channels above |
| **GHCR Container Registry** | **Release-Gated** | Gated behind `vars.ENABLE_GHCR_PUBLISH` in release workflow; build locally from `docker/Dockerfile` |
---
## Verified Benchmarks & Stability
All metrics below are backed by raw JSON artifacts committed in [`benchmarks/results/`](https://github.com/Cihanak1/RepoDNA/tree/main/benchmarks/results):
- **Large Repository Speed & Memory** ([`v101_large_repo_stress.json`](https://github.com/Cihanak1/RepoDNA/blob/main/benchmarks/results/v101_large_repo_stress.json)):
- Real `RepoDNA` (`504` files, `93,316` LOC): `1,046 ms` cold → `261 ms` warm (`4.02×` speedup, `58.9 MB` RSS).
- Synthetic `1,050` files: `1,789 ms` cold → `555 ms` warm (`3.22×` speedup, `62.9 MB` RSS).
- Synthetic `5,050` files: `12,622 ms` cold → `4,836 ms` warm (`2.61×` speedup, `120.2 MB` RSS).
- **Held-Out AI Retrieval & Negative-Task Abstention** ([`v101_ai_retrieval_abstention.json`](https://github.com/Cihanak1/RepoDNA/blob/main/benchmarks/results/v101_ai_retrieval_abstention.json)):
- **91.67%** File Recall@5 (`12` positive tasks) and **86.67%** negative-task abstention accuracy (`13/15` out-of-scope tasks) using the local estimated tokenizer (`heuristic_code_v1`).
- **60-Minute Live Monitoring Soak Test** ([`v101_live_soak_60m.json`](https://github.com/Cihanak1/RepoDNA/blob/main/benchmarks/results/v101_live_soak_60m.json)):
- `3,600.5s` continuous run, `60` live edits, `50` analyses completed, `0` failures, `1,204` SSE events, `45.28 MB` → `48.20 MB` RSS (`+2.92 MB`), `0.37%` avg single-core CPU.
- **Real Open-Source Multi-Repository Validation** ([`v100_real_multi_repo_validation.json`](https://github.com/Cihanak1/RepoDNA/blob/main/benchmarks/results/v100_real_multi_repo_validation.json)):
- Pallets Stack (`markupsafe@3.0.2` + `jinja@3.1.5` + `flask@3.1.0`, `402` files, `N=2` declared package edges): `2/2` precision/recall, `3,840 ms` → `911 ms` warm.
- Encode HTTP Stack (`httpcore@1.0.7` + `httpx@0.28.1`, `205` files, `N=1` declared package edge): `1/1` precision/recall, `2,577 ms` → `557 ms` warm.
- *(Small sample caveat: these 3 edges validate Python package declarations only and do not imply 100% general cross-ecosystem accuracy.)*
- **Declarative Plugin Overhead** ([`docs/ecosystem/BENCHMARKS.md`](https://github.com/Cihanak1/RepoDNA/blob/main/docs/ecosystem/BENCHMARKS.md)): `0.925 ms` median evaluation across 4 rule packs on 388 files (`0.172%` of core analysis time).
---
## Security Model & Honest Boundaries
- **Zero-Execution & Local-First**: RepoDNA never executes analyzed repository code, build scripts, tests, Docker Compose commands, or user Python plugins, and never transmits source code to external services. See [`SECURITY.md`](https://github.com/Cihanak1/RepoDNA/blob/main/SECURITY.md) and [`docs/release/THREAT-MODEL.md`](https://github.com/Cihanak1/RepoDNA/blob/main/docs/release/THREAT-MODEL.md).
- **Explicit Boundaries**:
- Static AST analysis is **not** compiler semantic analysis and does **not** replace runtime test suites.
- Static test mapping is **not** runtime code coverage; AST security signals are **not** confirmed vulnerabilities.
- Estimated context tokens are **not** LLM billing tokens; no external LLM agent A/B study or external human UX study is claimed.
- Full structural API compatibility currently covers **OpenAPI 3.0/3.1**; Protobuf, AsyncAPI, and GraphQL are marked `PARTIAL`/`UNSUPPORTED`.
---
## Documentation & Community
- **Documentation Hubs**: [English Docs (`docs/README.md`)](https://github.com/Cihanak1/RepoDNA/blob/main/docs/README.md) · [Türkçe Dokümantasyon (`docs/README.tr.md`)](https://github.com/Cihanak1/RepoDNA/blob/main/docs/README.tr.md)
- **Contributing**: [Contributing Guide](https://github.com/Cihanak1/RepoDNA/blob/main/CONTRIBUTING.md) · [Good First Issues](https://github.com/Cihanak1/RepoDNA/blob/main/docs/GOOD-FIRST-ISSUES.md) · [Security Policy](https://github.com/Cihanak1/RepoDNA/blob/main/SECURITY.md) · [Changelog](https://github.com/Cihanak1/RepoDNA/blob/main/CHANGELOG.md)
- **Release Engineering**: [Public API Freeze (`v1.0.0`)](https://github.com/Cihanak1/RepoDNA/blob/main/docs/release/PUBLIC-API-FREEZE.md) · [Threat Model](https://github.com/Cihanak1/RepoDNA/blob/main/docs/release/THREAT-MODEL.md) · [40-Point Go/No-Go Review](https://github.com/Cihanak1/RepoDNA/blob/main/docs/release/GO-NO-GO-REVIEW.md)
Licensed under the [MIT License](https://github.com/Cihanak1/RepoDNA/blob/main/LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues