Show HN: Penmentor – Claude marks up your handwritten math like a teacher
Recorded: Oct. 20, 2026, 4:11 p.m.
| Original | Summarized |
GitHub - AbdullahAlhariri/penmentor: AI mentor that reads your math. · GitHub Skip to content Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings You signed in with another tab or window. Reload to refresh your session. Dismiss alert AbdullahAlhariripenmentorRepository navigationCodeIssuesPull requestsActionsProjectsSecurity and qualityInsightsMore items penmentorPublicNotificationsYou must be signed in to change notification settingsFork0 (0)Star6 (6)You must be signed in to star a repositoryAboutAI mentor that reads your math.ResourcesReadmeMIT licenseActivityStars6 starsWatchers0 watchingForks0 forksReport repositorymainBranchesTagsGo to fileCodeOpen more actions menuLatest commit History3 Commits3 CommitsFolders and filesNameNameLast commit messageLast commit datebinbin contribcontrib docsdocs src/penmentorsrc/penmentor xournalpp-plugin/penmentorxournalpp-plugin/penmentor .gitignore.gitignore LICENSELICENSE README.mdREADME.md pyproject.tomlpyproject.toml View all filesRepository files navigationREADMEMIT licenseMore items 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 Handwriting in xournal++ → one key → the slip is marked on the page → box the integral → an interactive manim animation. Hints, not answers. A ladder from a nudge to naming the technique to a faint ghost of the next line: you do Works with Claude Code, Codex and Antigravity Prefix claude: codex: agy: Settings lists the agents you have installed. How each one is run and what it sees: the guide. Footer © 2026 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
The repository "penmentor," authored by AbdullahAlhariri, presents an innovative solution for mathematical learning through AI-assisted handwriting, functioning as an AI mentor that reads and interprets mathematical work completed in xournal++, a widely used handwriting application. By enabling users to press a designated key while working by hand, the system allows AI models such as Claude, Gemini, or GPT to mark the work on the screen, delivering a teacher-like experience with colored pens, targeted hints, and explanatory feedback. The core functionality of penmentor is centered on delivering hints rather than direct answers, which facilitates active learning by encouraging users to engage in the thinking process. It offers a progressive feedback mechanism that guides users from initial nudges to identifying techniques and even hinting at subsequent steps, thereby fostering deeper understanding and retention. The tool provides immediate and contextual feedback on the user's work, circling mistakes, ticking correct lines, and underlining lines that inherit errors, while retaining this feedback until the user clears it with the Esc key. Additionally, it includes practice features that involve questions on key steps, answerable by typing or writing, error-finding drills, and exercises for selecting appropriate techniques, all designed to enhance recall and application skills. A significant feature of penmentor is its ability to provide visual explanations through interactive animations. By boxing specific areas of mathematical work, the system generates 3Blue1Brown-style animations using the manim library, allowing users to drag bounds, retype values, and observe dynamic visualizations like Riemann sums, thereby making abstract mathematical concepts more tangible and comprehensible. The tool is designed to be page-aware, with a small xournal++ plugin that shares the current page context, ensuring that feedback and interactions are contextual to the entire document rather than just the visible portion, which enhances the coherence of the learning experience. Penmentor integrates seamlessly with several AI command-line agents, including Claude Code, Codex, and Antigravity CLI. The system supports different models through configurable prefixes, such as "claude:" for Claude Code with specific model variations like claude:opus, claude:sonnet, or claude:haiku, "codex:" for Codex, and "agy:" for Antigravity CLI with examples like agy:gemini-4-argon-medium or agy:gemini-3.8-flash-medium. Users can select the appropriate agent in settings, and the tool's behavior is tailored to the chosen model, with detailed guidance on how each agent is run and what data it receives, ensuring tailored support for individual learning needs. For setup, the repository can be cloned from GitHub, and users can run a self-test to verify functionality. The installation process requires specific dependencies, including rofi, slop, xdotool, and PyQt6, and is optimized for Linux environments on X11, particularly with setups like i3. Users are expected to have one of the supported agents logged in, and they can bind the penmentor binary to a key for convenient access, with the repository providing guides for setup, keys, and detailed operational instructions. The project is licensed under the MIT license, which grants broad permissions for use, modification, and distribution, making it accessible for educational and personal development purposes. The repository maintains a moderate number of stars and forks, indicating community engagement, though it is relatively new with limited contributors and releases, reflecting its emerging nature in the open-source ecosystem. In summary, penmentor represents a practical and interactive tool for enhancing mathematical learning by leveraging AI to provide personalized, visual, and contextually aware feedback on handwritten work, effectively bridging the gap between traditional pen-and-paper study and modern AI capabilities, and offering a cohesive, efficient approach to mastering mathematical concepts through AI-assisted pedagogy. |