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
- Vibe coding a feature store in a week: duckdb + S3 tables is all you need — generativist · 2026-12-05
- The underrated alpha: an AI agent that tracks local events and nudges you to attend — mimi10v3 · 2026-12-05
- Dev open-sources Cred after saying Anthropic 'shipped my startup' — agent access without sharing credentials — sull · 2026-12-05
- Microsoft paper: LLMs solving 97% of math still can't tell which answers are wrong — rohanpaul_ai · 2026-12-05
- Free Full AEO Course Drops: Winning Traffic in the Age of AI Search — jia_seed · 2026-12-05
- A personal agent's tidy-looking plan had its steps in the wrong order — the_crooked_badger · 2026-12-05