ai_comments_to_tasks
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v19View latest version
An advanced web application that analyzes long PR messages using AI, with individual chunk analysis and specialized prompts for different message types.
- Smart Chunking Strategy: Intelligently separates PR conversations into meaningful chunks
- Individual LLM Calls: Each chunk gets its own specialized AI analysis
- Chunk Classification: Automatically identifies bot reviews, user comments, code changes, and system messages
- Severity Assessment: Issues are categorized as low, medium, high, or critical
- Actionable Insights: Extracts specific code issues and action items from each message
- Proper Markdown Rendering: Clean display of formatted analysis results
- Ordered Results: Shows all chunk analyses in sequence with overall summary
- Chunking: Text is split using PR-specific separators (bot comments, reviews, etc.)
- Classification: Each chunk is categorized (bot_review, user_comment, code_change, system_message, mixed)
- Individual Analysis: Specialized prompts analyze each chunk based on its type:
- Bot reviews: Focus on code issues, tool recommendations, severity
- User comments: Extract feedback, questions, approval signals
- Code changes: Assess scope, impact, complexity
- System messages: Extract relevant metadata
- Concatenation: Results are combined with an overall summary
backend/index.ts
- Enhanced Hono server with chunking strategy and individual LLM callsfrontend/index.html
- Main HTML interface with improved stylingfrontend/index.tsx
- React frontend with markdown rendering and structured displayshared/types.ts
- Enhanced TypeScript types for chunk analysis
- Copy the entire conversation from your GitHub PR page
- Paste the text into the textarea (include bot messages, reviews, comments)
- Click "Analyze PR Messages"
- Get comprehensive analysis with:
- Overall summary of the PR
- Individual chunk analysis in order
- Severity badges and chunk type indicators
- Specific code issues and action items
- Tool messages and recommendations
The application processes each message chunk individually with specialized AI prompts, then provides both detailed per-chunk insights and an overall assessment.
- Backend: Hono + Val Town OpenAI (GPT-4o-mini with JSON mode)
- Frontend: React + TailwindCSS with custom markdown renderer
- Storage: None (stateless analysis)
- Chunking: Advanced text splitting based on PR conversation patterns
- Analysis: Individual LLM calls per chunk + overall summary generation
- ✅ Enhanced intelligent PR text chunking with classification
- ✅ Individual AI analysis for each chunk with specialized prompts
- ✅ Severity assessment (low/medium/high/critical)
- ✅ Code issue extraction and actionable item identification
- ✅ Proper markdown rendering with syntax highlighting
- ✅ Structured display with badges and visual indicators
- ✅ Overall summary generation from all chunk analyses
- ✅ Error handling and validation
- ✅ Ordered results showing all chunks in sequence