What would you like to search for?
What would you like to search for?

Socratic Hints Guide Students Through Coding

BGU is piloting AI Code Assist with about 600 undergraduates, helping them work through programming problems without supplying finished code.

As generative AI upends higher education, universities worldwide have found themselves trapped between futile attempts to ban digital tools and the reality that automated answers undermine genuine learning. In introductory computer science, the crisis is acute: when students use AI to solve programming assignments at the click of a button, they bypass the foundational trial, error, and debugging necessary to develop computational reasoning.

Rather than fighting the technology, the Stein Faculty of Computer and Information Science at Ben-Gurion University of the Negev (BGU) has built an institutional solution: AI Code Assist, a controlled digital environment that transforms artificial intelligence from a cognitive crutch into an interactive personal mentor.

In foundational courses such as "Introduction to Computer Science," homework assignments have historically formed the bedrock of learning—accounting for roughly 75% of a student’s semester-long study time. However, the unchecked adoption of commercial AI tools disrupted that cycle. Instructors noticed students producing working code without grasping the algorithmic logic behind it, a disconnect that showed up clearly in declining final exam scores where students had to solve problems independently.

A "Walled Garden" with Socratic Guardrails
Confronting the issue directly, Mark Kapel, an instructional and research laboratory engineer at BGU, collaborated with the faculty’s IT division to construct a bespoke technological platform.

"Our system establishes a closed, secure workspace that locks out external AI engines and gives faculty granular control 'under the hood' over how the AI responds," explains Kapel.

Instead of outputting copy-paste solutions, AI Code Assist acts as a Socratic tutor:

  • Stepped Hints: Delivers layered conceptual guidance while withholding raw code.
  • Problem Decomposition: Coaches students on how to break complex algorithmic problems into manageable components.
  • Edge-Case Probing: Prompts students with targeted questions to identify unhandled boundary cases in their code.

How It Works in Practice:

  • Standard Commercial Chatbot: Student enters buggy code  AI outputs fully corrected, working code. (Student learns nothing).
  • AI Code Assist: Student enters buggy code  AI responds: "Notice what happens when an empty array is passed into line 14. What condition is missing?" (Student diagnoses and fixes the bug independently).
Prof. Assaf Zaritsky | Photo credit: Shunit Falcow Zaritsky

"To ensure genuine learning in the AI era, we had to fundamentally rethink how students engage with the technology," explain course lecturers Israa Nassasra, Prof. Assaf Zaritsky, and Michal Shemesh. "Instead of treating AI as an adversary, this system transforms it into a digital tutor that obligates the student to think, escorting them step by step through their own problem-solving process."

"Students internalize the underlying logic and write the code themselves, mastering the core competencies demanded of tomorrow's software engineers and data scientists," adds Nassasra, who is leading classroom implementation with Shemesh.

Michal Shemesh | Photo: Dani Machlis/BGU

Shemesh notes that beginning students lack the analytical maturity to use open-ended AI tools constructively: "Rigorous higher education relies on an expansive mental toolkit built through struggle and experimentation. Unregulated AI shortcuts short-circuit that developmental phase."

Classroom Analytics and Rethinking Grading Models
The platform is equally transformative for faculty. AI Code Assist aggregates real-time classroom telemetry, exposing collective conceptual bottlenecks, pinpointing struggling students early in the term, and facilitating personalized intervention.

The breakthrough is also prompting BGU to rethink academic assessment itself. The faculty is currently evaluating a transition toward process-based grading, where students receive credit for their iterative problem-solving trajectory and how effectively they incorporate pedagogical feedback—not merely the binary pass/fail state of their final code.

600-Student Pilot and Global Scalability
This term, BGU has launched a comprehensive pilot across approximately 600 undergraduate students enrolled in two primary introductory tracks:

  1. Information Systems Engineering and Data Engineering, led by Prof. Assaf Zaritsky.
  2. Computer Science, Software Engineering, and Artificial Intelligence, led by Michal Shemesh.

Beyond the initial introductory cohorts, BGU is designing the underlying architecture to be an exportable, scalable educational framework. The platform will first expand to advanced computing curricula across BGU, with plans to adapt the system for other academic institutions, STEM secondary schools, and developer training programs seeking a turnkey solution to AI-era academic integrity.

"Our goal is to build an environment where students actively prefer our platform over commercial AI chatbots because they can tangibly feel their critical thinking skills sharpening," says Shemesh.

"We are introducing a modern blueprint for university pedagogy," concludes Prof. Zaritsky. "By harnessing AI to reinforce rather than replace the cognitive effort of learning, we ensure our graduates emerge with the independent, analytical minds required to lead the next technological frontier."

Kapel and his team have rather whimsically named the agents:

Maia (Student-Facing Socratic Agent)
Role: Interactive pedagogical assistant embedded directly inside the student's development environment (VS Code).

Behavior: Drives understanding via scaffolded inquiry, probing questions, and incremental hints rather than generating completed code or direct solutions.

Constraints: Operates under strict instructor guardrails designed to prevent answer-dumping and foster autonomous problem-solving.

Why the Name Was Chosen: Maieutics (Socratic Method): Derived directly from the Greek term maieutikē (μαιευτική, literally "midwifery"), the classical term for the Socratic method. Just as a midwife assists in delivering a child without giving birth herself, Maia acts as an intellectual midwife—drawing knowledge, insights, and solutions out of the student rather than feeding them answers.

Mythological Association: In Greek mythology, Maia (the eldest of the Pleiades) is associated with nurturing, gentle guidance, and growth, perfectly reflecting an encouraging, patient presence inside the IDE.

Aria (TA / Instructor-Facing Supervisor Agent)
Role: Observability, evaluation, and supervisor agent with top-level oversight.

Behavior: Ingests and processes interaction telemetry, session logs, and conversational trajectories between students and Maia.

Responsibilities: Tracks conceptual acquisition, reasoning paths, and individual cognitive milestones. Detects friction, looping, or stagnation, triggering automated alerts to teaching assistants and instructors for timely human intervention. Audits Maia’s outputs to verify compliance with course-specific pedagogical bounds.

Why the Name Was Chosen: Orchestration & Polyphony (Musical): An aria is a continuous, expressive solo piece in opera that brings clarity, structure, and emotional truth out of a complex overarching drama. Aria sits above the cacophony of dozens of concurrent student dialogues, synthesizing raw interaction telemetry into a coherent, high-level narrative for instructors.

Clarity & Perspective (Air / Aerial View): Echoing the Italian word aria (air), it represents elevated vantage, clarity, and an "aerial view" of the entire classroom’s comprehension landscape, giving educators instant visibility into where intervention is most needed.