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):
- Project Rules
- Parent Context
- Sibling Discoveries
- Unit Assignment
- Concurrent Modification Warning
- Referenced Files
- Acceptance Criteria
- Pre-flight Check
- Previous Attempts
- Approach
- Verify Gate
- Constraints
- Tool Strategy
Structs§
- File
Overlap - Describes a concurrent unit that overlaps on files.
- Prompt
Options - Options for prompt construction.
- Prompt
Result - Result of building an agent prompt.
Functions§
- build_
agent_ prompt - Build the full structured agent prompt for a unit.