Syntax
Description
Thefeedback add command creates anchored feedback from an issue to a spec. This enables agents and developers to:
- Point out ambiguities discovered during implementation
- Request clarification on unclear requirements
- Suggest improvements based on actual implementation
- Document assumptions made when specs were incomplete
Arguments
ISSUE-001This is the source of the feedback - typically the issue where the problem was discovered.SPEC-001This is the target specification that the feedback comments on.Options
--content "Token expiration policy not specified"The actual feedback message. Be clear and specific about what needs clarification or improvement.--type requestValid types:comment- General commentary or informationsuggestion- Propose improvementsrequest- Ask for clarification
--line 42The feedback is anchored to this line in the spec. Use for precise positioning.Note: You must specify either --line or --text, but not both.--text "Authentication Flow"Searches for this text in the spec and anchors the feedback there. Better for headings or stable text.Note: You must specify either --line or --text, but not both.--agent "agent-backend-dev"Defaults to $USER environment variable or “cli” if not set.Feedback Types
comment
Purpose: Provide informational feedback without requesting action Use cases:- Document implementation decisions
- Explain assumptions made
- Share learnings from implementation
- Provide status updates
suggestion
Purpose: Propose changes or improvements to the spec Use cases:- Propose better approaches discovered during implementation
- Suggest additional features
- Recommend spec clarifications
- Share best practices
request
Purpose: Request clarification or additional requirements Use cases:- Point out ambiguities
- Ask about missing edge cases
- Request technical specifications
- Highlight gaps in requirements
Examples
Basic Feedback with Line Anchor
Add feedback anchored to line 42:Expected output
Expected output
Feedback with Text Anchor
Anchor feedback to a section heading:Expected output
Expected output
Comment Type Feedback
Document implementation decision:Expected output
Expected output
Suggestion Type Feedback
Propose improvement:Expected output
Expected output
With Agent Identifier
Specify agent providing feedback:Expected output
Expected output
JSON Output
Get machine-readable output:JSON output
JSON output
Anchor Types
Line Number Anchoring
Anchor feedback to a specific line:- Precise positioning
- No ambiguity
- Fast execution
- Line numbers change as content is edited
- May become stale if spec is modified
Text Search Anchoring
Anchor feedback by searching for text:- Based on stable content (headings)
- More maintainable
- Better for section-level feedback
- Requires exact text match
- May fail if text changes
- Only anchors to first match
Anchor Status
When feedback is created, the anchor has a status:- valid - Anchor is accurate, line hasn’t changed
- relocated - Content moved, anchor was successfully relocated (future feature)
- stale - Content changed significantly, anchor may be invalid
sudocode feedback stale to find stale anchors and sudocode feedback relocate to manually fix them.Common Workflows
Agent Discovers Ambiguity
Agent starts work
Agent reads spec
Agent finds ambiguity
Agent provides feedback
Agent continues with assumption
Documenting Implementation Decisions
Complete implementation
Add feedback to spec
Close issue
Suggesting Spec Improvements
Discover better approach
Suggest to spec
Continue with current approach
Writing Effective Feedback
Good Feedback
Clear and specific:Avoid These Patterns
Too vague:Common Questions
Can I add feedback without an issue?
Can I add feedback without an issue?
What happens if the line I anchor to changes?
What happens if the line I anchor to changes?
Can I add multiple feedbacks to the same line?
Can I add multiple feedbacks to the same line?
Should I use line or text anchoring?
Should I use line or text anchoring?
- Section headings (stable)
- Important keywords (unlikely to change)
- Specific code-like content
- When you need exact positioning
Can I edit feedback after creating it?
Can I edit feedback after creating it?
feedback update command currently. To modify feedback:- Dismiss the old feedback
- Create new feedback with updated content
Troubleshooting
Error: Either --line or --text must be specified
Error: Either --line or --text must be specified
Error: Issue not found
Error: Issue not found
Error: Spec not found
Error: Spec not found
Error: Text not found in spec
Error: Text not found in spec
- Check for exact match (case-sensitive)
- View spec content:
- Use different search text or switch to
--line
Error: Invalid line number
Error: Invalid line number
Related Commands
feedback list
feedback show
feedback dismiss
spec show
issue show
feedback stale
Next Steps
Work on an issue
Read the spec
Find ambiguity or make suggestion
Add feedback
Continue work

