School-of-AI: The Multi-Agent Classroom: Inside OpenMAIC and the School of AI

How a pedagogical project rooted in manual Python scripts evolved into a LangGraph-powered simulated study group.

7 min read • View on GitHub • More from Avik-Jain

An expansive academic amphitheater where traditional wooden desks are replaced by tall server racks and glowing terminal nodes. Thick bundled cables snake down the tiered steps, all connecting to a single wooden school desk at the center of the room. This illustrates the concept of a machine-generated, highly orchestrated learning environment focused entirely on one user.
OpenMAIC orchestrates multiple AI agents to simulate a live, multi-perspective classroom environment for a single student.
Key Takeaways

The Simulated Study Group

The standard interface for generative AI in education is a solitary chat window. A user asks a question, and a single model responds. OpenMAIC fundamentally rejects this premise. Instead of treating the large language model as an omniscient tutor, it treats multiple LLMs as a cast of characters.

Built as a Next.js 16 application, OpenMAIC simulates a social learning environment. It provisions distinct agents with specific roles. A lecturer agent delivers the core material. A debater agent challenges the user's assumptions. A grader evaluates the responses in real time. These agents interact not just with the user, but with each other.

Your AI “classroom” is not a single chatbot with a polished skin. Multiple agents take turns lecturing, debating, and calling on you. It’s more like a live study group than a Q&A box.

OpenMAIC Description, Project Documentation via ScriptByAI · Free AI Multi-Agent Interactive Classroom Generator - OpenMAIC

Orchestrating the Agents

Running multiple AI agents simultaneously risks creating a chaotic system where models talk over each other or hallucinate the user's intent. OpenMAIC solves this by utilizing LangGraph as its orchestration layer. LangGraph operates as a state machine, meticulously managing turn-taking and context passing.

The LangGraph state machine manages context and speaking turns, preventing the agents from overlapping or losing the conversational thread.

When a user submits a question, the input does not go directly to an LLM. It hits the orchestrator. The orchestrator evaluates the current state of the classroom and routes the packet to the appropriate agent. Once that agent completes its task, it passes a structured payload back to the orchestrator, which then updates the global context and decides the next step.

A close-up of three hands over a slate chalkboard. Two are mechanical hands made of gears and pistons, and one is human. One mechanical hand passes a piece of chalk to the other, while the human hand waits with an eraser. This represents the LangGraph state machine passing control between agents before allowing user interaction.
Control of the classroom is passed systematically between agents before the user is prompted to interact.

Generating the Curriculum

The output layer of OpenMAIC is equally dynamic. The system ingests a plain text document or topic and generates a complete curriculum on the fly. It does not simply return markdown text. It produces slide decks with voice narration, interactive quizzes, and standalone HTML simulations that render natively in the browser.

This allows the multi-agent system to utilize visual aids. A lecturer agent can trigger the generation of a chart, while a debater agent points to a specific data point within that newly generated graphic.

From Numpy to LangGraph

To understand the philosophy behind OpenMAIC, one must look at its origins. The project traces its roots back to the 2018 Avik-Jain/School-of-AI repository. Long before LLM orchestration, this repository served as a curriculum for community-led machine learning workshops.

A WSJ hedcut-style portrait of Avik Jain, creator of the School of AI repository.

The 2018 codebase focused heavily on demystifying black boxes. Instead of using high-level libraries like Scikit-Learn to perform facial recognition, the curriculum taught students to implement K-Nearest Neighbors from scratch. It forced learners to flatten 3D face data into 1D vectors manually.

# Legacy 2018 implementation reshaping face data manually
f_01 = np.load('./face_01.npy').reshape(20, 50*50*3)

That same ethos of transparency drives OpenMAIC today. By using an open-source LangGraph architecture, the platform exposes exactly how the AI reasoning process works. The student is not just learning the curriculum; they are interacting with a visible, inspectable cognitive engine.

The Single-Agent vs. Multi-Agent Paradigm

The educational technology landscape is crowded. OpenMAIC differentiates itself by focusing purely on the generative, multi-agent experience. It contrasts sharply with platforms that rely on static content or single-threaded conversations.

FeatureOpenMAICStandard AI TutorAI Seeds
Interaction ModelMulti-Agent Simulation (Debate, Lecture)Single Agent Q&ACurated Content + Demos
OrchestrationLangGraph State MachineLinear Request/ResponsePre-defined Lesson Flow
Output DiversityDynamic HTML, Slides, AudioMarkdown TextStatic MDX, Embedded JS
A split composition showing a vintage brass scale weighing a single heavy textbook on the left, and an identical scale holding a complex, spinning clockwork orrery on the right. This contrasts static, heavy curriculum against a dynamic, moving multi-agent simulation.
The transition from static text delivery to dynamic, interconnected simulation.