Record the original through Frida while it runs.
Replay the recording against your reimplementation.
Diff the result, bit for bit.
Wrap those three steps as tools and an agent can port a function end to end — no source, no ABI guesswork.
https://t.co/8I55e01P8Y
Ghidra gets you the C. It does not get you a exact port.
I've read the decompiled output, written the C++, matched every number — and still shipped code wrong one bit on a path I never tested.
Reading is not verifying. So how do you get an agent to do both?
One sentence to an AI: "reverse this .so function, reimplement it in C++."
It compiled. It was wrong.
I asked again — it started from zero. Same mistakes.
That's the real problem.
So: a Python client driving live Ghidra, 30 refine scripts that write verified facts back, an 8-chapter tutorial with every example compiled.
Standing on GhidraMCP, which makes Ghidra drivable in the first place.
Two ways:
Python, every tool is a function:
for p in ("libnr_api.so","libnr_loader.so"):
print(p, call("get_current_program_info", program=p)["function_count"])
bash, stdout is JSON:
./eval-ghidra.py 'search_functions_enhanced(name_pattern="Swap")' | jq '.results[].name'
6 months of reverse engineering with Codex, one lesson: let it compose tools with code.
@XerzesX GhidraMCP exposes 222 of them. Calling one at a time is not analysis — bulk filter, chain, retry. Three lines of Python beat shuffling context.
The tool, next tweet 👇
Here it is — GhidraMCP's 222 tools turned into plain Python functions, so one snippet composes whatever you need:
https://t.co/cPofkGPaC0
./eval-ghidra.py --help
./eval-ghidra.py 'get_function_by_address(address="0x1cdb538")'
turn grok bot into a llm provider https://t.co/5iK37r4J6z need to acquire the SAND_INFERENCE_RENEWAL_CREDENTIAL environment variable from /exec-daemon/node /home/box/sand-host/host-main.cjs
3 months ago, I saw eve for the first time.
It gave me the exact same chills I felt when I first discovered Next.js 8 years ago: "This is how we will build AI agents."
Except there was one massive dealbreaker for any real company:
Why must all our enterprise agents live on Vercel's cloud? 🧵👇