Files
meeks dfdd8c0931 fix: improve prompts, error messages, and workspace concurrency
- Externalize coordinator, notification, and planning prompts to separate files
- Add workspace mutex for concurrent file operations
- Improve error messages across file_tools, issue_tools, and pr_tools
- Add logging to tool modules for better debugging
- Update tests to match new error message strings
2026-08-01 20:01:46 +02:00

16 lines
575 B
Python

"""System prompts for agents, loaded from external prompt files."""
from pathlib import Path
_PROMPTS_DIR: Path = Path(__file__).resolve().parent.parent / "prompts"
def _load_prompt(filename: str) -> str:
"""Load a prompt from an external text file in the prompts directory."""
return (_PROMPTS_DIR / filename).read_text(encoding="utf-8")
COORDINATOR_SYSTEM_PROMPT: str = _load_prompt("coordinator_agent.txt")
NOTIFICATION_READER_SYSTEM_PROMPT: str = _load_prompt("notification_agent.txt")
PLANNING_AGENT_SYSTEM_PROMPT: str = _load_prompt("planning_agent.txt")