Agents & MCP · Teaching tool (co-built) · 2026
An agentic grader for Canvas LMS
A LangGraph pipeline that grades programming submissions against a rubric, computes the score in code instead of trusting the model's arithmetic, and reuses feedback a TA already approved.
I ran the Python pipeline on three course assignments, then ported its grading graph into a desktop app I co-built with a collaborator.
- Role
- Grading pipeline; co-built desktop app
- Stack
- Python · LangGraph · LangGraph.js · Playwright · TypeScript · Electron · Next.js
As a TA I grade programming assignments, and most of that time goes to applying the same rubric deductions with the same comments. Canvas Grader started as my own Python pipeline for that work. It later grew into a desktop app I co-built with a collaborator.
The Python grader is a LangGraph state machine. It loads the rubric and the submission, asks the model for per-criterion deductions, validates the output format and then checks the score. The final score never comes from the model's own total: the code sums the parsed deductions and subtracts them from the rubric maximum. If the result looks wrong (a negative score, or deductions larger than the maximum), the graph sends the model back with the problem stated, at most twice, then clamps the score and records why.
Feedback carries over between submissions. Each assignment keeps its own store of past deduction comments, grouped by criterion and sorted by how often they were used, so the model reuses wording I already approved. A subprocess test runner executes student code against per-criterion tests and uses fuzzy name matching, so a misspelled function still gets tested. Playwright drives Canvas SpeedGrader.
In the shared app I wrote the first LangGraph.js grading graph, including the code-grading branch ported from the Python pipeline. I also built the comment-normalization view, the settings and rubric screens, batch grading, paginated Canvas API calls, and tests for pagination, input sanitization and validation. My collaborator built the multi-provider model support, document conversion, tracing, and the later move to a web app.