Open Source

CodeDNA

Context Engineering for Coding AI Agents.

CodeDNA is an open source framework that provides coding AI agents with structured context about your codebase — its architecture, conventions, patterns and dependencies. By engineering the context AI agents receive, CodeDNA helps them generate code that truly fits your project.

CodeDNA — Context Layer
## Architecture
Monorepo with 3 services: api, web, worker

## Conventions
REST controllers in /src/http/
Repository pattern for data access
Zod schema for validation

## Stack
TypeScript, Node.js, PostgreSQL, Redis
The Problem

Coding AI agents lack context

Current AI coding tools generate code in isolation, without understanding the unique architecture, patterns and conventions of your project.

!

Wrong Patterns

AI generates code using generic patterns that don't match your project's established conventions and architecture.

!

Inconsistent Style

Generated code doesn't follow your team's naming conventions, file structure or coding standards.

!

Missing Dependencies

AI doesn't know about the utilities, helpers and shared modules already available in your codebase.

The Solution

Engineer the context

CodeDNA structures and provides the right context to coding AI agents so they produce code suited to your project.

Architecture Mapping

Automatically maps project structure, service boundaries and the dependency graph for complete context.

Convention Extraction

Extract and encode coding conventions, naming patterns and architectural decisions into structured context.

Agent Integration

Works with the most popular coding AI agents and tools, providing structured context that improves code generation quality.

Open Source

Built for the community

CodeDNA is open source and available on GitHub. We believe Context Engineering is a fundamental element for the future of AI-assisted development, and should be accessible to every developer and team.

Contributions, issues and feature requests are welcome. Star the repository to stay updated on new releases and features.

Your Codebase
CodeDNA
Architecture
Conventions
Patterns
Coding AI Agents

Give context to your AI agents

Explore CodeDNA on GitHub and start engineering the context your coding AI agents need to generate better code.

Discover on GitHub → Contact Eforge