The Code Council: Orchestrating Heterogeneous Large Language Models for Robust Programming Scaffolding
Open Access
- 19 May 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 14, 76427-76449
Abstract
Recent advances in large language models (LLMs) have made it feasible to use them as automated debugging tutors, but it remains unclear how much can be gained by moving from single-model tutors to multi-agent councils with separated roles. We study this question in an offline simulation on 200 debugging cases drawn from an online judge, spanning 20 problems split into course-style and contest-style challenge tracks. We compare four single-model tutors based on current frontier models with four councils that assign models to Architect, Skeptic, Secretary, Pedagogue, and Mentor roles and operate in both Blind and Guided modes. Single-model tutors achieve near-perfect repair on course problems but perform less reliably on challenge cases and often rewrite large portions of student code, show non-negligible false positive rates, and leak full or near-full solutions in a substantial share of hints. Councils designed around measured model strengths improve both technical and pedagogical behaviour. On the challenge track, the best council raises patch success by 12.2 percentage points over the best single tutor, while reducing false positives, shrinking median patch size, improving hint localisation, and cutting solution leakage in Blind mode from about one fifth of hints to under ten percent. Councils also exhibit higher stability across reruns and produce hints that two independent instructors consistently rate as more useful and better scaffolded. Guided mode, where internal components see a reference solution, yields further technical gains but introduces leakage risks that require prompt tightening and a sanitising Secretary to control the flow of ground truth. Additional trap experiments with poisoned reference solutions show a mix of resistance and fail-safe collapse rather than systematic poisoning of hints. These results indicate that orchestration and information flow are powerful levers and that well-designed councils can provide more reliable and pedagogically aligned debugging support than strong single-model tutors alone.Keywords
All Related Versions
Funding Information
- Japan Society for the Promotion of Science London (23K28198)
This publication has 39 references indexed in Scilit:
- From prompt injections to protocol exploits: Threats in LLM-powered AI agents workflowsICT Express, 2025
- Adapting to the future: the use of AI tools and applications in university education and a call for transparent rules and guidelinesInternational Journal for Educational Integrity, 2025
- Evaluating Generative AI in Education: LLM as English Tutor2025
- A theoretical and empirical analysis of tensions between learning objects and constructivismEducation and Information Technologies, 2025
- DeepSeek vs. ChatGPT vs. Claude: A comparative study for scientific computing and scientific machine learning tasksTheoretical and Applied Mechanics Letters, 2025
- A comprehensive review of large language models: issues and solutions in learning environmentsDiscover Sustainability, 2025
- The use of large language models for program repairComputer Standards & Interfaces, 2024
- AI chatbots in programming education: Students’ use in a scientific computing course and consequences for learningComputers and Education: Artificial Intelligence, 2024
- How should we change teaching and assessment in response to increasingly powerful generative Artificial Intelligence? Outcomes of the ChatGPT teacher surveyEducation and Information Technologies, 2024
- Exploring children's learning experience in constructionism-based coding activities through design-based researchComputers in Human Behavior, 2019