AvalonEdit Integration
WPF AvalonEdit hosted via ElementHost in WinForms. Provides:
- Syntax highlighting via
SemanticColorizer(Roslyn-based) - Line numbers and folding margins
- Minimap for large files
- Bracket matching and auto-indentation
- Multi-cursor editing (Alt+Click)
- Theme integration with application color scheme
The editor opens in artifact panels, not as a full IDE replacement.
Artifact Types
Agents produce structured artifacts displayed in the right sidebar:
| Type | Purpose | Rendering |
|---|---|---|
TaskPlan | Checklist of sub-tasks with completion tracking | Interactive checkbox list |
ImplementationPlan | Detailed proposal for multi-file changes | Structured markdown with file tree |
Walkthrough | Final summary of changes made | Formatted report with links |
Diff | Code diff output from apply_diff | Side-by-side or unified diff view |
General | Freeform content (search results, explanations) | Markdown rendering |
Artifacts can be pinned, minimized, or closed. Pinned artifacts persist across sessions.
Diff Visualization
Unified diffs render with color-coded additions/deletions:
- + Added lines - Green background
- - Removed lines - Red background
- ~ Modified lines - Yellow background
- Context lines - Default background
Inline diff mode shows character-level changes within modified lines.