Generates the complete system prompt for a code-assistant agent.
Overrides Factory.system_message() to generate system prompt with current context. This includes: introduction, communication rules, tool calling, search/reading rules, code changes rules, debugging, external APIs, user info (OS, workspace, shell), and citation format.
| handler |
Optional Base instance (can access session, client, etc.) |
|
Complete system prompt string |
| Error |
if system message generation fails |