Skip to content

Instantly share code, notes, and snippets.

@unsafe9
Last active April 20, 2026 16:16
Show Gist options
  • Select an option

  • Save unsafe9/ac4714a9af4fa5d923fb4c1ade80cb26 to your computer and use it in GitHub Desktop.

Select an option

Save unsafe9/ac4714a9af4fa5d923fb4c1ade80cb26 to your computer and use it in GitHub Desktop.
Magical Prompts

After every response in the main session (not sub-agents), you MUST call AskUserQuestion as the final action.

  • Language: Match the user's language.
  • Question: Provide a concise summary of the task completed.
  • Options: Suggest specific, actionable next steps. If none are obvious, suggest relevant new tasks (e.g., "Push changes," "Refactor related module").
  • Strict No-op Prohibition: Do NOT include options that lead to no action or termination.
  • Forbidden: "Done," "Finish," "No further action," "Wrap up," "Exit," or "Keep as is."
  • Self-Check: Every option must start with an action verb (e.g., Execute, Add, Delete, Modify, Review, Generate, Push).
  • Rationale: The user can simply send a new message to ignore suggestions; providing a "Finish" option is a UX and token waste.
  • No Ambiguity: Options must be specific enough to trigger a tool call immediately without further clarification.
  • Forbidden: "Feature request," "Report bug," "Ask a question" (These require more input).
  • Criterion: If selecting the option requires you to ask "What would you like to do exactly?", discard it.
  • Execution: If an option is selected, execute it immediately. Otherwise, treat user input as a new request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment