# AI Coding Dictionary > The vocabulary of AI coding, translated into plain English. 72 terms of coding with AI, in 7 sections, in teaching order. Every term has an English and a Vietnamese text. Tiếng Việt: https://ai9k.vercel.app/llms.txt. Version: beb61a6fb9c7 ## Connect an agent (read-only, no sign-in) - [MCP server](https://ai9k.vercel.app/api/mcp): Streamable HTTP, stateless. Add this address as a remote MCP server. - [HTTP API](https://ai9k.vercel.app/api/v1): The same tools over GET or POST, answering JSON. Example: https://ai9k.vercel.app/api/v1/search?query=context+window - [OpenAPI 3.1](https://ai9k.vercel.app/openapi.json): The description of the HTTP API. - [Markdown of one term](https://ai9k.vercel.app/en/ai.md): Add .md to the address of any term's page. - [Full text](https://ai9k.vercel.app/en/llms-full.txt): Every term in one file. The file is large. - [JSON data](https://ai9k.vercel.app/data/index.json): The list of every term, in both languages. - [Agent skill](https://ai9k.vercel.app/.well-known/agent-skills/index.json): Says when and how to use these tools. - [MCP server card](https://ai9k.vercel.app/.well-known/mcp/server-card.json): Lets a client find the server by itself. - [How to connect](https://ai9k.vercel.app/en/agents): The page for people. ### Tools - [get_overview](https://ai9k.vercel.app/en/agents/mcp#tool-get_overview): Overview of the dictionary - [search](https://ai9k.vercel.app/en/agents/mcp#tool-search): Search the dictionary - [get_term](https://ai9k.vercel.app/en/agents/mcp#tool-get_term): Read one term - [get_section](https://ai9k.vercel.app/en/agents/mcp#tool-get_section): List the terms of a section - [get_related](https://ai9k.vercel.app/en/agents/mcp#tool-get_related): Terms linked to a term - [compare](https://ai9k.vercel.app/en/agents/mcp#tool-compare): Compare terms ### Start here - A question or keywords, and no slug: call search, then get_term with a slug from the results. - The name of a term: call get_term. The English term, its Vietnamese name and its slug all work. - A question of the form "how does X differ from Y": call compare. - To widen an answer: call get_related to follow the links from a term. - Search matches words, not meaning. If the results are no use, search again with the key noun. Pass lang as "vi" or "en". - Cite the url of each term you use. When the user wants to study a term, give learn_url; to see what it connects to, give map_url. ## 1. The Model - [AI](https://ai9k.vercel.app/en/ai): A moving label, not a technology. Points at whatever computers can newly, impressively do — right now, large language models. - [Model](https://ai9k.vercel.app/en/model): The parameters. Stateless — does next-token prediction and nothing else. Cannot do anything agentic on its own. - [Parameters](https://ai9k.vercel.app/en/parameters): The numbers inside a model — often billions — tuned during training. Everything the model knows lives in them. Also called weights. - [Training](https://ai9k.vercel.app/en/training): The process that sets a model's parameters by exposing it to vast amounts of text and adjusting to improve next-token prediction. - [Inference](https://ai9k.vercel.app/en/inference): Running a trained model to generate output — what happens on every model provider request. Parameters stay fixed. - [Effort](https://ai9k.vercel.app/en/effort): A dial for how much reasoning the model does before it answers. More effort spends more output tokens for a better shot at hard problems. - [Token](https://ai9k.vercel.app/en/token): The atomic unit a model reads and writes. Roughly word-sized but not exactly. Context window size, cost, and latency all count tokens. - [Next-token prediction](https://ai9k.vercel.app/en/next-token-prediction): What the model actually does. Samples one next token from the context, appends it, and runs again. Its only mode of operation. - [Non-determinism](https://ai9k.vercel.app/en/non-determinism): The same input can produce different output. A property of how models generate text and how providers serve requests. - [Model provider](https://ai9k.vercel.app/en/model-provider): Whatever serves a model for inference. Usually remote (Anthropic, OpenAI, Google), but can also be local (Ollama, llama.cpp). - [Harness](https://ai9k.vercel.app/en/harness): Everything around the model that turns it into an agent: tools, system prompt, context-window management, permissions, hooks. - [Model provider request](https://ai9k.vercel.app/en/model-provider-request): One round-trip from the harness to the model provider. The harness sends context; the provider returns one response. - [Input tokens](https://ai9k.vercel.app/en/input-tokens): Tokens the harness sends on each model provider request. Billed at a lower rate than output tokens. - [Output tokens](https://ai9k.vercel.app/en/output-tokens): Tokens the model generates back. Billed at a higher rate than input tokens, since they cost more compute to produce. - [Prefix cache](https://ai9k.vercel.app/en/prefix-cache): The provider-side store that lets consecutive requests skip re-processing a shared prefix, billing those tokens at a lower rate. - [Cache tokens](https://ai9k.vercel.app/en/cache-tokens): Input tokens the provider has cached from a previous request via its prefix cache, billed at a much lower rate. ## 2. Sessions, Context Windows & Turns - [Stateless](https://ai9k.vercel.app/en/stateless): Carries no information forward. The model is stateless across requests; an agent is stateless across sessions by default. - [Context](https://ai9k.vercel.app/en/context): The relevant information the agent has access to right now — what the agent knows that's pertinent to the task. - [Context window](https://ai9k.vercel.app/en/context-window): Everything the model sees on each model provider request. Finite, model-specific, the only surface through which the model perceives. - [Stateful](https://ai9k.vercel.app/en/stateful): Carries information forward. Sessions are stateful across turns; agents can be made stateful across sessions via a memory system. - [Agent](https://ai9k.vercel.app/en/agent): A model harnessed with tools, a system prompt, and a context window, that takes turns with a user. The model in motion. - [System prompt](https://ai9k.vercel.app/en/system-prompt): The instructions the harness prepends to every model provider request — the agent's standing brief. Usually stable across a session. - [Session](https://ai9k.vercel.app/en/session): One bounded run of interaction with an agent. Starts empty, accumulates, ends when cleared, closed, or compacted into a fresh session. - [Turn](https://ai9k.vercel.app/en/turn): One user message plus everything the agent does in response, up until it yields back to the user. Contains one or more provider requests. ## 3. Tools & Environment - [Environment](https://ai9k.vercel.app/en/environment): The world the agent acts on — anything outside the harness that the agent perceives via tool results and changes via tool calls. - [Filesystem](https://ai9k.vercel.app/en/filesystem): A tree of files and directories the agent reads from, writes to, and executes within — the default environment for a coding agent. - [Tool](https://ai9k.vercel.app/en/tool): A function the harness exposes for the agent to call — Read, Write, Bash, Search. How an agent perceives and acts on the environment. - [Tool call](https://ai9k.vercel.app/en/tool-call): The model's output naming a tool and its arguments — just structured text. The harness has to read it and execute. - [Tool result](https://ai9k.vercel.app/en/tool-result): What the harness sends back after executing a tool call — file contents, output, or error. The agent's only view of the environment. - [MCP](https://ai9k.vercel.app/en/mcp): A protocol for plugging external tool servers into a harness — how an agent gets tools beyond what the harness ships with. - [Permission request](https://ai9k.vercel.app/en/permission-request): What the harness shows the user before executing a tool call that isn't pre-approved. The mechanism for putting a human in the loop. - [Permission mode](https://ai9k.vercel.app/en/permission-mode): The permission-gating slice of an agent mode — which tool calls trigger a permission request and which run automatically. - [Agent mode](https://ai9k.vercel.app/en/agent-mode): A preset bundling a permission mode with behavioral instructions injected into the system prompt. Can flip mid-session. - [Sandbox](https://ai9k.vercel.app/en/sandbox): An isolated environment the agent runs inside — container, VM, or restricted shell. Limits the blast radius of agent actions. ## 4. Failure Modes - [Sycophancy](https://ai9k.vercel.app/en/sycophancy): Confidently agreeable model output. Caused by training that shaped the model to favor answers humans liked — including agreement. - [Hallucination](https://ai9k.vercel.app/en/hallucination): Confidently-wrong model output. Two flavors: factuality (invented facts) and faithfulness (drift from loaded context). - [Parametric knowledge](https://ai9k.vercel.app/en/parametric-knowledge): What the model knows from training, stored in its parameters. Frozen at training time. Counterpart to contextual knowledge. - [Knowledge cutoff](https://ai9k.vercel.app/en/knowledge-cutoff): The date past which a model has no parametric knowledge. Post-cutoff libraries and APIs are fabrication traps unless docs are loaded. - [Contextual knowledge](https://ai9k.vercel.app/en/contextual-knowledge): Facts the agent can read directly from the context right now. Counterpart to parametric knowledge. - [Attention relationship](https://ai9k.vercel.app/en/attention-relationship): The pairing between two tokens — meaningful pairs influence each other more than unrelated ones. A context of N tokens has ~N² of these. - [Attention budget](https://ai9k.vercel.app/en/attention-budget): Each token has a finite amount of influence to distribute across the rest of the context. Per-token, doesn't grow when context does. - [Attention degradation](https://ai9k.vercel.app/en/attention-degradation): As a session grows, each token's attention budget spreads across more competitors; signal on meaningful relationships shrinks. - [Smart zone](https://ai9k.vercel.app/en/smart-zone): Early in a session the agent is sharp and focused. As the session grows it drifts into a dumb zone: sloppier, forgetful, more mistakes. ## 5. Handoffs - [Clearing](https://ai9k.vercel.app/en/clearing): Ending the current session and starting a fresh one. The next message begins with an empty session and an empty context window. - [Handoff](https://ai9k.vercel.app/en/handoff): Transferring agent context from one session to another, with no return path. Carry mechanism varies — artifact, compaction, others. - [Primary source](https://ai9k.vercel.app/en/primary-source): The thing itself — code, transcripts, raw data. Complete and authoritative, but expensive to load into context. - [Secondary source](https://ai9k.vercel.app/en/secondary-source): An account of a primary source, one step removed — summaries, docs, compaction summaries. Cheap to load, lossy by construction. - [Handoff artifact](https://ai9k.vercel.app/en/handoff-artifact): A document used as the carry mechanism for a handoff — written by one session to be read by another. - [Spec](https://ai9k.vercel.app/en/spec): A handoff artifact describing a multi-session piece of work — what's being built, not how each session does its share. Made of tickets. - [Ticket](https://ai9k.vercel.app/en/ticket): A handoff artifact scoping one session of work. Stands alone or hangs off a spec. Can block or be blocked by sibling tickets. - [Compaction](https://ai9k.vercel.app/en/compaction): A handoff done in-memory: the previous session's history is summarised and seeds a fresh session. Lossy — detail traded for headroom. - [Autocompact](https://ai9k.vercel.app/en/autocompact): Compaction triggered automatically by the harness when the context window approaches full. ## 6. Memory and Steering - [Memory system](https://ai9k.vercel.app/en/memory-system): A system that attempts to make an agent stateful across sessions by persisting to the environment and reloading at session start. - [AGENTS.md](https://ai9k.vercel.app/en/agentsmd): A file in the environment that the harness loads into the context window at session start — the project's standing brief to the agent. - [Progressive disclosure](https://ai9k.vercel.app/en/progressive-disclosure): Loading only the context an agent needs right now, with context pointers to the rest. Borrowed from UI design. - [Context pointer](https://ai9k.vercel.app/en/context-pointer): A mention in one document that points to another, so the agent can pull it into context only when the task calls for it. - [Skill](https://ai9k.vercel.app/en/skill): A teachable capability bundled as a unit — kept out of the context window until a context pointer pulls it in for the task at hand. - [Subagent](https://ai9k.vercel.app/en/subagent): An agent spawned by another agent via a tool call. Runs in its own session, reports a single tool result. Cannot spawn further subagents. - [Home Repo](https://ai9k.vercel.app/en/home-repo): One repo that holds your skills, AGENTS.md and shared docs, and points at your other repos. You run your agent from it. ## 7. Patterns of Work - [Human-in-the-loop](https://ai9k.vercel.app/en/human-in-the-loop): A working pattern where one or more humans pair with the agent during a session — reviewing, redirecting, or collaborating in real time. - [AFK](https://ai9k.vercel.app/en/afk): A working pattern where the user kicks off a session and leaves the agent to run unattended (away from keyboard). - [Automated check](https://ai9k.vercel.app/en/automated-check): A deterministic verification that runs in the environment — tests, type checks, lints, build, pre-commit hooks. Pass/fail, no judgement. - [Automated review](https://ai9k.vercel.app/en/automated-review): An agent reviewing another agent's work, often with a different model or system prompt. Non-deterministic: it forms a judgement. - [Human review](https://ai9k.vercel.app/en/human-review): The user reading the code the agent produced and forming a judgement on it. Reading the diff counts; reading the summary doesn't. - [Vibe coding](https://ai9k.vercel.app/en/vibe-coding): A working pattern where the user accepts the agent's code without human review. The diff is treated as opaque. - [Design concept](https://ai9k.vercel.app/en/design-concept): The shared understanding of what's being built, held in common between user and agent but separate from any asset. - [Grilling](https://ai9k.vercel.app/en/grilling): A technique for developing a design concept: the agent interviews the user Socratically, one decision at a time. - [Prototyping](https://ai9k.vercel.app/en/prototyping): Having the agent build a quick, rough version when conversation is too low-fidelity and you need a real artifact to talk about. - [DX](https://ai9k.vercel.app/en/dx): Developer experience: how easy a codebase and its toolchain make it for humans to do good work — docs, feedback speed, errors. - [AX](https://ai9k.vercel.app/en/ax): Agent experience: how well the environment is set up for an agent to do good work — checks, architecture, and free context. - [Software factory](https://ai9k.vercel.app/en/software-factory): A system of work where triggers, not humans, start agent sessions, so more work runs AFK and HITL time is saved for what needs it. - [Dark factory](https://ai9k.vercel.app/en/dark-factory): A codebase, or part of one, where a software factory writes the code and no human ever reviews it.