Skip to main content

Module prompt

Module prompt 

Source
Expand description

Structured agent prompt builder.

Constructs a multi-section system prompt that gives agents the context they need to implement a unit successfully. Ports the 11-section architecture from the pi extension prompt.ts into Rust.

Sections (in order):

  1. Project Rules
  2. Parent Context
  3. Sibling Discoveries
  4. Unit Assignment
  5. Concurrent Modification Warning
  6. Referenced Files
  7. Acceptance Criteria
  8. Pre-flight Check
  9. Previous Attempts
  10. Approach
  11. Verify Gate
  12. Constraints
  13. Tool Strategy

Structs§

FileOverlap
Describes a concurrent unit that overlaps on files.
PromptOptions
Options for prompt construction.
PromptResult
Result of building an agent prompt.

Functions§

build_agent_prompt
Build the full structured agent prompt for a unit.