AI vocabulary and when to use what
Plain definitions of agent, harness, skill, connector, subagent, hook and the rest, plus how to pick the lightest one that solves your problem.
14 min read · Last reviewed November 25, 2026
AI vocabulary and when to use what
Plain definitions of , harness, skill, connector, subagent, hook and the rest, plus how to pick the lightest one that solves your problem.
You'll be able to#
- Say what each term means without needing the marketing
- Match a problem ("it keeps forgetting X") to the smallest feature that fixes it
- Tell instructions the agent may follow from rules the system enforces
- Judge what a , server or plugin costs you in trust and context before you add it
The mental model#
Think of the model as a very capable new hire who starts each morning with no memory. Everything else is a way of helping that person work well:
- Words on the desk (prompts, project files, skills) tell it what to do and how you like it done.
- Tools on the desk (connectors, servers) let it reach things outside the room.
- Colleagues (subagents) take a messy side job and hand back a summary.
- Building rules (hooks, permissions) apply no matter what the new hire decides.
The vocabulary is a menu of these four kinds of help. The is picking the lightest one that works, because every addition costs context, trust or upkeep.
Key concepts#
The parts
- Model: The system that reads text and produces text. On its own it cannot touch your files, run code or browse. See How LLMs work.
- Agent: Anthropic describes agents as systems where the model directs its own process and tool use, and as "typically just LLMs using tools based on environmental feedback in a loop." Contrast that with a workflow, where code decides the steps in advance.
- : The program that wraps the model, supplies its tools and manages its context, so the model can work for more than one turn. Anthropic's engineering post calls the Claude Agent SDK "a general-purpose agent harness," and the harness is the thing Claude Code, Cursor and similar tools have in common. Vendors use the word loosely, so treat it as "the app around the model."
- Tool: A function the harness can run for the model, such as read a file, run a command or search the web. The model asks, the harness runs it. See Agents, tools and MCP.
Things you write (instructions)
- Project file (CLAUDE.md, AGENTS.md and similar): A markdown file the agent reads at the start of a session. In Claude Code, CLAUDE.md can live in your home folder, in the repo, or in a managed organization location, and the docs suggest keeping each file under about 200 lines because longer files cost context and reduce adherence. Good for facts that apply every session: build commands, conventions, "always do X."
- Skill: A folder with a
SKILL.mdfile (and optional supporting files) that teaches the agent a procedure. The agent sees each skill's short description up front and loads the full body only when it is relevant or when you call it by name, so a skill costs little until used. Claude Code's docs say to create one "when you keep pasting the same instructions, checklist, or multi-step procedure into chat," or when part of CLAUDE.md "has grown into a procedure rather than a fact." - Slash command: A prompt you trigger by typing
/name. In Claude Code, custom commands have been merged into skills, so a skill is how you make one now. Older command files still work.
Things that reach outward
- MCP (Model Context Protocol): An open-source standard for connecting AI applications to external systems. The project's own analogy is a USB-C port: one standard plug instead of a custom cable for every service.
- MCP server: A program that exposes tools (and sometimes data and prompts) over MCP. It can run on your machine or be hosted remotely.
- Connector: Anthropic's name, in the Claude apps, for a link that lets Claude "access your apps and services, retrieve your data, and take actions" in them. A custom connector is a remote MCP server. Claude inherits your permissions in the connected service, which cuts both ways: it can do what you can do there.
Things that delegate or enforce
- : A helper that runs in its own with its own system prompt and tool access, and returns only a summary to the main conversation. Claude Code's docs give the reasons to use one: preserve context, enforce constraints by limiting tools, reuse configurations, specialize behavior and control cost.
- : A command (or HTTP call, or prompt) that the harness runs automatically at a point in the agent's lifecycle, such as before or after a tool call. A hook that blocks an action does so every time, because the harness runs it, not the model. The docs put it this way: hooks give "deterministic control: certain actions always happen rather than relying on the LLM to choose to run them."
- Plugin: A directory that bundles skills, subagents, hooks and MCP servers so you can install and share them as one unit.
- Sandbox and permissions: Limits on what the agent can touch, set by the harness. Instructions ask; permissions and sandboxes decide.
Decisions you make (not the agent)#
Your call, not the agent's
| What's happening | Sensible default | Choose otherwise when… |
|---|---|---|
| One-off task | Write a better prompt | The same prompt keeps getting pasted |
| It lacks a fact it needs every session (build command, naming rule, folder layout) | Add one line to the project file | The file is past about 200 lines: move procedures out |
| You keep pasting the same checklist or multi-step procedure | Make it a skill | It is a fact, not a procedure: keep it in the project file |
| A side task floods the conversation with output you won't reread (searching a big codebase, reviewing a large diff) | Run it in a subagent | The result needs your back-and-forth: stay in the main conversation |
A rule must hold every time (don't edit applied migrations, don't touch .env) | A hook or a permission rule | A reminder is enough: the project file is fine |
| It needs live data or actions in another system (tickets, database, calendar) | Connect that one service, read-only first | A one-time export or a CLI the agent can run does the job |
| You want the same setup in every project or for a team | Package it as a plugin | A single skill or server works alone: install just that |
Read the table from the top and stop at the first row that fits. Each row down costs more context, access or upkeep than the one above.
What good output looks like#
- When you ask "which of these should I use?", the agent proposes the lightest option first and says what it costs
- A skill's description says when to use it, not just what it is
- A project file reads like a short list of facts, not an essay
- A new server or plugin comes with a plain statement of what it can read and change
- Anything that "must always happen" is enforced by the system, and the agent can tell you how you'd test it
Red flags#
- The agent proposes a plugin or MCP server for a one-line fix → ask what a project-file line or a skill would cost instead.
- A rule is written in capital letters in the project file → project files are context, not enforcement. Claude Code's docs say they "aren't enforced configuration" and point to hooks or managed settings for hard blocks.
- A hook is trusted as a complete wall → the docs warn Claude can still change protected files with shell commands. Back a hook with permissions and review.
- A connector or server you haven't read → Anthropic's help center warns that custom connectors reach services it hasn't verified and that malicious servers "may include hidden instructions." Claude Code's docs add that servers which fetch external content can expose you to prompt injection. See Security of agentic workflows.
- Everything installed "just in case" → an enabled plugin loads every session, its skill and agent descriptions occupy context on every turn, and "what the plugin runs, it runs as you."
- "Allow always" clicked on something you don't understand → Anthropic's guidance is to use it only for a server and tool you trust to run unsupervised.
Worked example#
Task: the agent keeps editing migration files that have already been applied, and you've told it not to.
You add "NEVER edit existing migrations!!!" to the project file. It works for two sessions and then fails on a long session, after the agent has read a lot of other material.
The wrong turn: adding louder text to the project file. That file is context the model weighs, not a rule the system applies, so there is no guarantee. The next step up, a plugin or an MCP server "to guard migrations," is far more machinery than the problem needs.
What a good result contains: a hook that runs before any file-edit tool call, checks whether the path is in the migrations folder and whether that migration is already applied, and blocks the call with a message saying why. Anthropic's hooks guide says exit code 2 blocks the action. The project file keeps one calm line explaining the convention so the agent doesn't walk into the block repeatedly.
How review catches it: don't trust the description. Ask the agent to try editing an applied migration and watch the block fire. Then ask it to try the same change through a shell command, because a hook on edit tools may not cover that path. If it gets through, add a permission rule or a second check.
Sample prompts#
Weak vs strong#
Set up skills and agents and MCP for this project so you work better.
Why it fails: It names features instead of a problem, so the agent installs whatever it knows about. You get more context cost, more access and no evidence anything improved.
Goal: stop you from editing database migrations that are already applied. Context: Next.js, TypeScript, Postgres with Drizzle. Applied migrations live in drizzle/ and are listed in the migrations table. Process: first list the options, from lightest to heaviest (a line in the project file, a permission rule, a hook, a skill, a plugin). For each, say what it enforces, what it costs in context, and how it could be bypassed. Recommend the lightest one that can actually enforce the rule. Constraints: do not add MCP servers or plugins. Do not change files until I approve the recommendation. Verify: after I approve, implement it, then try to edit an applied migration both with the edit tool and with a shell command, and show me what happened each time.
Why it works: It states the problem, asks for options ranked by weight, and demands a test of the enforcement rather than a claim.
What changed
- Goal is a behavior to stop, not a feature to install
- Options first, lightest to heaviest, with costs and bypasses
- Non-goals rule out servers and plugins up front
- Verification tries to break the rule
Which feature fits?#
I keep running into this: <describe the problem in one or two sentences, e.g. "the agent forgets our commit message format">. Which is the lightest fix: a better prompt, a line in the project file, a skill, a subagent, a hook or permission rule, a connector or MCP server, or a plugin? Rank the plausible options from lightest to heaviest. For each, say what it costs (context, access, upkeep) and whether it enforces the rule or only asks. Recommend one and say what would make you pick a heavier one.
Why it works: It forces a comparison on cost and enforcement instead of reaching for the newest feature.
Audit what is already installed#
List every project file, skill, subagent, hook, MCP server, connector and plugin active in this session. For each, tell me: what it can read, what it can change, whether it reaches the network, and roughly how much context it uses on every turn. Then tell me which ones this repo does not need and could be turned off.
Why it works: It makes the hidden costs visible so you can remove things, which is usually the better fix.
Check a new connector before adding it#
I'm considering connecting <service or server name>. Before I do, tell me: what it can read and change in my account, who maintains it, whether it runs on my machine or remotely, and what would happen if it returned instructions hidden in its data. Suggest the narrowest permissions and a read-only first trial. Say clearly what you could not verify.
Why it works: It asks for a trust assessment and honest gaps, matching the guidance to connect only what you trust and need.
Check your understanding#
Check your understanding
Checklist#
- I can define agent, harness, tool, skill, subagent, hook, MCP, connector and plugin in one sentence each
- For my current annoyance, I picked the lightest fix, not the newest feature
- Anything that must always happen is enforced by a hook or permission, not by a request
- Every connector, server and plugin is one I've read or trust
- My project file is short enough that I would still read it
- I know what is installed and can turn it off
Go deeper#
- Skills (Claude Code docs): what a skill is, where it lives, and when to write one
- Create custom subagents (Claude Code docs): own context, tool limits and the reasons to delegate
- Hooks guide (Claude Code docs): lifecycle events and deterministic control
- How Claude remembers your project (Claude Code docs): CLAUDE.md locations, size guidance and what is not enforced
- Connect Claude Code to tools via MCP: adding servers and the trust warning
- Plugins (Claude Code docs): bundling skills, agents, hooks and servers
- Use connectors to extend Claude's capabilities: what connectors are and the trust guidance
- Get started with custom connectors using remote MCP: custom connectors, who can add them and the risks
- What is MCP?: the protocol's own definition
- Effective harnesses for long-running agents (Anthropic): where "harness" comes from, published 2025-11-26
- Building effective agents (Anthropic): workflows versus agents, published December 2024
- Agents, tools and MCP and Skill and agent templates: the next level down, with working examples