Skip to content

Repository files navigation

UnvibeCode

Reverse engineer a complex codebase into business workflows, connected code, edge cases, and evidence-backed risks.

⭐ Hit Star to help increase UnvibeCode's visibility among developers.

Unvibe complex code. Trace what the business actually does.

UnvibeCode AI codebase analysis demo showing connected code, business workflows, and risk findings

Quality checks PyPI version Python 3.11+ License

Your LLM helped write 100,000 lines of code. Now how do you understand what it actually built?

Reading files one by one does not show the complete business workflow. Pasting a large repository into an LLM can also lose the connections between entry points, state changes, dependencies, edge cases, and business outcomes.

UnvibeCode reverse-engineers a complex codebase into business workflows, connected code, edge cases, and evidence-backed risks.

Try UnvibeCode

Requires Python 3.11 or newer.

Windows

py --version
py -m pip install --upgrade unvibecode
py -m unvibecode --help
py -m unvibecode review --repository "D:\path\to\repository"

Example:

py -m unvibecode review --repository "D:\Projects\customer-support-agent"

macOS

python3 --version
python3 -m pip install --upgrade unvibecode
python3 -m unvibecode --help
python3 -m unvibecode review --repository "/path/to/repository"

Example:

python3 -m unvibecode review --repository "/Users/yourname/Projects/customer-support-agent"

Linux

python3 --version
python3 -m pip install --upgrade unvibecode
python3 -m unvibecode --help
python3 -m unvibecode review --repository "/path/to/repository"

Example:

python3 -m unvibecode review --repository "/home/yourname/projects/customer-support-agent"

No activation key. No customer OpenAI API key. The repository path is the only required input.

One review. Four practical outputs.

Open 00_unvibecode_results.html and explore the outputs in this order:

1. Business Workflows — Business Workflow Map

Start here to understand end-to-end business operations reconstructed from the code.

Business workflow analysis connecting code paths to operational outcomes

2. Connected Code — Connected Code Map

Trace imports, symbols, and static code relationships. Hover a file to preview directly connected code; click a file to choose how much connected code to download for use with an LLM.

Choose Narrow (~30K tokens), Optimal (~45K tokens, recommended), or Wider (~75K tokens). Larger packages include more surrounding code.

Interactive code dependency graph showing connected files and downloadable LLM context

3. Risk Findings — Business Risk Findings

Review evidence-backed risks tied to analyzed workflows and supporting code.

Business risk finding with impact, remediation, acceptance check, and code evidence

4. LLM Context — Complete Repository Context

Download the complete normalized repository ZIP for LLM-assisted analysis, API workflows, or a reusable analysis bundle. This is the full repository context; use Connected Code when you want a smaller selection around a file.

Why UnvibeCode instead of stopping at code search, graphs, PR review, or LLM context?

Tools such as Probe, Graphify, PR-Agent / Qodo Merge, and Repomix solve useful parts of code understanding. UnvibeCode goes further by making the business workflow implemented across the repository the main unit of analysis.

Tool Strong at Where UnvibeCode goes further
Probe AST-aware code search, extraction, and code context for AI agents Search and retrieval help locate code; UnvibeCode reconstructs the end-to-end business workflow that crosses those files and functions
Graphify Building and querying a knowledge graph of code, documents, and relationships A graph explains how things connect; UnvibeCode additionally reconstructs business workflows, edge cases, and evidence-backed business risks
PR-Agent / Qodo Merge Reviewing pull requests, describing changes, and suggesting improvements around a diff PR review starts from changed code; UnvibeCode reverse-engineers the existing repository and its business workflows beyond a single change set
Repomix Packaging a repository into AI-friendly context for LLMs Repository context gives an LLM source material; UnvibeCode additionally reconstructs workflow logic, state changes, edge cases, and business consequences
UnvibeCode Connected code + business workflows + business logic + edge cases + evidence-backed business risks The codebase is reviewed through the business workflows it implements, not only files, graphs, diffs, or context packages

The core unit in UnvibeCode is not a file or a diff. It is the business workflow implemented across the codebase.

What developers found useful in real repository trials

Developer trials across public and personal repositories repeatedly highlighted three useful parts of the product:

  • Business risks that could be independently checked: in a trial on the Rich Python library, a developer independently reproduced a Business Risk Finding surfaced by UnvibeCode.
  • Business workflows instead of only repository structure: in a Django project, a developer found the Business Workflow Map useful for understanding workflows covering student records, API operations, registration, and authentication/dashboard delivery.
  • Useful output even when a repository is too large for the deeper review: in a trial on a repository with about 12.6M estimated source tokens across 3,914 source files, UnvibeCode still produced the Connected Code Map and downloadable repository context while safely skipping the deeper workflow review.

What is UnvibeCode?

UnvibeCode reverse-engineers a complex codebase into business workflows, connected code, edge cases, and evidence-backed risks.

How do you understand a complex codebase?

Start with business workflows, not individual files. UnvibeCode traces each workflow to its connected code, entry points, dependencies, state changes, and edge cases so developers can understand how the system actually works.

How do you trace business workflows in a codebase?

UnvibeCode reconstructs business workflows and business logic across files and functions and connects each workflow to its entry points, decisions, dependencies, state changes, and supporting code evidence.

Supported languages

UnvibeCode 0.3.3 supports connected-code mapping and LLM-context preparation for:

Language Recognized file types
Python .py
JavaScript .js, .jsx, .mjs, .cjs
TypeScript .ts, .tsx
Rust .rs
PHP .php
Ruby .rb
Web assets .html, .htm, .css

C, C++, Java, Go, C#, Kotlin, and Swift files are detected but are not yet included in full connected-code analysis.

Production RAG reliability research and guide

UnvibeCode also includes a research-backed RAG reliability guide for teams working with mixed PDFs, changing policies, live structured data, multi-hop relationships, and repository code.

The guide distinguishes experimental findings from related literature and from engineering recommendations so implementation advice is not presented as stronger evidence than the sources support.

Documentation

Support and feedback

For reproducible package problems or feature requests, open a GitHub issue.

For product questions, public-repository review requests, or collaboration enquiries, email divya.singaravelu@iiml.org.

Contributing and license

Releases

Packages

Contributors

Languages