aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-17 14:36:47 +0100
committerDanilo M. <danix@danix.xyz>2026-11-17 14:36:47 +0100
commit82e74d8eb80ae5778b929e2074d2735d40f710ca (patch)
tree169846de917cfb021c4ee1a1f1278796b9ad3d8a /AGENTS.md
parent27a673d4504b77b47986247cdaf3e3bd41f67c15 (diff)
downloaddesktop-assistant-82e74d8eb80ae5778b929e2074d2735d40f710ca.tar.gz
desktop-assistant-82e74d8eb80ae5778b929e2074d2735d40f710ca.zip
tools: video, collapse whisper's repeated words; live check
whisper turbo repeats words, often across two segments ("it's it's"), and loops over intro music: a word said twice in a row collapses to one, after the segments are joined. A transcript that fits the preview is labelled "full text"; the description forbids summarizing from the start alone. Live check findings in AGENTS.md: 0.18x real time on a real talk, stop kills whisper in 0.07 s, a summary works from the attached file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index b8bb2a4..7bba528 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -347,6 +347,47 @@ file's path, images included. Spec:
Tool call at 7-13 s (23 s for the WiFi one, longer reasoning), reply
1.7-3.3 s after it.
+### Video transcript tool, live check (2026-11-17)
+
+`video` (`examples/tools/video.sh`): a local video or a public URL to
+`$ASSISTANT_DIR/<slug>.md` (the daemon's `out_dir`, set in keystone),
+the path and the start of the text back to the model. Uploader
+subtitles (it/en) when a URL has them, else whisper large-v3-turbo on
+the CPU (`-ng -t 8`): no VRAM, the loaded model keeps the GPU. Asks
+before videos over 30 minutes. A stop now kills a running tool's process
+group. Spec: `docs/superpowers/specs/2026-11-17-video-transcript-design.md`.
+
+- Through a second daemon on a scratch socket, config, data and output
+ dir, Gemma4-26B-A4B (the loaded one). YouTube without subtitles (2:21):
+ tool 32 s. TED with uploader subtitles (20:03): 3.4 s. A 70-minute talk:
+ reported its length, the model asked, called again with `long=1` after
+ "yes" (subtitles, 2.6 s). PeerTube (1:53): subtitles. An Instagram reel
+ (2:54, Italian): whisper, 35 s.
+- **whisper on the CPU is ~0.18x real time on a real talk** (TED as a
+ local AV1/Opus mkv, 218 s for 20:03), not the 0.11x of a short clip:
+ ~11 min an hour, so the 1800 s timeout covers ~2.5 h.
+- Instagram gives no duration (`NA`) without being live: the length is
+ measured on the download, live streams are told by `is_live`.
+- PeerTube writes CRLF subtitles: cue numbers leaked until `\r` was
+ stripped.
+- Segments and cues break mid-sentence: joined into paragraphs ending on
+ a sentence after 400 characters.
+- **turbo repeats words** ("themes themes", "it's it's", often across
+ two segments) and loops over intro music ("Revis Revis ..."); 2670
+ words against the uploader's 3170 on the TED talk. `-mc 0` and `-sns`
+ did not help. Back-to-back repeats are collapsed after the join (a real
+ "very very" goes too). Stray capitals ("It's Been a lot of Fun") stay.
+ Not tried: whisper's `--vad` (silero model, ~1 MB, not downloaded).
+- Stop mid-transcription: whisper gone 0.07 s after the stop, no `.md`,
+ the temp folder left for the next run's day-old sweep.
+- "Summarize it" with no file: it asked for the attachment. With the
+ `.md` attached: a right summary. A transcript that fits the preview is
+ labelled "full text", so the model may answer from it.
+- The daemon already prefixes a tool's stderr with `error: `: a script
+ must not add its own.
+- The model answered an English question in Italian once, after Italian
+ turns in the same chat.
+
### Cloud models, live check (2026-10-23)
Hetzner's inference API (`https://inference.hetzner.com/api/v1`,