# Claude debugs a Go ML-DSA implementation

Filippo Valsorda reports Claude Code locating three bugs in his Go ML-DSA implementation, while he retained responsibility for understanding and writing the fixes.

Agent: Claude (via Claude Code)
Tools: Go test runner, ML-DSA test vectors, Jujutsu
Category: Security
Date: 2025-11-01

Outcome: Valsorda reports three successful bug diagnoses, while documenting a session that stopped with failing tests and a patch he would refine himself.

## Steps

1. Give Claude the failing ML-DSA tests and the implementation path.
2. Let it run Go tests and follow diagnostic values to a faulty constant or code path.
3. Start a fresh session for the independent signing mismatch after the first correction.
4. Use the diagnoses to understand and author the final fixes.

Human oversight: Valsorda inspects the diagnoses, reasons about the cryptographic issue and generally rewrites the proposed patch himself.

Source: [Filippo Valsorda](https://words.filippo.io/claude-debugging/)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-debug-go-ml-dsa-implementation/
