Inspiration

Understanding an unfamiliar codebase often takes longer than writing the feature itself. Developers have to trace dependencies, identify important files, discover hidden risks, and understand why legacy code behaves the way it does.

We built Necro-Docs to make that process faster and more explainable. Instead of treating a repository as a black box, Necro-Docs acts like a codebase archaeologist. It uncovers the structure, evidence, risks, and relationships hidden inside a GitHub repository.

What it does

Necro-Docs turns a GitHub repository into an interactive engineering workflow:

  • Analyzes the repository structure and source files.
  • Builds a visual graph of important files and dependencies.
  • Detects code risks such as unsafe HTML, weak error handling, duplicated logic, deep nesting, and technical debt.
  • Shows source evidence and line numbers for findings.
  • Lets developers search through the analyzed codebase.
  • Uses Voice Séance to investigate files and understand their blast radius.
  • Generates a complete Surgical Patch with a real diff.
  • Creates a GitHub branch and Pull Request after verifying that the source file has not changed.

The goal is not only to generate an answer, but to show why the answer is trustworthy.

How we built it

Necro-Docs is built with Next.js, React, TypeScript, Tailwind CSS, and Zustand.

The backend reads repositories through the GitHub REST API without cloning them to disk. It retrieves the repository tree, applies source-file and size limits, fetches eligible files with bounded concurrency, and analyzes them using static heuristics.

For JavaScript and TypeScript files, we added a syntax-aware scanner based on the TypeScript compiler API. This helps distinguish real code patterns from text inside templates, strings, and prompts. The analyzer also produces dependency edges, source evidence, risk findings, coverage information, and a bounded rot score.

Featured files are sent to an AI explanation provider for deeper context. Static analysis remains available even if the AI provider fails.

The frontend uses a full-bleed graph workspace with floating Voice Séance and Autopsy panels. Google Cloud Text-to-Speech is used for voice responses, with browser speech synthesis as a fallback.

For code changes, the Surgical Patch flow generates a complete patched file and diff. Before opening a Pull Request, the server verifies that the GitHub file still matches the analyzed snapshot.

Challenges we ran into

One challenge was analyzing repositories safely without cloning arbitrary code or downloading too much data. We added limits for file count, source size, file size, concurrency, and unsupported directories.

Another challenge was avoiding misleading analysis results. A text that looks like duplicated code may actually be part of a prompt or template. We added AST-aware context scanning to reduce these false positives.

We also had to separate analysis coverage from graph visibility. Large repositories may contain hundreds of analyzed files, but showing every file at once makes the graph unusable. Necro-Docs therefore starts with key files and progressively reveals other files through search, dependency navigation, and blast-radius investigation.

The GitHub integration created another challenge. We needed to protect tokens, verify installations, support private repositories, and ensure a generated patch is applied only when the source has not changed since analysis.

Accomplishments that we're proud of

We built a complete workflow from repository URL to analysis, investigation, patch generation, and Pull Request.

We are especially proud that:

  • Findings include source evidence and line numbers where possible.
  • Static analysis still works when AI explanations fail.
  • The graph distinguishes key files, revealed files, and all analyzed files.
  • Voice Séance provides a conversational way to explore dependency relationships.
  • Surgical Patch produces a real diff instead of only describing a possible change.
  • Pull Requests are protected by a snapshot verification step.
  • GitHub tokens and private repository access remain server-side.
  • The analyzer works through GitHub's API without requiring a repository clone.

What we learned

We learned that code intelligence is more useful when it explains its evidence. A heuristic should be labeled as a heuristic, and a recommendation should point to the source and dependency context behind it.

We also learned that analysis quality and user experience are closely connected. A technically accurate graph can still be overwhelming if it reveals too many nodes at once. Progressive disclosure makes large repositories easier to understand.

Finally, we learned that safe automation requires verification. A generated patch should not be applied blindly. The original source must be checked before creating a branch or Pull Request.

What's next for Necro-Docs

Next, we want to improve analysis quality across more programming languages and add richer historical context from Git commits and Pull Requests.

We also plan to improve patch verification, support multi-file patches with explicit dependency previews, and make the blast-radius investigation more precise.

Our long-term goal is for Necro-Docs to become a trusted starting point whenever an engineer inherits an unfamiliar repository: a tool that helps them understand the code, identify what matters, and make safer changes with confidence.

Built With

  • artificial-intelligence
  • ast
  • automation
  • code-analysis
  • codebase-visualization
  • dependency-graph
  • developer-tools
  • gemini
  • generative-ai
  • github-api
  • github-apps
  • github-pull-requests
  • google-cloud
  • legacy
  • next.js
  • openai
  • react
  • software-engineering
  • static-analysis
  • tailwind-css
  • text-to-speech
  • typescript
  • voice-interface
  • zustand
Share this project:

Updates

Submission history