• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
arthrod

arthrod

ai_comments_to_tasks

Public
Like
ai_comments_to_tasks
Home
Code
4
backend
1
frontend
2
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/1/2025
Viewing readonly version of main branch: v24
View latest version
README.md

PR Message Analyzer

An advanced web application that analyzes long PR messages using AI, with individual chunk analysis and specialized prompts for different message types.

Enhanced Features

  • 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

Analysis Strategy

  1. Chunking: Text is split using PR-specific separators (bot comments, reviews, etc.)
  2. Classification: Each chunk is categorized (bot_review, user_comment, code_change, system_message, mixed)
  3. 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
  4. Concatenation: Results are combined with an overall summary

Structure

  • backend/index.ts - Enhanced Hono server with chunking strategy and individual LLM calls
  • frontend/index.html - Main HTML interface with improved styling
  • frontend/index.tsx - React frontend with markdown rendering and structured display
  • shared/types.ts - Enhanced TypeScript types for chunk analysis

Usage

  1. Copy the entire conversation from your GitHub PR page
  2. Paste the text into the textarea (include bot messages, reviews, comments)
  3. Click "Analyze PR Messages"
  4. 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.

Tech Stack

  • 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

Features

  • ✅ 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
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.