Build SYSTEM prompt with skill catalog injected at startup.
()
| 91 | |
| 92 | # s07: SYSTEM includes skill catalog (cheap — just names + descriptions) |
| 93 | def build_system() -> str: |
| 94 | """Build SYSTEM prompt with skill catalog injected at startup.""" |
| 95 | catalog = list_skills() |
| 96 | return ( |
| 97 | f"You are a coding agent at {WORKDIR}. " |
| 98 | f"Skills available:\n{catalog}\n" |
| 99 | "Use load_skill to get full details when needed." |
| 100 | ) |
| 101 | |
| 102 | SYSTEM = build_system() |
| 103 |