Skip to main content

Module prompt

Module prompt 

Source
Expand description

Prompt template management and variable substitution.

§Doc Audit

  • audited: 2026-01-25
  • docs: concepts/prompts.md
  • ignore: false

Structs§

PromptFrontmatter
Frontmatter for prompt templates
WorktreeContext
Context about the execution environment (worktree, branch, isolation).

Functions§

assemble
Assemble a prompt by substituting template variables.
assemble_with_context
Assemble a prompt with explicit worktree context.
confirm
Ask user for confirmation with a yes/no prompt. Returns true if user confirms (y/yes), false if user declines (n/no). Repeats until user provides valid input.