Build a local episode-to-chapters tool. The deliverable is timestamps, not prose. Transcription: run whisper.cpp locally over the episode with word-level timestamps. Diarise speakers with a simple energy-and-pause heuristic and let the user rename them, propagating through the transcript. Do not claim reliable automatic speaker identification. Segmentation, which is the core of this build. Chapters come from detecting topic change, not from asking a model to invent them: 1. Split the transcript into overlapping windows of roughly a minute. 2. Embed each window with a local sentence-embedding model. 3. Compute the similarity between consecutive windows and find the local minima — the points where the conversation is least like what preceded it. 4. Filter candidates by a minimum chapter length, configurable and defaulting to two minutes, so a brief digression does not become a chapter. 5. Snap each accepted boundary to the nearest sentence start in the transcript, so a chapter never begins mid-sentence. 6. Only then, ask a model to title each resulting segment from its own text. This order matters. Asking a model to produce chapters directly from a long transcript yields timestamps that are confidently wrong, because it has no reliable sense of position in a two-hour text. Deriving boundaries mechanically and titling them afterwards produces times a listener can actually trust. Review: the transcript with detected boundaries marked, each draggable to adjust, with the audio playable from any boundary so the user can hear whether it lands well. Add or remove a boundary by hand and the titles regenerate for the affected segments only. Outputs, all copy-pasteable: - Chapters in the format podcast hosts accept: HH:MM:SS followed by the title, one per line. - A chapters JSON file in the Podcasting 2.0 chapters format. - Show notes: a paragraph per chapter with its timestamp linked. - Pull-quotes: passages the model marks as self-contained and quotable, each with its timestamp and speaker so it can be verified against the audio before publishing. - A full transcript as Markdown and WebVTT. Use Anthropic or OpenAI for titling and notes, whichever key is configured. With no key, transcription, segmentation and timestamp export must still work — the boundaries are the valuable part and they are computed locally. Out of scope: audio editing, video clip generation, publishing to any host or CMS, and hosted processing.