Skip to content
Topics

Dev Environment & Infrastructure for AI Projects

Docker, AWS, VPS, and more — understand the infrastructure AI tools recommend and set up your dev environment.

50 articles

Sort articles to find what you need

Articles in Dev Environment & Infra

How to Bulk Change the Model and Effort for All Sessions in Claude Code Desktop and Codex: Just Ask the Assistant, What It Can Reach, and 4 Checks

How to Bulk Change the Model and Effort for All Sessions in Claude Code Desktop and Codex: Just Ask the Assistant, What It Can Reach, and 4 Checks

Opening your sessions one by one to switch the model and effort every time a new model comes out is a chore. When I tried it in my own setup on September 24, 2026, asking the assistant to "change them all to this" worked in both Claude Code Desktop and Codex, without me touching each session. In Claude Code Desktop, the tools the app gives the assistant changed the sessions without sending a message, and the changes survived an app restart. However, it only sees local desktop sessions, the default is the 20 most recent, and it can't change the session making the request. In Codex, the default for new chats was changed in config.toml, and the assistant used internal machinery to change the 115 existing chats in my setup one by one. Chats that were open in the app each received one confirmation message. This article covers how the two differ, what they can and can't reach, example prompts, and 4 checks: keep the old values, define the scope, re-read everything, and check one with your own eyes.

What Are Claude Code Cloud Sessions? How They Keep Running With Your Laptop Closed, How to Start, and How to Claim the $100 Pro / $250 Max Credit

What Are Claude Code Cloud Sessions? How They Keep Running With Your Laptop Closed, How to Start, and How to Claim the $100 Pro / $250 Max Credit

Claude Code cloud sessions came out of research preview and became generally available on September 23, 2026. Your GitHub repository is cloned into a virtual machine in Anthropic's cloud, where Claude fixes the code and pushes a branch, so the work doesn't stop when you close your laptop. Usage comes out of the same limits as your regular plan, with no separate charge for the VM. On top of that, existing Pro subscribers are getting a one-time $100 credit and Max subscribers $250: claim it by October 7 and it is spent first until November 5, 07:59 UTC (Projects and Routines are excluded). This article uses the official documentation and posts from the official account to cover how cloud sessions differ from local Claude Code and Remote Control (which settings come along and which don't, permission modes, the four network access levels and where to keep secrets), how to start from the browser and the terminal, how to claim the credit and the caveats in the full offer terms, and which jobs they suit and which they don't.

What Claude Code Projects Is: How Claude Hands Out Threads, Who Can Use It, the GitHub Requirement and the Token Cost

What Claude Code Projects Is: How Claude Hands Out Threads, Who Can Use It, the GitHub Requirement and the Token Cost

Projects in Claude Code has been rebuilt. Until now a project was a folder holding conversations and reference material; the new Projects is a single conversation. You write what you need, Claude splits it into threads, the threads run in parallel in the cloud, and each one opens a pull request and reports back when it finishes. Closing your laptop does not stop them. Three things are worth checking before you jump in, though: the accounts that can use it are still limited (a Pro and Max public beta, going out first to accounts with no existing projects), github.com and the Claude GitHub App are requirements in practice, and the rate at which it eats your usage limit is nothing like a single session. This article works through how to tell whether the rollout has reached you, what a thread starts with (including the trap where permission rules and hooks stop applying once a project holds more than one repository), where the token cost comes from including the default of Opus at high effort, and how to choose between the five ways to work in parallel: subagents, agent view, agent teams, dynamic workflows and Projects, all from the official documentation and blog.

What Is Claude Code's opusplan? Opus for Planning, Sonnet for Implementation: How to Set It and What to Watch For

What Is Claude Code's opusplan? Opus for Planning, Sonnet for Implementation: How to Set It and What to Watch For

You want a smart model to handle only the planning, and a faster, cheaper model to handle the implementation. Claude Code's opusplan is a model setting that does this automatically. It runs Opus while in plan mode and Sonnet the rest of the time, and you can use it with /model opusplan or with model in settings.json. However, it does not appear in the /model list, and because the model switches every time you enter or leave plan mode, each switch re-reads the whole conversation without the cache. Based on the official documentation, the CHANGELOG and GitHub issues as of September 15, 2026, this article covers how to set it up (including pinning versions and 1M context), the flow from plan mode through approval to implementation, how it was removed from the selector in v2.0.0 and what an Anthropic staff member said about it, an estimate of the cache cost a switch creates and how to keep it down, how it differs from the advisor tool and subagents, and the kinds of work it suits and doesn't.

How to Run Claude Code Subagents on a Different Model: Handing Work to Sonnet or Haiku, Measured

How to Run Claude Code Subagents on a Different Model: Handing Work to Sonnet or Haiku, Measured

Can you keep Claude Code's main session on Opus 5 and hand only jobs like translation or high-volume checks to Sonnet or Haiku subagents? Yes. A subagent's model is decided in this order: the model passed at invocation, model in the definition file, the CLAUDE_CODE_SUBAGENT_MODEL environment variable, then the main session's model, and effort can also be set per subagent. Based on the official documentation as of September 15, 2026, this article covers how that order differs between versions, CLAUDE_CODE_SUBAGENT_MODEL_FORCE for pinning every subagent to one model, how aliases resolve differently by provider, and the fact that since v2.1.198 the built-in Explore inherits the main session's model. It then shares what happened when I actually launched subagents on other models and checked the conversation logs: they ran on the models I specified, each one read tens of thousands of tokens just to start, the subagent cache expires after 5 minutes even on a subscription, and the same translation given to Opus 5, Sonnet 5 and Haiku 4.5 twice each differed in time, cost and quality. Finally, it summarizes how this affects cost and usage limits, and what to weigh when deciding which work to move to a cheaper model.

Claude Code Usage by Session: How to See Which Session Is Eating Your Plan

Claude Code Usage by Session: How to See Which Session Is Eating Your Plan

Run several sessions in parallel and you start to wonder which one is eating your weekly limit. Yet Claude Code's /usage only shows the current session's numbers plus your plan-wide consumption split by skill, subagent, plugin and MCP server, and what share each session used appears neither in the desktop app's usage ring nor on the claude.ai settings page (as of September 2026). The answer is in the conversation logs stored on your machine (the JSONL files in ~/.claude/projects), but adding them up as they are gives the wrong result, because a single response is written across several lines, one per content block, and subagent records live in separate files. Measured on my own machine, the naive total came to about twice the correct value, and because the size of the error differed from session to session, even the ranking changed. This article covers what the official screens do and do not show, how to count the logs correctly with an aggregation script of about 50 lines, the measured result in which one session took nearly a third of all usage, the limits of what the numbers can tell you, and how to set up OpenTelemetry if you want to keep watching over time.

Claude Keeps Replying in English? 4 Patterns and How to Fix Each

Claude Keeps Replying in English? 4 Patterns and How to Fix Each

You write to Claude in Spanish, Japanese or Portuguese, and the answer comes back in English. The official Claude Code repository keeps receiving the same report, and research has found that when the request and the answer are in different languages, even the strongest models fail to answer consistently in the language they were asked for. But there is more than one cause. Replies can drift into English gradually as Claude reads code and tool output, snap back to English right after compaction summarizes the conversation, turn into a different language altogether, or, since late September 2026 with Opus 5.5, switch to English only in the short messages between tool runs, and each pattern responds to a different fix. This article shows how to tell the four apart, explains why the Claude Code language setting keeps working after compaction by pinning the instruction in the system prompt, covers the hook reported to stop Pattern 4 where the setting alone did not, along with the author's logs in which English in those mid-task messages rose from about 11% to about 50%, and sorts out the problem reported from September 2026 of long sessions where the output itself breaks down, keeping confirmed information separate from what is still unconfirmed.

Claude Code: What Is Actually Eating Your Context? How to Measure It, and What to Cut First

Claude Code: What Is Actually Eating Your Context? How to Measure It, and What to Cut First

Install too many skills and they crowd out your context: half of that is right and half of it is wrong. According to the Claude Code documentation, the skill listing draws on a fixed budget of 1% of the model context window, and no matter how many skills you add, it stops there. Instead of growing, the listing starts dropping descriptions, beginning with the least frequently invoked skills, and keeps only their names. A skill that has lost its description no longer connects to what you asked for, and yet no error appears and nothing gets slower. This article works through the different jobs of the three measurement tools (/context, /usage and /skill-doctor), the definition of a cache miss as 5% and 2,000 tokens, how the cache lifetime falls from one hour to five minutes depending on your plan, why a CLI is still lighter than MCP now that tool definitions are lazy-loaded by default, the reasoning behind keeping CLAUDE.md under 200 lines, and what to cut first once you have measured, restricted throughout to what could be confirmed in the official documentation.

The model returned no content — Causes and Fixes: a Claude Error Message Means Something Different Depending on Who Wrote It

The model returned no content — Causes and Fixes: a Claude Error Message Means Something Different Depending on Who Wrote It

You hit a wall while using Claude, you search the exact message that appeared, and almost nothing comes back. Five strings behave this way: The model returned no content because the response was blocked by content filtering, The response was blocked by the provider's content filter, Streaming response ended before any complete data was received, Could not locate the Claude CLI on PATH, and Connection to Claude's response was lost. Claude may still be working. What they share is that they appeared while you were using Claude, yet searching Claude's own material seems to turn up nothing, and the reason is simple: the program that wrote the message on your screen is not necessarily the one you think it is. This article does not explain each individual cause from scratch. It is an entrance hall that identifies who wrote the message and routes you to the right article. It first splits the possible writers into four layers, the backend that serves the model, Claude Code itself, the launching IDE extension or wrapper, and third-party clients, and then does the matching. Two of the five turn out to be entries in Claude Code's official error reference. The official definition of the streaming message is that the headers came back but the body held no Claude API message, which is not a mid-way cut at all, and reading it as a dropped connection sends you down the wrong path. Could not locate the Claude CLI on PATH sits in a separate chapter, Wrapper and IDE errors, described as printed by the launching program rather than by Claude Code, and the real display string can be four sentences long where the official heading is one, which is why searching it returns nothing. The two content-filter strings, meanwhile, are third-party vocabulary, and OpenCode Issue #35736 reports that three completely separate failures, a Vertex 404, a socket drop, and a genuine refusal, all surface as the same blocked by content filter sentence. The wording is correct for only one of the three, so believing it and softening your prompt will never fix a misconfigured model ID. GitHub official documentation also states that input prompts and output completions pass through GitHub Copilot content filters when Claude is used, so using Claude does not mean Anthropic filtering is what stopped you. The remaining string appears in neither the official error reference nor the Remote Control documentation, so its source could not be identified; no tool is named for it, and four steps for tracing it in your own environment are given instead. What is settled and what is not is labelled throughout.

The 3 Breaking Changes in Claude Fable 5.1, and How to Migrate

The 3 Breaking Changes in Claude Fable 5.1, and How to Migrate

Migrating to Claude Fable 5.1 is not a matter of swapping the model ID and calling it done. Anthropic marks three of the changes as breaking, and two of them surface far from where they originate. The first throws immediately: passing type any or type tool to tool_choice returns 400 invalid_request_error, because forcing a call skips the reasoning this model always does and the argument quality drops with it. The second is the quiet one. Thinking blocks now record which model produced them and only carry over in one direction, so a conversation moving onto Fable 5.1 keeps its reasoning while a router or fallback that moves it back to an earlier generation loses that turn entirely. By default the API discards the unreadable blocks before the model sees them, and because the discarded tokens are neither counted in input_tokens nor billed, nothing shows up on the invoice. Making it visible takes the thinking-binding-controls-2026-08-01 beta header. The third one is the broadest: changing anything before a Fable 5.1 thinking block, including the system prompt, the tools array or any earlier message, invalidates it and every block after it. Whether that is enforced depends on when your account was created, which means a staging environment you just spun up can fail while production does not. The article also covers what did not get worse: input stays at $10 and output at $50 per million tokens, while cache reads drop to $0.25, or 0.025x base input against the 0.1x every other Claude model charges. Anthropic quotes roughly 25% lower cost on typical workloads and up to about 45% on agent-heavy work. Seven behaviors change without any code change, including fewer parallel tool calls, less progress narration at high effort, and more answers from memory at low effort, and Anthropic counts five additions, one of which is the cache read price cut handled on its own in section 5, with beta features among the remaining four that exist specifically to replace the patterns the breaking changes forbid.

Local LLM Coding with Ollama and Cline: What Works, and the One Setting That Breaks It

Local LLM Coding with Ollama and Cline: What Works, and the One Setting That Breaks It

Local models have been able to write code for years, but only as completion: finishing the line you were already typing. The agentic pattern, where the model reads the repository, edits several files and runs the tests, was too heavy to run at home. That changed through late 2025 and 2026, and the clearest evidence is that model developers now market for it directly: the Qwen model card names CLINE outright and ships a purpose-built function call format, while Mistral released Devstral Small 2 (24B) under Apache 2.0 alongside the 123B Devstral 2 on December 9, 2025. This article works through what is actually achievable today using primary sources only, because several roundup posts turned out to have attributed one model size's score to another. The central obstacle is a configuration detail almost nobody mentions: Ollama does not use a fixed default context length, it derives one from your VRAM, which means 4k below 24 GiB, 32k from 24 to 48 GiB and 256k above that. A typical gaming PC lands on the first row, so an agent overruns the window immediately and the start of the conversation is silently truncated. No error is raised. It forgets instructions, repeats actions and loses the goal, and the whole thing reads as a stupid model rather than a discarded context. Ollama documents at least 64000 tokens for coding tools, set via OLLAMA_CONTEXT_LENGTH, but raising it raises memory use too, so ollama ps has to confirm the model still fits on the GPU. Also covered: why Continue and Cline are different tools with different hardware demands, published scores for Qwen3.6-35B-A3B (73.4 on SWE-bench Verified, 3B active out of 35B) and Devstral Small 2 (68.0%), download sizes and memory guidance by VRAM tier, a four-step setup, why "local is at X% of the cloud" comparisons no longer hold now that the frontier side is drifting away from publishing SWE-bench Verified, and an honest accounting of what "free" actually costs.

"GPU process gone" — Claude Desktop freezes and takes every Claude Code session with it

"GPU process gone" — Claude Desktop freezes and takes every Claude Code session with it

Claude Desktop freezes mid-task and every Claude Code session you had open stops at the same moment; you force-quit it, and sometimes the app then refuses to start at all. The last line in %APPDATA%\Claude\logs\main.log is almost always the same one: GPU process gone, with exitCode 101457950 (0x060C201E). This article sets out what that code is, why sessions with nothing to do with each other go down together, and which remedies are real. The first move is a separation: Claude Code (the CLI) is not what crashed — the GPU process of the Electron desktop app that hosts it is. The second is why the damage spreads so far. Chromium concentrates rendering in a single GPU process, and there is exactly one of it per application, shared by every window, tab and session; so one heavy page opened in the in-app browser can take down eight unrelated sessions at the same instant, and no user-facing setting separates them. Triggers come next. The in-app browser dominates the public issues — #80444 records the process dying 15 to 36 seconds after a page ran WebGL/WebGPU feature detection, four times with the same exit code; #82967 pins the trigger on the browser tool's preview screenshot capture; #83478 reproduces it with a continuously refreshing preview left open. But the browser is not the only trigger: #68049 reports the same code at launch on ARM64 with no browser interaction at all, and #83028 reproduces it on an Intel integrated GPU. Diagnosis is then made concrete with three files — main.log, unknown-window.log (a CONTEXT_LOST_WEBGL at the same timestamp) and the Crashpad folder — plus a table separating 101457950 from the exit codes that mean a clean shutdown, and a warning that the requestAdapter powerPreference line in the same log is a normal Chromium message rather than a sign of a crash. Recovery covers Repair for the case where Windows marks the package Modified and refuses to launch it, alongside the report where the state reached Modified, NeedsRemediation and only a complete removal and reinstall brought the app back; saved transcripts survive, but work that was in flight does not (#81698 lost a set of parallel subagent results). It closes with what helps and what does not — --disable-gpu is rejected on the MSIX build, updating the app did not stop it here, isolating the GPU process is structurally impossible — the hybrid-GPU pinning tip and why no report of it helping with this symptom has been found, and how to tell a Store update's forced quit apart from a real crash.