Zum Inhalt springen
Plugins

agent_capability Plugin

Walkthrough Videos

The video walkthroughs feature lets operators record or attach a narrated screen recording to a Syrus Chat session. Gemini analyzes the video; the chat agent then uses the analysis to autonomously propose an Epic capturing the operator's intent.

video_walkthroughsQuellcode

Walkthrough Videos

The video walkthroughs feature lets operators record or attach a narrated screen recording to a Syrus Chat session. Gemini analyzes the video; the chat agent then uses the analysis to autonomously propose an Epic capturing the operator's intent.

Enabling

Walkthrough Videos ships as a plugin, off by default. Turn it on from Admin -> Plugins, or with:

PluginRecord.find_by(name: "video_walkthroughs").update(enabled: true)

The plugin is its own feature flag -- there is no separate Labs toggle. While it is off, the composer offers no video intake, the upload and retry endpoints answer plugin_disabled, the three walkthrough MCP tools are not advertised, and a chat turn carrying a walkthrough message reads as a plain note. Threads that already have analyzed walkthroughs keep their history.

Also required: Each user must configure a Gemini API key (User#gemini_api_key, set in /credentials/edit). The key is validated against the Gemini models.list endpoint at analysis time.

Supported formats

FormatConstraint
webm, mp4, mov≤15 minutes, ≤500 MB

How to attach a walkthrough

From the chat composer:

  • Record: Click + → "Record a walkthrough" (captures full screen with mic)
  • File picker: Click + → file picker
  • Drag-in: Drag the video file into the composer

The operator can add a note describing what to focus on before sending.

What happens after upload

  1. VideoWalkthroughAnalysisJob uploads the video to Gemini's Files API and runs analysis (queue: videos, low concurrency).
  2. Gemini produces a structured report: timestamped transcript, topical sections, flagged issues with severity, and needs_closer_look markers for moments where OCR or closer inspection is needed.
  3. The compact 720p version of the video replaces the stored blob to save storage.
  4. The video appears as a walkthrough card in the chat thread.
  5. ChatTurnJob detects the walkthrough message and orients the agent with a brief prompt naming the available analysis tools.

Agent tools for walkthroughs

The chat agent can call these MCP tools during analysis:

ToolWhat it does
get_walkthrough_analysisReturns the full Gemini report plus crisp still frames as image blocks
read_walkthrough_frameExtracts a screenshot at any timestamp for OCR of small on-screen text
analyze_walkthrough_segmentRe-analyzes a clip of the video at full resolution for finer detail

Walkthrough references use the canonical WALKTHROUGH-<id> form. Links from tool cards resolve to the walkthrough's entry in the owning chat Media panel and remain access-controlled by chat membership.

Gemini is used for broad analysis and ASR (transcription). Claude handles OCR of small on-screen text (error codes, URLs, config values) from still frames, because Gemini Flash cannot reliably OCR video frames at any resolution.

Video retention

VideoWalkthroughPruneJob runs daily and enforces:

  • Time ceiling: AppSetting.video_retention_days (default: 7 days)
  • Storage budget: AppSetting.video_storage_budget_bytes (default: 2 GB; LRU eviction when exceeded; 0 = unlimited)

The analysis report and extracted screenshots persist indefinitely. Only the raw video blob is pruned. The Gemini Files API retains uploads for ~48 hours, after which analyze_walkthrough_segment re-uploads the stored blob on demand.

Metrics

While enabled, exports syrus_video_walkthroughs_storage_bytes (a gauge) to /metrics (see docs/engineering/operations/metrics.md): the total stored video bytes PruneJob's size sweep is weighing against AppSetting.video_storage_budget_bytes, so the budget is visible before it starts evicting rather than only after the fact. It uses the declarative sample-block form of the manifest metrics DSL (gauge :storage_bytes do ... end, see Syrus::PluginApi::Definition#metrics), calling VideoWalkthroughs::Walkthrough.total_stored_bytes -- the same query shape PruneJob's size sweep uses -- independently on the shared control-plane tick (SampleGlobalMetricsJob, the same tick core samplers use) rather than piggybacking on PruneJob's own daily schedule. Like every plugin metric, disabling the plugin removes the series entirely rather than freezing it at its last value.

When the metrics_dashboard plugin is also enabled, Walkthrough Videos contributes its own "Walkthrough Videos" tab there (VideoWalkthroughs::MetricsDashboardTabs, registered under metrics_dashboard's hosted "metrics_dashboard:tab" point -- see plugins/metrics_dashboard/docs/syrus_docs/metrics_dashboard.md), charting storage_bytes. The tab is absent, not empty, whenever either plugin is disabled.

Desktop app recording

The desktop app's screen recorder (+ → "Record a walkthrough"):

  • Forces full-screen capture so the red-pen annotation overlay is always included.
  • Records the mic simultaneously (macOS requires the NSMicrophoneUsageDescription entitlement).
  • Displays a floating HUD with recording controls and a pen toggle button.

The red pen lets operators circle or underline areas of the screen while narrating. Gemini's analysis prompt looks for user_flagged: true on issues where the operator marked a moment. For hold-to-draw to work, macOS Accessibility permission must be granted; the app degrades to tap-to-arm if unavailable, without failing silently.

When the flag is off

  • The composer hides recording and video intake UI.
  • Upload endpoints return 404.
  • Walkthrough MCP tools are removed from the sidecar's advertised tool set.
  • Already-analyzed threads keep their history read-only (media panel + message cards still render).
  • VideoWalkthroughPruneJob continues running to enforce retention.