In one line: Edwardsson fine-tuned Qwen2.5-Coder-0.5B (358M parameters once its vocabulary is cut) to predict a terminal's row edits per keypress, from 336k recorded sessions. On his own small tests, run once: 80 of 106 ShellBench commands exact (prompted base models 52, 60); self-repair plus more data took PresetBench from 24 to 38 of 47; parallel rows cut large-frame p95 latency from 6.7 s to 0.87 s.
How far to trust it: Believe the engineering: clear, arithmetically sound, and matched by the demo's source. Read the accuracy as one author's small tests: memory is tested on the true history, so free-running drift is unmeasured, and self-repair's gain is mixed with extra data. The evidence, judged.
The idea in one sentence: fine-tune a small coding model to write, for each keypress, the edit to a terminal's screen; with no shell behind it, whatever stays consistent between commands is what the network carries in its context.
You need: world models and why their errors compound when fed their own output (Model-based RL and planning, sections 11 and 13); DAgger (Offline RL and imitation, section 3); draft-then-verify decoding (Speculative decoding).
New terms: screen delta (one keypress's output: row edits plus the cursor); COPY (copy a row of the previous screen); self-repair example (a training frame from the model's own wrong screen to the real next one); readback (reading back a file the session wrote).
Predict, then click: Enter on a full 32-row screen moves 31 rows up. How many tokens with COPY, and without? Then try cat server.log, the worst case.
src/recompute.py.A terminal is a grid, not a stream: clear sends the cursor to the top, so I need to predict changes to the screen. After a snapshot of the screen, each keypress goes in as a terminal's bytes, and the answer names rows to rewrite and the cursor: l at the prompt gives ROW_0 17 'l', CURSOR 0 18 1. Nothing gets cleared first, so a row's edit runs from its first changed cell to its last. Idle time goes in as a WAIT token.
Copying a row makes a scroll cheap. Rewriting every row costs around 3,000 tokens for a single keypress; with ROW_0 COPY 1, a scroll costs three tokens per row, and a copied row can be patched (Fig. 1, Enter at the bottom: 98 tokens against 901).
A tiny vocabulary, every output valid: Qwen's 256 byte tokens, 64 row tokens and a few operations make 333 tokens (the demo lists 334, with a draft marker), and decoding is grammar-constrained (Sampling and Decoding).
The recordings he found lacked keystroke-to-screen alignment, so he made his own: vim, python, tmux, man and snake in offline Docker containers, random personas and screen sizes, one-key typing with 1.2% typos, and 35% of sessions starting partway through: 336k episodes, about 2B tokens.
Plain fine-tuning drifted: a mistake in a filename propagated, since at use time the model reads its own screens, never seen in training. That is behaviour cloning's compounding error; the fix is DAgger's (Offline RL and imitation, sections 2 and 3), the recording standing in for the expert:
About a third of sampled sessions gave a correction, over three rounds. With some additional training data, it took PresetBench from 24 to 38 of 47. All training took about 75 GPU-hours on an RTX 4090.
Three small tests. ShellBench is 106 commands in 24 handwritten sessions; PresetBench 47 cases drawn from failures he hit in the demo; the memory test 32 worlds, each writing two random values to two files and reading both back in separate sessions. Neither test appears in the training data.
Fine-tuning gained most on memory (the table), though the prompted baselines predict whole command outputs, as he notes. Combined in new ways, commands break: after an append, cat often doesn't show the appended line. Memory tests are short-gap, zero or one command between write and read (ShellBench spans 18).
| Test (size) | Model | Score |
|---|---|---|
| ShellBench (106 commands, exact output) | Qwen2.5-Coder-0.5B, prompted | 52 |
| Qwen3-0.6B, prompted | 60 | |
| WorldTUI | 80 | |
| File readbacks (13, not defined) | Qwen2.5-Coder-0.5B, prompted | 2 |
| Qwen3-0.6B, prompted | 3 | |
| WorldTUI | 9 | |
| PresetBench (47 demo failures, int4) | before self-repair | 24 |
| after self-repair plus more data | 38 | |
| row-parallel unverified, earlier checkpoint | 26, 31 |
rowparallel.js (PresetBench v1.1: cursor drafted with the rows 26, decoded after them 31).One token at a time suits typing (about 38 ms a key), not a redraw: up to 12 s on an RTX 4090, about 4 ms a token (derived, 12 s over about 3,000).
Rows rarely depend on each other, so each changed row gets its own batch element with the same previous history and KV cache: a frame takes as many steps as its longest row, then the cursor (training needed a matching attention mask). Large-frame p95 latency fell 7.7 times. Fig. 1's step ratios are an upper bound: a parallel step costs about 6 single steps on Apple GPUs (a comment in the demo's source).
Rows that cannot see each other disagree, so the same model verifies the draft. Independent rows put vim on row 3 instead of row 0, so a sequential pass keeps tokens up to the first disagreement and redrafts the rest. Decoding is greedy, so a fully verified frame equals sequential output (Speculative decoding). In the browser on an M4, man test takes 2.5 s sequentially, 0.9 s drafted and verified.
The demo offers sequential, row-parallel plus verification (default) and row-parallel unverified decoding, and a per-frame verification budget: none (exact, the default) or 200 to 800 ms, past which the rest of the draft is committed unchecked. A source comment puts the unverified mode at 26 or 31 of 47 on PresetBench v1.1, on an intermediate checkpoint; the final model's sequential 38 is another checkpoint, so the gap is suggestive, not measured. The post gives the 0.87 s before introducing verification and does not say which mode produced it; its footnote adds that the speed-up is much larger on the 4090 than on the M4.
The title's 360M is the base model without its vocabulary: 136M of Qwen2.5-Coder-0.5B's 494M are the 151,936-token embedding; keeping 384 rows leaves 358.3M (derived), the model card's "0.36B non-embedding". At 4 bits it is 208 MB, run by a hand-written WebGPU decoder with 32-bit activations and cache.
Removing one layer kept next-token accuracy and erased memory (Fig. 3). On an earlier checkpoint, removing layer 7 without retraining moved next-token accuracy from 99.3% to 98.9% and exact readbacks from 64/64 to 0/64; the tests fed in the true history, so retrieval lived in a few layers. A 12-layer student without layers 1, 7, 15 and 22 picked the wrong written value about half the time; a 16-layer student keeping them remembered but lost ShellBench commands, and he gave up on distilling. The lesson, a student can look fine and have quietly lost its memory, belongs beside depth pruning (Distillation and Small Language Models).
The videos show the best case: a file edited in vim in one tmux window comes back from cat in another. Python is forgiving the way a pattern-matcher is: pythoon launches Python, but ython does not. What breaks is state: in nested directories it gets lost, harder Python is guesswork, and the demo ran about 20× slower in Firefox. His summary: "Is it useful? Not really." Yet it keeps a somewhat consistent world without implementing any of the rules underneath.
It sits beside the 2022 prompt that made ChatGPT act as a Linux terminal, GameNGen's diffusion model of DOOM and NeuralOS's desktop GUI, and is closest to the first, trained on keypresses and screen updates. Next: diffusion instead of autoregressive decoding, and training on thousands of generated applications to see whether it can predict one it has never met.
The engineering holds up, and much of it is checkable outside the post: the demo's public source and manifest show the grammar, the greedy verifier, 334 tokens and 208,351,744 bytes of weights; Qwen's config gives the 136M embedding; archived copies match the live text. He names his own weak points, and the layer finding is a clean ablation (true history, one change).
The accuracy evidence is thin:
Verdict: believe the design and its costs, visible in the demo's source. Treat the accuracy as one author's small tests: fine-tuning clearly helps memory and familiar commands, self-repair probably helps, long-session drift is unmeasured. The most transferable finding is the layer ablation: next-token accuracy hid a total loss of memory, on one model.
Hacker News (read 27 November): 654 points, 195 comments, mostly on honeypots and "neural operating systems". No replication or rebuttal was found; nothing can be rerun until the weights appear.
vibeSH has a frontier model repaint the whole screen: state holds until the context fills, but interactive programs lag. He calls self-repair the fix for drift that vibeSH lacks.
Users report a new folder "already there", a misspelt mkdier accepted but never listed, misspellings of ls acting like ls, and cd $_ landing in the wrong directory.
Much weaker from scratch; larger bases remember better (reply). No numbers.
Not a reply: in its simulated evaluations "all tool calls were simulated by LLMs", a use the post's "Not really" omits.
The post was fetched on 27 November 2026 and its main text, with footnotes, extracted to src/inputs/article.txt (2,991 words, 13 minutes at 230 words a minute; the 26 October tech-news issue quoted 8). Three distinct Wayback Machine copies (22 October 02:21 and 09:44 UTC, 27 October 20:18) differ from each other and from the live page only in the header's "Discuss on HN" link and the footer's link to the next post. Every "in the article" link is a text fragment or heading id checked against the extract at build time.
Read on 27 November: the demo page and its JavaScript modules (app.js, codec.js, session.js, rowparallel.js; read, never run) and its 54 KB manifest.json (model shape, codec, quantisation, byte count); the weights were not downloaded. Qwen2.5-Coder-0.5B's config.json and model card; the Hacker News item and all its comments through the API (submitted 22 October 02:18 UTC); Leon Becker's vibeSH post; the Anthropic post the thread linked; Hugging Face and GitHub searches for released weights or code (none).
Figures: the post's videos and latency chart carry no open licence and are not reproduced; Fig. 1 is computed from the post's encoding rules on an illustrative session, Fig. 2 is drawn from its description of self-repair, and Fig. 3 from the numbers it prints.
Every link opens in a new tab; links checked 27 November 2026. Reading time of the resources below: 2h 13m.
Simon Edwardsson (V7): The post itself (SimEdw's Blog, published 21 October 2026). Its videos (vim, tmux, snake, the Python REPL) show the model at its best; the demo is the honest test: open it, try a command it has not seen, and come back to a file three commands later.
(13 min)
the authors: Inference only: its JavaScript (codec, decoder, row-parallel verifier) is readable in the page source. No weights, training code, data or benchmarks were released by 27 November 2026; the post says the weights will follow.
(15 min)
654 points, 195 comments (read 27 November 2026), submitted 22 October 2026.
(25 min)
rowbin (Leon Becker), Hacker News, 22 October 2026, comparison: vibeSH has a frontier model repaint the whole screen: state holds until the context fills, but interactive programs lag. He calls self-repair the fix for drift that vibeSH lacks.
(3 min)
donperignon, IncRnd and mattstir, Hacker News, 22 October 2026, user report: Users report a new folder "already there", a misspelt mkdier accepted but never listed, misspellings of ls acting like ls, and cd $_ landing in the wrong directory.
(1 min)
simedw (the author), Hacker News, 22 October 2026, author's reply: Much weaker from scratch; larger bases remember better (reply). No numbers.
(1 min)
Richard Qi and others, Anthropic Alignment Science Blog (August 2026); pointed to by saagarjha on Hacker News, 22 October 2026, a use: Not a reply: in its simulated evaluations "all tool calls were simulated by LLMs", a use the post's "Not really" omits.
(30 min)
27 November 2026: The post's "I'll post the weights soon" stands: nothing on Hugging Face under the author or the name, and no WorldTUI repository on GitHub. The Wayback Machine's copies (22 to 27 October) have the same text as the live post.
(1 min)
27 October 2026: The author's next post, six days later; not about WorldTUI.
(10 min)
Ross, Gordon and Bagnell, AISTATS 2011 (third-party): The method the self-repair step adapts: train on the states the learner reaches, labelled by an expert. Here the recorded session plays the expert.
(1 hour)
Qwen team (maker): 0.49B parameters, 0.36B without the embedding, 24 layers, hidden size 896, tied embeddings: where the title's 360M comes from.
(5 min)
Leon Becker, 16 June 2026 (third-party): The same idea with no training: a frontier model, a long prompt, whole-screen repaints.
(9 min)
Jonas Degrave, December 2022 (third-party): The prompt-only terminal the post calls its closest relative.
(10 min)
Valevski et al., 2024 (third-party): A pixel world model of DOOM; the related work the post names, with NeuralOS for a desktop GUI.
(10 min)
Owns world models (section 11, world models from video) and why a model's errors compound when its output is fed back (section 13).
Owns behaviour cloning's drift and DAgger (sections 2 and 3), which the self-repair training adapts.
Owns draft-then-verify and why greedy verification gives exactly the target's output.
Owns grammar-constrained decoding, which keeps every WorldTUI prediction a valid screen update.
Owns depth against width pruning and healing by distillation, where the post's layer finding belongs.
This page is one of the Articles: articles worth a page of their own, each with its argument, its evidence judged and what others replied.