MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_coding_prompt

Function get_coding_prompt

prompts.py:131–148  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

129
130
131def 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
151def get_testing_prompt(

Callers 3

run_autonomous_agentFunction · 0.90
get_batch_feature_promptFunction · 0.85

Calls 2

load_promptFunction · 0.85

Tested by

no test coverage detected