-
-
Write on course PDFs and get short, cited hints beside your work.
-
Import a course, open a worksheet, write, ask for help, follow up, and save.
-
Import and cache course PDFs from GitHub, then open saved worksheets. LMS integrations are coming soon.
-
Course learning builds teaching cards with methods, notation, worked examples, and lecture references.
-
Write with a pen, finger, or mouse. Erase, undo, change pages, and save or reload your work.
-
Albert circles the missing step and asks: “You replaced x. What does dx become?” See Lecture 9, Step 2.
-
Ask up to 200 characters. Follow-ups keep context, with help from a question to one worked step.
-
Save editable work or download an annotated PDF. Some exported hint lettering still needs rendering fixes.
-
Next.js separates course ingestion from hints, combining course context, page crops, and pen data.
-
LangChain Deep Agents reads units, checks teaching cards, and maps worksheets using tools, memory, and checkpoints.
-
Claude on Bedrock reads page crops and stroke clusters. Zod checks replies; the browser draws using stroke coordinates.
-
Hints use methods taught by the worksheet’s unit. Server checks enforce the help ladder, with repair or fallback.
-
MongoDB Atlas stores courses, cached PDFs, and sessions. LangGraph persists agent memory and checkpoints.
-
Recorded UI and backend diagrams cover the current build. Live acceptance checks and export rendering still need work.
Inspiration
Most AI tutors are chat boxes. You type the problem in and get back a full solution, sometimes using a method your class hasn't covered yet. I wanted help that's on the page itself, in the margin, like you're at a learning session, having a teacher leaning over your shoulder and pointing at where the misunderstanding was.
What it does
You open your course worksheet as a PDF and write on it with a pen. When you get stuck, you tap I'm stuck or type a short question into the Ask Albert box. Albert reads your handwriting, moves a little red pen tip to the symbol it means, circles it, and writes a short hint next to your work in red ink. The hint cites the lecture where your teacher covered that step.
The first hint is always a question. If you're still stuck, the second one names the step, and the third writes out one worked step. Albert never opens with the answer. Hints also stay inside what your class has covered so far: a hint on Worksheet 3 can use methods from Units 1 to 3, but not Unit 4. Albert knows where that line is because a "Learn this course" agent reads the course notes and worksheets ahead of time.
Your work saves as you go. When you're done, Save PDF downloads the original worksheet with your handwriting and Albert's notes on it, so you (or a tutor or TA) can see later where you got stuck and what Albert said.
How we built it
The app is Next.js and TypeScript, with a stroke canvas we wrote ourselves on Pointer Events. Claude Sonnet 4.6 on Amazon Bedrock reads the handwriting and writes the hints.
The most important design choice was how Albert points at things. Models are really bad at giving pixel coordinates on handwriting, so the browser groups your strokes into numbered symbols and the model only has to say which number is wrong. Every model reply is validated with zod, and the server checks the hint ladder again before anything is drawn. If a first-rung hint sneaks in the answer, it gets repaired once or replaced.
Course ingestion is a deep agent built with LangChain Deep Agents. It works through the course one unit at a time, handing each unit to a sub-agent that writes a teaching card (the methods, the notation, and worked examples labeled by lecture). Another sub-agent maps worksheet problems to units, and a checker re-reads each unit against its card. The agent's tools refuse any card whose worked examples aren't in the source text, so the sub-agent has to fix its own output. We use MongoDB Atlas holds sessions, cards, worksheets and the agent's checkpoints. The demo course is a Calculus II course we put in a GitHub repo.
Albert's marks are drawn with roughjs so the circles and arrows look hand-drawn, notes are set in a handwriting font, and math renders through MathJax. pdf-lib builds the annotated PDF in the browser.
Challenges we ran into
Keeping the model from giving away the answer was harder than we expected. Even with a Socratic prompt it slips, so we added a server-side rule check for each rung, and a reply that breaks the rules gets one repair attempt before it's rejected. It still isn't perfect. In one of our eval runs a first-rung hint used two math expressions after its repair and the student got no hint at all. We changed it so a bad hint now falls back to a neutral question instead of an error.
PDF coordinates were a huge pain. Worksheets comes in all shapes and sizes, cropped and rotated, and the exported ink has to land exactly where you wrote it. We unit-tested the transform on plain, cropped, and 90, 180 and 270 degree pages before doing any UI work top of it.
Speed is the one we haven't solved. With all the checks, a hint takes roughly 6 to 10 seconds to start drawing. We were aiming for 3 and didn't get there.
Accomplishments that we're proud of
We're really proud of how the the pointing works. On our recorded set of real handwriting, Albert identified the right line and the right problem status every time, stayed inside the course scope every time, and didn't give away the answer on the first two rungs in three runs in a row.
The course agent read the whole synthetic course in about five minutes and passed all 13 of our golden checks, producing 5 teaching cards and 4 mapped worksheets.
Save PDF writes your strokes into the original worksheet as native PDF ink annotations, with Albert's marks on top. Notes that don't fit on a page go on labeled pages at the end.
What we learned
A model is much better at saying which numbered thing is wrong than at saying where it is, so let the browser own the geometry. Recording real model runs and replaying them in browser tests caught bugs that hand-written mocks wouldn't have.
What's next for Albert
Streaming, so the ink starts drawing sooner. Putting notes in open space on the page instead of a band under your work. Canvas LMS support through an integration a school has approved. A drill mode, and subjects beyond calculus.
Built With
- amazon-bedrock
- amazon-web-services
- claude
- deep-agents
- fly.io
- github
- langchain
- langgraph
- mathjax
- mongodb-atlas
- next.js
- node.js
- pdf-lib
- pdf.js
- perfect-freehand
- playwright
- react
- roughjs
- typescript
- zod
