Show HN: Penmentor – Claude 像老师一样批改你的手写数学题
Show HN: Penmentor – Claude marks up your handwritten math like a teacher

原始链接: https://github.com/AbdullahAlhariri/penmentor

penmentor 是一个用于 Linux 上 Xournal++ 手写作业的数学学习工具。按下一个键,即可将当前页面发送到你已在使用的 AI 代理(Claude Code、Codex 或 Antigravity CLI),使用你自己的订阅。它会叠加教师式的批注:正确行打勾,圈出第一个错误,下划线标出后续依赖性错误,并提供从提示到淡色下一行幽灵提示的线索,而非完整答案。它还支持练习题和找错练习。框选一个表达式可生成交互式 Manim 动画,例如拖动积分上下限并观察 Riemann 和收敛。插件可共享整页,而不仅是可见屏幕。要求包括 X11 Linux、一个受支持的代理,以及 rofi、slop、xdotool 和 PyQt6 等工具。用户可通过前缀选择模型,并将脚本绑定到按键。

Hacker News 展示了 Show HN:Penmentor,一个 Claude 像老师一样批改手写数学的工具。它有 65 个点赞和 7 条评论。在评论中,创建者表示它目前仅支持 Claude、Codex 和 Antigravity CLI 模型,不支持其他 LLM 提供商。用户赞扬了它的绘图工具和在家教育潜力,而创建者指出它针对 Linux(Arch/i3wm)定制,并询问用户想要什么平台。还提到了 YC 2027 冬季申请。
相关文章

原文

penmentor

A maths mentor at the tip of your pen. Press a key while you work by hand: Claude, Gemini or GPT marks your work on the
screen like a teacher with coloured pens, gives you hints instead of answers, and shows the idea as a 3Blue1Brown-style animation.

Writing an integral in xournal++, penmentor marking the sign slip, then animating the area
Handwriting in xournal++ → one key → the slip is marked on the page → box the integral → an interactive manim animation. (video; for a repeatable recording the pen is scripted and the model's answer is a fixed example.)

I study calculus with a pen tablet in xournal++. I kept screenshotting my work into Claude and reading long answers back, when what I wanted was a teacher looking over my shoulder: circle the mistake, tick what's right, nudge me toward the next step, and show me why. penmentor is that, one key away, on my own Claude subscription.

  • Hints, not answers. A ladder from a nudge to naming the technique to a faint ghost of the next line: you do the thinking, which is what makes it stick.
  • Feedback on your own work. The first real mistake circled where you made it, correct lines ticked, later lines that inherit the mistake underlined. The marks stay while you keep writing; Esc clears them.
  • Practice that makes you recall. Questions on your key steps (answer by typing or by writing), find-the-error drills, "which technique fits?".
  • See it. Box what you want to understand and get an interactive animation made with 3Blue1Brown's own manim: drag the bounds, retype a value, watch Riemann sums close in.
  • Whole page aware. A small xournal++ plugin shares the page you are on, not just what fits on screen.

Works with Claude Code, Codex and Antigravity

penmentor runs on the AI command-line agent you already use, on that subscription. Pick the model in Settings; its prefix says which agent answers:

Prefix Agent For example
claude: Claude Code claude:opus, claude:sonnet, claude:haiku
codex: Codex codex:gpt-5.6-terra
agy: Antigravity CLI agy:gemini-4-argon-medium, agy:gemini-3.8-flash-medium

Settings lists the agents you have installed. How each one is run and what it sees: the guide.

git clone https://github.com/AbdullahAlhariri/penmentor ~/src/penmentor
~/src/penmentor/bin/penmentor --selftest

Linux on X11 (best with i3), with one of those agents logged in (claude, codex or agy), plus rofi, slop, xdotool and PyQt6. Bind bin/penmentor to a key (example). Setup, keys and how it works: the guide.

MIT

联系我们 contact @ memedata.com