fix: wizard hints address the LLM not the user, README adds bare project guidance
The format_wizard_state hints now tell the LLM what to do ("show it
to the user and ask if they're happy") rather than exposing tool names
to the user ("Run wizard_generate").
README wizard instructions now distinguish between existing-code projects
(read codebase, generate files) and bare projects (interview the user
about what they want to build).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -236,11 +236,11 @@ pub fn format_wizard_state(state: &WizardState) -> String {
|
||||
lines.push(format!("**Current:** {}", current.step.label()));
|
||||
let hint = match current.status {
|
||||
StepStatus::Pending => {
|
||||
"Run `wizard_generate` to generate content for this step.".to_string()
|
||||
"Ready to generate. Proceed by calling wizard_generate.".to_string()
|
||||
}
|
||||
StepStatus::Generating => "Agent is generating content…".to_string(),
|
||||
StepStatus::Generating => "Generating content…".to_string(),
|
||||
StepStatus::AwaitingConfirmation => {
|
||||
"Content ready for review. Run `wizard_confirm` to write to disk, `wizard_retry` to regenerate, or `wizard_skip` to skip.".to_string()
|
||||
"Content ready for review. Show it to the user and ask if they're happy with it. Then call wizard_confirm, wizard_retry, or wizard_skip based on their response.".to_string()
|
||||
}
|
||||
StepStatus::Confirmed | StepStatus::Skipped => String::new(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user