AI Engineering
AstraLearn AI — an autonomous multi-agent learning academy
An autonomous academy where ten LangGraph agents interview a learner, verify their resources, design a curriculum, teach it, quiz them, and recalibrate the path.

AstraLearn's Academy Overview: the ten-agent pipeline matrix and live graph state.

Quick Start Goal turns a plain-language target, category, and timeline into a scoped learning pipeline.
Ten specialist agents coordinated as a single LangGraph state machine.
SourceTrust scores resources on authority, peer review, domain, recency, and learner fit.
Quiz scores below 70% trigger remedial lessons; stronger learners are fast-tracked.
AstraLearn starts with a goal, not a course catalog. The learner types what they want to learn, picks a category — project, exam, or concept — and chooses a timeline between one and sixty days. From there the system runs a nine-stage loop: goal intake, counselor interview, profile compilation, librarian discovery, SourceTrust scoring, curriculum generation, classroom delivery, quiz or lab, and coach-led adaptation.
The pipeline is ten specialist agents behind a LangGraph state machine. A counselor runs a three-to-five turn diagnostic instead of serving a static form; a profiler converts the transcript into a LearnerProfile with baseline scores, learning modality, and predicted friction points; a librarian indexes candidate material into Pinecone while a source verifier applies SourceTrust, a weighted rubric covering author authority, peer review, domain credibility, recency, and fit with the learner's baseline. Resources scoring below 50 are rejected and surfaced in an audit board rather than silently hidden.
Once resources clear the bar, a curriculum architect writes phases, modules, and lessons with prerequisite dependencies inside a Prisma transaction, and a schedule planner maps them onto the learner's available hours. The classroom agent streams markdown lessons with citations and an ask-a-doubt console, while a visual explainer generates Mermaid diagrams alongside the text.
Assessment closes the loop. The examiner generates multiple-choice quizzes or practical task cards and scores submissions. If accuracy falls below 70%, the adaptive coach inserts a remedial lesson as the next block and records the weakness; learners who clear the threshold get later modules unlocked early. Those changes run as atomic updates, so the curriculum never ends up half-rewritten.
The architecture is deliberately asynchronous. Express and Socket.io accept the request, BullMQ hands heavy generation to Redis-backed workers, and the graph persists its state in PostgreSQL through Prisma at every node. Zod schemas guard both HTTP inputs and agent outputs, and Socket.io events — agent:started, agent:progress, agent:completed, agent:error — turn a multi-minute run into a visible, resumable process that the Next.js 16 and React 19 client can watch in real time.
“Agentic systems are state machines with language models inside them — not chat prompts stacked in a loop.”





