cd /news/ai-tools/profe-a-grader-that-runs-students-we… · home › topics › ai-tools › article
[ARTICLE · art-175016] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Profe – a grader that runs students' web apps in a real browser

Profe, an open-source grading tool built on LambdaTest's Kane CLI, converts an assignment's acceptance criteria into plain-English tests, runs them in a real Chrome against each student's web app, and proposes a grade criterion by criterion with screenshots, console and network logs, and a sealed evidence pack for teacher approval. A full demo — three calibration runs plus five students, all tests authored from scratch — took about 40 minutes and roughly 1,650 credits, with each submission taking about 4 to 5 minutes using three Chrome workers. The tool requires Node 18+, Google Chrome, and a Kane CLI login to a TestMu AI account, and its `profe loop` command feeds feedback to any coding agent CLI until every criterion passes.

key takeaway

Profe's `profe loop` command grades an app, hands the per-criterion feedback to any coding agent CLI, and re-grades until every criterion passes, with Kane, the network and TestMu credentials kept outside the agent's sandbox.

read8 min views1 publishedNov 23, 2026
Profe – a grader that runs students' web apps in a real browser
Image: Michielbdejong (auto-discovered)

The teaching assistant that actually runs your students' apps.

Students now hand in web apps written with Claude Code, Cursor or Codex. They look finished. A teacher with 120 submissions cannot click through every one, so grades end up based on screenshots and code reading, and a broken feature that looks right goes unnoticed.

Profe turns an assignment's acceptance criteria into plain-English Kane CLI tests, runs them in a real Chrome against every student's app, and proposes a grade criterion by criterion, with evidence for every point: screenshots of each step, console and network logs, a public link to watch the run, and a sealed evidence pack. The teacher reviews and approves every grade. Profe never publishes one on its own.

▶ Demo video (3 min): https://youtu.be/KYnkbGxuA3Y: Kane CLI grades a student's app in a real Chrome, catches a TypeError that never shows on screen, calibrates the grader itself, and a coding agent fixes the app from Kane's feedback.

Live sample report: https://mostro3000.github.io/profe/ (the dashboard from grading the example class below).

assignment.md ─► rubric.json + tests/ac*_test.md   (one plain-English Kane test per criterion)
                      │
   profe calibrate ───┤  the reference solution must pass every test, and known-bad
                      │  mutants must fail the criteria they break ("who grades the grader?")
                      ▼
 roster.json ─► profe grade ─► per student: serve the app on a fresh port ─► kane-cli testrun
                      │         (one isolated Chrome per criterion, one sealed evidence pack)
                      ▼
   report: dashboard · grades.csv for the gradebook · feedback.md per student
                      │
 student ◄────────────┴─► profe check / profe loop: the student's coding agent reads the
                          feedback, fixes the app, and Kane grades it again until it passes

You need Node 18+, Google Chrome, and Kane CLI signed in to a TestMu AI account (new accounts get free credits):

npm install -g @testmuai/kane-cli
kane-cli login

git clone https://github.com/mostro3000/profe && cd profe
node bin/profe.mjs demo

demo first calibrates the example rubric, then grades five example submissions and writes reports/demo/index.html.

Profe grades one submission at a time with three Chrome workers each, which takes about 4 to 5 minutes per submission. On a fresh account every test is authored by Kane on its first run. Our full demo (three calibration runs plus five students, all authored from scratch) took about 40 minutes and roughly 1,650 credits. Later runs replay the recordings and cost far less.

To try it cheaply, grade one student, or open the live sample report from our run:

node bin/profe.mjs grade examples/roster.json --only Bruno
Command What it does
profe calibrate <assignment> Runs the tests against the reference solution (must pass 9/9) and against mutants with known bugs (must fail what they break). Writes calibration.json .
profe grade <roster.json> Grades every submission (a folder or an https:// URL) and writes the report:index.html ,report.json ,grades.csv ,feedback/<student>.md ,evidence/<student>.evidence .
profe check <assignment> --app <folder|url> The student's self-check with the same tests. Writes profe-feedback.md , which is written for a coding agent too.
profe loop <assignment> --app <folder> --agent "<cmd>" Closed loop: grade, give the feedback to a coding agent, grade again, until every criterion passes. Add --commit to put every round in git.

profe loop works with any agent CLI, because the agent only edits files. Kane, the network and the TestMu credentials stay with Profe, outside the agent's sandbox:

profe loop assignments/course-enrollment --app ./my-app --agent "codex exec --approve-for-me" --commit
profe loop assignments/course-enrollment --app ./my-app --agent "claude -p --permission-mode acceptEdits"

We recorded the loop with two different agents, and each fixed exactly the bugs Kane reported in one round:

  • Claude Haiku 5.5 took Bruno's app from7/9 to 9/9 in 17 seconds.
  • Muse (muse exec --model muse-spark-1.3-contributor ) took Diego's app from7/9 to 9/9 in 36 seconds. That includes the uncaughtTypeError that never shows on screen, which Muse fixed from Kane's console evidence.

The transcripts, diffs and fixed apps are in docs/agent-loop/. The Codex command above shows the shape of the call; Codex was not run.

After Muse's fix, Kane's replay of AC9 shows the same flow passing its console check: no uncaught exceptions.

  • One kane-cli testrun run per submission over the assignment's_test.md files, with--override-start-url pointing at that student's app. Kane gives each criterion its own isolated Chrome and seals one evidence pack for the whole submission.
  • A fresh browser origin per run. Local submissions are served on an ephemeral127.0.0.1 port, so nolocalStorage leaks from one student to the next.
  • Plain-English tests written against the spec, not the DOM. The same nine tests grade any implementation: plain JS, React, a table layout or cards.
  • DevTools assertions catch what a screenshot cannot. AC9 fails an app that looks right but throws an uncaughtTypeError in the console.
  • Kane's own words in the feedback: the failing step, Kane's reason, the values it read on the page (final_state ), and the public Test Manager link to the run.
  • Calibration with known answers before any student is graded.
  • Kane checks Profe itself.npm run selftest serves a generated report and runsselftest/dashboard_test.md : the grades table, opening the evidence for a failed criterion, export refused until a grade is approved, then approve and export. It passes:watch the replay .

Every criterion in the report links to its test case in Test Manager. The share page opens without an account and replays the test case's latest run: each step, each assertion and an autoplay of the screenshots. That is why profe loop grades in a workspace of its own, so the loop's runs never become the latest version of a class's test cases.

Profe was built with Claude Code, with Kane running against the real thing at every step. Its first calibration said "Calibrated". Kane's evidence then showed:

  • a console check that counted a missing favicon as a JavaScript error;
  • a step whose precondition Kane re-verified after the click;
  • two students graded at once, where a test started on one student's app and, according to Kane's final_state.url , finished on the other's.

Each of these would have cost some student a point. Profe now refuses to grade until the reference solution and every mutant behave exactly as expected, and it runs one submission at a time. The full story, with commits, is in docs/BUILD-LOG.md.

  1. Only a real pass or a real fail counts. A test that could not run (the app was down, the browser crashed) is markedunverified . It never costs points, and it sends the grade to the teacher.
  2. The rubric is calibrated before it grades anyone. A test that fails the reference solution is a broken test, not a student's mistake.
  3. Every point has evidence , and the teacher approves every grade. The dashboard has a "Final" column to override and an "Approve" checkbox. Only approved grades export toapproved-grades.csv , which imports into a Moodle gradebook.
  4. Kane's verdict is evidence; its diagnosis is a hypothesis. In our run every verdict was right. One diagnosis was not: it blamed Diego's AC5 failure on the test's starting data, when the app simply accepted a clashing course. Feedback labels the diagnosis as a hypothesis to check against the replay.
  5. Evidence packs stay on the teacher's machine. They include the grader's TestMu account details (email, organization). The public replay links are what you share with students.
assignments/<id>/
  assignment.md          the spec students read
  rubric.json            criteria: id, title, text, points, test; plus calibration paths
  tests/acN_*_test.md    one Kane test per criterion (target: chrome, plain-English steps)
  reference/index.html   your solution: must pass every criterion
  mutants/<name>/        known-bad versions: each must fail the criteria listed in rubric.json

Run profe calibrate assignments/<id> until it says "Calibrated", then grade.

assignments/course-enrollment is a second-year web development assignment: a course-enrollment page with seats, schedule clashes, search and persistence, graded on nine criteria. examples/ has four submissions with documented, seeded bugs (the answer key) and one built in a single shot by Claude Haiku 5.5 that nobody edited.

Submission Proposed grade Kane failed The real bug
Bruno 7.8 AC3, AC6 seeded: duplicate enrollment; Drop keeps the seat
Carla 7.8 AC7, AC8 seeded: case-sensitive search; nothing persisted
Diego 7.8 AC5, AC9 seeded: no clash check; a TypeError after Drop that the screen never shows
Elena 10 none none
Sofi 10 none built in one shot by Claude Haiku 5.5: no failures found

Kane's verdicts matched the answer key exactly: all six seeded bugs were caught, there were no false failures across 45 checks, and no check needed a retry. The whole report is live at https://mostro3000.github.io/profe/, with its source in docs/sample-report/.

Diego's AC9 is the bug a screenshot never shows. His page looks right after a Drop, but Kane's console check caught the exception:

npm test   # unit tests against a fake kane-cli: no browser, no credits

MIT

── more in #ai-tools 4 stories · sorted by recency
── more on @profe 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/profe-a-grader-that-…] indexed:0 read:8min 2026-11-23 · —