Reverse engineer any codebase into a build prompt.
Paste code → AI analyzes → Get a copy-paste-ready reconstruction prompt for Cursor, Claude, Codex, or any AI coding agent.
GITVERSE is an AI-powered reverse engineering tool that turns any codebase into a structured build prompt you can hand directly to an AI coding agent.
Inspired by gitverse.id — the simplest way to understand and rebuild any code.
01 — Paste your files → 02 — AI Analyzes → 03 — Get Build Prompt
| Feature | Description |
|---|---|
| 🧠 AI Analysis | Full breakdown of tech stack, files, APIs, and business logic |
| 📐 ASCII Blueprint | System architecture as ASCII diagram with components and data flows |
| 📋 Build Prompt | One exhaustive prompt with every file, exact dependencies, env vars, and deployment steps |
| 🔗 GitHub Integration | Paste any public GitHub URL and reverse engineer the entire repo |
| ⚡ Incremental Mode | Type GITVERSE_DONE after pasting multiple files to trigger batch analysis |
| 🌐 Multi-LLM Support | Works with Grok, OpenRouter, Azure OpenAI, Google AI Studio |
| 🔒 Privacy First | Your code is never stored permanently |
git clone https://github.com/GraeLefix/GITVERSE.git
cd GITVERSE
pnpm install
cp .env.example .env.local
# Fill in your LLM API key
pnpm dev
Open http://localhost:3000 and start reversing code.
Copy .env.example to .env.local and fill in at least one LLM API key.
| Provider | Env Key | Default Model |
|---|---|---|
| Grok (xAI) | XAI_API_KEY |
grok-3 |
| OpenRouter | OPENROUTER_API_KEY |
google/gemini-2.5-pro |
| Azure OpenAI | AZURE_OPENAI_API_KEY + AZURE_OPENAI_BASE_URL |
gpt-5.4 |
| Google AI Studio | GOOGLE_GENERATIVE_AI_API_KEY |
gemini-2.5-pro |
Set GITREVERSE_QUICK_LLM to pin a provider, or leave unset for auto mode (Grok → OpenRouter → Azure → Google).
# GitHub — increases API rate limits
GITHUB_TOKEN=ghp_...
# Supabase — prompt caching & /library search
SUPABASE_URL=https://...supabase.co
SUPABASE_PUBLISHABLE_KEY=eyJ...
# Stripe — premium features
STRIPE_SECRET_KEY=sk_...
STRIPE_PUBLISHABLE_KEY=pk_...
STRIPE_WEBHOOK_SECRET=whsec_...
GITVERSE/
├── app/ # Next.js App Router pages
│ ├── page.tsx # Home — paste code, get prompt
│ ├── [owner]/[repo]/ # GitHub URL routing (/vercel/next.js)
│ ├── api/ # API routes (reverse, analyze, stripe)
│ └── library/ # Saved prompt library
├── components/ # React components
│ ├── reverse-prompt-home.tsx # Main UI
│ ├── analysis-dashboard.tsx # Results display
│ └── ui/ # shadcn/ui components
├── lib/ # Core utilities
│ ├── llm.ts # Multi-provider LLM abstraction
│ ├── github.ts # GitHub API helpers
│ └── prompts.ts # Prompt engineering
├── .env.example # Environment template
└── package.json
Visit directly in browser:
http://gitverse.id/vercel/next.js
http://gitverse.id/supabase/supabase
http://gitverse.id/facebook/react
Paste multiple files one by one, then type GITVERSE_DONE to trigger batch analysis.
Contributions are welcome!
# Fork and clone
git clone https://github.com/YOUR_USERNAME/GITVERSE.git
# Create a feature branch
git checkout -b feat/your-feature-name
# Make changes, then open a PR
git push origin feat/your-feature-name
MIT — see LICENSE for details.
Built with ❤️ by GraeLefix · Star ⭐ if you find it useful
$ claude mcp add GITVERSE \
-- python -m otcore.mcp_server <graph>