This page contains best practices specifically for AI agents using the sudocode MCP server. These guidelines help agents work effectively with the sudocode workflow. Feel free to read them to understand how agents typically use sudocode!
Work Selection
- Always check
ready()first - Don’t claim work that’s blocked or in progress - Review
show_issue()before claiming - Understand full context and requirements - Prioritize by priority field - Work on P0 issues before lower priority
- Prefer foundation work - Unblock other work by completing blockers first
Status Management
- Claim immediately - Set
status: in_progresswhen starting work - Close with documentation - Update description with summary of work completed
- Mark blocked promptly - Don’t leave blocked work in
in_progressstate - Create blockers early - Discover and document blockers as soon as possible
Feedback and Communication
- Provide feedback early - Don’t wait until completion to report ambiguities
- Use appropriate feedback types:
request- When you need clarification or decisionssuggestion- When you have improvement ideascomment- For observations or context
- Anchor feedback to lines - Use
lineparameter for precise feedback - Continue with reasonable assumptions - Don’t block on feedback, proceed intelligently
Relationship Management
- Link issues to specs - Use
implementsrelationship - Model dependencies - Use
blocksfor hard blockers - Document discovery - Use
discovered-fromwhen finding new work - Cross-reference liberally - Use
[[ID]]syntax in descriptions
Multi-Agent Coordination
- Check ready() frequently - Status changes as others work
- Update status promptly - Keep status current so others know what’s available
- Create specific issues - Break down work into claimable units
- Communicate through issues - Use issue descriptions to coordinate
Error Handling
When tool calls fail: Issue not found:Tool Usage Patterns
Common Combinations
Finding and claiming work:When to Use Each Tool
ready- Starting a work session
- After completing an issue (to find next work)
- When checking what’s available to claim
- Before multi-agent coordination
- Filtering by status, priority, tags
- Finding blocked work
- Searching for specific issues
- Getting overview of project state
- Before claiming work (understand context)
- Investigating relationships
- Checking feedback on issue
- Understanding why issue is blocked
- Creating new issues from specs
- Claiming work (status → in_progress)
- Completing work (status → closed)
- Updating issue details
- Marking as blocked
- Finding relevant specifications
- Searching for spec topics
- Getting project overview
- Before implementing spec
- Before creating implementation plan
- Before providing feedback
- Understanding requirements
- Creating research documentation
- Documenting architecture
- Recording decisions
- Creating feature specifications
- Connecting issues to specs (implements)
- Modeling blockers (blocks)
- Recording dependencies (depends-on)
- Tracking discovery (discovered-from)
- Cross-referencing (references, related)
- Adding cross-references to existing content
- Linking related work
- Creating navigation between entities
- Requesting clarifications (type: request)
- Suggesting improvements (type: suggestion)
- Adding observations (type: comment)
- Anchoring to specific lines

