AI is easier to understand once you stop treating every product as the same kind of thing. ChatGPT, Claude, Cursor, Codex, Nvidia GPUs and Groq LPUs all belong to the AI ecosystem, but they live at different layers. This primer builds one coherent mental model from ordinary-user level through senior-software-engineer level.
Updated August 2026. The evergreen sections explain architecture and engineering. Time-sensitive company, financial and product-access notes are explicitly dated.
- 1. The AI stack: do not mix the layers
- 2. What an LLM actually is
- 3. Closed, open-weight and open-source
- 4. The major AI ecosystems
- 5. Cursor, Claude Code, Codex and coding agents
- 6. From autocomplete to delegated engineering
- 7. Perplexity and the orchestration layer
- 8. RAG, fine-tuning, tools and MCP
- 9. OpenAI, Anthropic and AI safety
- 10. Agent security: the real lesson from 2026 incidents
- 11. Training, inference, Groq and Grok
- 12. Where the strategic moats sit
- 13. Senior-engineer mental model
- 14. Dated 2026 snapshot and corrections
- 15. Glossary
- 16. One diagram and final summary
1. The AI stack: do not mix the layers
The most common AI discussion error is comparing a company, a model, a product, a coding-agent harness, a cloud and a chip as though they were peers. A better stack is:
USER / BUSINESS WORKFLOW
ChatGPT | Claude | Gemini | Copilot | Perplexity | Cursor | Windsurf
|
v
APPLICATION / AGENT HARNESS
orchestration | tools | memory | search | approvals | IDE/CLI
|
v
FOUNDATION MODEL(S)
GPT | Claude | Gemini | Llama | Grok | Qwen | DeepSeek | Mistral
|
v
MODEL SERVING / INFERENCE
APIs | routing | batching | caching | self-hosting
|
v
CLOUD / DATA CENTER
Azure | AWS | Google Cloud | Oracle | private clusters
|
v
COMPUTE
Nvidia GPU | Google TPU | AWS Trainium | Groq LPU | other ASICs
A single company can span several layers. Google, for example, builds Gemini models, operates Google Cloud, designs TPUs and distributes AI through Search, Android and Workspace. Microsoft combines Azure, GitHub, Microsoft 365, Copilot and its own models while also distributing third-party models.
2. What an LLM actually is
A Large Language Model is a neural network trained to predict tokens. A token is usually a word or part of a word. Modern LLMs repeatedly estimate what token should come next, but at enormous scale and with learned internal representations that support writing, coding, reasoning, translation, image understanding and tool use.
Training data + massive computation
|
v
TRAINING
|
v
MODEL WEIGHTS
learned parameters
|
v
INFERENCE
run the trained model
Training builds the model. Inference runs it. This distinction becomes critical when discussing GPUs, TPUs, LPUs, latency and cost.
3. Closed, open-weight and open-source
| Approach | What you receive | Typical benefit | Main trade-off |
|---|---|---|---|
| Closed model | Hosted product/API access | Convenience; provider operates the infrastructure | Less control; vendor pricing, availability and policy dependence |
| Open-weight | Trained model weights plus enough software to run them | Self-hosting, customization, sovereignty and data control | You operate the compute, security and lifecycle |
| Fully open approach | Weights plus broad code/data/training transparency | Maximum inspectability and reproducibility | Rare at frontier scale and expensive to reproduce |
Open-weight does not automatically mean open-source. You may receive the finished learned parameters without receiving the exact training data, curation pipeline or training recipe.
Also, self-hosted does not mean free. You may avoid a per-token model-provider fee, but you still pay for accelerators, memory, electricity, hosting, operations and engineers.
4. The major AI ecosystems
| Organization | Primarily what? | Representative products/models | Strategic edge |
|---|---|---|---|
| OpenAI | Frontier model lab + platform | GPT, ChatGPT, Codex | Consumer scale, developer ecosystem, frontier capability |
| Anthropic | Frontier model lab | Claude, Claude Code | Enterprise/coding strength; safety/governance emphasis |
| Google / DeepMind | Full-stack AI giant | Gemini | Models + Search + Android + Workspace + Cloud + TPU |
| Microsoft | Enterprise AI platform + model developer | Copilot, Foundry, MAI | Windows, M365, GitHub and Azure distribution |
| Meta | Open-weight ecosystem leader | Llama | Developer adoption; price pressure on closed model APIs |
| xAI | Frontier model lab + platform | Grok | X integration and large compute deployments |
| Mistral AI | European model company | Mistral models | Open-weight/private deployment and European sovereignty |
| DeepSeek | Chinese frontier/efficiency lab | DeepSeek models | Efficient architectures and aggressive cost/performance |
| Alibaba | Cloud + model provider | Qwen | Large cloud/distribution ecosystem and broad open-weight family |
| Perplexity | AI search/orchestration product | Perplexity, Sonar | Retrieval, citations, search UX and model orchestration |
| Groq | Semiconductor + inference cloud | LPU, GroqCloud | Very low-latency inference on supported workloads |
The key strategic distinction is that some companies try to own the best model, some own distribution, some own the full stack, and others build a valuable application layer that can swap models underneath.
5. Cursor, Claude Code, Codex and coding agents
Coding is one of the clearest areas where AI has moved beyond chat. These products belong mainly above the foundation-model layer: they provide repository context, tool access, planning loops, shell execution, diff review, approvals and workflow UX.
DEVELOPER / ISSUE / SPEC
|
v
CODING AGENT / HARNESS
Cursor | Windsurf | GitHub Copilot | Claude Code | Codex | Gemini CLI | Cline | Aider
|
+--> repository search / embeddings
+--> files + diffs + checkpoints
+--> shell / tests / build tools
+--> browser / documentation / MCP
+--> identity / permissions / approvals
|
v
ONE OR MORE MODELS
| Product | Category | Where it runs | Core distinction | Model relationship |
|---|---|---|---|---|
| Cursor | AI-native editor + coding-agent harness | Desktop IDE, CLI and cloud/background workflows | Editor itself becomes an agent control plane; deep repository context and delegated work | Multi-model; harness/orchestration is a major part of the value |
| Windsurf | Agentic IDE | Desktop IDE + cloud workflows | Editor-centered planning, repository context and tool use | Multi-model / platform-selected |
| GitHub Copilot | Developer platform + IDE/GitHub agent | IDEs, GitHub and cloud workflows | Deep PR, repository, code-review and enterprise policy integration | Multiple supported models through GitHub/Microsoft |
| Claude Code | Anthropic coding agent | Terminal/CLI + IDE integrations | Terminal-first, repository-aware agent with shell/tool use and long-horizon workflows | Claude-centric |
| OpenAI Codex | Coding-agent platform | ChatGPT/Codex app, IDE, CLI and cloud environments | Delegated engineering, parallel agents, code review and cloud execution | OpenAI coding models |
| Gemini CLI | Terminal coding/agent tool | CLI | Google-model-centric terminal agent and tool ecosystem | Gemini-centric |
| Cline | Open coding-agent harness | IDE/CLI/headless | Explicit approvals, broad provider choice and open integration surface | Provider/model agnostic |
| Aider | Terminal pair-programming tool | CLI | Git-aware, lightweight terminal coding workflow | Multi-model |
| Devin / Replit Agent | Cloud software-engineering agents | Hosted/cloud workspaces | More autonomous delegated software tasks in managed environments | Platform-selected models and proprietary orchestration |
Cursor vs. Claude Code vs. Codex
| Dimension | Cursor | Claude Code | OpenAI Codex |
|---|---|---|---|
| Primary interaction | Agent-first editor plus CLI/cloud workflows | Terminal-first agent with IDE integrations | Agent platform across app/IDE/CLI/cloud |
| Model strategy | Multi-model orchestration | Claude-centric | OpenAI-centric |
| Conceptual moat | Editor/harness UX and model orchestration | Tight model-agent integration and terminal workflow | Cloud/parallel delegated engineering and integration with OpenAI ecosystem |
| Typical sweet spot | Interactive repository work with rapid human review | Deep terminal/repository work and scripted engineering workflows | Longer delegated tasks, code reviews, migrations and cloud work |
| Engineering lesson | The IDE becomes an agent control plane | A CLI can be a full agent runtime | Coding agents can become a distributed workforce across isolated environments |
6. From autocomplete to delegated engineering
| Stage | Engineer role | AI role | Main risk |
|---|---|---|---|
| 1. Completion | Writes code manually | Predicts lines/functions | Accepting bad suggestions too quickly |
| 2. Chat assistant | Asks for explanations/snippets | Advises but does not act | Hallucination or stale context |
| 3. Repo-aware assistant | Provides or indexes code context | Searches and proposes multi-file changes | Context-selection errors |
| 4. Local coding agent | Delegates bounded tasks | Edits files and runs commands/tests | Tool permissions and destructive actions |
| 5. Cloud/background agent | Delegates longer repo tasks | Works in isolated environments and opens PRs | Credentials, supply chain, validation |
| 6. Multi-agent workflow | Coordinates goals and reviews | Parallel agents divide implementation/review/test work | Concurrency, consistency, ownership and auditability |
The key transition is not “chatbot → smarter chatbot.” It is assistant → tool-using assistant → agent → coordinated agent system.
Old workflow: "Here is the Terraform you should write." Agentic workflow: inspect repo -> plan -> edit -> run tests -> inspect failure -> fix -> rerun tests -> show diff -> open PR -> request approval
7. Perplexity and the orchestration layer
Perplexity is a useful counterexample to the idea that the strongest product must own the strongest foundation model. Much of its value is in query interpretation, web retrieval, source ranking, synthesis, citations and routing across model capabilities.
Question
|
v
query interpretation -> search/retrieval -> source ranking
| |
+----------------> model(s) <----------+
|
v
synthesis + citations
This generalizes beyond search. In production AI, the surrounding system can become more defensible than the raw model: context + tools + proprietary data + workflow integration + evaluation + security + distribution.
8. RAG, fine-tuning, tools and MCP
| Technique | What changes | Best mental model | Typical use |
|---|---|---|---|
| RAG | Runtime context | Fetch relevant facts before answering | Enterprise knowledge, policies, grounded Q&A and current documents |
| Fine-tuning | Learned model behavior/parameters | Teach a recurring pattern or specialized behavior | Style, domain behavior, structured outputs and narrow specialization |
| Tool use | Available actions | Give the model typed functions/APIs | Search, databases, files, calculators and business systems |
| Agent | Control loop around model + tools + state | Plan, act, observe and repeat toward a goal | Coding, research, operations and multi-step workflows |
| MCP / tool protocol | How tools/context are exposed | Standardize the interface between agent and external capabilities | Portable integrations across agent products |
| Embedding | Vector representation | Convert meaning into coordinates for similarity search | Semantic retrieval, clustering and code/document search |
9. OpenAI, Anthropic and AI safety
A useful formulation is not “Anthropic = safe, OpenAI = unsafe.” Both operate frontier systems and use model-level and system-level safety controls. Historically, Anthropic developed a more precautionary institutional identity and explicit Constitutional AI approach; OpenAI has emphasized iterative deployment, extensive red-teaming, system controls and real-world feedback. The distinction has become less clean as capabilities and risks increase.
Corporate structure also needs current terminology. Anthropic is a Public Benefit Corporation with a Long-Term Benefit Trust governance mechanism. OpenAI today is best described at a high level as a nonprofit-controlled Public Benefit Corporation structure; older “capped-profit” descriptions are historical rather than the complete current picture.
The durable engineering lesson is more important than the corporate rivalry: frontier deployment increasingly combines alignment, capability evaluation, system policy, access controls, monitoring, incident response and deployment thresholds.
10. Agent security: the real lesson from 2026 incidents
When an agent performs an unintended real-world action, “the AI escaped” is usually a poor engineering description. A modern agent can combine an LLM with a terminal, browser, credentials, memory and an iterative planning loop. If the surrounding system exposes too much authority or misrepresents the environment, real-world side effects become possible.
MODEL CAPABILITY
+
TOOLS / SHELL / BROWSER / NETWORK
+
CREDENTIALS + STATE + LOOPING
|
v
AGENT HARNESS
|
v
SECURITY BOUNDARY
|
+--> intended sandbox
+--> unintended real-world side effects if controls fail
The most useful distinction is model safety vs. system safety. A model can be following its apparent task while the harness gives it the wrong environment assumptions, excessive permissions, live credentials or unexpected network reach.
- Treat web pages, issue text, documentation, comments and repository content as potentially hostile prompt input.
- Use least-privilege identities and explicit network boundaries; separate read and write credentials.
- Require approval for deployment, destructive commands, external publication, secret access and production changes.
- Preserve agent-native telemetry: prompts, plans, tool calls, diffs, commands, approvals and environment state.
- Test harness isolation itself. “The model believed it was in a sandbox” is not protection if the network boundary is wrong.
11. Training, inference, Groq and Grok
Grok (K) is xAI model/software technology. Groq (Q) is a semiconductor and specialized inference-cloud company. They are unrelated despite the similar names.
Training is highly parallel: enormous matrix operations are distributed across accelerator fleets. Autoregressive inference is different. Token N+1 depends on earlier generated tokens, creating a serial dependency between token steps. But the matrix computation inside each token step remains massively parallel.
Groq targets low-latency inference through deterministic execution, compiler scheduling and specialized memory/dataflow choices. Its advantage is not that parallel processing suddenly stopped mattering; it is that different hardware can optimize different parts of the inference workload.
| Accelerator | What it is | Typical AI role |
|---|---|---|
| GPU | Highly parallel general accelerator; Nvidia dominates frontier AI | Training and high-throughput/batched inference |
| TPU | Google custom ML ASIC | Google training and inference; available through Google Cloud |
| Trainium / Inferentia | AWS custom AI accelerators | Training/inference within AWS ecosystem |
| LPU | Groq specialized inference architecture | Very low-latency supported inference workloads |
| MTIA | Meta custom AI accelerator family | Meta internal recommendation/AI inference and growing in-house compute strategy |
12. Where the strategic moats sit
| Layer / moat | Representative players | Why it matters |
|---|---|---|
| Frontier model capability | OpenAI, Anthropic, Google, xAI, Meta, DeepSeek, Alibaba/Qwen, Mistral | Reasoning, coding, multimodality, latency, context and price set the raw capability envelope |
| Agent/application harness | Cursor, Claude Code, Codex, Copilot, Windsurf, Perplexity, Cline | Context engineering, tools, workflow UX and verification differentiate even when models overlap |
| Distribution | Microsoft, Google, Meta, OpenAI, GitHub | Existing users, enterprise contracts and product surfaces can be a larger moat than small benchmark gaps |
| Cloud/compute | Azure, AWS, Google Cloud, Oracle, Nvidia, custom accelerators | Training capacity and inference economics determine how cheaply and reliably capability is delivered |
| Private/open deployment | Llama ecosystem, Mistral, Qwen, DeepSeek and other open-weight families | Self-hosting, sovereignty and price pressure reduce dependence on closed APIs |
| Proprietary data/workflow | Enterprise applications and vertical AI vendors | The best model is less useful without trusted context and integration into actual work |
This yields five broad strategies: own the best model, own the full stack, own distribution, commoditize model intelligence, or own the application/orchestration experience. Most large players are increasingly pursuing more than one.
13. Senior-engineer mental model
Once a model can use tools, AI engineering starts to look like familiar distributed-systems and security engineering with one unusually probabilistic component. The surrounding control plane should be as deterministic, observable and permissioned as practical.
USER GOAL | v ORCHESTRATOR / AGENT HARNESS | +--> Context builder / RAG / embeddings +--> Model router +--> Tool registry / MCP +--> Identity + authorization +--> Sandbox / network policy +--> State / memory / checkpoints +--> Evals / validation / approval gates +--> Observability / cost / audit trail | v MODEL(S) + EXTERNAL SYSTEMS
A senior engineer should ask the same questions they would ask of any privileged distributed service:
- What identity is executing, and what can it reach?
- Which inputs are trusted? Which are untrusted?
- What happens on retry, partial failure or duplicate execution?
- How are concurrent agents isolated and coordinated?
- Which actions require human approval?
- How is model or prompt regression measured?
- Can every important action be reconstructed after an incident?
- What are the latency, token, accelerator and cloud cost envelopes?
- When should the system route to a cheaper/faster/local model?
- How do we prove that a task is complete rather than merely plausible?
14. Dated 2026 snapshot and corrections
This section is intentionally separated from the evergreen curriculum. Private-company financials, IPO plans, access policies and model names can change quickly.
Important 2026 corrections and freshness caveats
OpenAI structure: avoid teaching the old capped-profit structure as the complete current description. Use the current nonprofit-controlled PBC framing at a high level.
Anthropic Mythos/Fable: do not merge ordinary product availability, temporarily suspended access and narrow trusted-preview programs into one story. Fable 5, Mythos 5 and Mythos Preview/Project Glasswing have different access/risk profiles.
Financial figures: 2026 OpenAI/Anthropic revenue, run-rate, valuation and IPO figures are press-reported private-company snapshots, not audited public-company filings. Use them to illustrate direction, not as permanent curriculum.
Hardware tables: public accelerator roadmaps do not prove exact internal procurement or which chip generation trained every model. This is especially opaque for Chinese labs under export controls.
Mythos 5 / Fable 5 / Project Glasswing distinction
| Item | What it is | Access/status lesson |
|---|---|---|
| Fable 5 | General-purpose member of Anthropic's high-capability model family with additional safety layers | Broader product availability after the June 2026 suspension was lifted |
| Mythos 5 | More restricted cyber/bio-oriented high-capability model | Approved/vetted access rather than treating it as identical to broad Fable availability |
| Mythos Preview / Project Glasswing | Narrow trusted early-access program for an even more restricted preview capability | Separate program; do not use it to characterize ordinary Fable/Mythos availability |
15. Glossary
Open the full glossary
- LLM
- Large Language Model — neural network trained to model and generate token sequences.
- Token
- A unit of text processed by a model; often a word fragment.
- Weights
- The learned numerical parameters of a trained model.
- Inference
- Running a trained model to produce outputs.
- Fine-tuning
- Additional training that adapts an existing model to a recurring task or behavior.
- Context window
- The information available to a model during a particular inference.
- Embedding
- A vector representation used for semantic similarity and retrieval.
- RAG
- Retrieval-Augmented Generation — fetch relevant external information and place it into the model context.
- Agent
- A control loop that lets a model plan, use tools, observe results and continue toward a goal.
- Agent harness
- The software around a model that manages tools, context, permissions, state, approvals and loops.
- MCP
- Model Context Protocol — a standardized interface pattern for exposing tools/context to AI systems.
- Eval
- A repeatable measurement of model/system quality, safety or task completion.
- GPU
- Graphics Processing Unit — massively parallel accelerator widely used for AI training and inference.
- TPU
- Tensor Processing Unit — Google custom AI ASIC.
- LPU
- Language Processing Unit — Groq specialized inference architecture.
- ASIC
- Application-Specific Integrated Circuit — chip designed for a specific workload.
- HBM
- High-Bandwidth Memory used next to high-end accelerators.
- SRAM
- Fast on-chip static memory with much lower capacity than HBM.
- MoE
- Mixture of Experts — routes tokens through only a subset of specialized network components.
- Open-weight
- Trained parameters are downloadable, while training data/recipe may remain proprietary.
- Bare metal
- Dedicated physical servers without a tenant virtualization layer.
- ARR
- Annualized Recurring Revenue — a run-rate metric, not the same thing as audited annual revenue.
- PBC
- Public Benefit Corporation — corporate form that explicitly includes a stated public benefit alongside shareholder interests.
- MAU
- Monthly Active Users.
16. One diagram and final summary
MODERN AI SYSTEM
USER / BUSINESS WORKFLOW
|
v
APPLICATION / AGENT EXPERIENCE
ChatGPT | Claude | Perplexity | Cursor | Copilot | Codex | Claude Code
|
v
ORCHESTRATION / CONTROL PLANE
context | RAG | tools | MCP | identity | approvals | evals | observability
|
v
FOUNDATION MODEL(S)
GPT | Claude | Gemini | Llama | Grok | Qwen | DeepSeek | Mistral
|
v
INFERENCE + CLOUD + ACCELERATORS
APIs / self-hosting -> data centers -> GPU / TPU / LPU / other ASICs
For a non-technical reader: AI is not one product. The visible assistant sits on top of models, orchestration, cloud infrastructure and specialized hardware.
For a software engineer: the frontier is moving from prompt-response software toward tool-using agents. Model quality matters, but so do context engineering, harness design, identity, isolation, evaluation, observability and human approval.
For a senior engineer: treat an LLM as a powerful probabilistic compute service inside a larger distributed system. The winning design is rarely “pick the smartest model.” It is the system that selects the right model, supplies the right context, grants the right tools, verifies the result and constrains the blast radius.
Sources and freshness
This article consolidates and reconciles the supplied AI landscape notes. Time-sensitive descriptions are dated to August 2026 and should be refreshed before investment, procurement or policy decisions.
Comments
Post a Comment