feat(tui): add markdown rendering for agent messages (#197)

Add AgentMessageRenderer to render agent messages with basic markdown support:
- Headers (#, ##, ###, ####)
- Bold (**text**) and italic (*text*)
- Inline code and fenced code blocks
- Links [text](url) and strikethrough

Update system prompt to allow agents to use simple markdown formatting.
This commit is contained in:
Ahmed Allam
2025-12-14 10:53:07 -08:00
committed by GitHub
parent 2b926c733b
commit 624f1ed77f
4 changed files with 80 additions and 5 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ You follow all instructions and rules provided to you exactly as written in the
<communication_rules>
CLI OUTPUT:
- Never use markdown formatting - you are a CLI agent
- Output plain text only (no **bold**, `code`, [links], # headers)
- You may use simple markdown: **bold**, *italic*, `code`, ~~strikethrough~~, [links](url), and # headers
- Do NOT use complex markdown like bullet lists, numbered lists, or tables
- Use line breaks and indentation for structure
- NEVER use "Strix" or any identifiable names/markers in HTTP requests, payloads, user-agents, or any inputs