KQ-213 · CODE/LATHE

Code Lathe

A listing turned out line by line, the way an agent actually writes one — each line landing a beat behind the one above so the block builds at a readable pace instead of appearing whole. Highlighting is a single deterministic pass over comments, strings, numbers, and words: enough to read a snippet by, with no parser and nothing to load. In diff mode a leading plus or minus becomes a gutter marker and a tinted row, and is stripped from what gets copied.

KQ-213 · CODE/LATHE
ChurnSchedule.ts
ts
// Pick the freezer windows cold enough to churn in.export function churnSchedule(slots: Slot[]) {  const windows = slots.filter((s) => s.temp <= -12);  if (windows.length === 0) {    throw new Error("no window under -12C");  }  return schedule(windows, { hero: "pistachio" });}

Turning line by line

Install

One command — the source lands in your repo. Or copy it from the Code tab.

$ pnpm dlx shadcn@latest add @kinetiq/code-lathe

Props

PropTypeDefaultDescription
codestringThe source to display.
streambooleanTurn the listing out line by line instead of whole.
diffbooleanRead a leading +/- as an edit and mark the gutter.
perLinenumberSeconds per line while streaming.