Skip to content

Commit 108f04f

Browse files
committed
2 parents e81c2ed + daff66a commit 108f04f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

devpost.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Decode - AI-Powered Code Understanding for VS Code
2+
3+
## Inspiration
4+
With AI code generation becoming ubiquitous, developers often find themselves with AI-generated code they don't fully understand. Whether using GitHub Copilot, ChatGPT, or other AI tools, the "vibe coding" approach leaves gaps in comprehension. We wanted to bridge this learning gap by making AI-generated code as understandable as if you wrote it yourself.
5+
6+
## What it does
7+
Decode is a VS Code extension that helps developers learn from AI-generated code through instant explanations. Click any line of code and it automatically highlights related lines while generating plain English explanations using Google's Gemini API. This multifaceted tool also excels at understanding unfamiliar codebases, debugging legacy systems, and learning new languages by intelligently detecting variable relationships, function calls, control flow, and dependencies across multiple programming languages.
8+
9+
## How we built it
10+
Built as a TypeScript VS Code extension with:
11+
- **Code Analysis Engine**: Advanced parsing to identify code relationships
12+
- **Gemini API Integration**: Smart prompt engineering for consistent explanations
13+
- **Custom Webview**: Dedicated sidebar panel with syntax highlighting
14+
- **Visual Decorations**: Real-time highlighting of selected and related code
15+
- **Smart Context**: Optimized API calls with debouncing and error handling
16+
17+
## Challenges we ran into
18+
**Complex Relationship Detection**: Building algorithms to accurately trace variable usage, function calls, and control flow across different languages required sophisticated pattern matching and heuristic analysis.
19+
20+
**API Optimization**: Balancing comprehensive context with rate limits while maintaining fast responses through intelligent context windowing and retry logic.
21+
22+
**Real-time Performance**: Coordinating multiple services for smooth highlighting and explanations without slowing down the IDE.
23+
24+
## Accomplishments that we're proud of
25+
- Seamless VS Code integration that feels native
26+
- Multi-language code analysis with high accuracy
27+
- Production-ready architecture with robust error handling
28+
- Intuitive, accessible user interface
29+
- Smart performance optimizations
30+
31+
## What we learned
32+
Mastered VS Code extension development, AI prompt engineering, and real-time code analysis. Learned the importance of user-centered design for developer tools and robust error handling for AI-powered applications.
33+
34+
## What's next for Decode
35+
- Multi-file analysis across project boundaries
36+
- Personalized explanations based on experience level
37+
- Code metrics and improvement suggestions
38+
- Team collaboration features
39+
- Expansion to other IDEs and web platforms

0 commit comments

Comments
 (0)