Skip to content

Conversation

@pranavpatilsce
Copy link
Contributor

Summary

  • Add vers-tui: high-performance Ratatui-based terminal UI for vers-agent
  • Add --cloud flag for automatic Vers VM provisioning on startup
  • Add background VM metadata sync (every 10 seconds) to keep canvas in sync with Vers infrastructure

Features

vers-tui

  • Chat interface with streaming responses
  • Canvas view (/canvas) for VM tree visualization
  • VM actions: create, branch, delete, ping, connect
  • Vi-style keybindings (j/k navigation)

Cloud Mode

./vers-tui --cloud --bootstrap http://localhost:10000
  • Creates a fresh Vers VM via bootstrap server
  • Waits for VM health check
  • Connects to remote VM's vers-agent

Background Sync

  • Syncs local VM metadata with Vers every 10 seconds
  • Removes stale VMs no longer in Vers infrastructure
  • Updates durationMs, lastActivity fields

Test plan

  • Build vers-tui: cd vers-tui && cargo build --release
  • Test local mode: ./vers-tui --url http://localhost:9999
  • Test cloud mode: ./vers-tui --cloud (creates VM 51e46d87)
  • Verify VM sync logs: [vm-sync] Sync complete: removed=0, updated=4

🤖 Generated with Claude Code

pranavpatilsce and others added 3 commits January 26, 2026 18:48
- Add vers-tui: Ratatui-based terminal UI for vers-agent
  - Chat interface with streaming responses
  - Canvas view for VM tree visualization
  - VM actions: create, branch, delete, ping, connect
  - Graceful error handling (shows errors in UI)

- Add background VM metadata sync (every 10 seconds)
  - Syncs local cache with Vers infrastructure (source of truth)
  - Removes stale VMs no longer in Vers
  - Updates lastHealthCheckAt for running VMs

- Update vm/list response to include:
  - durationMs (calculated from createdAt)
  - lastActivity, error fields
  - Renamed parent -> parentId for consistency

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- New --cloud flag creates a fresh Vers VM on startup
- Waits for VM health check before connecting
- --bootstrap flag to specify bootstrap server URL
- Updated README with vers-tui documentation and CLI options

Usage: ./vers-tui --cloud --bootstrap http://localhost:10000

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@pranavpatilsce pranavpatilsce marked this pull request as draft January 27, 2026 01:51
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