Skip to content

Add prompt quality scoring and boost stage (#58)#222

Open
neoneye wants to merge 1 commit intomainfrom
feature/58-boost-initial-prompt
Open

Add prompt quality scoring and boost stage (#58)#222
neoneye wants to merge 1 commit intomainfrom
feature/58-boost-initial-prompt

Conversation

@neoneye
Copy link
Member

@neoneye neoneye commented Mar 9, 2026

Summary

Changes

  • worker_plan/worker_plan_internal/plan/boost_initial_prompt.py — New module with BoostInitialPrompt class, PromptQualityAssessment Pydantic model, scoring system prompt
  • worker_plan/worker_plan_api/filenames.py — Add BOOST_INITIAL_PROMPT_RAW and BOOST_INITIAL_PROMPT_MARKDOWN
  • worker_plan/worker_plan_internal/plan/run_plan_pipeline.py — Add BoostInitialPromptTask, wire into FullPlanPipeline

Quality dimensions scored

  1. Objective clarity
  2. Scope definition
  3. Constraints (budget, timeline, regulatory)
  4. Stakeholders
  5. Success criteria
  6. Context/background

Test plan

  • Verify Python syntax with ast.parse() on all modified files
  • Run pipeline with a sparse prompt (e.g., "open a coffee shop") and verify boost output
  • Run pipeline with a detailed prompt and verify it passes through unchanged

🤖 Generated with Claude Code

Pre-planning LLM call that scores the initial prompt on 6 quality
dimensions (objective clarity, scope, constraints, stakeholders,
success criteria, context) and rewrites weak prompts as flowing prose
before the pipeline runs.

- New boost_initial_prompt.py with PromptQualityAssessment schema
- Add BOOST_INITIAL_PROMPT_RAW/MARKDOWN to FilenameEnum
- Add BoostInitialPromptTask to pipeline (depends on SetupTask)
- Wire into FullPlanPipeline

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@neoneye neoneye deleted the branch main March 10, 2026 00:48
@neoneye neoneye closed this Mar 10, 2026
@neoneye neoneye reopened this Mar 10, 2026
@neoneye neoneye changed the base branch from feature/plan-resume-tool to main March 10, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant