A comprehensive Electron-based development studio powered by Claude AI (Anthropic Sonnet 4), featuring unique capabilities beyond traditional IDEs like VS Code.
A cross-tool AI debugging system that correlates issues across multiple sources:
- Context Awareness: Automatically tracks logs, git commits, code changes, and Docker stats
- Timeline Analysis: Builds a chronological timeline of events leading to issues
- Root Cause Detection: AI analyzes patterns across all data sources to identify root causes
- Proactive Monitoring: Continuously scans for potential issues before they become critical
- Quick Fixes: Generates step-by-step fixes with risk assessment
How it works:
- Use Log Analyzer, Git Manager, and Code Reviewer normally
- All activity is tracked in the Debug Context Store
- AI Debug Assistant correlates data across tools
- Chat interface for Q&A about debugging
- Visual timeline shows event sequences
Vector embeddings-based code search using Claude AI:
- Natural Language Queries: Search code using plain English descriptions
- Intelligent Indexing: Automatically embeds all workspace files
- Incremental Updates: Only re-embeds changed files
- Similarity Ranking: Results ranked by semantic similarity (0-100%)
- Local Storage: Embeddings cached in localStorage for instant search
Example queries:
- "functions that handle user authentication"
- "error handling code"
- "database query functions"
- "React components for forms"
Canvas-based SQL query builder with automatic schema detection:
- Auto-Detection: Finds databases in your repo (Prisma, Knex, TypeORM, SQL files, Sequelize)
- Visual Schema: Interactive graph showing tables, columns, and relationships
- Drag & Drop: Connect tables visually to build JOINs
- Query Generation: Generates SELECT, INSERT, and JOIN queries
- Relationship Mapping: Automatically detects and visualizes foreign keys
Supported ORMs/DBs:
- β Prisma (schema.prisma)
- β Knex (migrations)
- β TypeORM (entities)
- β Sequelize (models)
- β Raw SQL files
Comprehensive code analysis with Monaco editor integration:
- Security Scanning: Detects vulnerabilities and security issues
- Performance Analysis: Identifies bottlenecks and optimization opportunities
- Best Practices: Checks for code smells and maintainability issues
- Quality Score: 0-100 score with detailed breakdown
- Instant Fixes: Generate improvements for any detected issue
Real-time log analysis with AI insights:
- Live Tailing: Watch logs in real-time with auto-scrolling
- Pattern Detection: AI identifies error patterns and anomalies
- Smart Filtering: Filter by ERROR, WARN, INFO levels
- Actionable Insights: Get recommendations to fix issues
- Context Integration: Logs feed into Debug Assistant
Natural language to shell command conversion:
- Plain English Input: Describe what you want to do
- Command Generation: AI converts to proper shell command
- Command Explanation: Learn what each part does
- History Tracking: Save frequently used commands
Git operations enhanced with AI:
- Smart Commit Messages: Auto-generates conventional commit messages
- Change Analysis: AI analyzes diff to suggest message
- Visual Status: See staged/unstaged changes at a glance
- Integration: Git history feeds into Debug Assistant
Container management with AI analysis:
- Container Status: View running/stopped containers
- Log Analysis: AI analyzes Docker logs for issues
- Resource Monitoring: Track container resource usage
- Quick Actions: Start/stop/restart with one click
| Feature | DevStudio | VS Code |
|---|---|---|
| Cross-Tool Debugging | β Correlates logs + code + git + docker | β Separate extensions |
| Semantic Code Search | β Vector embeddings with Claude | β Text-based search only |
| Visual SQL Builder | β Auto-detects schemas, visual canvas | β Manual SQL writing |
| Proactive Issue Detection | β AI monitors for problems | β Reactive only |
| Context-Aware AI | β Full workspace context | |
| Timeline Analysis | β Chronological event tracking | β None |
- Electron 39.1.1 - Desktop framework
- React 19.2.0 - UI framework (new JSX transform)
- TypeScript 5.9.3 - Type safety
- Vite 7.2.2 - Fast dev server & bundler
- Claude Sonnet 4 - AI model (claude-sonnet-4-20250514)
- Monaco Editor - VS Code editor component
- React Flow - Visual canvas for SQL builder
- Zustand - State management
- Tailwind CSS v4 - Styling
# Clone the repository
git clone <your-repo>
cd electron_codebuilder
# Install dependencies
npm install
# Run development mode
npm run electron:dev- Launch DevStudio
- Go to Settings (βοΈ icon in sidebar)
- Enter your Claude API Key (get one from https://console.anthropic.com/)
- Click Save
The API key is stored locally using Zustand persist (localStorage).
- Open Log Analyzer β Load your application logs
- Open Git Manager β Select your repository
- Open Code Reviewer β Review problematic files
- Open AI Debug Assistant β Click "Full Analysis"
- Review Timeline β See chronological event sequence
- Chat with AI β Ask questions about the issue
- Apply Fixes β Get step-by-step solutions
- Go to Semantic Search (π icon)
- Click "Index Workspace" β Embeds all code files
- Type natural query β e.g., "authentication functions"
- View results β Ranked by similarity
- Preview code β Monaco editor with syntax highlighting
- Go to SQL Query Builder (πΎ icon)
- Click "Detect Schema" β Auto-finds databases
- View visual schema β Tables and relationships
- Select tables β Click to select
- Choose query type β SELECT, JOIN, or INSERT
- Generate SQL β Get formatted SQL query
- Download β Save to .sql file
DevStudio uses a custom vector embedding system:
How it works:
- Claude analyzes code and extracts 384-dimensional feature vectors
- Features represent: complexity, patterns, data structures, security, etc.
- Embeddings stored in localStorage (JSON format)
- Cosine similarity used for search ranking
- Incremental updates (only re-embeds changed files)
Performance:
- First index: ~10-30 seconds for 50 files
- Subsequent indexes: Only changed files
- Search: Instant (client-side cosine similarity)
Automatically detects these schema sources:
| ORM/Tool | Detection Method | Files Scanned |
|---|---|---|
| Prisma | Parse schema.prisma | prisma/schema.prisma |
| Knex | Parse migrations | migrations/*.js |
| TypeORM | Parse entities | **/*.entity.ts |
| Sequelize | Parse models | models/*.js |
| Raw SQL | Parse CREATE TABLE | **/*.sql |
DevStudio/
βββ electron/
β βββ main.ts # Main process (IPC, file ops)
β βββ preload.ts # IPC bridge
βββ src/
β βββ components/
β β βββ GitManager.tsx
β β βββ CommandBuilder.tsx
β β βββ DockerManager.tsx
β β βββ LogAnalyzer.tsx
β β βββ CodeReviewer.tsx
β β βββ DebugAssistant.tsx # π Cross-tool debugger
β β βββ SemanticSearch.tsx # π Vector search
β β βββ SQLQueryBuilder.tsx # π Visual query builder
β βββ services/
β β βββ claude.ts # Claude API integration
β β βββ embeddings.ts # π Vector embeddings
β β βββ databaseDetection.ts # π Schema detection
β βββ stores/
β β βββ settingsStore.ts # App settings
β β βββ debugContextStore.ts # π Debug context tracking
β βββ types/
β βββ index.ts # TypeScript types
The Debug Context Store tracks:
interface DebugContext {
recentLogs: string[]; // Last 100 log entries
recentCommits: GitCommit[]; // Last 20 commits
openFiles: string[]; // Last 10 opened files
dockerContainers: Container[]; // Current container states
timeline: TimelineEvent[]; // Chronological events
analysisCache: Map<string, any>; // Cached AI analyses
}Auto-population:
- Log Analyzer β adds logs on file load
- Git Manager β adds commits on commit action
- Code Reviewer β adds file opens & issues
- Docker Manager β updates container states
- Real-time collaboration: Share debugging sessions
- Custom embeddings: Train on your codebase
- Query execution: Run SQL queries directly
- Database migrations: Generate migration files
- Performance profiling: Integrate with profiling tools
- Multi-language support: Extend beyond JavaScript/TypeScript
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'feat: add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
MIT License - see LICENSE file for details
- Anthropic - Claude AI API
- Microsoft - Monaco Editor
- Electron - Desktop framework
- React - UI library
- Vite - Build tool
Built with β€οΈ using Claude Sonnet 4 and Electron
For questions or support, open an issue on GitHub.