Overview
When asking an agent to debug a problem, it iterates through several steps — reproducing the bug, trying a fix, and iterating. Following an agent’s progress can be tricky as it iterates on solutions. sudocode gives the agent structure to remember what happens at each step, and gives you and your agent breadcrumbs to trace.The Scenario
Users see duplicate entries when paging through the workspace members list API. You suspect it’s related to the sort order.Describing the bug
Open your agent and describe what you’re seeing.Reproducing the bug in tests
Fixing the root cause
Discovering a related issue
What you get
Three linked issues tracing the full investigation:- i-2r5t (reproduce) → i-6h3k (fix OFFSET/LIMIT) → i-8m1w (fix cursor-based)
Key Takeaways
Test first, then fix
Test first, then fix
The reproduction issue is separate from the fix — the test is its own tracked artifact.
Issues as breadcrumbs
Issues as breadcrumbs
Discovered work gets tracked too
Discovered work gets tracked too
The cursor pagination bug wasn’t part of the original report. A separate linked issue keeps it visible instead of buried in a comment.

