How Diagnostics Work
Every concept in your learning path has a diagnostic assessment that measures your existing knowledge. Based on your answers, Sprout adapts the subconcept graph to fill gaps and skip material you’ve already mastered.The Diagnostic Flow
Diagnostic questions are generated
When the Subconcept Bootstrap Agent runs for a concept, it automatically creates 5-10 diagnostic questions (or 2-3 in small mode).Questions are strategically designed with:
- Mixed formats: Multiple choice (MCQ) and open-ended questions
- Mixed difficulty: Ranges from 1 (basic) to 5 (advanced)
- Targeted coverage: Each question maps to specific knowledge gaps
You answer the questions
Submit your answers via the API:The system tracks:
- Your answer text or selected option
- Timestamp of submission
- Auto-completion when all questions are answered
Answers are graded
The Concept Refinement Agent uses a specialized grading sub-agent to evaluate your responses:
- MCQ questions: Automatically compared to the correct answer
- Open-ended questions: Evaluated semantically by Claude for conceptual understanding
- Partial credit: Scored on a 0-1 scale (not just right/wrong)
- Detailed feedback: One-sentence explanation for each answer
Question Formats
Multiple Choice Questions (MCQ)
MCQ questions test specific factual knowledge:selectedOption is compared to correctAnswer.
Open-Ended Questions
Open-ended questions evaluate deeper understanding:- Compare your answer semantically to the expected answer
- Check for key concepts (doesn’t require word-for-word match)
- Assign partial credit (e.g., 0.3 if you identified the right concept but confused details)
- Provide constructive feedback
The grading agent is designed to be generous with partial credit. Students don’t need to match expected answers word-for-word — they just need to demonstrate understanding.
The Observe-Reason-Act-Verify Loop
After you complete a diagnostic, the Concept Refinement Agent runs through a structured process:1. GRADE
Callgrade_student_answers to grade all responses using the grading sub-agent.
2. OBSERVE
- Call
get_current_subconceptsto view the existing subconcept DAG - Call
check_student_historyto analyze your cross-concept performance, mastery scores, and overall level
3. REASON
Claude analyzes:- Knowledge gaps from low-scoring diagnostic questions
- Misconceptions revealed in feedback
- Mastery patterns (e.g., strong fundamentals but weak on applications)
4. ACT
The agent modifies your learning graph:| Tool | Purpose |
|---|---|
add_subconcept | Insert bridge/remedial subconcepts for knowledge gaps |
remove_subconcept | Remove subconcepts you’ve already mastered (reconnects edges automatically) |
add_prerequisite_concept | Insert an entire concept BEFORE the current one if you’re missing foundations |
add_followup_concept | Insert a concept AFTER for reinforcement or enrichment |
5. VERIFY
Callvalidate_graph to check for:
- Orphaned nodes (no incoming or outgoing edges)
- Broken edges (missing nodes)
- Unreachable nodes (not connected to the main path)
6. VERIFY AGAIN
Confirm the graph is clean and ready for learning.This is Sprout’s star feature — autonomous agents that observe, reason, act, and verify their own changes to create a personalized learning path.
Diagnostic Summary Data
After grading, the system generates a diagnostic summary:Viewing Your Diagnostic
Retrieve diagnostic status for a concept:- Assessment metadata
- All questions
- How many you’ve answered
- Whether the assessment is complete
Triggering Refinement
Once you’ve answered diagnostic questions, trigger the Concept Refinement Agent:- Bootstrap subconcepts if they don’t exist yet
- Grade your diagnostic answers (even if only partial)
- Refine the subconcept graph based on your performance
- Stream all changes via SSE events
You can run refinement even with zero answers. The agent will work with whatever data is available, though it’s most effective when you’ve completed the diagnostic.
Next Steps
After your diagnostic is graded and your learning path is refined:- Review the updated subconcept graph to see what was added or removed
- Start tutoring sessions for each subconcept
- Track your mastery scores as you progress