Skip to content

AI Explorers

An AI course and classroom platform for schools

  • Education platform · not yet launched
  • Next.js
  • TypeScript
  • Postgres
  • Drizzle
  • next-intl

Overview

AI Explorers is a course and classroom platform for teaching AI in Mumbai schools on the Maharashtra State Board, from Std 6 to Std 10 (ages 11 to 16), in English and Marathi. Students work through weekly lessons and tools in the browser, teachers run lessons on a projector, and parents give consent and follow their child's progress.

The course is one data file of 138 weekly sessions, each with a lesson, a quiz, a teacher's plan and a worksheet. Two tools use Claude on the server: a tutor, and an illustration lab that asks for a drawing as SVG code rather than an image. The users are children, so the design starts from what is not collected: a student has a first name, a username and a PIN, and no account works until a parent has said yes.

How it works

One tutor message

The tutor carries the most risk, so every message goes through the same server-side checks before and after the model, and the server, not the browser, decides the prompt, the history and the limits.

Fig. 01 · One tutor message
One message through the AI tutor's checksA student's message passes an access gate (class switch, parent consent, daily and burst limits) and an input check for self-harm, personal details and blocked topics; anything found is blocked and only a redacted copy is logged. Otherwise Claude receives a locked system prompt and the last six turns from the database. Its reply is checked while it streams, holding back the last 48 characters, before whole words reach the screen. Every turn goes to a teacher log that is deleted after 30 days.STUDENT≤500 charsACCESSswitch,consent, limitINPUT CHECKself-harm,personal infoBLOCKEDredacted,not sentHISTORY6 turns fromthe databaseLOCKED PROMPTrole, std,languageCLAUDEHaiku,≤600 tokensSTREAM CHECKholds back48 charsSCREENwhole wordsTEACHER LOGflagged turns;30-day expiryTEACHERreads log,sets limit
  1. 01 Access

    A student sends a message of up to 500 characters. It goes no further unless the teacher has switched AI on for the class, a parent allowed AI tools, and messages are left today (20 by default).
  2. 02 Input check

    The text is checked on the server first. Signs of self-harm get a caring reply with a helpline number; personal details or a blocked topic stop the message, and only a redacted copy is kept.
  3. 03 Locked prompt

    Claude gets a fixed, versioned system prompt built from a role, the student's standard and app language, never a name or school. Earlier turns are read from the database, not sent by the browser.
  4. 04 Stream check

    The reply is checked as it streams. The last 48 characters are held back, so a blocked phrase never shows half-written; on a match the call stops and a safe reply replaces the text.
  5. 05 Log

    Each turn is stored with any flag for the class teacher to read and deleted after 30 days. The same teacher turns the tool on or off and sets the daily limit.

The illustration lab goes through the same gate, and the SVG code Claude returns is read by the server's own strict parser, with no scripts, images or outside links, then cleaned again by DOMPurify before the student can edit it.

From consent to sign-in

A student account cannot be used until a parent consents, through a one-time link or a signed paper form, without having to sign in.

Fig. 02 · Consent to sign-in
From a class list to a student's first sign-inA teacher adds students by first name; each account waits for consent, with its PIN stored as a hash. The teacher sends a parent a one-time link or a printed QR form. The parent chooses what to allow, which saves a consent record and turns the account active; a signed paper form can be recorded instead, and withdrawing consent returns the account to waiting. The student then signs in with a school code, a class code, a tapped name and a PIN; five wrong PINs lock the account for ten minutes.5 wrong PINs: locked 10 minTEACHERfirst namesACCOUNTPIN hashedWAITINGno sign-inONE-TIME LINKemail or QR;hashed, oncePARENTchooses scopesCONSENTplatform, AItools, galleryACTIVEcan sign inSIGN INschool code, class code,tap name, PIN
  1. 01 Class list

    The teacher adds students by first name, one at a time or by pasting a list. Each account starts as waiting for consent, and its PIN is stored only as an argon2id hash.
  2. 02 Link

    The teacher emails a parent a one-time link, or prints a form with a QR code. The link is stored as a hash, lasts 30 days and works once.
  3. 03 Parent

    The parent chooses what to allow: the platform itself, the AI tools (offered from Std 8), showing work in the public gallery, and use on a personal device.
  4. 04 Active

    Saving the consent turns the account active and writes an audit entry. A teacher can record a signed paper form instead. Withdrawing consent puts the account back to waiting.
  5. 05 Sign in

    The student enters the school and class codes, taps their name and types a PIN: no email, phone or surname. Five wrong PINs lock the account for 10 minutes and alert the teacher.

The browser never talks to the database: every read and write goes through server code that checks who is asking, and every table has row-level security with no policies for its public roles, so a leaked public key reads nothing.

From curriculum row to classroom

The course itself is data: each session starts as one row in the curriculum file and ends up as the files a class uses, but nothing counts as published until a person has read it.

Fig. 03 · Curriculum row to classroom
From one curriculum row to a week of teachingA row in the curriculum file is passed to a Claude Code command that writes the session's files: a lesson in English and Marathi, a five-question quiz, a teacher's plan and a printable worksheet. A content check validates and compiles them. Each session is then marked for review; none is published yet. The same files drive the lesson player, the teacher's Present mode and the worksheet PDF.FILES PER SESSIONCURRICULUM ROWone of 138 sessionsCLAUDE CODE/new-lesson std-6 week-12LESSONen · mrQUIZ5 questionsTEACHER PLANenWORKSHEETen · mrCONTENT CHECKschemas, quiz answers, MDXREVIEW137 of 138PUBLISHEDnone yetCLASSROOMlesson player · Presentmode · worksheet PDF
  1. 01 Row and command

    The course lives in one data file: 138 rows for Std 6 to Std 10, each giving the standard, week, unit, title and class activity for one 70-minute session. A Claude Code command, /new-lesson std-6 week-12, reads that row and its neighbours, plans against the Week 11 reference lesson and reuses visuals from the existing library first.
  2. 02 Files

    Each session ends up with a lesson in English and Marathi, a five-question quiz in both, a teacher's plan in English and a printable worksheet in both languages.
  3. 03 Check

    A content check validates every file against its schema, checks visual ids, quiz answers and Marathi coverage, and compiles every MDX body, so a broken lesson fails before the build.
  4. 04 Review

    The command marks a session for review, not published. 137 sessions wait for review and one is still a draft; none is published, as each needs a teacher and a native Marathi speaker to read it.
  5. 05 Classroom

    The same files drive the student's lesson player, the teacher's projector Present mode and the worksheet PDF. The status is a label, so a teacher can still open any week.

How it was built

I built it by directing Claude Code agents from a written brief: product and technical specs, the curriculum file, a ten-milestone plan with a definition of done for each, and the lesson command in Fig. 03. The project's notes call it an autonomous build; in the later rounds Sonnet models drafted course content and Opus models built features, and every commit is co-authored by Claude. My part, as the repo records it, was that brief, the checks each milestone had to pass, and the choices its decision log marks as the owner's.

What this doesn't cover

  • It has not launched, and no school uses it yet. All 138 sessions are drafted in English and Marathi, but none is published: each is waiting for a review by a teacher and by a native Marathi speaker, which matters all the more because agents drafted them. Nothing here describes students, pilots or learning outcomes.
  • The AI tools have run only in a labelled sample mode and, in tests, against a stand-in model; real Claude calls have not been tried end to end. The checks for personal details and unsafe topics are patterns and word lists tuned for Mumbai, and have not been measured against real messages.
  • The demo deployment runs outside India, which the project allows only for sample data. A school would need the Mumbai region first, and the privacy policy and terms are still drafts for a lawyer.
  • The project is private, so nothing from it is shown here. Every figure on this page is a schematic drawing.