Lazaro Martull

LeafTutor – AI-Powered Programming Tutor

LeafTutor is an AI-driven tutoring system designed to provide structured, step-by-step programming guidance to post-secondary students.

This system was evaluated through real programming assignments and published as:

🔬 LeafTutor: An AI Agent for Programming Assignment Tutoring
arXiv:2601.02375
https://arxiv.org/abs/2601.02375


🧩 My Role

I contributed to:


🎯 Problem

High enrollment in STEM programs has created increasing demand for scalable programming tutoring support.

Traditional tutoring:

The goal was to design an AI system capable of delivering clear, structured, step-by-step programming explanations comparable to human tutors.


🧠 System Architecture

LeafTutor integrates:

Core Flow

  1. Student submits programming question
  2. Backend formats structured prompt
  3. LLM generates step-by-step instructional response
  4. Output is returned with organized explanation
  5. Evaluation framework measures instructional clarity and completeness

🛠 Tools & Technologies


🧪 Prompt Engineering Strategy

To simulate tutoring behavior, prompts were structured to:

This structured prompting significantly improved clarity and instructional usefulness.


📊 Evaluation & Results

LeafTutor was evaluated using real programming assignments.

Key findings:

This validated the system’s potential for scalable STEM tutoring.


🔍 Research Contribution

This project contributes to:

The work was published on arXiv and categorized under:


🚀 Future Improvements

Planned enhancements include:


📁 Folder Structure

projects/
└── leaftutor/
    ├── index.md              # Project write-up (this page)
    └── leaf_tutor_paper.pdf  # Research paper (PDF)

🎯 Summary

LeafTutor demonstrates how large language models can be engineered to deliver structured, pedagogically sound programming guidance.

By combining system design, backend engineering, prompt structuring, and real-world evaluation, this project bridges academic research and applied AI system development.