Files
coding-agent-gitea/core/coding_prompt.py
meeks ee01487ce3 refactor: externalize coding agent system prompt to prompts/coding_agent.txt
- Moved 221-line system prompt from core/coding_prompt.py to prompts/coding_agent.txt
- core/coding_prompt.py now loads prompt from external file using pathlib
- Maintains backward compatibility with existing CODING_AGENT_SYSTEM_PROMPT export
- Enables separate version control and A/B testing of prompts
2026-08-01 20:01:46 +02:00

10 lines
265 B
Python

"""Coding agent system prompt, loaded from external file."""
from pathlib import Path
_PROMPTS_DIR: Path = Path(__file__).resolve().parent.parent / "prompts"
CODING_AGENT_SYSTEM_PROMPT: str = (_PROMPTS_DIR / "coding_agent.txt").read_text(
encoding="utf-8"
)