TL;DR everything is a house of cards grep loop over an LLM’s outputs, and it miraculously mostly doesn’t catastrophically crash.
- LLM
- “large” transformer-based language model, i.e. a brainless statistical word-predictor, where probabilities are “trained” on the entire internet with no regard to copyright laws nor truth
- Prompt
- instruction text you feed to an LLM. UIs for prompts are typically designed for single-paragraph instructions,
@mentioningfiles, and/includingpre-defined prompts - Skill
- a pre-defined re-usable named prompt (stored in a markdown file); e.g. detailed instructions for how to review PRs (when to run tests locally, commit message format, when to push, etc.)
- Plan
- a one-off skill you write when you have a complex task (you need more than a single-paragraph prompt UI, you have a checklist of sub-tasks). You slowly refine/improve the plan itself (in “conversation” with the LLM)
- Context
- the current “conversation” with an LLM: history of prompts, LLM outputs, tool outputs, file contents, etc. Every LLM has a builtin context length limit (analogous to short-term memory)
- Compaction
- reducing the context length, usually by asking the LLM itself to summarise its own context. Because it is so brainless, repeated compactions (in long conversations) gradually degrade quality
- Tool
-
grep,sed,curl, … - Harness
- a prompt UI program with access to/auto-detection of LLM(s), tools, skills. It runs a “loop”: append to context, process output, repeat. “Process output” means
grepfor structured (JSON) output (e.g. requests to call tools, formatted markdown to render, etc.), call tools & append their output to the LLM context, auto-compact context. Has nice UI rendering (markdown, plan checklists, images, streaming “thinking”). Has basic deterministic detection & recovery from LLMs producing malformed or dangerous JSON; e.g.grepfor unsafe-looking tool requests which triggers a user-confirmation UI - Agent
- harness along with everything it connects to: LLM(s), tools, skills.
- MCP
- “model context protocol”: a JSON RPC API server exposing tools/prompts/resources for harnesses to use. It can be debated that MCP is unnecessary if you have a skill + CLI API
- Memory files
- common filenames auto-loaded into context by harnesses; e.g.
~/CLAUDE.mdwith your personal preferences,${REPO_or_CWD}/AGENTS.mdwith instructions for how to contribute