-
-
The on-stream card: the viewer's question, the streamer's spoken answer and the ✓ stamp, beside the webcam.
-
Twitch chat after one checkpoint: two quoted answers and one receipt, each threaded under its message (re-typeset from the recording).
-
The streamer's private dock: questions-first queue, Checkpoint button and a one-click earlier answer.
-
Architecture: mic page → local STT engine → Deepgram Flux → local server → overlay, dock and threaded Twitch replies.
Checkpoint lets a streamer who codes, draws or plays live answer chat in batches, out loud. Each spoken answer is transcribed, never rewritten, and posted as a threaded reply under the viewer's own message.
Inspiration
When you code, draw or play live, chat keeps asking questions. Stop for each one and you lose your flow. Keep working and the questions scroll away. Answer them aloud later and the answer is lost for anyone who joined late, watches muted or scrolled past.
Command bots post text you wrote in advance. AI responders write replies in your name. Typing a thread reply to each question means stopping anyway. Checkpoint answers in text, in the right thread, in your own spoken words, at a moment you choose. It generates nothing: each word you say is routed, by its timestamp, to the message that was on screen when you said it.
The name comes from games: a checkpoint is a save point. Chat is saved while you focus, and you pick it up at the next checkpoint.
What it does
- Focus. Turn on Focus in the dock. Messages wait in a queue, questions first. The stream shows only a small badge with a crystal per waiting message, in the viewer's chat colour, and no message text.
- Checkpoint. At a natural pause, press Checkpoint. Messages open one at a time as a card on stream.
- Answer out loud. Your words appear live on the card. When you stop talking, a 2.5-second ring drains and the card is stamped ✓. Next closes it at once.
- Threaded reply. The bot posts
🎙 answered on stream: "<your words>"under the viewer's message. It goes out on its own after a 5-second cancel window. Very long answers are cut at 300 characters, at a word boundary.
Answer once. When another viewer later asks the same thing, the dock offers your earlier answer. One click posts 📌 answered earlier on stream (N min ago): "…" under the new question. Nothing is reused without that click.
You stay in control:
- Skip a card, such as a personal question, and nothing is sent.
- Cancel quote within 5 seconds if speech recognition misheard you. The viewer gets a plain receipt instead:
🎙 answered on stream, @name. - Read the question aloud as its own turn (pause after it) and it is greyed out, not quoted. A question and an answer said in one breath are quoted in full.
- Blocklisted or filtered messages never reach the stream, and a blocklisted word in an answer turns the quote into a receipt. A message a moderator deletes leaves the queue; if it is on the open card, the card closes at once with no reply. Each viewer can hold at most two queued messages.
- A CHECKPOINT SAVED card sums up the round. It counts a cancelled quote as answered, so the demo's "3 answered · 1 skipped" means two quotes, one receipt and one skip.
Design
- Built for a coding layout. Everything sits in the lower-right corner beside the webcam, at most 45% of the width, so the code stays readable.
- A save point, not an alert. A teal diamond on dark surfaces, and no image or audio files. One theme file is shared by the overlay, the dock and the mic page.
- Motion that explains itself. Crystals fly into the card, words fade in one by one, and the ring shows the card is about to close. The ✓ stamp lands, the card flies off toward chat, and the badge confirms "↗ in @name's thread". Two soft synthesized chimes; no idle animation.
- A dock for one glance. A 400 px OBS dock with status lights for the mic, speech engine, Deepgram and chat, large Next and Skip buttons, and "Sending to @name in 4s" with a countdown bar and Cancel quote.
How we built it
Architecture. A Chrome mic page streams audio through a local engine to Deepgram Flux, which returns timestamped words and decides when a turn ends. A FastAPI server keeps all product logic in a pure core (no I/O, network or clock reads). Twitch EventSub brings chat and deletions in; Helix Send Chat Message with reply_parent_message_id posts each threaded reply from a separate bot account, with one attempt, and a failure never blocks the flow. The overlay and dock are plain HTML, CSS and JavaScript over WebSockets. Chat text is never sent to speech recognition, message text and transcripts stay out of the default logs, and state lives in memory only.
With Codex, in under two days, almost entirely in one main thread. After the spec was written, the core app (work packages 1–6) took one afternoon; the rest went into live tests on Twitch, rehearsal and the demo.
- Spec first.
SPEC.mdsplits the work into seven packages with acceptance criteria.AGENTS.mdsets the rules: never invent an answer, nothing sent without the streamer, no speech biasing, a pure core. Codex planned the work in plan mode and waited for approval before writing code. - Tests first. The first core test run had 62 failures; at the end of that package the whole suite passed, 194 tests.
- Parallel subagents. Three subagents built the overlay, the dock and the chat script, each in its own git worktree. The main thread reviewed and merged them.
- It checked its own UI. The overlay and dock subagents took Playwright screenshots, looked at them and fixed what they saw: low contrast on the answer words and an overflowing dock name.
- Independent review. A fresh review subagent checked the whole repo against the P0/P1 list in
AGENTS.mdand found 3 P1 bugs (STT teardown, mic-stop audio, provider auth). Each was reproduced by a failing test, fixed and rechecked. - Live on Twitch. A live test sends a real message from a test viewer and checks the bot's threaded reply through EventSub; the reply is visible in Codex's built-in browser.
The README's "Built with Codex" section has the details.
Challenges we ran into
- The streamer reads the question aloud. Quoting it back is useless. Echo detection compares content words in both directions: a turn that is mostly the question is greyed out, while a question followed by an answer in one breath is quoted in full.
- Natural pauses. Closing too early cuts answers off; closing too late feels slow. A visible 2.5-second grace ring after Flux's end of turn lets the streamer keep talking or press Next.
- What to filter. Missing a real question costs more than showing a useless message. The filter drops a message only if every word is a greeting or reaction ("hi", "lol", "gg"), so small talk can't fill a viewer's two-message slot.
- Speech recognition makes mistakes. In the demo, "but don't quote me" was heard as "Bob won't quote me". Checkpoint never edits the transcript; the streamer has 5 seconds to cancel the quote and send a plain receipt instead.
Accomplishments that we're proud of
- Real threaded replies, checked by a live test:
is_sent: true, the parent message ID, and the quote as it comes back through EventSub. - Rules as readable tests, such as
test_question_then_answer_in_one_turn_is_quoted_in_fullandtest_attribution_slack_and_next_mid_turn_do_not_duplicate_words. 342 unit and integration tests and 31 browser tests (Playwright) pass with ruff clean, plus 7 live checks against real Twitch and Deepgram. - Easy to try: a no-key demo runs from a fresh clone with two commands.
What we learned
- Twitch adds the parent
@mentionto a reply's text in EventSub. The live test caught it; the bot still sends only its own text. - Closing a Flux stream does not finish the turn. On mic stop, the engine flushes its audio, asks Flux to end the turn and waits for the real final, instead of promoting a partial.
What's next for Checkpoint
- Filter modes: Everything, Narrow (today), Questions only, Priority (subscribers, VIPs, first-time chatters), and an opt-in AI triage that only sorts the queue and never writes a reply.
- Preview first: the streamer sees the next card in the dock and chooses to show or skip it before it reaches the stream.
- Today's limits: English only (
flux-general-en), one channel per instance, verified on Linux/WSL with the mic page in Chrome, and the bot account must be a moderator.
Try it
No keys or Twitch account needed. Linux or WSL, with Bash, uv and Python 3.12:
git clone https://github.com/furkankuscu08/twitch_checkpoint
cd twitch_checkpoint
uv sync --locked
./scripts/run_all.sh --demo
Open http://localhost:8200/dock/ and http://localhost:8200/overlay/, press Checkpoint and type an answer. Demo replies never reach Twitch. The README covers the full Twitch and Deepgram setup.
Demo transparency
- The chat messages come from my own test accounts (
pixelmoth01,mossy_otter), sent on a timer byscripts/chat_script.py. - The narration is text-to-speech. The spoken answers on the cards are my real voice, transcribed live.
- The edit speeds up the opening coding footage (labelled 12×) and adds zooms, highlight boxes and captions. The cards, transcripts and threaded replies on the stream are shown as they happened.
- The stream view was recorded locally in OBS; the chat messages and threaded replies are real Twitch chat on my channel.
- The dock (the streamer's private control page) in the video is a synchronized re-run of the real app, fed with the take's own transcripts, chat messages and click times, because the dock was not screen-recorded during the take. The re-run sent nothing to Twitch; the replies in chat are from the original take. The Cancel click is not visible on the stream, so in the re-run it is placed inside the real 5-second window.
- The explainer at 0:15–0:43 is a composed slide made from real overlay and dock captures. The large chat close-ups after the demo (about 1:30 and 1:50) are re-typeset from the recorded chat for readability; the real chat is visible in the split screen.
- The gallery images use the real overlay and dock with fictional sample viewers; the chat image is re-typeset from the recording.
Relation to my other entry
I also entered Minefield, a different project. Checkpoint reuses its speech engine, mic page and Twitch API layer, adapted. The product itself (queue, cards, echo detection, quotes, threaded replies and earlier answers) is new and was built during the hackathon.
Built With
- codex
- deepgram
- eventsub
- fastapiwebsockets
- javascript
- playwright
- python
- twitch
- webaudio