{"slug": "show-hn-study-with-a-pen-and-paper-using-ai-as-a-tutor-and-grader", "title": "Show HN: Study with a pen and paper, using AI as a tutor and grader", "summary": "Developer nichochar released Ari, an open-source AI tutor that runs locally and uses a camera above a page of paper to watch students solve problems, generate curricula and grade completed work. Ari requires Node.js 24+, git, ffmpeg and a ChatGPT account, installs via `npm ci` plus `@openai/codex@0.163.0`, and defaults to the GPT-6 Astra model at High reasoning effort; it runs on port 3001 and stores chats, progress and submitted photos locally under `.local/`. The app renders interactive 2D and 3D graphs from text blocks in replies through a separate plotting package, ari-plot, published on npm, and its built-in camera bridge is Mac-only while browser cameras and photo uploads work without it.", "body_md": "Learn stuff with pen and paper + an AI tutor.\n\nUsing pen and paper to actually solving problems is a very effective way for me to learn. It might be for you as well, and if so you might like Ari.\n\nI recommend setting up a camera above your page, I have [this one, it works great](https://www.amazon.com/dp/B079DLTG9F).\n\nYou can then chat with Ari about what you want to learn and it will create a curriculum for you with exercises to work through.\n\nYou can ask questions while you work and when you're done, just ask it to grade your work. It can always see what you are writing.\n\nI've had great success doing math and physics this way!\n\nAri runs locally right now, which allows you to use your codex subscription. I've been using that with Astra (today Anthropic doesn't let you use your subscription for non-official clients).\n\nI recommend just pointing your AI to this repo and ask it to set it all up for you.\n\nAri draws interactive 2D and 3D graphs in its replies, lessons and exercises. It writes a small text block and the app renders it as a live plot: drag the sliders, orbit a surface or edit the expressions, then ask Ari about your changes. It receives your version of the graph and a picture of the view.\n\nThe plotting is its own package, [ari-plot](https://github.com/nichochar/ari/blob/main/packages/plot), published on npm.\n\nYou need Node.js 24+, git, ffmpeg, and a chatGPT account. The built-in camera bridge is Mac-only, while browser cameras and photo uploads do not need it.\n\n```\ngit clone https://github.com/nichochar/ari.git\ncd ari\nnpm ci\nnpm install -g @openai/codex@0.163.0\ncodex -c 'cli_auth_credentials_store=\"file\"' login\n```\n\nComplete sign in with chatGPT in your browser. Ari uses that local Codex login and your subscription's allowance, no API key needed.\n\n```\ncp .env.example .env\nnpm run build\nnpm start\n```\n\nOpen **[http://127.0.0.1:3001](http://127.0.0.1:3001)**.\n\nChoose a model and reasoning effort in **Settings → Ari’s model**. The default is **GPT-6 Astra, High**. The choice is saved locally and applies to new requests across chats, lessons, grading and assessments. Running replies keep their current model. ChatGPT mode loads models and supported efforts from your Codex connection; API-key mode offers a compatible selection available to your API account. Existing provider/billing settings stay in `.env`.\n\nIn ChatGPT/Codex mode, Codex automatically compacts long conversations using the selected model's default threshold. Ari keeps the full chat transcript separately. `LEARNING_COMPACTION_TOKENS` applies only to API-key mode.\nThe chat shows “Compacting conversation…” while this happens, then continues the response.\n\n1. Open **Talk with Ari** and describe what you want to learn. For example: “Teach me photography from scratch, in 20-minute sessions.”\n2. Discuss the proposed outline, then choose **Create lesson** or**Create curriculum** .\n3. Use the **Study desk** to practice. Chat through anything as needed, and grade when ready. Save a reflection to help Ari adapt.\n4. Open **Assessments** for a fresh mixed paper. Adjust Ari’s proposed topics, work at your pace, and submit for a score and learning diagnosis. Hints are allowed; each submission and its photos stay saved.\n\nNew learners start with a brief conversation.\n\nI used a TUTOR.md for Ari's personality and a USER.md for how it learns about you. These evolve automatically but you can edit them directly or by chatting with Ari.\n\nWant to try onboarding without resetting your progress? Run `npm run onboarding` for a separate fresh learner on port 3002. Stop that preview with `PORT=3002 npm run stop`.\n\nChats, progress, uploaded materials and submitted photos are saved **on your computer**, under `.local/`, which Git ignores. Personalization lives in `~/.ari/workspace/`: `TUTOR.md` defines teaching style, `USER.md` holds learner context, and `memories/` holds detailed notes. Ari reads the two core files each turn and retrieves other notes as needed. Edit and restore the core documents in Settings; browse memories there or ask Ari to revise them. Existing learner notes and reflections are imported automatically.\n\nLive camera preview stays local; deliberately submitted work and relevant learning context are sent to OpenAI for tutoring. This is a single-user local app—keep it on localhost.\n\n`npm run backup` saves learning data, native conversation history and personalization files, excluding credentials. Keep its SQLite file and companion directories together. `.env`, credentials, backups and personal learning data are not included in this repository.\n\nPersonalization backups also include a matching `.workspace` directory with `TUTOR.md`, `USER.md`, memories and the workspace identity marker. To restore, stop Ari and restore the SQLite file, its `.codex` companion when present, and its `.workspace` contents to their original locations. The workspace location is saved in the database; preserve its identity marker. If backup reports that notes differ from recorded revisions, open Settings to refresh those edits and retry.\n\nFor development: `npm run dev` (UI on port 5173), `npm test`, and `npm run build`. See the [frontend module map](https://github.com/nichochar/ari/blob/main/src/README.md) and [design rules](https://github.com/nichochar/ari/blob/main/design/README.md).", "url": "https://wpnews.pro/news/show-hn-study-with-a-pen-and-paper-using-ai-as-a-tutor-and-grader", "canonical_source": "https://github.com/nichochar/ari", "published_at": "2026-12-05 22:26:13+00:00", "updated_at": "2026-12-05 22:46:15.312365+00:00", "lang": "en", "topics": ["ai-tools", "ai-products", "generative-ai", "developer-tools"], "entities": ["Ari", "nichochar", "OpenAI", "Codex", "GPT-6 Astra", "ari-plot", "Node.js", "Anthropic"], "also_reported_by": [], "takeaway": "Ari runs locally against a ChatGPT/Codex subscription login instead of an API key, so a student can install it with `npm ci`, `npm install -g @openai/codex@0.163.0` and `codex -c 'cli_auth_credentials_store=\"file\"' login`, then start it on port 3001 with no API key.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-study-with-a-pen-and-paper-using-ai-as-a-tutor-and-grader", "markdown": "https://wpnews.pro/news/show-hn-study-with-a-pen-and-paper-using-ai-as-a-tutor-and-grader.md", "text": "https://wpnews.pro/news/show-hn-study-with-a-pen-and-paper-using-ai-as-a-tutor-and-grader.txt", "jsonld": "https://wpnews.pro/news/show-hn-study-with-a-pen-and-paper-using-ai-as-a-tutor-and-grader.jsonld"}}