"""Prompt loader (files cached at import time).""" from __future__ import annotations from functools import lru_cache from pathlib import Path PROMPTS_DIR = Path(__file__).parent @lru_cache def load_prompt(name: str) -> str: path = PROMPTS_DIR / f"{name}.md" return path.read_text(encoding="utf-8").strip() if path.exists() else ""