How geminilight/gen-mentor works
GenMentor is a browser-based, goal-oriented tutoring system. Learners submit a goal and background, review the refined goal and skill estimates, then receive a learner profile and scheduled path. Opening a session generates its learning material and quiz; learners can ask a grounded tutor, and quiz evidence updates their profile and progress. The README documents the agent capabilities and browser-local archive. Several agent internals and page connections were not sampled, so those links are shown only where documented; unverified implementation wiring is omitted.
Main entry points: use-onboarding.ts Goal onboarding · session-view.tsx Session workspace · pipeline.ts Content pipeline · app-shell.tsx Application shell
Components 24
Goal and setup
- Goal onboarding
app/src/features/onboarding/use-onboarding.ts - Goal refinement
app/src/app/api/refine-goal/route.ts - Skill mapping
app/src/app/api/identify-skill-gap/route.ts - Path scheduler
app/src/app/api/schedule-path/route.ts - Learning path
app/src/features/path/session-row.tsx
Learning sessions
- Session workspace
app/src/features/session/session-view.tsx - Content pipeline
app/src/lib/pipeline.ts - Knowledge explorer
app/src/app/api/explore-knowledge/route.ts - Knowledge drafter
app/src/app/api/draft-knowledge/route.ts - Document integrator
app/src/app/api/integrate-document/route.ts - Quiz generator
app/src/app/api/generate-quiz/route.ts - Session reader
app/src/features/session/session-reader.tsx - AI session tutor
app/src/app/api/tutor/route.ts
Progress and adaptation
- Learner profiler
app/src/app/api/profile/route.ts - Feedback simulator
app/src/app/api/simulate-feedback/route.ts - Progress and review
app/src/features/progress/progress-view.tsx - Browser learner archive
app/src/lib/store/archive.ts
AI runtime
- Browser API client
app/src/lib/client.ts - LLM provider runtime
app/src/lib/llm/core.ts - Model settings
app/src/features/settings/model-settings.tsx
Learner interface
- Application shell
app/src/components/layout/app-shell.tsx - Learning library
app/src/features/library/library-view.tsx
Other components
- Learner
- LLM provider
Connections 31
- Learner → Goal onboarding: sets goal
- Goal onboarding → Goal refinement: requests refinement
- Goal onboarding → Skill mapping: requests skill analysis
- Goal onboarding → Learner profiler: requests profile
- Goal onboarding → Path scheduler: requests path
- Path scheduler → Learning path: creates sessions
- Learner → Learning path: chooses session
- Learning path → Session workspace: opens session
app/src/features/path/session-row.tsx - Session workspace → Content pipeline: runs generation
app/src/features/session/session-view.tsx - Content pipeline → Knowledge explorer: requests points
- Content pipeline → Knowledge drafter: requests drafts
- Content pipeline → Document integrator: requests document
- Content pipeline → Quiz generator: requests quiz
- Session workspace → Session reader: renders content
app/src/features/session/session-view.tsx - Session reader → AI session tutor: asks questions
- Session workspace → Browser learner archive: stores session state
- Session workspace → Learner profiler: submits quiz evidence
- Learner profiler → Browser learner archive: updates learner profile
- Browser learner archive → Progress and review: supplies learning history
- Learner → Progress and review: reviews progress
- Learner → Feedback simulator: requests feedback
- Application shell → Goal onboarding: presents workflow
- Application shell → Learning path: presents path
- Application shell → Progress and review: presents progress
- Application shell → Learning library: presents library
- Goal onboarding → Browser API client: sends requests
- Session workspace → Browser API client: uses API
- Browser API client → LLM provider runtime: routes API calls
- LLM provider runtime → LLM provider: calls model
- Model settings → Browser API client: configures models
- Learner → Model settings: sets provider credentials