How Tutoring Works
Every subconcept is taught through a conversational chat session. The Tutor Agent breaks the material into 3-6 chunks and guides you through each one with:- Clear explanations
- Worked examples
- Checkpoint questions to verify understanding
- Diagrams and visualizations when helpful
- Hints and clarifications when you’re stuck
Starting a Tutoring Session
Create a chat session
Send your first message
- Check your diagnostic results for the parent concept
- Check if prerequisite subconcepts are mastered
- Begin teaching the first chunk
Continue the conversation
The tutor teaches chunk-by-chunk:
- Explain the concept
- Ask a checkpoint question
- Evaluate your answer
- Move to the next chunk or re-explain if needed
[ANSWER]:Checkpoint Question Types
The tutor can ask three types of checkpoint questions:Text Questions
Standard written responses:Code Questions
For programming topics, the tutor asks you to write runnable code:Drawing Questions
Visual problems where you sketch your solution:image/png, image/jpeg (max 7 MB)
The tutor automatically detects the question type from its own output. If it sees “Question Type: code”, it expects code. If “Question Type: draw”, it expects a drawing attachment.
Requesting Clarification
If you don’t understand something, ask for help by prefixing with[CLARIFICATION]:
- Strip out the checkpoint question temporarily
- Provide a hint or re-explanation
- Re-ask the same question afterward (tracked as
chunkTransition: "same")
Clarification mode ensures the tutor doesn’t move to the next chunk until you understand the current one. It’s designed to prevent you from falling behind.
Tutor Tools
The Tutor Agent uses specialized tools to enhance teaching:check_student_progress
Loads diagnostic results for the parent concept to understand your knowledge gaps before teaching.
check_prerequisite_mastery
Checks if prerequisite subconcepts are mastered (mastery score ≥ 0.7). If not, the tutor may suggest reviewing them first.
generate_example
Creates a worked example with step-by-step reasoning:
create_exercise
Creates a practice problem for you to solve:
visualize_concept
Creates an ASCII or text diagram:
- Showing relationships between concepts
- Illustrating step-by-step processes
- Comparing different approaches
- Representing data structures
record_exercise_result
Persists your exercise attempts and updates mastery scores:
Tutor Response Format
Chunk Transitions
Internal tracking (not exposed in API) tells the system whether to:"advance"— Move to next chunk"same"— Re-ask the current chunk (after clarification)null— Still teaching current chunk
nodeContents.
Learning Cards
As you progress through chunks, the system persists each chunk as a structured card:nodeContents.cards as JSON. This creates a structured record of your learning session that can be reviewed later.
If the tutor re-asks the same question (after clarification), it updates the last card instead of creating a new one. This prevents duplicate content in your learning history.
Conversation History
All messages are saved inchatMessages with:
- Role:
userorassistant - Kind:
learning(normal teaching),hint_request(clarification),hint_response(tutor’s hint), orevaluation(answer evaluation) - Content: Full message text
- Timestamp: When the message was created
Mastery Tracking
As you answer checkpoint questions correctly, your mastery score increases (tracked inuserNodeProgress):
- Starts at 0.0
- Increases with each correct answer (via
record_exercise_result) - Mastery threshold: 0.7 (subconcept is considered “mastered”)
- Used by the tutor to check prerequisites before teaching dependent subconcepts
Agent Loop Configuration
The Tutor Agent uses the shared agent loop with:- Model: Claude 4.5 Sonnet
- Max iterations: 5 (shorter than other agents to prevent overly long responses)
- Reasoning visibility: All reasoning steps are captured and returned in the response
The tutor is optimized for interactive teaching, not long planning sessions. The 5-iteration limit keeps responses focused and prevents the tutor from over-explaining.
Example Session Flow
- User creates session → Tutor checks diagnostics and prerequisites
- Tutor teaches chunk 1 → Explains concept, asks checkpoint question
- User answers → Tutor evaluates, provides feedback
- User asks for clarification → Tutor provides hint, re-asks same question
- User answers correctly → Tutor records exercise result, moves to chunk 2
- Repeat for chunks 2-6
- All chunks complete → Tutor marks
[COMPLETE], session ends
Next Steps
After completing a subconcept:- Move to the next subconcept in the DAG (following dependency edges)
- Track your overall progress and mastery scores
- Review your learning path to see what’s next