<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Bartłomiej Krupa - Agentic Engineering &amp; AI Cost Reduction</title><description>Agentic engineering for AI coding agents: harness design, context engineering, and keeping LLMs cheap and reliable in production - with sourced numbers.</description><link>https://bartlomiejkrupa.dev/</link><item><title>Agent changelog digest: 5 features to adopt, 5 to try</title><link>https://bartlomiejkrupa.dev/articles/coding-agent-changelog-2026-q4/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/coding-agent-changelog-2026-q4/</guid><description>Claude Code, Codex, opencode and OpenRouter shipped well over 100 releases from late July to late October 2026. Five features score 8 out of 10 and five score 7: what each does and how to turn it on.</description><pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>codex</category><category>opencode</category><category>openrouter</category><category>changelog</category><category>worktrees</category><category>prompt-caching</category></item><item><title>Turn off Claude Code subagent forking</title><link>https://bartlomiejkrupa.dev/notes/claude-code-fork-subagent-opt-out/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/claude-code-fork-subagent-opt-out/</guid><description>Forked subagents are on by default in Claude Code; set CLAUDE_CODE_FORK_SUBAGENT=0 to turn them off so Claude waits for subagents instead of running them in the background.</description><pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>subagents</category><category>settings</category></item><item><title>CLAUDE_CODE_REMOTE env gate</title><link>https://bartlomiejkrupa.dev/notes/claude-code-remote-env-gate/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/claude-code-remote-env-gate/</guid><description>Claude Code sets CLAUDE_CODE_REMOTE in cloud sessions and leaves it unset locally, so one repo SessionStart hook can run installs only in the cloud VM.</description><pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>cloud-sessions</category><category>hooks</category></item><item><title>Prompt cache TTL split</title><link>https://bartlomiejkrupa.dev/notes/prompt-cache-ttl-split/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/prompt-cache-ttl-split/</guid><description>In Claude Code, set promptCacheTtl to 1h for the main conversation and subagentPromptCacheTtl to 5m so long pauses keep the cache while subagents stay cheap to write.</description><pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>prompt-caching</category><category>cost</category></item><item><title>Push before cloud, commit before idle</title><link>https://bartlomiejkrupa.dev/notes/push-before-cloud-commit-before-idle/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/push-before-cloud-commit-before-idle/</guid><description>A Claude Code cloud session clones from GitHub and its idle VM is reclaimed, so push before claude --cloud and commit before you walk away.</description><pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>cloud-sessions</category><category>git</category></item><item><title>AI brain fry comes from AI oversight</title><link>https://bartlomiejkrupa.dev/articles/ai-brain-fry-parallel-agents/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/ai-brain-fry-parallel-agents/</guid><description>Among 1,488 US workers, high AI oversight tracked +14% mental effort and +19% overload; ParallelPilot&apos;s PILOT practices and a two- or three-session ceiling cut the juggling tax.</description><pubDate>Mon, 19 Oct 2026 00:00:00 GMT</pubDate><category>ai-brain-fry</category><category>parallel-agents</category><category>cognitive-load</category><category>PILOT</category><category>oversight</category><category>verification</category></item><item><title>claude --cloud: the GitHub token never enters the VM</title><link>https://bartlomiejkrupa.dev/articles/claude-code-cloud-sessions/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-cloud-sessions/</guid><description>Each Claude Code cloud task gets a fresh VM (~4 vCPU, 16 GB, 30 GB). Your GitHub token stays in a proxy outside the box; the session only gets a short-lived credential that can push to its own branch.</description><pubDate>Wed, 14 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>cloud-sessions</category><category>teleport</category><category>security</category><category>sandboxing</category><category>github</category></item><item><title>MXC Learning mode drafts your agent&apos;s sandbox - on Windows only</title><link>https://bartlomiejkrupa.dev/articles/microsoft-execution-containers-mxc/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/microsoft-execution-containers-mxc/</guid><description>Microsoft Execution Containers 1.0 enforces one JSON sandbox policy outside Codex and Copilot. Its denial log can draft that policy, but only on Windows, and --audit turns containment off.</description><pubDate>Wed, 14 Oct 2026 00:00:00 GMT</pubDate><category>sandboxing</category><category>security</category><category>mxc</category><category>codex</category><category>copilot</category><category>claude-code</category><category>permissions</category><category>harness</category></item><item><title>MCP connected, zero tools: Claude Code&apos;s 2026-07-28 switch</title><link>https://bartlomiejkrupa.dev/articles/claude-code-mcp-2026-07-28/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-mcp-2026-07-28/</guid><description>Since Claude Code 2.1.292, stdio MCP servers get protocol 2026-07-28 by default. If tools vanish with &apos;Failed to fetch tools: Request timed out&apos;, read the MCP log, set MCP_PROTOCOL_NEGOTIATION=legacy, then fix the server or wait for the client fix.</description><pubDate>Tue, 13 Oct 2026 00:00:00 GMT</pubDate><category>mcp</category><category>claude-code</category><category>mcp-servers</category><category>protocol</category><category>debugging</category><category>migration</category></item><item><title>Cursor cut user token cost 7%</title><link>https://bartlomiejkrupa.dev/articles/cursor-harness-token-cost/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/cursor-harness-token-cost/</guid><description>On 23 September 2026 Cursor&apos;s harness changes cut user token cost 7%, including a system prompt about 66% shorter, rare tools loaded on demand, and line numbers on every tenth line.</description><pubDate>Mon, 12 Oct 2026 00:00:00 GMT</pubDate><category>cursor</category><category>harness</category><category>token-cost</category><category>prompt-caching</category><category>tools</category><category>subagents</category></item><item><title>A Decisions choice test missed a 70% coin</title><link>https://bartlomiejkrupa.dev/articles/openai-decisions-api/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/openai-decisions-api/</guid><description>POST /v1/decisions on gpt-6-luna costs $0.10 per million input tokens with no cache-read, cache-write, or output charge, and one 1,000-trial test saw a choice question return heads 98% of the time on a 70% coin.</description><pubDate>Mon, 12 Oct 2026 00:00:00 GMT</pubDate><category>openai</category><category>decisions-api</category><category>gpt-6-luna</category><category>cost</category><category>routing</category></item><item><title>Idle compaction trades your context for a cache write</title><link>https://bartlomiejkrupa.dev/articles/claude-code-idle-compaction/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-idle-compaction/</guid><description>&quot;Compacted while idle, before the prompt cache expired&quot; means Claude Code summarized a 200k+ session you walked away from. Set &quot;idleCompaction&quot;: false (v2.1.290+) or take control with the API&apos;s compaction parameter.</description><pubDate>Thu, 08 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>compaction</category><category>context-window</category><category>prompt-caching</category><category>hooks</category><category>api</category><category>cost</category></item><item><title>Auto memory</title><link>https://bartlomiejkrupa.dev/notes/auto-memory/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/auto-memory/</guid><description>Auto memory is a per-repo directory Claude Code writes for itself, outside version control. Only the first 200 lines or 25KB of MEMORY.md load per session.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>auto-memory</category><category>context</category><category>settings</category></item><item><title>Batch submit pattern</title><link>https://bartlomiejkrupa.dev/notes/batch-submit-pattern/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/batch-submit-pattern/</guid><description>Batch processing cuts every token 50% with a 24h SLA and stacks with prompt caching to ~95% off cached async work - same model, asynchronous delivery.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>cost</category><category>batching</category><category>caching</category><category>api</category></item><item><title>Claude Code skill composition</title><link>https://bartlomiejkrupa.dev/notes/claude-code-skill-composition/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/claude-code-skill-composition/</guid><description>Claude Code skills compose through explicit Skill-tool calls, not a sub-skill primitive - and disable-model-invocation blocks that call path too.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>skills</category><category>claude-code</category><category>agentic-engineering</category><category>subagents</category></item><item><title>Keep CLAUDE.md to universal instructions</title><link>https://bartlomiejkrupa.dev/notes/claude-md-universal-only/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/claude-md-universal-only/</guid><description>Put only universally applicable instructions in CLAUDE.md; task-specific content raises the odds an agent treats the whole file as noise and ignores it.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-md</category><category>claude-code</category><category>context-engineering</category></item><item><title>Effort vs fast mode</title><link>https://bartlomiejkrupa.dev/notes/effort-vs-fast-mode/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/effort-vs-fast-mode/</guid><description>Fast mode buys up to 2.5x speed on Opus for a flat ~2x per-token premium with no quality change; lower effort cuts tokens and sometimes quality. They stack.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude</category><category>effort</category><category>fast-mode</category><category>cost</category></item><item><title>The /goal evaluator only reads the transcript</title><link>https://bartlomiejkrupa.dev/notes/goal-evaluator-transcript-only/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/goal-evaluator-transcript-only/</guid><description>Claude Code&apos;s /goal evaluator is a Stop hook that doesn&apos;t call tools, so proof of completion - test output, an exit code - must appear in the conversation.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>goal</category><category>hooks</category></item><item><title>Hook over prose</title><link>https://bartlomiejkrupa.dev/notes/hook-over-prose/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/hook-over-prose/</guid><description>CLAUDE.md is advisory text the model re-weighs every turn; a PreToolUse hook that exits 2 is enforced code. A rule you can check shouldn&apos;t be a sentence.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-md</category><category>hooks</category><category>harness</category><category>agents</category></item><item><title>Output tokens never cache</title><link>https://bartlomiejkrupa.dev/notes/output-tokens-never-cache/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/output-tokens-never-cache/</guid><description>Output tokens cost ~5x input and never cache - cut free-form prose first. Rewriting inside a cached prefix mid-session can raise the bill, not lower it.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>cost</category><category>tokens</category><category>output</category><category>caching</category></item><item><title>Permission rules block</title><link>https://bartlomiejkrupa.dev/notes/permission-rules-block/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/permission-rules-block/</guid><description>Permission rules use ToolName(specifier) in allow and deny arrays; a bare tool name in deny disables it. Pair with OS sandboxing for subprocesses.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>permissions</category><category>security</category><category>settings</category></item><item><title>Plan mode decision tree</title><link>https://bartlomiejkrupa.dev/notes/plan-mode-decision-tree/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/plan-mode-decision-tree/</guid><description>Use plan mode when the approach is uncertain, the change spans files, or the code is unfamiliar. Skip it for one-line diffs - typos, renames, log lines.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>plan-mode</category><category>workflow</category></item><item><title>PreToolUse read-only hook</title><link>https://bartlomiejkrupa.dev/notes/pre-tool-use-read-only-hook/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/pre-tool-use-read-only-hook/</guid><description>Plan mode&apos;s read-only promise is prompt reinforcement, not a lockdown. A PreToolUse hook blocking Write and Edit in plan mode makes it actually read-only.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>plan-mode</category><category>hooks</category><category>security</category></item><item><title>Read-mutate permission split</title><link>https://bartlomiejkrupa.dev/notes/read-mutate-permission-split/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/read-mutate-permission-split/</guid><description>Claude Code ships 46 built-in tools; only 14 ask for permission. Reads (Read, Grep, Glob) run freely in the working directory; mutations and external calls (Bash, Edit, Write) ask.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>tools</category><category>permissions</category></item><item><title>reasoning_extraction: why &apos;show your reasoning&apos; gets refused</title><link>https://bartlomiejkrupa.dev/notes/reasoning-extraction-refusal/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/reasoning-extraction-refusal/</guid><description>On Sonnet 5.5 and Opus 5.5, asking the model to reproduce its reasoning can return a reasoning_extraction refusal. Read summarized thinking instead.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>sonnet-5-5</category><category>opus-5-5</category><category>refusals</category><category>thinking</category><category>prompting</category></item><item><title>Refusal as API contract</title><link>https://bartlomiejkrupa.dev/notes/refusal-as-api-contract/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/refusal-as-api-contract/</guid><description>Fable 5 safety classifiers return refusals as HTTP 200 with stop_reason refusal - every integration needs refusal handling and a fallback, not just errors.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude</category><category>fable</category><category>refusals</category><category>api</category></item><item><title>Run /doctor prompt-audit twice</title><link>https://bartlomiejkrupa.dev/notes/run-prompt-audit-twice/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/run-prompt-audit-twice/</guid><description>Claude Code&apos;s /doctor prompt-audit is a model call, not a linter: the re-scan after fixes caught an instance the first pass missed. Fix, then run it again.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>claude-md</category><category>prompt-audit</category><category>harness</category></item><item><title>Sandbox ladder</title><link>https://bartlomiejkrupa.dev/notes/sandbox-ladder/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/sandbox-ladder/</guid><description>OS-level Bash sandboxing cut Anthropic&apos;s permission prompts ~84%, but /sandbox only wraps Bash. Climb to sandbox-runtime, container, or VM for a boundary.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>security</category><category>sandboxing</category><category>permissions</category></item><item><title>Startup tax</title><link>https://bartlomiejkrupa.dev/notes/startup-tax/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/startup-tax/</guid><description>Startup tax is the tokens loaded before your first prompt - system prompt, CLAUDE.md, MCP tools, skills, auto memory - paid each session and every turn.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>context</category><category>claude-md</category><category>tokens</category></item><item><title>Stop hook verify-done</title><link>https://bartlomiejkrupa.dev/notes/stop-hook-verify-done/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/stop-hook-verify-done/</guid><description>A Stop hook that demands proof of completion - named check, exit code, real output - blocks the agent from ending the turn unverified. Mechanism, not plea.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>hooks</category><category>harness</category><category>claude-code</category></item><item><title>Subagent context isolation</title><link>https://bartlomiejkrupa.dev/notes/subagent-context-isolation/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/subagent-context-isolation/</guid><description>A subagent runs in its own context window and returns only a summary, keeping heavy intermediate tokens out of the parent conversation.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>subagents</category><category>claude-code</category><category>context</category><category>mcp</category></item><item><title>Two-way door</title><link>https://bartlomiejkrupa.dev/notes/two-way-door/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/two-way-door/</guid><description>A decision you can walk back through. Amazon&apos;s Type 1 / Type 2 split for agent delegation: reversible work goes to the agent; one-way doors go to a human.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>decision-making</category><category>agents</category><category>planning</category><category>risk</category></item><item><title>Vibe coding vs agentic engineering</title><link>https://bartlomiejkrupa.dev/notes/vibe-coding-vs-agentic-engineering/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/vibe-coding-vs-agentic-engineering/</guid><description>Google&apos;s 2026 SDLC whitepaper draws the line at verification: vibe coding is prompts plus seems-to-work checks; agentic engineering adds specs, evals, CI.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>vibe-coding</category><category>agentic-engineering</category><category>harness</category><category>sdlc</category></item><item><title>Worker-tier routing</title><link>https://bartlomiejkrupa.dev/notes/worker-tier-routing/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/worker-tier-routing/</guid><description>Route architecture to a frontier planner and implementation to a cheap executor - a DeepSeek Flash-class executor at roughly 1/20-1/40 of Opus output cost needs a complete plan.</description><pubDate>Wed, 07 Oct 2026 00:00:00 GMT</pubDate><category>model-selection</category><category>cost</category><category>agents</category><category>routing</category></item><item><title>Claude 5.5 migration: the old requests that now return 400</title><link>https://bartlomiejkrupa.dev/articles/claude-5-5-migration/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-5-5-migration/</guid><description>Opus 5.5 and Sonnet 5.5 break old request code: disabled thinking, forced tool_choice and the old computer-use tool now return a 400. Per-model checklist.</description><pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate><category>claude</category><category>opus-5-5</category><category>sonnet-5-5</category><category>migration</category><category>api</category><category>model-selection</category></item><item><title>Claude 5.5 prompt audit: the bad lines weren&apos;t there</title><link>https://bartlomiejkrupa.dev/articles/claude-5-5-prompt-audit/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-5-5-prompt-audit/</guid><description>Anthropic&apos;s 5.5 guides name four prompt habits that now backfire. /doctor prompt-audit found none in my repo - it found subagents for another workspace.</description><pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>claude-md</category><category>prompt-audit</category><category>sonnet-5-5</category><category>opus-5-5</category><category>context-engineering</category></item><item><title>Don&apos;t tell Sonnet 5.5 to minimize tool calls</title><link>https://bartlomiejkrupa.dev/notes/dont-discourage-tool-calls/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/dont-discourage-tool-calls/</guid><description>On Sonnet 5.5, &apos;minimize tool calls&apos; makes it answer from training data when a search would catch what changed. Delete the line; say when to check sources.</description><pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate><category>sonnet-5-5</category><category>prompting</category><category>tool-use</category><category>claude-md</category></item><item><title>Superpowers vs no plugin: 192 runs, one better deliverable</title><link>https://bartlomiejkrupa.dev/articles/does-superpowers-beat-no-plugin/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/does-superpowers-beat-no-plugin/</guid><description>I ran claude plugin eval on obra/superpowers vs no plugin: it changed how Claude worked on 3 of 7 tasks, improved the result on 1, and cost 1.33x per task.</description><pubDate>Tue, 29 Sep 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>skills</category><category>plugins</category><category>evals</category><category>superpowers</category><category>benchmark</category><category>context-engineering</category></item><item><title>How to use ChatGPT effectively: four moves, not 100 prompts</title><link>https://bartlomiejkrupa.dev/articles/how-to-use-chatgpt-effectively/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/how-to-use-chatgpt-effectively/</guid><description>OpenAI&apos;s own guidance reduces to four moves: structure the ask, show one example, pick the answer mode, and correct instead of restarting. With a template.</description><pubDate>Wed, 05 Aug 2026 00:00:00 GMT</pubDate><category>chatgpt</category><category>prompting</category><category>beginners</category><category>openai</category></item><item><title>One-way doors your agent can already walk through</title><link>https://bartlomiejkrupa.dev/articles/one-way-doors-your-agent-can-walk-through/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/one-way-doors-your-agent-can-walk-through/</guid><description>Nobody can tell you if delegating to an agent will be faster. You can always know what it costs if it&apos;s wrong. Six rules for routing work by reversibility.</description><pubDate>Tue, 04 Aug 2026 00:00:00 GMT</pubDate><category>decision-making</category><category>agents</category><category>planning</category><category>risk</category></item><item><title>Knowledge vs rule</title><link>https://bartlomiejkrupa.dev/notes/knowledge-vs-rule/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/knowledge-vs-rule/</guid><description>Ask whether a fact must be known or followed. Knowledge tolerates a probabilistic layer; a rule that must always hold belongs in a check, not a prompt.</description><pubDate>Fri, 31 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>claude-md</category><category>auto-memory</category><category>hooks</category><category>context-engineering</category></item><item><title>Claude follows its own memory until you contradict it</title><link>https://bartlomiejkrupa.dev/articles/claude-code-auto-memory/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-auto-memory/</guid><description>A rule in Claude Code&apos;s auto memory held 3/3 runs until the user contradicted it, then failed 0/3 - the same score the identical rule got in CLAUDE.md.</description><pubDate>Thu, 30 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>auto-memory</category><category>claude-md</category><category>hooks</category><category>benchmark</category><category>context-engineering</category></item><item><title>A 129-rule CLAUDE.md replied like an empty one</title><link>https://bartlomiejkrupa.dev/articles/claude-md-adherence-bench/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-md-adherence-bench/</guid><description>On the adversarial task its line-36 rule existed to prevent, a 129-instruction CLAUDE.md gave the same one-word reply as a harness with no instructions.</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><category>claude-md</category><category>harness</category><category>instruction-following</category><category>benchmark</category><category>leanharness</category><category>context-engineering</category></item><item><title>Prompt cache floors: 512 on Opus 5, 4,096 on Haiku 4.5</title><link>https://bartlomiejkrupa.dev/articles/prompt-cache-floors-by-model/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/prompt-cache-floors-by-model/</guid><description>Anthropic&apos;s minimum cacheable prefix runs backwards: newer models have the lower floor, so one prefix caches on Opus 5 and silently never on Haiku 4.5.</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><category>prompt-caching</category><category>cost</category><category>tokens</category><category>claude</category><category>cheatsheet</category><category>cache-control</category></item><item><title>Agentic loop</title><link>https://bartlomiejkrupa.dev/notes/agentic-loop/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/agentic-loop/</guid><description>Claude Code runs a gather → act → verify loop: startup load fills context before you type, tool output piles up, and compaction, /clear, subagents trim it.</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>agentic-loop</category><category>context</category></item><item><title>Cache-read verifier</title><link>https://bartlomiejkrupa.dev/notes/cache-read-verifier/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/cache-read-verifier/</guid><description>Fire the same request twice; if cache_read_input_tokens is zero on call 2, the prefix is changing or under the model minimum. Verify before you celebrate.</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><category>caching</category><category>cost</category><category>prompt-caching</category><category>debugging</category></item><item><title>Observation masking</title><link>https://bartlomiejkrupa.dev/notes/observation-masking/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/observation-masking/</guid><description>Observation masking swaps old tool outputs for a placeholder, keeping what the agent tried but not the bytes - agent cost down over 50%, solve rate intact.</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><category>context</category><category>cost</category><category>agents</category><category>tokens</category></item><item><title>Verify before done</title><link>https://bartlomiejkrupa.dev/notes/verify-before-done/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/verify-before-done/</guid><description>Done means a named check passed with a real exit code - not the model saying so. Enforcement is a Stop hook, so it holds when session discipline decays.</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><category>harness</category><category>hooks</category><category>evals</category><category>claude-code</category></item><item><title>Claude Opus 5 closes on Fable at Opus price</title><link>https://bartlomiejkrupa.dev/articles/claude-opus-5/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-opus-5/</guid><description>Opus 5 keeps the $5/$25 price of Opus 4.8 with near-Fable agentic quality - within 0.5% of Fable on CursorBench at half the cost per task.</description><pubDate>Mon, 27 Jul 2026 00:00:00 GMT</pubDate><category>claude</category><category>opus</category><category>fable</category><category>pricing</category><category>agents</category><category>model-selection</category></item><item><title>FDEs close the last mile AI products miss</title><link>https://bartlomiejkrupa.dev/articles/forward-deployed-engineer-last-mile/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/forward-deployed-engineer-last-mile/</guid><description>A Forward Deployed Engineer embeds in the customer environment to make frontier AI work on real data, workflows, and compliance - not from a ticket queue.</description><pubDate>Sun, 26 Jul 2026 00:00:00 GMT</pubDate><category>fde</category><category>agents</category><category>deployment</category><category>enterprise</category></item><item><title>Last-mile deployment</title><link>https://bartlomiejkrupa.dev/notes/last-mile-deployment/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/last-mile-deployment/</guid><description>Last-mile deployment adapts a working product to a customer&apos;s real systems until the paid-for outcome lands - the gap Forward Deployed Engineers close.</description><pubDate>Sun, 26 Jul 2026 00:00:00 GMT</pubDate><category>fde</category><category>agents</category><category>deployment</category><category>enterprise</category></item><item><title>DeepSeek V4 Flash is a worker tier, not an Opus killer</title><link>https://bartlomiejkrupa.dev/articles/deepseek-v4-flash/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/deepseek-v4-flash/</guid><description>DeepSeek V4 Flash scores 79.0 on SWE-bench Verified vs Opus 5&apos;s reported 96.0. Route it as a cheap executor behind a frontier planner, not as the planner.</description><pubDate>Sat, 25 Jul 2026 00:00:00 GMT</pubDate><category>deepseek</category><category>open-weights</category><category>model-selection</category><category>agents</category><category>pricing</category><category>local-inference</category></item><item><title>opencode is free until the model rotates out</title><link>https://bartlomiejkrupa.dev/articles/opencode-free-coding-agent/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/opencode-free-coding-agent/</guid><description>Every model on opencode&apos;s Zen free list is time-limited; January&apos;s free set had turned over by July. Adopt it for the harness and budget the paid fallback.</description><pubDate>Sat, 25 Jul 2026 00:00:00 GMT</pubDate><category>opencode</category><category>agents</category><category>cost</category><category>model-selection</category><category>prompt-caching</category><category>harness</category></item><item><title>AI detectors can score 97% and still be wrong</title><link>https://bartlomiejkrupa.dev/articles/ai-generated-text-detectors/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/ai-generated-text-detectors/</guid><description>A high accuracy score means the tool passed one practice test - not that it can prove who wrote your essay. New models and &apos;humanizer&apos; rewrites break it.</description><pubDate>Thu, 23 Jul 2026 00:00:00 GMT</pubDate><category>ai-detection</category><category>academic-integrity</category><category>false-positives</category><category>humanizer</category><category>evals</category></item><item><title>Open-weights ≠ open-source for agent stacks</title><link>https://bartlomiejkrupa.dev/articles/open-weights-vs-closed-api/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/open-weights-vs-closed-api/</guid><description>Decide open-weights vs closed API by data path, TCO, and ops burden, then hybridize by layer. Most &apos;open&apos; models ship weights only, not training code.</description><pubDate>Thu, 23 Jul 2026 00:00:00 GMT</pubDate><category>open-weights</category><category>self-hosting</category><category>api</category><category>tco</category><category>agents</category></item><item><title>Why fast mode isn&apos;t a lower effort level</title><link>https://bartlomiejkrupa.dev/articles/claude-effort-thinking-fast-mode/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-effort-thinking-fast-mode/</guid><description>Fast mode buys up to 2.5x speed on Opus for a flat ~2x per-token premium with no quality change; lower effort cuts tokens instead. Two controls that stack.</description><pubDate>Tue, 21 Jul 2026 00:00:00 GMT</pubDate><category>claude</category><category>claude-code</category><category>effort</category><category>extended-thinking</category><category>fast-mode</category><category>cost-optimization</category></item><item><title>Don&apos;t break the prompt cache</title><link>https://bartlomiejkrupa.dev/articles/dont-break-the-prompt-cache/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/dont-break-the-prompt-cache/</guid><description>Prompt caching only pays when the prefix stays byte-identical - put stable content first, dynamic content last, and verify with cache_read_input_tokens.</description><pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate><category>cost</category><category>caching</category><category>prompt-caching</category><category>tokens</category><category>agents</category></item><item><title>Five metrics for an agent eval pipeline</title><link>https://bartlomiejkrupa.dev/articles/five-metrics-for-an-agent-eval-pipeline/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/five-metrics-for-an-agent-eval-pipeline/</guid><description>Pick 1–2 custom LLM-judge metrics plus 2–3 generic agent metrics - about five. BLEU/ROUGE miss semantics; G-Eval, DAG, and QAG cover what humans grade.</description><pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate><category>evals</category><category>llm-as-judge</category><category>agents</category><category>cost</category><category>quality</category></item><item><title>How to plan and scope a build with an LLM</title><link>https://bartlomiejkrupa.dev/articles/plan-and-scope-a-build-with-an-llm/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/plan-and-scope-a-build-with-an-llm/</guid><description>Scope LLM-assisted builds with measurable goals, risk-first order, and tasks sized to one review sitting - plus a sunk cost checkpoint and a ready prompt.</description><pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate><category>planning</category><category>vibe-coding</category><category>agents</category><category>prompting</category></item><item><title>Trim output, not the cache</title><link>https://bartlomiejkrupa.dev/articles/trim-output-not-the-cache/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/trim-output-not-the-cache/</guid><description>Output tokens cost ~5× input and never cache - cut free-form prose first. Rewriting inside a cached prefix mid-session can raise the bill, not lower it.</description><pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate><category>cost</category><category>tokens</category><category>output</category><category>caching</category><category>agents</category></item><item><title>Cache-stable prefix</title><link>https://bartlomiejkrupa.dev/notes/cache-stable-prefix/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/cache-stable-prefix/</guid><description>Put only byte-stable content before the prompt-cache marker - system prompt and tool schemas first, timestamps after - or every call pays full input price.</description><pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate><category>caching</category><category>cost</category><category>prompt-caching</category><category>tokens</category></item><item><title>LLM-as-a-judge</title><link>https://bartlomiejkrupa.dev/notes/llm-as-a-judge/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/llm-as-a-judge/</guid><description>LLM-as-a-judge scores model output with a fixed rubric: DAG for pass/fail, G-Eval for subjective quality, QAG for fact checks. Cap pipelines at ~5 metrics.</description><pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate><category>evals</category><category>llm-as-judge</category><category>agents</category><category>quality</category></item><item><title>From symbolic AI to the agentic era</title><link>https://bartlomiejkrupa.dev/articles/from-symbolic-ai-to-agentic-era/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/from-symbolic-ai-to-agentic-era/</guid><description>AI winters followed the gap between ambition and engineering; Feigenbaum’s Knowledge Principle and today’s agent stacks show why hybrid systems return.</description><pubDate>Sun, 19 Jul 2026 00:00:00 GMT</pubDate><category>ai-history</category><category>expert-systems</category><category>ai-winter</category><category>agents</category><category>rag</category></item><item><title>How to set up a minimal Claude Code harness: 10 files, one command</title><link>https://bartlomiejkrupa.dev/articles/claude-code-harness-starter/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-harness-starter/</guid><description>A minimal Claude Code harness in ten files: a lean CLAUDE.md, a definition-of-done loop, read-only subagents, and credential deny rules. One npx install.</description><pubDate>Sat, 18 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>claude-md</category><category>agents-md</category><category>harness</category><category>context-engineering</category></item><item><title>Claude Code security: when /sandbox is not enough</title><link>https://bartlomiejkrupa.dev/articles/claude-code-security-sandboxing-2026/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-security-sandboxing-2026/</guid><description>OS-level Bash sandboxing cut Anthropic&apos;s permission prompts ~84%, but /sandbox only wraps Bash. Pick the right isolation tier and deny credential reads.</description><pubDate>Fri, 17 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>security</category><category>sandboxing</category><category>permissions</category><category>prompt-injection</category></item><item><title>Prune the log, not the window</title><link>https://bartlomiejkrupa.dev/articles/llm-context-management/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/llm-context-management/</guid><description>Managing what a coding agent keeps in context - not window size - cut agent cost over 50% on SWE-bench Verified with no solve-rate drop, per JetBrains.</description><pubDate>Thu, 09 Jul 2026 00:00:00 GMT</pubDate><category>context-management</category><category>agents</category><category>cost</category><category>tokens</category><category>context-window</category></item><item><title>Stop paying full price for repeat LLM calls</title><link>https://bartlomiejkrupa.dev/articles/llm-cost-optimization/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/llm-cost-optimization/</guid><description>Prompt caching cuts 90–97.5% off repeated tokens, batching cuts 50%, and the two stacked cut 95% or more. A 2026 PwC study measured 41–80% real savings from caching alone.</description><pubDate>Thu, 09 Jul 2026 00:00:00 GMT</pubDate><category>cost</category><category>caching</category><category>batching</category><category>model-routing</category><category>context-management</category><category>pricing</category><category>tokens</category></item><item><title>The vibe-coding field manual</title><link>https://bartlomiejkrupa.dev/articles/vibe-coding-field-manual/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/vibe-coding-field-manual/</guid><description>Everything in one place: mindset, planning, the session loop, ten practices ranked by blast radius, playbooks, ten tools with 2026 pricing, and recovery.</description><pubDate>Thu, 09 Jul 2026 00:00:00 GMT</pubDate><category>vibe-coding</category><category>agentic-workflow</category><category>claude-code</category><category>ai-coding-tools</category><category>context-engineering</category></item><item><title>Claude Code channels: push events into your session</title><link>https://bartlomiejkrupa.dev/articles/claude-code-channels/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-channels/</guid><description>Channels are MCP servers that push Telegram, Discord, iMessage, or webhook events into your open Claude Code session. Needs v2.1.80+ and an allowlist.</description><pubDate>Wed, 08 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>channels</category><category>mcp</category><category>webhooks</category><category>telegram</category></item><item><title>Claude Code commands cheatsheet (2026)</title><link>https://bartlomiejkrupa.dev/articles/claude-code-commands-cheatsheet-2026/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-commands-cheatsheet-2026/</guid><description>A practical map of Claude Code’s shortcuts, prefixes, session commands, and CLI flags - ordered like a real terminal cheatsheet.</description><pubDate>Wed, 08 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>commands</category><category>shortcuts</category><category>interactive-mode</category><category>cheatsheet</category></item><item><title>Vibe coding vs agentic engineering: same agent, different harness</title><link>https://bartlomiejkrupa.dev/articles/new-sdlc-vibe-coding/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/new-sdlc-vibe-coding/</guid><description>Google&apos;s 2026 SDLC whitepaper draws the line between vibe coding and agentic engineering at verification, not AI use - and the harness decides your side.</description><pubDate>Wed, 08 Jul 2026 00:00:00 GMT</pubDate><category>vibe-coding</category><category>agentic-engineering</category><category>sdlc</category><category>harness</category><category>context-engineering</category></item><item><title>Context engineering</title><link>https://bartlomiejkrupa.dev/notes/context-engineering/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/context-engineering/</guid><description>Context engineering is curating what enters the model&apos;s context window each turn, rather than relying on a bigger window to absorb the clutter.</description><pubDate>Wed, 08 Jul 2026 00:00:00 GMT</pubDate><category>context</category><category>claude-code</category><category>tokens</category></item><item><title>Claude Code tools: the permission model, tool by tool</title><link>https://bartlomiejkrupa.dev/articles/claude-code-tools/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-tools/</guid><description>Claude Code ships 46 built-in tools and only 14 ask for permission: the read/mutate split, daily gotchas, and ToolName(specifier) rules to restrict them.</description><pubDate>Mon, 06 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>tools</category><category>permissions</category><category>bash</category><category>mcp</category></item><item><title>Claude Fable 5: refusals are an API contract, not an error</title><link>https://bartlomiejkrupa.dev/articles/claude-fable-5/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-fable-5/</guid><description>Fable 5 is GA at $10/$50 per million tokens with a 1M context - and refusals arrive as HTTP 200, so integrations need refusal handling and a fallback.</description><pubDate>Mon, 06 Jul 2026 00:00:00 GMT</pubDate><category>claude</category><category>fable</category><category>mythos</category><category>pricing</category><category>refusals</category><category>model-selection</category><category>prompting</category></item><item><title>Claude Code /goal: run until a fresh model says done</title><link>https://bartlomiejkrupa.dev/articles/claude-code-goal-command/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-goal-command/</guid><description>/goal sets a completion condition; Claude keeps going until a separate fast model (Haiku by default) confirms it from the transcript. Needs v2.1.139+.</description><pubDate>Wed, 01 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>goal</category><category>agentic-loop</category><category>auto-mode</category><category>hooks</category></item><item><title>Claude Code plan mode: what it really enforces</title><link>https://bartlomiejkrupa.dev/articles/claude-code-plan-mode/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-plan-mode/</guid><description>Plan mode makes Claude Code read and plan without editing until you approve (Shift+Tab). It blocks the edit tools - but shell commands can still write.</description><pubDate>Wed, 01 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>plan-mode</category><category>agentic-workflow</category><category>permission-modes</category><category>context-engineering</category></item><item><title>Verifiable completion condition</title><link>https://bartlomiejkrupa.dev/notes/verifiable-completion-condition/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/verifiable-completion-condition/</guid><description>A verifiable completion condition is a loop stop rule with one measurable end state the model can prove from its own output - the loop ends, not spins.</description><pubDate>Wed, 01 Jul 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>goal</category><category>agents</category><category>autonomy</category></item><item><title>How Claude Code&apos;s agentic loop fills your context window</title><link>https://bartlomiejkrupa.dev/articles/claude-code-agentic-loop-context/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-code-agentic-loop-context/</guid><description>Claude Code runs a gather→act→verify loop that fills context before you type. Compaction, /clear, and subagents are the official levers for what sticks.</description><pubDate>Tue, 30 Jun 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>agentic-loop</category><category>context-window</category><category>compaction</category><category>claude-md</category><category>skills</category><category>subagents</category><category>mcp</category><category>hooks</category></item><item><title>Why most agents default to the wrong Claude tier</title><link>https://bartlomiejkrupa.dev/articles/claude-model-tier-comparison/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-model-tier-comparison/</guid><description>Fable 5.1 for the hardest reasoning, Opus 5.5 to orchestrate at $4/$20, Sonnet 5.5 as the default worker, Haiku 4.5 for parallel grunt work. Pick by job.</description><pubDate>Tue, 30 Jun 2026 00:00:00 GMT</pubDate><category>claude</category><category>fable</category><category>opus</category><category>sonnet</category><category>haiku</category><category>pricing</category><category>agents</category><category>model-selection</category></item><item><title>Claude Sonnet 5 closes the gap to Opus without the Opus bill</title><link>https://bartlomiejkrupa.dev/articles/claude-sonnet-5/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/claude-sonnet-5/</guid><description>Sonnet 5 is the default on Free and Pro at $2/$10 per million tokens - close to Opus 4.8 on Anthropic&apos;s launch benchmarks at 40% of the Opus input price.</description><pubDate>Tue, 30 Jun 2026 00:00:00 GMT</pubDate><category>claude</category><category>sonnet</category><category>opus</category><category>pricing</category><category>agents</category><category>model-selection</category><category>fable</category></item><item><title>Context engineering beats a bigger context window</title><link>https://bartlomiejkrupa.dev/articles/context-engineering-beats-a-bigger-window/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/context-engineering-beats-a-bigger-window/</guid><description>Claude Code runs up to a 1M-token window, but a bigger window doesn&apos;t fix a cluttered one - every turn replays history and quality drops before the cap.</description><pubDate>Tue, 30 Jun 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>context-window</category><category>context-engineering</category><category>tokens</category><category>subagents</category></item><item><title>Why agents ignore your CLAUDE.md</title><link>https://bartlomiejkrupa.dev/articles/why-agents-ignore-your-claude-md/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/articles/why-agents-ignore-your-claude-md/</guid><description>A bloated CLAUDE.md gets filtered out as noise. Keep it to universal instructions and move everything else behind progressive disclosure.</description><pubDate>Tue, 30 Jun 2026 00:00:00 GMT</pubDate><category>claude-code</category><category>claude-md</category><category>context-engineering</category><category>agents-md</category><category>progressive-disclosure</category></item><item><title>Lost in the middle</title><link>https://bartlomiejkrupa.dev/notes/lost-in-the-middle/</link><guid isPermaLink="true">https://bartlomiejkrupa.dev/notes/lost-in-the-middle/</guid><description>Language models use information at the start and end of a long context far more reliably than the middle - recall drops well before the token limit.</description><pubDate>Tue, 30 Jun 2026 00:00:00 GMT</pubDate><category>context</category><category>retrieval</category><category>tokens</category></item></channel></rss>