A few weeks ago, a friend of mine who's a Math PhD told me he was completely stuck with his research.
He's a genius at math, but coding isn't his thing. He was trying to use AI chatbots to help him turn complex formulas from academic PDFs into Python code so he could test his ideas.
The problem? They kept hallucinating or just missing the logic in the math notation entirely. He was spending days trying to fix broken code that was supposed to save him time.
He said: "I just want to test these ideas without getting stuck in the code every time."
That stuck with me. I'm a software engineer, so I built him something.
I called it AlgoMath, a specialized agent skill that sits on top of Claude Code and OpenCode. Instead of a generic chatbot, it follows a proper autonomous workflow to make sure the math actually stays accurate:
It reads the PDF and pulls out the raw mathematical logic. Breaks it into structured steps. Turns those into clean, executable Python code. Runs it in a sandbox to catch errors. Then explains the results and checks everything against the original paper.
A task that used to kill his whole week now takes about 30 seconds. He just tells his terminal agent to use the AlgoMath skill, and he's back to doing actual research.
I open-sourced it and kept the setup simple: npm install, a small wizard walks you through the rest, and you're running it in your terminal agent immediately.
Check it out:
NPM: https://lnkd.in/d2TMKpjj
GitHub: https://lnkd.in/dwWACnnH
#SoftwareEngineering #AIAgents #ClaudeCode #Python #Math #AlgoMath #OpenSource
https://github.com/DevSadaqat/pdf-knowledge-agent