Glossary
Terms that come up across the documentation. Each links to the page that covers it in detail.
Platform
Section titled “Platform”Waibee Router is a gateway to language models. Requests in OpenAI or Anthropic format go to one address, and one key opens every model in the catalog. See the Router overview.
Waibee Code is our coding agent. It runs in the terminal and in a local web interface, connects to IDEs, and runs from scripts. It reads and edits files and runs commands. It is written in Rust and gets its models through the router. See the Code overview.
Provider is the company that trained and serves a model: Anthropic, OpenAI, Google, and others. The provider comes first in a model ID: anthropic/claude-sonnet-4.6.
Catalog is the list of models available to your key, with each model’s context window, prices, and capabilities. GET /v1/models returns it, and it changes over time, so take model IDs from it rather than hardcoding them for good. See Models.
Tokens and context
Section titled “Tokens and context”Token is the unit a model measures text in: anywhere from a single character to a whole word. How text splits into tokens depends on the model, and Russian text usually takes more tokens than English text of the same length. Prices and limits are counted in tokens, not characters. See Tokens and usage.
Context window (context_length in the catalog) is the most tokens a model accepts in one request. Everything counts toward it: the system instruction, the whole conversation history, tool definitions, and attached files. By default, a request that does not fit is rejected with 400 and the code provider_context_length_exceeded. On Responses, truncation: "auto" allows truncation if the model supports it.
Output limit (max_completion_tokens in the catalog, the max_tokens field in a request) is the most tokens in one response. When a model hits it, the response stops mid-sentence and finish_reason comes back as length. Structured outputs show it most: the JSON is left unclosed.
Usage is the block of counters in a response: how many tokens went to input, how many to output, and how many were read from the cache. It is what the cost of a request is calculated from, and it shows whether caching works.
Compaction shrinks the conversation history when the context window fills up: older turns are replaced with a summary, and recent messages stay. The agent does it on its own; to run it by hand, use /compact. See Context window.
Models
Section titled “Models”Model ID has the form <provider>/<model>, for example anthropic/claude-sonnet-4.6. A name without the provider is accepted by /v1/messages, because that is how the Anthropic SDKs name models, and by /v1/systemone, where the TypeSafe SDK names them that way. See ID format.
Model family is one provider’s lineup, with tiers inside it: a flagship for hard tasks, a mid-size model for everyday work, and a fast one for mechanical work. Choosing a tier is more practical than choosing a specific version: versions change often. See Choosing a model.
Autorouting is the waibee/auto mode: you pass this ID instead of a specific model, and the router picks one that suits the request. The model field in the response holds the model that actually ran, so log it. See Autorouting.
Reasoning model thinks a task through before it starts answering. This reasoning does not appear in the response text, but it takes time and is billed as output. On hard logic it noticeably improves accuracy; on simple tasks it only makes the request more expensive.
Effort (reasoning_effort on Chat Completions, output_config.effort on Messages, reasoning.effort on Responses, /effort in the agent) is how much effort goes into reasoning. The set of levels, including max, depends on the model. Raise it for a specific hard task instead of keeping it high all the time. See Reasoning.
Working with the API
Section titled “Working with the API”Chat Completions is the POST /v1/chat/completions endpoint in OpenAI format. It is the most common option: almost every SDK and tool is built for it.
Messages is the POST /v1/messages endpoint in Anthropic format. The Anthropic SDKs and Claude Code use it.
Responses is the POST /v1/responses endpoint in OpenAI Responses format. Codex CLI and the OpenAI Agents SDK speak it, and its response is built from items rather than messages: text, a tool call, reasoning. See Responses API.
Prompt is what you send to a model: instructions, the conversation history, and data. System prompt is a separate instruction about the role and rules of behavior. It comes before the conversation and usually stays the same between requests, which makes it worth caching.
Message role tells the model who said something: user is the person, assistant is the model itself, system is an instruction, tool is the result of a tool call. The router keeps no history: every request is sent in full, with all the previous messages.
Streaming delivers a response in parts as it is generated, over Server-Sent Events. Use it where a person waits for the answer on screen: the first words appear right away instead of after the whole text is generated. Token counters arrive at the end of the stream. See Streaming.
Tool calling (function calling) is how you give a model access to your code. You describe functions, the model returns its intent to call one of them with arguments, you run it, and you send the result in the next request. The model itself runs nothing and never reaches into your system. The exception is web search, which the router runs. See Tool calling.
Structured outputs is a response that follows a JSON Schema instead of free text. It saves you from parsing text with regular expressions, but it guarantees only the shape: the model fills in required fields even where there is no data, so checks on meaning stay on your side. See Structured outputs.
Prompt caching reuses the unchanged beginning of a request. Repeat requests with the same beginning read it from the cache, cheaper and faster. It works only when the prefix matches exactly, so everything that changes goes after the cached block. See Prompt caching.
finish_reason tells you why the model stopped: stop is a finished response, tool_calls is a request to call a tool, and length means the response hit the output limit. On Messages the same field is called stop_reason, with the values end_turn, tool_use, and max_tokens. Always check it: without that, a cut-off response looks like a normal one.
DLP (data loss prevention) checks a request for sensitive data: secrets and personal data. It can warn, mask what it finds, or block the whole request (403, code dlp_violation). Turn it on for a request with the plugins.dlp field. If the API key has a policy from the group administrator, the check runs without that field too: the policy sets the minimum strictness, and the request’s config can only raise it. See Plugins.
TUI is the agent’s interactive interface in the terminal: the conversation, slash commands, suggestions, and a panel that shows progress.
Headless runs the agent as a single command with no interface: waibee run "...". A prompt goes in and the result comes out on stdout, so you can call the agent from scripts, git hooks, CI, and other software. See Headless mode.
Turn is one cycle of work: a request to the model, tool calls, a reply. A turn ends when control comes back to you.
Goal mode is a completion condition you set with /goal. The agent keeps working turn after turn until the goal is met or a limit runs out, and after each turn a separate model checks whether the goal is met. It is useful for long work with a checkable result, such as “the tests and the linter pass”. See Goal mode.
Permission mode (approval mode) decides which actions the agent takes right away and which it asks about. There are four modes, from default to bypassPermissions, where the usual approvals are off. A hook or a command the agent cannot parse can still require approval. You can switch modes as you go. In headless runs with no --mode flag and no setting in settings.json, the mode is trust, and actions that need approval are rejected. See Permissions.
Subagent is a full agent that the main one starts for a narrow task in a separate context. By default it runs on the same model as the main agent, and the subagent’s definition can set a different one. It keeps the main conversation clean and lets routine work run on a cheaper model. See Subagents.
Skill is a reusable instruction in its own file that the agent loads when it needs it. Project knowledge then lives in the repository rather than in someone’s head or a one-off prompt. See Skills and commands.
MCP (Model Context Protocol) is an open protocol for connecting external tools: databases, trackers, a browser, internal services. The agent gets their tools the same way as its built-in ones. See MCP.
ACP (Agent Client Protocol) is the protocol the agent uses to talk to clients: editors such as Zed and JetBrains, and terminal clients. It is why the same agent works in different interfaces. See IDEs (ACP).
Hook is your script that the agent runs on an event: before a tool call, after a file edit, at the end of a session. Project rules then apply automatically, without asking for them in a prompt. See Hooks.
LSP (Language Server Protocol) is how an IDE understands code: precise go-to-definition, a list of references, compiler errors. The agent uses the same language servers, so it asks them instead of guessing from the text. See Language servers.