源码: prompt.rs:468-482
()
| 324 | |
| 325 | @staticmethod |
| 326 | def _doing_tasks_section() -> str: |
| 327 | """源码: prompt.rs:468-482""" |
| 328 | items = [ |
| 329 | "Read relevant code before changing it and keep changes tightly scoped.", |
| 330 | "Do not add speculative abstractions or unrelated cleanup.", |
| 331 | "Do not create files unless they are required to complete the task.", |
| 332 | "If an approach fails, diagnose the failure before switching tactics.", |
| 333 | "Be careful not to introduce security vulnerabilities.", |
| 334 | ] |
| 335 | return "# Doing tasks\n" + "\n".join(f" - {item}" for item in items) |
| 336 | |
| 337 | @staticmethod |
| 338 | def _actions_section() -> str: |