add tool-specific body rendering with syntax highlighting and truncation

Implement iteratr-style rich tool blocks: side-by-side diffs for Edit
(via go-udiff), syntax-highlighted code blocks for Read (via chroma),
green-tinted write blocks with line numbers and footer, and background-
styled bash output with stderr detection.

All renderers enforce centralized max-line limits (Edit: 20, Read: 20,
Write: 10, Bash: 10) with muted truncation hints.
This commit is contained in:
Ed Zynda
2026-02-26 18:23:50 +03:00
parent 6fdc6f7e5e
commit 268f3de34e
6 changed files with 739 additions and 6 deletions
+6
View File
@@ -39,3 +39,9 @@ Keep this managed block so 'openspec update' can refresh the instructions.
- Multi-provider LLM support via `llm.Provider` interface
- MCP client-server for tool integration
- Builtin servers: bash, fetch, todo, fs
## External Repo Research
- **ALWAYS use `btca`** to search external repos (e.g. iteratr, other reference codebases)
- Never guess or manually search the filesystem for external projects
- Example: `btca ask -r https://github.com/user/repo -q "How does X work?"`
- See `.agents/skills/btca-cli/SKILL.md` for full btca usage