Load the coding agent prompt (project-specific if available). Args: project_dir: Optional project directory for project-specific prompts yolo_mode: If True, strip browser automation / Playwright testing instructions and replace with YOLO-mode guidance. This reduces
(project_dir: Path | None = None, yolo_mode: bool = False)
| 129 | |
| 130 | |
| 131 | def get_coding_prompt(project_dir: Path | None = None, yolo_mode: bool = False) -> str: |
| 132 | """Load the coding agent prompt (project-specific if available). |
| 133 | |
| 134 | Args: |
| 135 | project_dir: Optional project directory for project-specific prompts |
| 136 | yolo_mode: If True, strip browser automation / Playwright testing |
| 137 | instructions and replace with YOLO-mode guidance. This reduces |
| 138 | prompt tokens since YOLO mode skips all browser testing anyway. |
| 139 | |
| 140 | Returns: |
| 141 | The coding prompt, optionally stripped of testing instructions. |
| 142 | """ |
| 143 | prompt = load_prompt("coding_prompt", project_dir) |
| 144 | |
| 145 | if yolo_mode: |
| 146 | prompt = _strip_browser_testing_sections(prompt) |
| 147 | |
| 148 | return prompt |
| 149 | |
| 150 | |
| 151 | def get_testing_prompt( |
no test coverage detected