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
Feedback enables bidirectional learning - specs aren’t static documents, they evolve based on feedback from implementation.
Arguments
The issue providing the feedbackExample:
ISSUE-001This is the source of the feedback - typically the issue where the problem was discovered.The spec receiving the feedbackExample:
SPEC-001This is the target specification that the feedback comments on.Options
Feedback contentExample:
--content "Token expiration policy not specified"The actual feedback message. Be clear and specific about what needs clarification or improvement.Feedback typeExample:
--type requestValid types:comment- General commentary or informationsuggestion- Propose improvementsrequest- Ask for clarification
Anchor to specific line numberExample:
--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.Anchor to text snippetExample:
--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 or user providing feedbackExample:
--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
Automatic anchor relocation is planned but not yet fully implemented. Use
sudocode feedback stale to find stale anchors and sudocode feedback relocate to manually fix them.Common Workflows
Agent Discovers Ambiguity
Documenting Implementation Decisions
Suggesting Spec Improvements
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?
No, feedback must come from an issue. This maintains traceability - you know which implementation work discovered the problem.If you need to comment on a spec without an issue, create a placeholder issue first.
What happens if the line I anchor to changes?
What happens if the line I anchor to changes?
The anchor may become “stale” if the spec is significantly edited. Use:
Can I add multiple feedbacks to the same line?
Can I add multiple feedbacks to the same line?
Yes! Multiple feedbacks can anchor to the same location. Each gets a unique ID.
Should I use line or text anchoring?
Should I use line or text anchoring?
Use text for:
- 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?
There’s no
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
Cause: You didn’t provide an anchor locationSolution:
Specify one anchor method:
Error: Issue not found
Error: Issue not found
Cause: The issue ID doesn’t existSolution:
Verify the issue exists:
Error: Spec not found
Error: Spec not found
Cause: The spec ID doesn’t existSolution:
Verify the spec exists:
Error: Text not found in spec
Error: Text not found in spec
Cause: The search text doesn’t exist in the spec contentSolution:
- 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
Cause: Line number is less than 1 or not a numberSolution:
Use a valid positive integer:
Related Commands
feedback list
List all feedback
feedback show
View feedback details
feedback dismiss
Dismiss feedback
spec show
View feedback on a spec
issue show
View feedback from an issue
feedback stale
Find stale anchors
Next Steps
Feedback System Concept Guide
Learn more about the feedback system and bidirectional learning

