fix: Switch agent commands from @-syntax to XML tags — Claude Code refuses to output @-directives

Root cause: opencode/Claude Code recognizes the Frankenbot repo context from CLAUDE.md
and refuses to output @CREATE_SUBTASK, @SEND_EMAIL etc. as they look like 'system
directives'. XML tags (<create_task>, <send_email>, etc.) work reliably.

- parse_agent_commands(): full rewrite with XML tag parser, supports both
  XML child tags and key: value fields within blocks
- build_agent_prompt(): command docs updated to XML format with code examples
- orchestrator/systemprompt.md: rewritten with XML action examples
- ar_manager/systemprompt.md: @ASK_ORCHESTRATOR -> <ask_orchestrator>
This commit is contained in:
eric 2026-02-21 19:21:01 +00:00
parent 54cc5a496f
commit c6ce8a873c
3 changed files with 260 additions and 310 deletions

View file

@ -47,10 +47,10 @@ Performance-Score: [0-10]
**Empfehlung zum Löschen:**
```
@ASK_ORCHESTRATOR
Question: Agent [name] sollte gelöscht werden.
Context: [Performance-Details und Begründung]
@END
<ask_orchestrator>
question: Agent [name] sollte gelöscht werden.
context: [Performance-Details und Begründung]
</ask_orchestrator>
```
**Status-Report anfordern:**