Skip to content
Guides

AI agent glossary: 36 terms from tokens to least privilege

Plain definitions of 36 terms used with AI agents, from tokens and context windows to worktrees, prompt injection and approval, each linked to its source.

This glossary defines 36 terms you meet when you work with AI agents, in four groups: models and tokens, agents and tools, coding agents and git, and safety and control. Each term has a short definition from the vendor's documentation, a specification or the git manual, and a link to a longer guide where there is one.

Models and tokens

Token

Models read and write text in units called tokens, which are commonly occurring sequences of characters. For English, 1 token is roughly 4 characters or 0.75 words. Prices and limits are counted in tokens.

Context window

The context window is all the text a model can reference when generating a response, including the response itself. It works as the model's working memory. A longer window does not mean better answers: accuracy can fall as the token count grows.

Reasoning tokens

Reasoning models use reasoning tokens in addition to input and output tokens to work through a problem before answering. They take up context window space and are billed as output tokens.

Reasoning effort

A setting that controls how much a model thinks before it answers. Anthropic's effort setting trades thoroughness for token savings, and OpenAI's reasoning effort setting has the same purpose. See when to use each level.

System prompt

Instructions that the application sends with every request, before the user's message. OpenAI describes developer messages as prioritized ahead of user messages, and Anthropic notes that a role set in the system prompt focuses the model's behavior and tone.

Project instructions

Text that a chat tool adds to every conversation in a project, which works like a system prompt for a group of chats. See how to write project instructions for a team.

OpenRouter

A service that gives access to hundreds of AI models through a single API endpoint. One key and one format reach many vendors' models. See what OpenRouter is and when to use it.

Conversation branch

A second path from an earlier message in a chat. You keep the original answer and try a different question or model from the same point. See how to branch an AI conversation.

Agents and tools

Agent

Anthropic defines agents as systems where LLMs dynamically direct their own processes and tool usage, in contrast to workflows, where code paths are predefined.

Tool calling

Also called function calling. It lets a model interface with external systems. The model returns a structured call, and the application, or the vendor for server tools, runs it and sends the result back.

MCP

The Model Context Protocol, a standard for how an AI application connects to servers that provide context and tools. In its architecture, an MCP host creates one MCP client for each MCP server.

MCP server

A program that provides context to MCP clients, whether it runs on your machine or on a remote host. It can expose tools, resources and prompts. See the MCP server security checklist.

Tool annotations

Optional properties in an MCP tool definition that describe how the tool behaves. The specification says that clients must treat annotations as untrusted unless they come from trusted servers, so never use an annotation as your only safety check.

Subagent

A helper that an agent starts for one kind of task. In Claude Code, each runs in its own context window with a custom system prompt, specific tool access and independent permissions, and only a summary returns to the main conversation.

Computer use

A tool that lets a model control a desktop through screenshots, mouse and keyboard actions. Your application runs each action in an environment you control.

Screenshot tokens

Images count toward the context window like text, and image tokens are included in the token budget. An agent that takes a screenshot after every click spends tokens fast. See what screenshots cost computer-use agents.

Browser session

The signed-in state of a browser. Playwright describes reusable authentication state as cookies, local storage and IndexedDB, among other data. Whoever holds it acts as you on that site. See sharing browser logins between agents.

Scheduled prompt

A prompt saved to run by itself at set times, such as a weekly news briefing. It runs with nobody there, so it has to carry its own context. See what to schedule and how to write it.

Routine

A written instruction that an agent runs on a schedule or a trigger, such as reading an inbox every morning. Unlike a scheduled prompt in a chat, a routine can use the agent's tools, so its approval rules matter as much as its schedule.

Cron expression and time zone

A cron expression sets a schedule in five fields: minute, hour, day of month, month and day of week. A schedule also needs a named time zone to mean the same local time all year. See what a cron job does on daylight saving day.

Coding agents and git

Coding agent

An agent that works on software. Claude Code is an agentic coding tool that reads your codebase, edits files and runs commands. Codex is another. See Claude Code and Codex compared.

AGENTS.md

A file that tells coding agents how a project works, such as build steps, tests and conventions. The format's own site calls it a README for AI agents. See AGENTS.md and CLAUDE.md compared.

Worktree

A git repository can have several worktrees. Each one is a working tree plus repository metadata, most of which is shared. They let several agents edit one repository in separate folders. See worktrees for parallel coding agents.

Branch

In git, a branch is a line of development. Your working tree is associated with one branch at a time. Giving each agent its own branch keeps its changes apart until you merge them.

Merge conflict

A conflict happens when both sides changed the same area of a file and git cannot choose between them. Git leaves conflict markers in the file for a person, or an agent, to resolve. See merge conflicts between parallel coding agents.

Branch review

Reading an agent's whole branch against its base before you open a pull request, not only its last message. See how to review an agent's branch.

Hook

In Claude Code, hooks are user-defined actions that run automatically at specific points in its lifecycle, and they can return a decision such as blocking a tool call. They can also tell you when an agent needs you. See how to know when a coding agent needs you.

SSH and tmux

SSH is a program for logging into a remote machine and running commands on it. A tmux session can be detached and continue running in the background, then be reattached, so an agent survives a dropped connection. See keeping agents running over SSH.

Safety and control

Prompt injection

OWASP defines it as input that alters a model's behavior or output in unintended ways. In an indirect attack, the input comes from external sources such as websites or files the agent reads. See prompt injection defenses for AI agents.

Lethal trifecta

Simon Willison's name for an agent that combines access to private data, exposure to untrusted content and the ability to communicate externally. With all three, an attacker can trick the agent into sending your data out. His advice is to avoid combining them.

Excessive agency

OWASP's term for the vulnerability that enables damaging actions to be performed when a model's output is unexpected or manipulated. Its causes are too much functionality, too many permissions and too much autonomy.

Human in the loop

A person who can deny an action before it happens. The MCP specification says there should always be a human in the loop with the ability to deny tool invocations.

Approval

The point where an agent stops and waits for a person to say yes. OWASP recommends human approval for high-impact actions. See which agent actions should wait for a human.

Least privilege

Give a system only the access it needs. OWASP advises you to restrict the model's access privileges to the minimum necessary for its intended operations.

Sandbox

A boundary enforced by the operating system around what an agent's commands can reach. Claude Code's sandbox has filesystem isolation and network isolation as two independent layers, and it covers shell commands only.

Allowlist

A list of what is permitted, with everything else refused. Anthropic recommends limiting an agent's internet access to an allowlist of domains. The same idea applies to who may message an agent: see running an agent in your chat apps.

Tenslo Bot builds on these ideas: each AI teammate has its own computer and works while you are away. It acts without asking by default, and you add approval rules for what you want to review. A run that has read outside text, such as a web page, an email or a webhook, asks before it acts.

Sources

  1. Key concepts, OpenAI API documentation
  2. Context windows, Anthropic
  3. Reasoning models, OpenAI API documentation
  4. Effort, Anthropic
  5. Prompt engineering, OpenAI API documentation
  6. Prompting best practices, Anthropic
  7. Quickstart, OpenRouter documentation
  8. Building effective AI agents, Anthropic
  9. Function calling, OpenAI API documentation
  10. Tool use with Claude, Anthropic
  11. Architecture overview, Model Context Protocol
  12. Tools, Model Context Protocol specification
  13. Create custom subagents, Claude Code docs
  14. Computer use tool, Anthropic
  15. Authentication, Playwright
  16. crontab(5), Linux manual pages
  17. Overview, Claude Code docs
  18. AGENTS.md, agents.md
  19. gitglossary documentation, Git
  20. git-merge documentation, Git
  21. Hooks reference, Claude Code docs
  22. ssh(1), OpenBSD manual pages
  23. tmux(1), OpenBSD manual pages
  24. LLM01:2025 Prompt Injection, OWASP Gen AI Security Project
  25. The lethal trifecta for AI agents: private data, untrusted content, and external communication, Simon Willison's Weblog
  26. LLM06:2025 Excessive Agency, OWASP Gen AI Security Project
  27. Configure the sandboxed Bash tool, Claude Code docs

Share

Teammates that work while you are away.

Tenslo Bot gives each AI teammate its own computer, so it works while you are away. It acts without asking by default.