Bring dead code back to life with intelligent modernization, dependency resurrection, and real-time visualization.
Live Demo: https://codecrypt-demo.netlify.app
CodeCrypt is an autonomous AI agent that resurrects abandoned software projects. It combines deep code analysis with cutting-edge visualization to transform the complex process of modernizing legacy code into an engaging, interactive experience.
- ๐ Death Detection: Identifies outdated dependencies, security vulnerabilities, and deprecated APIs
- ๐ค Hybrid Analysis: Combines AST parsing with LLM semantic understanding
- ๐ Smart Updates: Intelligently resolves dependencies with dead URL detection and replacement
- ๐ Live Dashboard: Real-time metrics with animated charts
- ๐๏ธ 3D Ghost Tour: Interactive code city visualization showing project evolution
- ๐ต Resurrection Symphony: Music that evolves with code quality
- ๐ฃ๏ธ AI Narration: Voice commentary explaining each step
- ๐ณ Time Machine Validation: Docker-based testing proving functional equivalence
- Node.js 16+
- VS Code 1.106.1+
- Docker (optional, for Time Machine validation)
- API key for Anthropic Claude or Google Gemini
-
Install the VS Code Extension
cd codecrypt npm install npm run compile -
Configure LLM Provider
- Open VS Code Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Run:
CodeCrypt: Configure Anthropic API KeyorCodeCrypt: Configure Gemini API Key - Enter your API key
- Open VS Code Command Palette (
-
Start a Resurrection
- Command Palette โ
CodeCrypt: Resurrect Repository - Enter a GitHub repository URL
- Watch the resurrection happen in real-time!
- Command Palette โ
-
View the Dashboard
- Local: http://localhost:3001 (when backend is running)
- Production: https://codecrypt-demo.netlify.app
codecrypt-kiro/
โโโ codecrypt/ # VS Code Extension (Backend)
โ โโโ src/
โ โ โโโ extension.ts # Extension entry point
โ โ โโโ services/ # Core resurrection services
โ โ โ โโโ resurrectionOrchestrator.ts
โ โ โ โโโ dependencyAnalysis.ts
โ โ โ โโโ hybridAnalysis.ts
โ โ โ โโโ sseServer.ts # Real-time event streaming
โ โ โ โโโ ...
โ โ โโโ test/ # Comprehensive test suite
โ โโโ frontend/ # React Dashboard (Frontend)
โ โ โโโ src/
โ โ โ โโโ components/ # Dashboard, GhostTour, Symphony, Narrator
โ โ โ โโโ context/ # State management
โ โ โ โโโ hooks/ # Custom React hooks
โ โ โ โโโ utils/ # Visualization utilities
โ โ โโโ dist/ # Production build
โ โ โโโ netlify.toml # Netlify deployment config
โ โโโ data/ # Package replacement registry
โ โโโ package.json
โโโ .kiro/
โ โโโ specs/ # Feature specifications
โ โโโ steering/ # Development guidelines
โโโ README.md # This file
-
Start Resurrection
VS Code โ Command Palette โ CodeCrypt: Resurrect Repository -
Monitor Progress
- Watch the VS Code progress indicator
- Open http://localhost:3001 for live dashboard
- Listen to AI narration explaining each step
- Explore the 3D Ghost Tour visualization
-
Review Results
- Check the resurrection report
- Review updated dependencies
- Validate with Time Machine tests
- Commit the modernized code
cd codecrypt
npm install
npm run compile # Compile TypeScript
npm test # Run tests
npm run watch # Watch mode for developmentcd codecrypt/frontend
npm install
npm run dev # Start dev server on http://localhost:5173
npm run build # Production build
npm test # Run testscd codecrypt/frontend
npm run build
netlify deploy --prodCodeCrypt uses a dual-stream architecture:
Death Detection โ Hybrid Analysis โ Planning โ Resurrection โ Validation
SSE Events โ State Management โ Real-time Visualization
Backend (VS Code Extension)
- TypeScript
- Octokit (GitHub API)
- Anthropic SDK / Google Generative AI
- Babel & ts-morph (AST parsing)
- Docker SDK
Frontend (Dashboard)
- React 18
- Three.js (3D visualization)
- Chart.js (metrics dashboard)
- Tone.js (audio synthesis)
- Web Speech API (narration)
- Vite (build tool)
Real-time animated charts showing:
- Dependencies updated
- Vulnerabilities fixed
- Code complexity trends
- Test coverage
- Lines of code changes
Interactive code city where:
- Files are buildings (height = LOC)
- Colors indicate change frequency
- Timeline slider shows evolution
- Click buildings to see details
Voice commentary that explains:
- Current resurrection step
- Why changes are needed
- Progress and status
- Errors and warnings
Dynamic music that reflects:
- Code quality metrics
- Complexity reduction
- Test coverage increase
- Overall project health
Before/after comparison showing:
- Original compilation state
- Modernized compilation state
- Build success/failure
- Error counts
- API keys stored securely using VS Code SecretStorage
- Keys never logged or exposed in code
- Environment variables sanitized
- MCP server credentials validated
- No data sent to external services except configured LLM providers
- Ensure you've started a resurrection in VS Code
- The backend SSE server runs on port 3000 when resurrection is active
- Frontend connects to http://localhost:3000/events
- Run
CodeCrypt: Configure Anthropic API KeyorCodeCrypt: Configure Gemini API Key - Enter your API key
- Restart VS Code
- Review the resurrection report for errors
- Check removed/updated dependencies
- Run
npm installmanually - Review breaking changes in updated packages
- Check browser console for connection errors
- Verify backend is running (extension is active)
- Ensure no firewall blocking localhost:3000
We welcome contributions! Here's how:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
npm test) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices
- Write tests for new features
- Update documentation
- Follow the spooky/gothic theme ๐
- Use async/await for async operations
- Add JSDoc comments for public APIs
MIT License - see LICENSE file for details
CodeCrypt was created for the Kiroween Hackathon with a "resurrection" theme. The project embraces a spooky/gothic aesthetic throughout its naming, UI/UX, and documentation.
- Built with Kiro - AI-powered development environment
- Powered by Anthropic Claude and Google Gemini
- Visualization powered by Three.js, Chart.js, and Tone.js
- Deployed on Netlify
- ๐ Report a Bug
- ๐ก Request a Feature
- ๐ง Contact: olaoluwamercydeborah@gmail.com
Made with ๐ and โค๏ธ for the Kiroween Hackathon
Bringing dead code back to life, one repository at a time.