- Write migration plan
- Agent edits in batches
- Tests per batch
Ship a 40-file refactor with a coding agent
Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.
Cryptography engineer Filippo Valsorda's write-up on Claude Code debugging low-level crypto.
“Debug low-level cryptography code” is a Security, Science & Hardware AI agent workflow from Any. It connects Claude Code in 3 steps.
Cryptography engineer Filippo Valsorda's write-up on Claude Code debugging low-level crypto.
Filippo Valsorda ran Claude Code (Opus 4.1, no system prompt) on his new Go ML-DSA implementation. His prompt named the test command and code directory, described the failing symptom, and asked it to think hard. It read the code and traced the bug. It also tested a hypothesis with a small test of its own. He then repeated this on two earlier signing bugs, using a fresh session for each.
It found all three bugs in one shot without help. The Verify bug took minutes: high bits were taken twice. Its proposed fixes were mediocre, so Valsorda threw them away and rewrote them himself.
Use well-scoped failing tests, start a fresh session for each independent bug, and treat the agent's output as a pointer to the bug, not a fix to merge.
I have a failing test in my cryptography code at [path], where [describe the symptom, e.g. wrong output for certain inputs]. Investigate why it fails, compare against [reference implementation or test vectors], and propose a fix. Finished means the tests pass and you've explained the root cause, and you should show me the diff before changing any files.
Cryptography engineer Filippo Valsorda's write-up on Claude Code debugging low-level crypto.
You need Claude Code.
The guide walks through 3 steps, starting with “What they did”.
Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.
Claude Code reads your coverage report, picks the riskiest untested modules and writes unit tests that pass, one small PR at a time.
A shell hook that turns command-not-found errors into coding-agent prompts while still catching typos.
Via Hacker News · quan ↗Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges