Glossary of AI concepts
This glossary gathers terms that come up when you work with AI models and agents. Each entry has a short, sourced definition and points to its own page when that page already exists on this site.
On this page: harness, harness engineering, context engineering, agent, prompt engineering, prompt injection, RAG, vibe coding, Agent Skills and hallucination. The AI concepts index also points to the AI learning tracks and to the protocols for agents.
Harness
A harness is the software around the model that runs the agent loop: it calls the model, executes tools, handles errors and permissions and decides when to stop. Added to the model, it forms the agent, in the sense used by LangChain’s documentation and by Claude Code’s documentation.
The full page, covering scaffolding, the loop, hooks, public examples and how the harness affects the result, is Agent harness, the software that runs the model.
Harness engineering
Harness engineering is the work of designing and tuning the harness: the stopping rule, error handling, permissions and the checks that get added after a visible failure. That definition appears in the Hugging Face glossary, and the practice of looking carefully at the output, especially where the agent fails, appears in the Claude Agent SDK article.
The full cut is in the Harness engineering section of the harness page.
Context engineering
Context engineering is the set of strategies for curating and maintaining the most useful set of tokens during model inference, including information that lands in the window besides the prompts. Anthropic describes this as the natural progression of prompt engineering: the focus moves from how the instructions are written to everything the model sees at each step.
The context window, on this site, is how much text the model can consider at once, in tokens. Context engineering is the work of deciding what enters that window and what leaves it.
Agent
In LangChain’s documentation, an agent is a model calling tools in a loop until a task is complete, with the harness around that loop. In its article on building effective agents, Anthropic treats agents and workflows as two kinds of agentic system: in a workflow, models and tools follow predefined code paths; in an agent, the model dynamically directs its own process and tool use, and keeps control over how the task gets done.
To choose a model for this work, this site has Best AI model to automate tasks with agents and the benchmark guide Agents and tools.
Prompt engineering
Prompt engineering, according to Anthropic, is the set of methods for writing and organizing the instructions given to a model, in search of a better outcome. The Claude documentation overview points to techniques such as clarity, examples, structuring, roles, visible reasoning and prompt chaining.
That cut continues in context engineering, which looks at the whole set of tokens the model has in front of it at each step, not only at the instruction text.
Prompt injection
In the OWASP classification for language models (LLM01:2025), a prompt injection vulnerability occurs when inputs alter the model’s behavior or output in unintended ways. A direct injection comes from the user’s own prompt; an indirect injection arrives through an external source the model reads, such as a website or a file. The same document treats jailbreaking as a form of prompt injection in which the input causes the model to disregard its safety protocols entirely.
The topic appears in the Decision-maker track, in the risk and control step.
RAG
RAG, or retrieval-augmented generation, is the arrangement described by Lewis and colleagues in the paper that introduces the term: the model combines the memory stored in its parameters with an external memory, an index from which passages are retrieved when the text is generated. In practice, the application searches for relevant passages and asks the model to answer on the basis of them.
Module 1 of the Practitioner track starts with that flow. Tying the answer to retrieved passages helps when the question depends on documents the model did not see in training; RAG on its own does not remove hallucination or prompt injection, a limit OWASP itself records.
Vibe coding
Vibe coding is the name Andrej Karpathy gave, in a post on X, to a way of programming in which you give in to the flow, almost forget that the code exists, accept changes without reading the diffs and, when an error appears, paste the message back into the model. He describes the work as seeing, saying, running and pasting, and says it mostly works, especially on throwaway weekend projects.
The site has a related piece in Portuguese, Vibecoding não acabou com a programação. To compare models on this kind of work, see Best AI model to code and fix bugs.
Agent Skills
Agent Skills is an open format for extending an agent with specialized knowledge and reusable workflows: a folder that contains, at a minimum, a SKILL.md file with metadata and instructions, and that can also bundle scripts and reference material loaded on demand.
The full page, covering the SKILL.md structure, progressive disclosure, how this relates to AGENTS.md and MCP, and the security note, is Agent Skills, the open format that extends an agent with a SKILL.md file.
Hallucination
Hallucination, in OpenAI’s article *Why language models hallucinate*, is the case in which a model confidently generates an answer that isn’t true. The same text describes these outputs as plausible but false statements. The NIST AI 600-1 profile calls the phenomenon confabulation: the production of confidently stated but erroneous or false content, also known colloquially as hallucinations or fabrications.
OpenAI argues that training and evaluations that score accuracy alone reward guessing instead of admitting uncertainty. On this site, SimpleQA Verified measures the share of short factual questions answered correctly. RAG comes in when the answer needs to rest on retrieved documents.
Sources
- LangChain documentation, Agents
- Claude Code documentation, How Claude Code works
- Hugging Face, Harness, Scaffold, and the AI Agent Terms Worth Getting Right
- Anthropic, Building agents with the Claude Agent SDK
- Anthropic, Effective context engineering for AI agents
- Anthropic, Building effective agents
- Claude documentation, Prompt engineering overview
- OWASP, LLM01:2025 Prompt Injection
- Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- Andrej Karpathy, X post on vibe coding
- Official Agent Skills page
- OpenAI, Why language models hallucinate
- NIST AI 600-1, generative AI risk profile
- Context window, on this site
- SimpleQA Verified, on this site
- Agent harness, on this site
- Agent Skills, on this site