Skip to content

Add Cloudglue Session Recap template with browse-and-recap action#142

Closed
kdr wants to merge 2 commits intokernel:mainfrom
kdr:heliotrope-sing
Closed

Add Cloudglue Session Recap template with browse-and-recap action#142
kdr wants to merge 2 commits intokernel:mainfrom
kdr:heliotrope-sing

Conversation

@kdr
Copy link
Copy Markdown

@kdr kdr commented Apr 2, 2026

Summary

  • Adds a new cloudglue-session-recap TypeScript template that analyzes video recordings using Cloudglue APIs
  • Two actions:
    • session-recap — takes any video URL and produces a structured scene-by-scene recap
    • browse-and-recap — opens a Kernel browser, records the session, then analyzes the replay with Cloudglue (demo action with placeholder for custom browser automation)
  • Uses Cloudglue describe + segment-level extract in parallel for visual timeline and structured action data
  • Returns structured JSON with scenes (thumbnails, timestamps, user actions, screen descriptions) and a complete markdown document

Example breakdown for a scrolling through of hacker news in this video https://media.cloudglue.dev/test-data/browse-hackernews.mp4

image

Details

  • Adaptive shot detection with configurable max_seconds (2-60, default 8)
  • Generates thumbnail preview grid (4 columns) + detailed scene breakdown
  • Deduplicates scenes when describe/extract return slightly different segment counts
  • Retry with 20s backoff on describe/extract API calls (2 attempts each, independent retries) for cases where video isn't fully ready
  • Registered in Go template system (pkg/create/templates.go)

Test plan

  • make build passes
  • make test passes (all Go tests green)
  • make lint — all 68 issues are pre-existing (none in our changes, which are TypeScript template files + Go template registry)
  • kernel create --template cloudglue-session-recap --language typescript scaffolds correctly
  • Scaffolded template typechecks (npx tsc --noEmit)
  • _gitignore correctly renamed to .gitignore during scaffolding
  • .env.example copied correctly
  • pnpm install succeeds in scaffolded directory
  • kernel deploy index.ts --env-file .env deploys successfully
  • session-recap tested with multiple video URLs (screen recordings, food videos)
  • browse-and-recap tested with live Kernel browser sessions
  • Existing templates unaffected

🤖 Generated with Claude Code

kdr and others added 2 commits April 2, 2026 16:25
Add a new TypeScript template that analyzes video recordings using
Cloudglue's describe and segment-level extract APIs. Takes any video URL
(Kernel session recording, screen capture, or video file) and produces a
structured scene-by-scene recap with thumbnails, timestamps, user actions,
screen descriptions, and a complete markdown document.

- Uses adaptive shot detection with configurable max_seconds (2-60, default 8)
- Runs describe and extract in parallel for faster results
- Generates thumbnail preview grid + detailed scene breakdown
- Deduplicates scenes with matching timestamps from describe/extract misalignment
- Registered in Go template system with deploy config

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add `browse-and-recap` action: opens a Kernel browser, records the
  session, then analyzes the replay with Cloudglue. Includes placeholder
  for custom browser automation logic.
- Add retry with 20s backoff on describe/extract API calls (2 attempts
  each, independent retries) for cases where video isn't ready yet
- Remove url_at_step from extract schema (was hallucinating URLs)
- Improve markdown output: bullet-pointed metadata, thumbnail preview
  rename, generated title as subheader in summary section
- Deduplicate scenes with matching timestamps from describe/extract
  segment count misalignment
- Extract `analyzeRecording` as shared function for both actions
- Add playwright-core dependency for browse-and-recap

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kdr kdr changed the title Add Cloudglue Session Recap template Add Cloudglue Session Recap template with browse-and-recap action Apr 3, 2026
@kdr kdr closed this Apr 4, 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