Autoregression explained: a language model is just a next-token guesser in a loop
sethjuarez · x · 2026-09-04
Seth Juarez published an 18-minute primer on how LLMs actually work, setting up a series on building agents.
Key points:
- Thesis: a language model is nothing but a next-token guesser; every agentic capability is a runtime wrapped around that one mechanic.
- Text is first chopped into tokens (e.g. via byte-pair encoding); the model's entire world is integer token IDs.
- The autoregressive loop — guess a token, append it, feed it back, repeat until a "done" token — is the engine under every chatbot.
- Follow-up posts plan to build up, primitive by primitive, to agents that plan and act autonomously.
More from coding & agent
- Firecrawl cuts prices: failed requests free, /agent 8x cheaper — devdigest · 2026-09-05
- Live show to cover rogue agent swarm incidents, GPT-6 Astra, and Runway's Solaris world model — DhruvBatra_ · 2026-09-05
- One Weekend Exercise for Learning to Build AI Products: Automate a Workflow End to End — realmadhuguru · 2026-09-05
- After Datadog and Grafana, dev endorses Pydantic Logfire for all observability — samuelcolvin · 2026-09-05
- Vibe coding isn't the problem—conflating it with agentic engineering is — bendee983 · 2026-09-05
- Allie Miller shares her AI research workflow: hypothesis-first with hundreds of agents — alliekmiller · 2026-09-05