Pass planning mode answers to Claude Code prompts in work mode - #25
Open
yanismydj wants to merge 1 commit into
Open
Pass planning mode answers to Claude Code prompts in work mode#25yanismydj wants to merge 1 commit into
yanismydj wants to merge 1 commit into
Conversation
Implements functionality to capture planning Q&A and include it in work mode prompts: - Added planningQAndA field to PromptGeneratorInputSchema to store planning conversation - Updated PromptGeneratorAgent to include planning discussion in generated prompts - Created collectPlanningQAndA helper in QueueProcessor to extract Q&A from comments - Modified handleExecuteDirect to collect and pass planning Q&A to prompt generator This ensures Claude Code receives complete context from planning mode, including: - All planning questions (identified by emoji markers: ❗, ❓, 💭) - All user responses and answers - Chronological conversation flow The planning Q&A is now formatted clearly in prompts with speaker attribution (TaskAgent vs User) so the AI has full context of user decisions made during planning. Fixes TAS-78 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements functionality to pass planning mode answers to Claude Code prompts during work mode execution. Previously, when users answered questions during planning mode, these answers were not being utilized when generating prompts for Claude Code during work mode.
Changes
planningQAndAfield toPromptGeneratorInputSchema: Stores the planning conversation including questions and answersPromptGeneratorAgent.buildContext(): Includes planning discussion section in generated prompts with clear speaker attributioncollectPlanningQAndA()helper method: Extracts all planning questions (identified by emoji markers ❗, ❓, 💭) and user responses from ticket commentshandleExecuteDirect(): Collects planning Q&A and passes it to the prompt generatorHow It Works
collectPlanningQAndA()gathers all planning commentsBenefits
Testing
Related Linear Ticket
https://linear.app/task-agent/issue/TAS-78
This ensures the PR is properly linked to the Linear ticket.