Skip to content

feat(demo): add Avalonia GUI demo app#12

Closed
JacobFV wants to merge 2 commits intomainfrom
jacob/demo-gui-app
Closed

feat(demo): add Avalonia GUI demo app#12
JacobFV wants to merge 2 commits intomainfrom
jacob/demo-gui-app

Conversation

@JacobFV
Copy link
Copy Markdown
Contributor

@JacobFV JacobFV commented Feb 13, 2026

Summary

  • Adds interactive Avalonia desktop demo app in demo/ directory
  • Showcases all SDK capabilities: sessions, SSE streaming, screenshots, pause/resume/cancel
  • Dark themed UI with FluentTheme, MVVM with CommunityToolkit.Mvvm
  • IAsyncEnumerable for SSE streaming, DispatcherTimer for screenshots
  • Adds demo section to README

Files

  • demo/AgiDemo.csproj - Project file with Avalonia + SDK ProjectReference
  • demo/Program.cs / demo/App.axaml - Entry point
  • demo/ViewModels/MainWindowViewModel.cs - Main orchestrator
  • demo/ViewModels/SessionItemViewModel.cs / EventItemViewModel.cs - Item VMs
  • demo/Views/MainWindow.axaml - AXAML layout
  • demo/Converters/ - Status/color/image converters
  • demo/Services/AgiService.cs - AgiClient wrapper

How to run

AGI_API_KEY=xxx dotnet run --project demo/AgiDemo.csproj

Test plan

  • App launches with sidebar and main content area
  • Enter API key and connect
  • Create new session, appears in sidebar
  • Send task, events stream in real-time
  • Screenshot viewer shows live browser state
  • Pause/Resume/Cancel buttons work
  • Quick cards pre-fill the task input
  • Delete session removes it from list

🤖 Generated with Claude Code

JacobFV and others added 2 commits February 13, 2026 10:54
Interactive desktop demo showcasing all SDK capabilities:
- Avalonia + CommunityToolkit.Mvvm with AXAML layout
- API key connection and agent model selection
- Session create/list/delete with sidebar management
- Real-time SSE event streaming via IAsyncEnumerable
- Live screenshot viewer with DispatcherTimer auto-refresh
- Pause/Resume/Cancel session controls
- Quick action cards for common tasks
- Dark themed UI using FluentTheme (Dark variant)
- MVVM pattern with ObservableProperty and RelayCommand

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JacobFV JacobFV closed this Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant