Tag
Posts tagged Realtime.
3 posts filed under Realtime. Sorted newest first.
- 01Lessons learnedCode points and code unitsI asked Claude to bold every occurrence of a word in a markdown file, and every edit landed one character off, because of a single emoji earlier in the document. Python counts that emoji as one character; JavaScript counts it as two. An integer that crosses a language boundary has units, declare them, or each side quietly picks its own.
- 02Deep diveTranslating an SDK loop into one browser streamA Shannon agent run looks like one continuous stream in the browser. Underneath it's a loop of separate Anthropic API calls with tool execution wedged between them. The fix is a server-side translation layer that hides every seam behind a small, fixed vocabulary of UI events.
- 03Deep diveTwo event pipelines, one UI timelineEvery AI agent UI is secretly two UIs: one renders events live over SSE, the other rebuilds the same timeline from the database on reload. They have to match exactly, and five separate bugs, from parsing to null handling to ordering, proved they easily don't.