Inkling 2 Mini in Any Coding Agent: The Window Is the Cost
Thinking Machines released Inkling 2 Mini on November 20, 2026 under Apache 2.0. The vendor's SWE-bench Verified score of 79.2% is between Sonnet 4.5 (77.2%) and Opus 4.5 (80.9%), Anthropic's best of one year ago. Unsloth's 2-bit build of about 9 GB loads on a 16 GB laptop. That score is for the vendor's full checkpoint, and no source scores the 2-bit build. Many people now say that an open model on a laptop means free coding agents. I disagree with half of that. The tokens are free. The context window is the cost, and the harness uses a share of it before I type a word.
On a 64K window, the harness you choose decides how much room the model has for your code.
The token counts are from my capture of November 27, 2026. The window is 65,536 tokens, the size of the Tinker free tier, and a local server can hold the same size. Codex CLI needs a local server, because Tinker has no Responses route. The dark slab is the system text, the blue slab is the tool definitions, and the green slab is the user message. Slab heights are to scale against the window, except the user message, which is drawn thicker so that it shows. The motion is illustrative, and no model ran.
Pick the server and the window you gave it. Every config block and every walkthrough below changes to match. Your browser keeps the choice.
Server
Context window, tokens
Each harness I measured sent 1,700 or more tokens for a five-word prompt
You type one line into Claude Code, and the request that leaves your machine is 48 kilobytes. A harness sends its system prompt and the full definition of every tool with each request. The model reads all of that text before it reads your message.
On November 27, 2026 I measured that fixed part on an Apple silicon Mac. I wrote a local stub server that answers the Anthropic Messages, OpenAI Chat Completions and OpenAI Responses formats and records each request. No model weights ran. Each harness ran once, with a clean home directory and an empty git repository that held one file. The prompt was "Reply with the word ok".
I counted tokens with Inkling 2 Mini's own tokenizer.json from Hugging Face, which has a vocabulary of 200,058. The count covers the system text, the tool definitions as compact JSON, and the user message. A real server's chat template adds a few tokens that I did not count. One run per harness gives no noise band.
| Harness (version) | Format it sent | Tools | System tokens | Tool tokens | Total tokens | Body bytes |
|---|---|---|---|---|---|---|
| pi 0.84.4 | Chat Completions | 4 | 754 | 947 | 1,707 | 5,958 |
| OpenCode 1.17.10 | Chat Completions | 10 | 2,361 | 6,007 | 8,376 | 31,022 |
| Codex CLI 0.150.1 | Responses | 10 | 5,842 | 5,320 | 11,407 | 45,219 |
| Claude Code 2.1.332 | Anthropic Messages | 12 | 3,863 | 9,016 | 13,178 | 48,466 |
The free tier of this model has a 65,536-token window. Of that window, pi used 1,707 tokens (2.6%), OpenCode 8,376 (12.8%), Codex 11,407 (17.4%) and Claude Code 13,178 (20.1%). On 32,768 tokens the four requests take 5.2%, 25.6%, 34.8% and 40.2%.
A clean home directory is the best case. I ran the test again in my own home directory, with my skills and instruction files in place. OpenCode read ~/.claude/CLAUDE.md, a file I wrote for a different harness, and listed my installed skills. Its first request was 53,838 tokens in 191,896 bytes, with 47,819 tokens in the system part. That is 82% of the free window, for a prompt of five words.
In the same test, pi sent 13,568 tokens (49,315 bytes) with my skills list. Codex sent 17,206 tokens (64,349 bytes) and printed the line below. I did not measure Claude Code with my real settings.
Skill descriptions were shortened to fit the skills context budget.
Pick a window, a harness and a setup. The panel lists what the first request held in my capture. The bar places it in the window, and the squares count the 4,000-token turns that still fit.
Context window, tokens
Harness
Setup
Turns of 4,000 tokens that fit after it
Counts come from Inkling 2 Mini's tokenizer.json over the system text, the tool definitions as compact JSON, and the user message. Each harness ran once against a request-capture stub, and no model ran. A row marked as a remainder is the total minus the rows above it. The 4,000 tokens per turn is a value I chose as an example. The turn count ignores the output reserve and any compaction threshold.
OpenCode also sent a second request of 2,471 bytes with no tools, to write a session title.
- 1Pick a free route
- 2Serve the model with a 64,000-token window
- 3Match the harness to an API format
- 4Set the model, the window and the output cap
- 5Cap the turns and use a sandbox
Two routes cost nothing, and each one limits the window
You want to pay nothing, so you need to know what each free route limits.
The launch post and the model card describe a Mixture-of-Experts model with 26.4B total parameters and 3.4B active per token. The middle 12 of its 24 layers run three times, so each token gets 48 layer applications and 5.4B effective parameters. The context is "up to 1M tokens".
The vendor's own score table names a harness per row. Terminal Bench v2.1 is 71.6% in pi v0.83.0, against 73.0% for Qwen3.8-27B in that row. The vendor also names two weak rows behind that model: MultiChallenge at 50.0% and ComplexConstraints v1.1 at 33.4%. The table prints no noise band for these rows.
Route A: the weights on your own machine
The weights are free under Apache 2.0. One NVFP4 checkpoint file holds them, at 19,526,019,168 bytes, or about 19.5 GB. The card supports one NVIDIA DGX Spark and Apple silicon with 32 GB or more. For other GPUs it says "with 32GB or more of VRAM recommended". You pay for this route in memory and speed.
Route B: the Tinker free tier
Tinker is Thinking Machines' own API. The tinkerapi account announced the free tier on November 25, 2026 at 00:09 UTC. It said: "all Tinker users with a positive balance can now train and sample on Inkling 2 Mini for free (subject to rate limits)". The pricing page lists the model ID thinkingmachines/Inkling-2-Mini:peft:65536:free with every price at $0.00.
The same page states the limits. "Free training and sampling have a 64K context limit and are subject to rate limits. Requests may be throttled when those limits are reached." It adds: "Prepaid accounts must have a positive balance to use the free tier." On November 27 the page gave no numeric rate limit and no end date.
Tinker serves two compatible endpoints, both marked Beta. The Anthropic-compatible one accepts x-api-key or Authorization: Bearer, and the client appends /v1/messages. It ignores cache_control, so every turn sends the harness's fixed tokens again, and they count against the rate limit. The OpenAI-compatible one serves /chat/completions and /completions only, with no response_format.
One thing is not verified, by me or by the docs: that these endpoints accept the :free ID. The OpenAI page says any Tinker ID from the pricing table works, and the Anthropic page shows only bare names. Send one request with curl first. I built this command from the docs and did not run it.
curl https://tinker.thinkingmachines.dev/services/tinker-prod/anthropic/api/v1/messages \
-H "x-api-key: $TINKER_API_KEY" \
-H "content-type: application/json" \
-d '{"model":"thinkingmachines/Inkling-2-Mini:peft:65536:free","max_tokens":16,"messages":[{"role":"user","content":"Reply with the word ok"}]}'
When the free window is too small, the paid routes are the fallback. Tinker charges $0.15 per million input tokens, $0.015 cached and $0.50 output. On November 27, OpenRouter's public models API listed six paid endpoints from four providers and no free variant. Its DeepInfra endpoint did not list tools in its supported parameters, so an agent routed there cannot call tools.
A 2-bit build loads on a 16 GB laptop, in an 8K window
You have a laptop with 16 GB of memory, and you want to know how good a model of that size can be. The vendor's score table of November 20, 2026 gives Inkling 2 Mini 79.2% on SWE-bench Verified, in a row marked "bash only". That score is for the vendor's full checkpoint, and the 2-bit build has no score. Anthropic reported 77.2% for Claude Sonnet 4.5 on September 29, 2025, with "a simple scaffold with two tools" and an average of 10 trials. It reported 80.9% for Claude Opus 4.5 on November 24, 2025, in the table from its system card. That release is one year and three days older than this page. So the vendor's score is between Anthropic's two best scores of one year ago. Each lab used its own scaffold, so a gap of a few points does not rank these models.
Today the gap is wide: on Terminal-Bench 4.0, Claude Opus 5.5 scores 66.4% and Claude Sonnet 5.5 70.6%, against 5.6% for Inkling 2 Mini. The first two numbers are Anthropic's, from September 22 and September 28, 2026. The third is the vendor's, with mini-swe-agent v2.4.6, which is a different harness.
Thinking Machines supports Apple silicon from 32 GB only. The 16 GB route comes from Unsloth's guide, which I read on November 27, 2026. It says: "Run on 16GB RAM or 24GB RAM for full precision." The table holds Unsloth's numbers for three of its GGUF files. The last column is the share of positions where a file picks the same top token as the 8-bit reference.
| Build | File size | Memory Unsloth states | Same top token |
|---|---|---|---|
UD-IQ2_XXS | 8.49 GB | 10 to 11 GB (2-bit) | 90.6% |
UD-Q2_K_XL | 9.14 GB | 10 to 11 GB (2-bit) | 91.6% |
UD-Q4_K_XL | 17.63 GB | 17 to 18 GB (4-bit) | 98.0% |
For 3-bit files the guide states 13 to 15 GB. The 79.2% is the vendor's score for its own checkpoint, and none of these sources gives a SWE-bench score for a 2-bit file. In Unsloth's numbers, UD-Q2_K_XL picks a different top token at 8.4% of positions.
One community report shows the smallest file in use, and I did not reproduce it. On November 21, 2026, Hack-Log ran UD-IQ2_XXS on a 16 GB M4 Mac mini with Unsloth's llama.cpp build. All layers were on the GPU, and the context was 8,192 tokens. The report gives an average of 18.3 tokens per second, and 8 of 8 short Python function tasks were right. Its author said that the tasks were easy.
For a 16 GB GPU, one community build gives a second set of numbers, and they are the maker's own. Its card says that a 15.1 GB file holds a 65,536-token context on a 16 GB RTX 5060 Ti. The card reports 55 tokens per second and 96.9% top-1 agreement.
The context of 8,192 tokens on that Mac connects the report to my measurements. In my capture, pi's first request was 1,707 tokens, which leaves 6,485 tokens in that window. OpenCode's 8,376 tokens exceed the window by 184. Codex CLI's 11,407 tokens exceed it by 3,215, and Claude Code's 13,178 by 4,986. So in a window of that size, the harness decides if the first request fits at all. Fig. 1 has 8,192 as a window choice. My setup has the same choice, and every config block then uses 8,192.
llama serve -hf unsloth/Inkling-2-Mini-GGUF:UD-Q2_K_XL --ctx-size 8192
I built this command from the docs and did not run it. Unsloth's main files need a llama.cpp build after PR #32704, which merged on November 21, 2026.
A local server needs its window set to 64,000 tokens
On a 32 GB Mac, Ollama's default context is 32k, and Claude Code's first request alone takes about 40% of it. Ollama picks the default from memory: 4k under 24 GiB, 32k from 24 to 48 GiB, and 256k from 48 GiB up. Its context docs say that "agents, and coding tools should be set to at least 64000 tokens". The commands in this section come from each project's docs, and I did not run them. They are fixed examples at one window size. The My setup panel near the top gives the same commands for the window that you pick.
Ollama
OLLAMA_CONTEXT_LENGTH=64000 ollama serve
ollama run inkling-2-mini
ollama ps
Run each line in its own terminal. The first line starts the server with the variable, and the second line opens a chat session that keeps its terminal. Run ollama ps in a third terminal while the model is loaded, and it shows the context. If the Ollama app is already running, set the context length in its settings and skip the first line.
Ollama v0.40.17 added the model on November 20, 2026, as a download of 18 to 20 GB. That release supports the model on Apple silicon only.
Ollama serves /v1/chat/completions, /v1/responses (stateless only) and Anthropic /v1/messages on port 11434. Its Anthropic layer does not support /v1/messages/count_tokens, tool_choice, or prompt caching. Issue #19819, opened November 21, reports a peak of 42.3 GiB on a 48 GB M4 Max. It says that past about 64k "the MLX prefix cache is dropped completely between turns, so every request re-prefills the whole conversation".
Ollama also has a launcher: ollama launch claude --model inkling-2-mini. For Claude Code, the launcher source sets the nine variables from the Claude Code block below, plus CLAUDE_CODE_AUTO_COMPACT_WINDOW. It takes the context window from the loaded model.
llama.cpp
llama serve -hf ggml-org/Inkling-2-Mini-GGUF:NVFP4 --ctx-size 65536
llama.cpp runs on any operating system. Support arrived in release b12600 on November 20, and v1.1.0 on November 26 added the Inkling tool-call parser. The GGUF repository holds NVFP4 and IQ4_NL at 17.6 GB each, and Q8_0 at 27.8 GB. The server exposes all three API formats, plus /v1/messages/count_tokens. Tool use needs --jinja, which is on by default. The llama serve examples use port 9931, and the older llama-server defaults to 8080.
Two issues from the first week are open. Issue #32710 reports a perplexity of nan on CUDA from b12600 to b12613. Issue #32707 reports slow IQ4_NL prefill and a crash on an RTX 5090.
LM Studio and GPU servers
LM Studio's model page says "you need at least 18 GB of RAM". Its server on port 1234 serves OpenAI endpoints, with /v1/responses among them, and Anthropic /v1/messages. On a GPU server, the vLLM recipe gives the command below.
vllm serve thinkingmachines/Inkling-2-Mini --reasoning-parser inkling --tool-call-parser inkling --enable-auto-tool-choice
What the fixed tokens cost in seconds
I have no measured speed for this model. One Hacker News comment, from about November 21, 2026, gives a community number with no runtime named. It reported 700 tokens per second of prefill and 52 of generation on an RTX 5090. At that rate, Claude Code's 13,178 fixed tokens take about 19 seconds on a cold cache, and pi's 1,707 take about 2.4. That is my arithmetic on one unverified number. Server prompt caching removes the wait after the first turn, while the prefix stays the same.
The API format decides which server a harness can use
Codex CLI asks for /v1/responses, and Tinker's OpenAI endpoint has no such route, so that pair cannot work directly. In my captures, Claude Code sent Anthropic Messages, Codex sent Responses, and OpenCode and pi sent Chat Completions.
Pick a harness. The column for the format it sent in my capture becomes active. Tap a server in that column, and the config below changes its base URL, key and model ID for that pair.
Harness
Server cells come from each project's docs, read on November 27, 2026. I ran one config per harness against a request-capture stub, and the board marks which one. No pair on this board ran against a real model server.
Claude Code needs nine variables before it stops asking for Claude
Play the setup. The left pane holds the lines for your setup, and the right pane fills with the request from my capture. Turn a switch off to see what that line prevents.
export ANTHROPIC_BASE_URL=http://localhost:11434
export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
export ANTHROPIC_DEFAULT_OPUS_MODEL=inkling-2-mini
export ANTHROPIC_DEFAULT_SONNET_MODEL=inkling-2-mini
export ANTHROPIC_DEFAULT_HAIKU_MODEL=inkling-2-mini
export CLAUDE_CODE_SUBAGENT_MODEL=inkling-2-mini
export CLAUDE_CODE_MAX_CONTEXT_TOKENS=64000
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=8192
claude --model inkling-2-mini
Set only the base URL, and Claude Code still asks your server for a Claude model name. Anthropic states its position on the gateway page. It does not endorse, maintain, or audit third-party gateway products. It does not support routing Claude Code to non-Claude models through any gateway. The model config and environment variable docs list the variables. I ran the block in Fig. 3 against my stub.
Without the window variable, Claude Code printed this warning. With CLAUDE_CODE_MAX_CONTEXT_TOKENS=65536 the warning went away. Since v2.1.323, Claude Code assumes a 1M-token window for a model ID that it does not recognise.
Claude Code doesn't recognize the model "inkling-2-mini", so it assumes a context window of 1m tokens.
The right pane of Fig. 3 lists what a local server must accept or ignore. Without CLAUDE_CODE_MAX_OUTPUT_TOKENS, the body in my capture held max_tokens 32000.
One flag needs care. CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 removed context_management and cut the beta header to three entries. It also made Claude Code send 22 tools in full where it had sent 12. In that pair of runs the first request went from 13,151 to 25,163 tokens, which is 38% of a 65,536-token window. Set the flag only when your server rejects the beta fields.
CLAUDE_CODE_AUTO_COMPACT_WINDOW has a minimum of 100000, so it cannot describe a 64K window. Use CLAUDE_AUTOCOMPACT_PCT_OVERRIDE, which takes 1 to 100 and can only lower the threshold. The setup bar gives the same block for Tinker, llama.cpp and LM Studio.
Codex CLI speaks the Responses API and no other format
The same walkthrough for Codex CLI. The left pane is the config file for your setup, and three switches show the mistakes that the docs warn about.
# ~/.codex/config.toml
model = "inkling-2-mini"
model_provider = "local"
model_context_window = 64000
[model_providers.local]
name = "Local"
base_url = "http://localhost:11434/v1"
wire_api = "responses"
You have a server that serves Chat Completions only, and Codex CLI has no setting for that format. The Codex config reference says of wire_api: "responses is the only supported value, and it is the default when omitted". Ollama, llama.cpp and LM Studio document /v1/responses, and Tinker's OpenAI endpoint does not. I ran this shape against my stub with the Ollama address.
In my capture, one of the ten tools was web_search and one had the type namespace. The largest definition, multi_agent_v1, took 2,831 of the 5,320 tool tokens. Codex also printed the warning below. My config for that run had no model_context_window line. I did not test whether that line removes the warning.
Model metadata for `inkling-2-mini` not found. Defaulting to fallback metadata; this can degrade performance and cause issues.
OpenCode reads instruction files that other harnesses own
The same walkthrough for OpenCode. Under the file, one switch adds the files from my own home directory, and the request grows.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local": {
"npm": "@ai-sdk/openai-compatible",
"name": "Local",
"options": { "baseURL": "http://localhost:9931/v1" },
"models": {
"inkling-2-mini": {
"name": "Inkling 2 Mini",
"limit": {
"context": 64000,
"output": 8192
}
}
}
}
},
"model": "local/inkling-2-mini"
}
On my machine, OpenCode's first request grew from 8,376 to 53,838 tokens because of files in my home directory. It reads ~/.claude/CLAUDE.md and the skills directories, so check them before a session on a small window. OpenCode finds Ollama at 127.0.0.1:11434 and LM Studio at port 1234 without config. For any other server, I ran the block in Fig. 5 on 1.17.10 against my stub.
The current OpenCode provider docs show a newer schema with providers, package and settings.baseURL. The block in Fig. 5 is the one that 1.17.10 accepted in my run, so check opencode --version. The agent setting steps caps the turns. On the last step, OpenCode removes the tools and the model writes a summary. Tinker has its own OpenCode recipe.
pi sends the smallest request I measured
The same walkthrough for pi. The launch line carries two flags, and one switch shows what my own skills list added without them.
{
"providers": {
"local": {
"baseUrl": "http://localhost:11434/v1",
"api": "openai-completions",
"apiKey": "ollama",
"models": [
{
"id": "inkling-2-mini",
"name": "Inkling 2 Mini",
"contextWindow": 64000,
"maxTokens": 8192
}
]
}
}
}
You have a 32K window and you want most of it for your code. In my clean-install test, pi 0.84.4 sent 1,707 tokens with four tools, which is 5.2% of 32,768. The config file is ~/.pi/agent/models.json, and I ran the block in Fig. 6 against my stub.
The api field also accepts openai-responses and anthropic-messages, which I did not run. Without the flags --no-skills and --no-context-files, my skills list took pi to 13,568 tokens. Issue #12436, opened November 23, reports "Request timed out" on a 48 GB M5 Max.
Seven more harnesses accept a custom endpoint, and two do not
Your harness may not be one of the four I captured. I read the docs of nine more on November 27, 2026 and ran none of them. Pick one below, and its snippet takes the values from your setup.
| Harness | Where the setting goes | Format it speaks | Window setting |
|---|---|---|---|
| Hermes Agent | ~/.hermes/config.yaml | api_mode: chat_completions, anthropic_messages or codex_responses | Refuses to start under 64,000 tokens of context |
| Aider | OPENAI_API_BASE, then aider --model openai/inkling-2-mini | OpenAI-compatible | Not stated on that docs page |
| Goose | JSON in ~/.config/goose/custom_providers/ with "engine": "openai" | OpenAI engine | GOOSE_CONTEXT_LIMIT |
| Cline | Provider "OpenAI Compatible" in the UI | Chat Completions | "Context Window size" field |
| OpenClaw | models.providers.<id> | api: openai-responses or openai-completions | contextWindow. Skips windows under 16,384 |
| Qwen Code | ~/.qwen/settings.json, modelProviders.openai[] | OpenAI provider | contextWindowSize |
| Factory Droid | ~/.factory/settings.json, customModels[] | provider: anthropic, openai or generic-chat-completion-api | maxContextLimit |
| Gemini CLI | No OpenAI or Anthropic endpoint support | Needs a translating proxy | Does not apply |
| Cursor | Custom keys work for chat models only | Requests route through Cursor's servers, so a localhost server is not reachable | Does not apply |
Pick a harness. The panel shows where its setting goes and, where the docs give one, a snippet built from your setup. I ran none of these.
Cap the turns before the model loops
You leave an agent on a failing test. The model card says what can happen next, in these exact words.
- "In internal testing the model sometimes became stuck in long reasoning loops, or repeatedly re-checked its own work without making progress, particularly when debugging code."
- "We recommend setting limits on output tokens and agent turns."
- "It may take destructive actions, such as deleting or overwriting files, without confirmation, and may not report the outcome of its work accurately."
- Claude Code:
--max-turns Ncaps turns in print mode only, and the docs say "No limit by default".CLAUDE_CODE_MAX_OUTPUT_TOKENScaps the output. - OpenCode: the agent setting
steps. - Goose:
GOOSE_MAX_TURNS, which defaults to 1000. - Qwen Code:
maxSessionTurns. - Codex and pi: I found no turn cap, so run them under a wall-clock limit.
timeout 20m pi --provider local --model inkling-2-mini
The timeout command is part of GNU coreutils, so this line works on Linux as written. Stock macOS does not include it. On a Mac, run brew install coreutils first. Homebrew also installs the command under the name gtimeout.
The card also says: "Run agentic workloads in a sandbox, and require confirmation before destructive or irreversible actions." Use a container or a throwaway git worktree, keep the permission prompts on, and read the diff yourself.
Reasoning has its own limit. The card says: "Setting reasoning effort to its minimum does not fully disable reasoning."
A small window makes the harness the first decision
These measurements change the order in which I decide. When the window is small, I would choose the harness by its fixed token cost, before I compare features. I would start a 64K free session in pi, where the fixed part was 1,707 tokens in my test. I would keep Claude Code for windows of 200K and up, where its 13,178 tokens are under 7% of the window.
I would also capture the first request on my own machine before I trust any of these numbers. For OpenCode, my own files added 45,462 tokens. That is about four times the 11,471-token gap between the smallest and largest clean install.
Keep reading