LLM
Also called Large language model
A large language model: a neural network trained on enormous amounts of text to predict what comes next, which turns out to be enough to write code, answer questions, and follow instructions. Every tool in this glossary is a wrapper around one or more of them.
At a glance
- Stands for
- Large language model
- Architecture
- Usually a transformer
- Core task
- Predict the next token
- Memory between calls
- None, context is resent each time
- Knowledge
- Fixed at a training cutoff
How it works
Text is split into tokens (words or pieces of words), and the model reads the sequence and outputs a probability for every possible next token. One is picked, appended, and the process repeats. Everything an LLM produces, from a sentence to a 300-line refactor, comes out of that loop.
Training happens in stages. Pretraining on a very large text corpus, including a lot of public code, teaches the model language and patterns. Later stages, such as instruction tuning and reinforcement learning from human or automated feedback, teach it to follow requests, hold a conversation and emit tool calls in a structured format.
Why it matters
An LLM has no memory between requests. Each call receives the whole conversation again, limited by the context window, so anything the model should know about your project has to be in that request: the relevant files, the conventions, the error output. It also has no live view of the world, which is why it may not know a library's latest release.
Coding tools work around both limits by letting the model call tools: read a file, search the repo, run a command, and feed the result back as more context. Much of what separates one coding tool from another is that surrounding harness, not only the model inside it.
Model choice still matters at the edges. A smaller, faster model is often fine for mechanical edits and quick questions, while a stronger or reasoning-focused model earns its cost on design decisions, tricky debugging and changes that span many files.
LLM versus agent
The LLM is the model: text in, text out. An agent is a program that wraps a model in a loop with tools, so it can act, observe the result and decide what to do next. Claude Code and Codex are agents; the Claude and GPT models inside them are the LLMs.
Common mistakes
- Treating the model as a database that looks facts up, when it generates plausible text and can be fluent and wrong.
- Expecting the same prompt to produce the same code every run, when output is sampled and varies.
- Assuming the model remembers earlier sessions, when only what is in the current context exists for it.
Related terms
Frequently asked questions
Is an LLM the same as AI?
An LLM is one kind of AI system, specialized in text. The term AI also covers image models, recommendation systems and much else.
Does an LLM learn from my conversations?
Not during the conversation itself: the model's weights do not change while you use it. Whether a provider uses your data for future training depends on its policy and your account settings.
Why does the same prompt give different answers?
Models sample from a probability distribution over next tokens, so small random choices early in a response lead to different outputs.