-
Notifications
You must be signed in to change notification settings - Fork 6
refactor(workflow): delegate spec updates to subagents #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move question resolution and specification file updates from sign-off commands to their respective subagents. Add "Question Resolution Mode" to both agents. Improve approval flow with structured AskUserQuestion. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR version-bumps the claude-constructor plugin to 1.3.0 and introduces a new question-resolution workflow. When prompts contain "Resolved questions:", the requirements-definer and specification-writer agents enter a dedicated mode that parses resolved items, updates specifications by moving resolved questions to new sections, and removes corresponding open items. Sign-off commands are updated to use subagent delegation and formalizeuser approval via explicit tool-driven branching. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant SignOffCmd as Sign-Off Command
participant StateFile as State Management
participant Subagent as Requirements/Spec Subagent
participant SpecFile as Specification File
User->>SignOffCmd: Submit resolved questions in prompt
SignOffCmd->>StateFile: Read state management file
StateFile-->>SignOffCmd: Current state
SignOffCmd->>Subagent: Delegate question resolution
Subagent->>SpecFile: Locate & read specification
SpecFile-->>Subagent: Specification content
Subagent->>SpecFile: Remove open question items
Subagent->>SpecFile: Create/append "Resolved Questions" section
SpecFile-->>Subagent: Updated
Subagent-->>SignOffCmd: Resolution complete
SignOffCmd->>SignOffCmd: Present specification for approval
SignOffCmd->>User: Request approval (Approve/Request changes)
alt Approve
User-->>SignOffCmd: Approve
SignOffCmd->>User: Proceed to finalization
else Request changes
User-->>SignOffCmd: Request changes
SignOffCmd->>Subagent: Revise specification
Subagent-->>SignOffCmd: Revised
SignOffCmd->>SignOffCmd: Loop to review
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4e39c47438
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| a. Use the requirements-definer subagent to revise requirements: | ||
|
|
||
| ```text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capture feedback text before invoking revision subagent
The new approval flow jumps directly from a binary AskUserQuestion response to invoking the requirements-definer with User feedback to address, but there is no step to actually collect the feedback text. If AskUserQuestion only returns the selected option, the subagent will be called without actionable input, so it cannot make the requested revisions. Consider adding a follow-up prompt for the feedback body when “Request changes” is selected (or explicitly documenting that AskUserQuestion returns freeform feedback).
Useful? React with 👍 / 👎.
| a. Use the specification-writer subagent to revise specification: | ||
|
|
||
| ```text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capture feedback text before invoking revision subagent
Here too, the flow routes a “Request changes” selection straight into a subagent call that expects User feedback to address, but there is no instruction to gather the actual feedback content. If AskUserQuestion only returns the selected option, the revision step will run without the user’s change request. Adding a follow-up prompt for feedback (or clarifying that AskUserQuestion returns freeform text) would prevent silent no-op revisions.
Useful? React with 👍 / 👎.
Summary
Test plan
/feature prompt-testworkflow through requirements sign-off🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.