llama-cpp breaking changes
llama-cpp 1.0.0 is its newest release with breaking changes, 12 of them. The first: Removed --defrag-thold. Every breaking API change we have recorded in llama-cpp on vcpkg: 21 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 9030. Source repository
- From 0.9.0 to 1.0.0: 12 breaking changes in 1 version.
- From 0.6.0 to 1.0.0: 14 breaking changes in 2 versions.
llama-cpp 1.0.0 breaking changes
- Removed
--defrag-thold
The --defrag-thold flag is removed. github.com - Removed
clip.h
clip.h is removed and its code is consolidated into mtmd; code including clip.h must switch to mtmd. github.com - Removed
common_get_path_from_env
The common_get_path_from_env() helper is deleted. github.com - Removed
defrag_thold
The defrag_thold option and --defrag-thold flag are removed. github.com - Removed
llama_set_warmup
llama_set_warmup is removed from the public llama.h API; code calling it must be updated or dropped. github.com - Removed
u8path
u8path() is dropped; use generic_string() instead. github.com - Renamed
llama_set_embd_state_src
llama_set_embd_state_src is renamed to llama_set_ctx_state_src. github.com - Behavior changed
--cors-origins
llama-server now restricts CORS origins and protects against DNS rebinding; clients relying on previous behavior may be blocked. github.com - Behavior changed
--sleep-idle-seconds
The server now stays awake while a request uses its state when --sleep-idle-seconds is set. github.com - Behavior changed
HF_TOKEN
The HF_TOKEN is now restricted to huggingface.co hosts, so it is no longer sent elsewhere. github.com - Behavior changed
llama_context_params
New moe_cache_size and moe_cache_cpu_share fields are added to llama_context_params, which can affect code that builds this struct positionally. github.com - Behavior changed
x-tool-runtime
When --tools-runtime is specified, the server ignores the x-tool-runtime header. github.com
llama-cpp 0.9.0 breaking changes
- Removed
fs_path_to_utf8
The fs_path_to_utf8 helper was deleted from common. Code that calls it must stop using it. github.com - Behavior changed
The GGUF split merge tool now refuses shards that do not match instead of merging them. Scripts that relied on merging mismatched shards will now fail. github.com
llama-cpp 0.6.0 breaking changes
- Removed
fs_open_ifstream
The common fs_open_ifstream() helper was removed; use u8path() instead. github.com - Behavior changed
The vocabulary now honors BOS/EOS settings for PLaMo-2 and PLaMo-3, which changes the tokens produced for those models. github.com - Behavior changed
The server now rejects requests that use partial media truncation. Clients sending such requests will get an error. github.com - Behavior changed
Session formats moved to LLAMA_SESSION_VERSION 11 and LLAMA_STATE_SEQ_VERSION 4, so state saved by earlier versions may not load. github.com - Behavior changed
string_split
string_split<T> now throws an exception on invalid values instead of its previous behavior, so callers must handle the exception. github.com - Behavior changed
v1.embeddings
The /v1/embeddings endpoint now returns HTTP 400 for invalid embedding requests. Clients that expected another response for those requests must handle the 400 status. github.com - Signature changed
mtmd_get_memory_usage
mtmd_get_memory_usage() now returns an mtmd_memory_usage struct with image_max_tokens and use_non_causal fields. Code that reads its old return value must be updated to read those fields. github.com
Related packages
- github.com/ggml-org/llama.cpp on Swift Package Index
- gguf on PyPI
- llama.cpp on Homebrew
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.