Skip to main content

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

What you get

Three linked issues tracing the full investigation:
  • i-2r5t (reproduce) → i-6h3k (fix OFFSET/LIMIT) → i-8m1w (fix cursor-based)
Each has feedback documenting what was found and decided. If someone later asks “why does the cursor use a composite format?”, the trail is there.

Key Takeaways

The reproduction issue is separate from the fix — the test is its own tracked artifact.
Each issue is a step in the debugging process. The links between them tell the story.
The cursor pagination bug wasn’t part of the original report. A separate linked issue keeps it visible instead of buried in a comment.

Tracking Context Agentically

Track everyday code changes through conversation

Spec-Driven Development

Plan and implement features with specs and issues

Feedback

How feedback captures implementation context

Relationships

Linking issues and specs together