Minerva
An AI tutor that plans, adapts, and teaches.
Created on 7th September 2025
•
Minerva
An AI tutor that plans, adapts, and teaches.
The problem Minerva solves
Students today face a real problem: online courses are static, overwhelming, and generic. Some move too fast, others too slow — and when you’re stuck, there’s no one to guide you. Hiring a personal tutor helps, but that’s expensive and out of reach for most learners.
That’s where Minerva comes in. Minerva is an AI-powered personal tutor that anyone can access instantly. You just tell it your background and goals, and it creates a personalized syllabus just for you. From there, it teaches concepts interactively, explains with examples, gives exercises, and most importantly adapts to your mistakes and learning speed.
People can use Minerva to learn coding, languages, or any subject — like having a mentor who’s available 24/7, at no cost, and tailored entirely to you.
In short: Minerva solves the “one-size-fits-all” problem in education by making learning adaptive, affordable, and personal.
Challenges we ran into
Based on our development journey, here are the key challenges we encountered while building Project Minerva:
1. UI/UX Transformation Challenges
Complete Design Overhaul
- Challenge: Transforming from a complex sidebar-based layout to a minimal, centered design
- Complexity: Had to restructure the entire component hierarchy and navigation system
- Solution: Implemented tab-based navigation with clean, card-based sections
Responsive Design Consistency
- Challenge: Ensuring the new minimal design worked across all screen sizes
- Complexity: Balancing minimalism with functionality on mobile devices
- Solution: Used Tailwind's responsive utilities and flexible grid systems
2. State Management & Data Persistence
Syllabus Disappearing Bug
- Challenge: Generated curriculum would disappear when switching to Teacher Agent tab
- Root Cause: Automatic tab switching was clearing the curriculum state
- Solution: Removed automatic tab switching and implemented proper prop passing between components
Cross-Component Data Sharing
- Challenge: Sharing curriculum data and extracted topics between SyllabusAgent and TeacherAgent
- Complexity: Managing state at the parent level while maintaining component independence
- Solution: Implemented callback functions and prop drilling with proper TypeScript interfaces
3. Content Formatting & Parsing
Response Formatting Issues
- Challenge: AI-generated responses lacked proper spacing and visual hierarchy
- Complexity: Different formatting requirements for syllabus vs. teaching content
- Solution: Created custom formatting functions and enhanced ReactMarkdown components
Topic Extraction Logic
- Challenge: Parsing topics from unstructured AI responses for the translucent buttons
- Complexity: Handling various markdown formats and numbering systems
- Solution: Implemented regex-based parsing with fallback patterns
4. TypeScript Compilation Errors
Set Iteration Error
- Challenge:
Type 'Set<string>' can only be iterated through when using the '--downlevelIteration' flag - Root Cause: TypeScript target was set to ES5, which doesn't support Set iteration
- Solution: Updated
tsconfig.jsonto target ES2017 and added proper lib support
React Component Props
- Challenge: TypeScript errors with ReactMarkdown component props and children types
- Complexity: Complex type definitions for custom markdown components
- Solution: Used proper type assertions and ref-based approaches for DOM manipulation
5. Deployment & Security Issues
Exposed API Key
- Challenge: Gemini API key was hardcoded in
vercel.json, causing security vulnerability - Risk: API key exposure in version control and public deployment
- Solution: Removed from config, updated
env.example, and implemented proper environment variable handling
Build Failures
- Challenge: Deployment failing after code commits due to compilation errors
- Complexity: Multiple issues compounding (TypeScript errors + security issues)
- Solution: Systematic debugging and fixing each issue individually
6. Performance Optimization
Slow AI Response Generation
- Challenge: Gemini API responses were taking too long to generate
- Complexity: Balancing response quality with speed
- Solution: Optimized prompts to be more concise and structured, reducing token usage
Component Re-rendering
- Challenge: Unnecessary re-renders when switching between tabs
- Solution: Proper state management and memoization where needed
7. Feature Implementation Complexity
Translucent Topic Buttons
- Challenge: Creating glassmorphism effect with proper hover states
- Complexity: CSS backdrop-blur support across browsers
- Solution: Used Tailwind's backdrop utilities with fallback styling
Copy Functionality for Code Blocks
- Challenge: Implementing copy buttons that work with ReactMarkdown's dynamic content
- Complexity: TypeScript type issues with accessing nested component props
- Solution: Used refs and DOM manipulation for reliable text extraction
8. Design System Consistency
Capitalization Standardization
- Challenge: Ensuring consistent capitalization across all UI text
- Complexity: Manual review of every text element in the application
- Solution: Systematic review and update of all headings, labels, and content
9. API Integration Challenges
Gemini API Response Handling
- Challenge: Parsing and formatting unstructured AI