Bounce prose questions only when they ask the human to decide

This commit is contained in:
Ian Gulliver
2026-10-18 11:59:22 -07:00
parent aac99c48f9
commit 2658dcbfc4
6 changed files with 71 additions and 11 deletions
+3 -1
View File
@@ -88,9 +88,11 @@ func todoPrompt(item api.TodoItem, discuss bool) string {
if !discuss {
return p
}
return p + "\n\nThe human wants to discuss this item with you before any of it is built: a conversation, not a questionnaire. Read what you need to understand it, then end your turn with your thoughts on it in your final message: how you read it, how you would approach it, and what trade-offs or doubts you see. Don't use ask_human for this; the human replies in the chat. Keep the conversation going turn by turn, and change nothing until they tell you to build it."
return p + "\n\n" + discussPrompt
}
const discussPrompt = "The human wants to discuss this item with you before any of it is built: a conversation, not a questionnaire. Read what you need to understand it, then end your turn with your thoughts on it in your final message: how you read it, how you would approach it, and what trade-offs or doubts you see. Don't use ask_human for this; the human replies in the chat. Keep the conversation going turn by turn, and change nothing until they tell you to build it."
func (m *Manager) createTask(ctx context.Context, project api.Project, t api.Task, frozen *store.FrozenWorkflow, base, actor string) (api.Task, error) {
t.Id = store.NewID()
t.ProjectId = project.Id