Skip to content
Topics

AI Development & Programming: Build Apps with AI

Build smarter with AI-powered development. Code generation, app building, debugging, and test automation guides.

84 articles

Sort articles to find what you need

Articles in AI Dev & Programming

Can't open this app: Claude Desktop won't start on Windows — fix it with Repair without losing your sessions

Can't open this app: Claude Desktop won't start on Windows — fix it with Repair without losing your sessions

You try to open Claude Desktop on Windows and instead you get a dialog headed "Can't open this app", telling you that "You'll need to go to advanced options for Claude and select Repair" — and doing exactly what it says works. No uninstall, and no Reset that throws your data away. There is, however, one step in the middle where people actually get stuck, and it is the centre of this article. Clicking Repair can come back with a message telling you the app is still running, even though no Claude window is open anywhere. The cause is that Claude Desktop keeps running in the system tray after you close its window, and while that resident process is holding the package files open the repair cannot go through. The fix is simple: end the processes explicitly, then click Repair. And that fact points at the cause of the failure itself — the same process broke the update and then blocked the repair. The article also answers the question most people ask first: do your sessions get wiped? The answer splits three ways. Your claude.ai conversation history sits on Anthropic's servers and is untouched. Claude Code sessions live under %USERPROFILE%\.claude\projects\, outside the app package, so they survive a repair, a reset and even an uninstall (a real machine held 2,977 files, roughly 3.0GB, across 52 projects). The only thing at risk is the app-side settings in %APPDATA%\Claude, and Repair keeps even those — Windows spells the difference out on the screen itself, with Repair saying the app's data will not be affected and Reset saying the app's data will be deleted. From there it covers the read-only PowerShell state check, a backup routine, a staged escalation when the app still will not open (checking that vmcompute and hns are running, reinstalling with -PreserveApplicationData), the inferred cause of a half-registered MSIX alongside the GitHub issues (#55465, where the install succeeded but no entry point was created, plus #50285 and #48437 — all closed as not planned with no official fix), how to lower the odds of a repeat, and a comparison with the old installer build, where the latest MSIX release and an old-format machine both measured 1.24012.9.

API Error: Connection closed mid-response — Causes and Fixes in Claude Code

API Error: Connection closed mid-response — Causes and Fixes in Claude Code

Claude Code stops partway through a response with "API Error: Connection closed mid-response. The response above may be incomplete." This is not a prompting problem — the connection carrying the streamed response was closed while the response was still arriving. This article works only from the official error reference, the official changelog and issues backed by packet captures. It starts with the official definitions: Connection closed means the link was severed, Response stalled means it went silent, and Server error means a 5xx arrived mid-stream — and explains why the partial output is deliberately kept (re-sending could run the same tool calls twice) and that the documented recovery step is to reply continue. It then separates the three layers where a close can originate (your machine and sleep, an idle timeout in a proxy or VPN, or a server-initiated close) and presents the measurements published by the reporter of issue #67766: all ten incidents were clean server-initiated closes, the error surfaced 3 to 105 ms after the FIN, 7 to 20 KB of the response had already been delivered, the request body was 1 to 2.5 MB, a fresh connection succeeded within about 20 ms, and 200 errors across 171 incidents appeared in 23 days of transcripts, 87 of them less than five seconds after the previous call. The practical core is a timeline of real changelog entries — 2.1.179 preserves the partial, 2.1.185 moves the stall hint from 10 to 20 seconds, 2.1.198 retries transient drops with backoff, 2.1.199 keeps the partial on mid-stream server errors, and 2.1.214 disables keep-alive pooling after a stale-connection error — matched against the versions in the reports (2.1.173, 2.1.181, 2.1.183), all of which predate 2.1.198. It closes with the conditions that raise the odds, an eight-step user checklist, six guidelines for developers, how to tell this apart from Unable to connect and Prompt is too long, and a clear split between what is officially confirmed and what is not.

Quantization Formats Guide: GGUF vs GPTQ vs AWQ — Which File?

Quantization Formats Guide: GGUF vs GPTQ vs AWQ — Which File?

You open Hugging Face to run a local LLM and the same model has a wall of files (Q4_K_M, Q5_K_S, GPTQ, AWQ, IQ3_M) and you freeze. This article answers, practically, which quantized file you download to make it run, leaving the concept of what quantization is to another article and focusing on choosing the format. The choice is two steps: which format (= which engine you run it on), then which bit depth. The most important fact is that a quantized file only runs on engines that support its format. GGUF is the only local do-it-all format that runs on CPU, Mac, and partial-GPU (llama.cpp/Ollama); GPTQ/AWQ/EXL2 are GPU-first (vLLM/TGI); bitsandbytes quantizes on load in Transformers with no calibration. GGUF naming Q4_K_M is three parts: Q4 (nominal 4-bit, higher = better and bigger), K (K-quant over super-blocks; plain/_0/_1 are legacy), M (S/M/L = how much some important tensors get upgraded; effective bits run above the label, Q4_K about 4.5 bpw). The IQ family (I-quants) go even smaller at the same bits but are heavier at inference and need an imatrix (an importance matrix from calibration that protects the weights that matter). GPTQ minimizes layer-wise error; AWQ protects salient weights via activations (neither is universally better). For bit depth, when in doubt pick Q4_K_M (Ollama default for many models), step up to Q5_K_M/Q6_K with spare VRAM, Q8_0 is near-lossless but not recommended, and IQ2/IQ3 only to cram a big model in. About 4.5 to 5 bpw is the tasty band (a heuristic). Find files via library=gguf, bartowski/mradermacher (activity varies), or Ollama tags model:size-variant-quant. Numbers are approximate and vary by model and build.

Fix Claude Desktop 0x80070020: Won't Launch After Update

Fix Claude Desktop 0x80070020: Won't Launch After Update

Right after you update Claude Desktop (Windows), launching the app pops "Another program is currently using this file" and it won't start — and it stays broken until you restart the PC. This is a known bug in the Microsoft Store (MSIX) build (GitHub #53247 and others). The key point: a full PC restart is not necessarily needed — in many cases just signing out of Windows and back in recovers it (not a PC restart, and not logging out of Claude), because the orphaned handle behind it persists per Windows user session. Stopping CoworkVMService or re-registering the package is reported NOT to work. Despite the dialog wording, it is verified there is no user-space file lock (handle.exe / Process Explorer): the real failure is in the AppX/Desktop Bridge container layer, at the Job Object → Silo conversion (0x80070020 = ERROR_SHARING_VIOLATION, events 215/208). The trigger has two unsettled explanations — the service holding the Job Object (#57221) vs. a startup crash leaving cleanup undone (#53247) — and no official fix has shipped. The permanent workaround is switching to the Squirrel (installer) build. Based on one machine (Windows 11 Home 10.0.26200) cross-checked with GitHub issues; confidence-labeled throughout.

How Much Does AI Cut Development Effort? Agentic-Era Data

How Much Does AI Cut Development Effort? Agentic-Era Data

"How much does AI cut software development effort?" With agentic coding arriving in 2025–2026, the very unit we measure by changed. It used to be "how many percent faster is one task"; now it is an order-of-magnitude story: "a dev cycle that took weeks compresses into hours or days" (TechTarget). Claude Fable 5 finished Stripe's 50-million-line migration in a day; TELUS saved 500,000 developer-hours; cycle time went 9.6 → 2.4 days. The autocomplete-era numbers — Copilot RCT 55.8% faster, McKinsey 20–50% by task — are now the floor. But it is not a uniform 10×: per Anthropic's 2026 Agentic Coding Trends Report, developers use AI on ~60% of their work, yet only 0–20% of tasks can be fully delegated (the delegation gap), so human review is required, and about 27% of AI work is new work that did not exist before (cutting effort = producing more). With good context design, 40% fewer errors and 55% faster. Even METR's 2025 "experts are 19% slower" result is reversing in 2026, with the authors admitting the measurement undercounts reality. This article separates that polarization with named sources (GitHub, McKinsey, Anthropic, METR, DORA) and lays out how to actually capture the effort savings.

Claude Code repeats "court" infinitely and halts with Response stalled mid-stream: causes and fixes

Claude Code repeats "court" infinitely and halts with Response stalled mid-stream: causes and fixes

When you work in Claude Code for a long stretch, the response can suddenly repeat the same word — "court court court…" — dozens to hundreds of times, then halt with "API Error: Response stalled mid-stream. The response above may be incomplete." This is not a mistake in your prompt; it is two separate known bugs chaining together: (1) the model emitting the same token over and over — repetition (degeneration), GitHub #68740/#65823/#66950 — and (2) "Response stalled mid-stream," where the flood of output or a connection problem stops the response stream (#70840 and the official error reference). "court" means nothing; the model just fixated on that token, and it carries the area:model label as a model-side bug. This article breaks down the two layers, how it differs from the "court/invoke tag leak" type (a separate article), the trigger conditions (long sessions, large context, prose right before a tool call, unstable connections, long output), how to stop it now (interrupt with Esc, escape to a new session or /clear, call tools with no preamble, split the task), developer measures (read timeout, repetition-detection guard, retry without keeping broken history, a max_tokens cap), how to tell it apart from Connection closed mid-response and Prompt is too long, and the official status as of July 2026, where no permanent fix is confirmed — all based on the official docs and the actual issues.

API Error: 400 Output blocked by content filtering policy: Causes and Fixes (Claude Code)

API Error: 400 Output blocked by content filtering policy: Causes and Fixes (Claude Code)

The "API Error: 400 Output blocked by content filtering policy" that suddenly appears in Claude Code and the API is not a usage limit and not a context overflow — it means the safety filter held back the "output" Claude was about to return. Its main purpose is preventing verbatim reproduction of existing copyrighted material, and it often trips a false positive with no ill intent — generating the full text of standard licenses like MIT/Apache, doing "match this existing source" work, or duplicating long documents. This article draws on Anthropic's official explanation (an output-stage filter that detects reproduction of copyrighted material and blocks it with a 400) and real Claude Code issue reports of false positives (initial OSS-repo setup, reconciling lists, and a 400 at the end of a long agent run misdiagnosed as a token limit), then lays out how to fix it now (don't make the model copy verbatim — fetch with a tool; rephrase the prompt toward generation/summarization; stop the retry loop with Esc; split the task; report false positives to support) and how to tell it apart from Prompt is too long, usage limit, 529 Overloaded, and max_tokens.

Monetization and Pricing for Indie Developers: Landing Your First Paying Users [2026]

Monetization and Pricing for Indie Developers: Landing Your First Paying Users [2026]

Many indie developers stall at "I built it, but how do I earn, and what do I charge?" This article covers, from a solo developer's point of view, how to choose a monetization model (free / one-time / subscription / freemium / ads / donations), value-based pricing that starts from "the value the customer gains" rather than cost or competitors, the Free→Pro→Business three-tier plan and the annual-discount playbook, how to land your first paying users, and unit economics that fold in AI costs such as API tokens. It goes deep on the "grow" phase of the hub article, the AI indie development roadmap.

Building an MVP Solo with AI: A Practical Guide to Narrowing to One Feature and Shipping Fast [2026]

Building an MVP Solo with AI: A Practical Guide to Narrowing to One Feature and Shipping Fast [2026]

The biggest reason indie projects never get finished is "over-building." Piling on feature after feature makes it complex, and it vanishes before it ever launches. The one way to avoid that is to narrow the smallest product that conveys value—the MVP—to a single feature and ship it as fast as possible. This article explains, from the point of view of an indie developer who makes AI their partner, the right way to see an MVP, scope decisions for cutting features, two routes to build fastest with AI (vibe coding where you write no code, and the hands-on AI-editor route), judging "finished," and getting one person to use it after launch.

The Complete Roadmap to Solo Development with AI [2026]: From Idea to Launch and Monetization

The Complete Roadmap to Solo Development with AI [2026]: From Idea to Launch and Monetization

Now that AI has a hand that writes code, one person can build a product and ship it. But the information is scattered by stage, so it is easy to get lost about where to start. This article is a full map (roadmap) from idea to design to implementation to launch to monetization, organizing solo development into five phases (Decide, Prepare, Build, Ship, Grow) and, for each stage, showing what to do and which tools to use, then sending you to a dedicated guide for the parts that need a deeper dive. It guides you along two lanes: a Beginner route where you barely write code, and a Hands-on route where you write code in an AI editor, so following whichever fits gets you to something that works without detours. It gathers spec-driven development, AI app builders, Claude Code and Cursor, wiring in AI features (API, RAG, gateway), deploy, SEO/AEO traffic, monetization, cost management, and five pitfalls of solo dev with AI onto one page, with links into the existing hands-on guides.

Does Claude Code's Weekly Limit Really Reset Every 7 Days? Investigating Early Recovery (July 2026)

Does Claude Code's Weekly Limit Really Reset Every 7 Days? Investigating Early Recovery (July 2026)

You hit Claude Code's weekly token limit, yet the allowance fully replenished before seven days passed — more than once. Online there are even "hidden-mechanism" write-ups claiming the weekly limit resets every 72 hours. Is that true? This article traces the phenomenon to primary sources. But Anthropic has not documented the internal reset mechanism, and the limits keep changing, so we clearly label three kinds of information: facts confirmable from official sources, events multiple users reproducibly observe but that Anthropic never addressed, and single-source unconfirmed speculation. The core: early full recovery is, in most cases, Anthropic's irregular global resets (announced repeatedly by @ClaudeDevs); the displayed reset time is also demonstrably unstable; and the circulating "72-hour cadence" is single-observer, unreproduced, and contradicted by another observation (24h), so it cannot be taken as fact. Where something can't be stated, we say so — a July 2026 investigation.

What Is an LLM Gateway (Proxy)? One API for Every Provider — 2026 Guide

What Is an LLM Gateway (Proxy)? One API for Every Provider — 2026 Guide

You built on OpenAI, then wanted to try Claude and compare Gemini — and lost hours to the different SDKs, formats, and error handling per provider. An LLM gateway (AI gateway / LLM proxy) is a relay you slot between your app and the providers: it exposes one OpenAI-compatible API to reach every model and takes over the cross-cutting chores — fallback, cost tracking, virtual keys, caching, rate limiting, and observability. This guide covers why you need one, what a gateway really is, the three types (self-hosted proxy = LiteLLM / hosted = OpenRouter / SDK = Vercel AI SDK), how to choose among LiteLLM, OpenRouter, and the Vercel AI SDK, minimal setup code that only swaps the endpoint, and the limits — a hop of latency, the gateway as a new failure point, fees (OpenRouter charges 5.5% on purchases), feature loss, and privacy.