Skip to content

Engineering notes from the agent era

Most posts here are about what changes when the agent becomes a first-class collaborator: local code intelligence, testing systems that analyze behavior over time, knowledge tooling that compounds. The rest of the career (cloud, low-latency, mobile) shows up when something's worth writing down.

An overhead editorial photograph of a walnut desk. An open laptop shows a blurred code editor, beside fanned blank index cards, two pale-yellow sticky notes, a folded sheet with a pencil sketch of boxes connected by arrows, a graphite pencil, and a glass of iced cold brew coffee.
Oct 19, 2026·16 min read

How I Get Work Done With Agents (October 2026)

How I work with agents as of October 2026: architecture in docs first, sluice routing each change by shape (8 min fast, 90 min deep), magpie on every PR.

Oct 1723 min read

Do You Still Need to Read AI-Generated Code?

I asked three coding agents for the same five functions 900 times. A ticket gave a median 26 behaviours per function; a precise spec gave 2. Read the spec.

  • AI agents
  • code review
  • code comprehension
  • specifications
  • Claude Code
  • Codex
Oct 519 min read

Your Interview Measures the Agent, Not the Candidate

I gave four interview formats to Claude and Codex 438 times, unaided. Every take-home correctness check was met. What separates candidates isn't in the code.

  • technical interviews
  • hiring
  • AI coding agents
  • take-home assignments
  • engineering management
Sep 2822 min read

Your Agent's Tests Pass. The Bug Is in the Chat Log.

I planted bugs in 18 functions and asked Claude to write tests. Given only the code, the suites locked the bug in and still scored 0.95 on mutation testing.

  • AI agents
  • mutation testing
  • agent-written tests
  • Claude Code
  • AI engineering metrics
Sep 2115 min read

The Code Only Goes One Way: Why Agents Won't Delete

Across 2,115 agent edits to code files in my own sessions, 73.7% grew the file and 10.4% shrank it. A July 2026 paper names the mechanism: deletion avoidance.

  • AI agents
  • code quality
  • technical debt
  • Claude Code
  • AI engineering metrics
Sep 1923 min read

Is Your Code Context Good? The Benchmarks Can't Tell You.

Cursor benchmarked semantic code search at +12.5%, then deleted it. I ran 214 agent evals on my own repos: zero tasks discriminate on Opus 5.

  • code intelligence
  • AI agents
  • code search
  • evaluation
  • context engineering
Sep 1420 min read

Your Agent Recovers From Everything It Can See

Across 81,123 tool calls in 1,278 Claude Code sessions, 2.52% failed and 93.1% of those were plumbing. The agent recovered on the next call 91.2% of the time.

  • AI agents
  • agent observability
  • Claude Code
  • agent reliability
  • AI engineering metrics
Sep 715 min read

The Apprenticeship Was in the Comments

Anthropic put 52 junior engineers on an unfamiliar library. The AI-assisted half scored 50% against 67%, worst on debugging. Review taught that skill.

  • code review
  • junior developers
  • engineering management
  • mentorship
  • AI engineering metrics
Aug 3118 min read

Merged Is Not Reviewed

Across 12,291 merged PRs in five OSS repos, code arriving for review rose 42% a month while review discussion per 100 lines fell 36%. Time-to-merge did not move.

  • code review
  • AI engineering metrics
  • agentic workflows
  • verification
  • delivery metrics
Aug 2422 min read

Agent Memory, Revisited: What Held Up and What Didn't

Zero reported benefit from transcript recall. Clean code cuts agent tokens 7-8% at unchanged pass rates. I audited 13 of my own agent-memory claims: 6 hold.

  • agent memory
  • Claude Code
  • agent skills
  • context engineering
  • AI agents
Aug 1730 min read

Measure the Machine, Not the Mood: How to Eval Your Own Week

A week of session eval found what a green build cannot: 58% of the clock was tool execution, re-reviews outnumbered reviews 10 to 7, and 17 of 23 flags wrong.

  • AI evals
  • session eval
  • agent observability
  • AI engineering metrics
  • agentic workflows
Aug 1029 min read

Agents as the Attacker: The Threat Model Just Flipped

Hugging Face was breached by an autonomous agent framework across 17,000 logged actions. OpenAI later said it was their eval harness. The threat model flipped.

  • AI agents as attackers
  • agent security
  • credential scoping
  • coding agent sandbox escape
  • agentjacking
Aug 532 min read

LLM Model Deprecation: The Failures That Don't Error

Opus 4.1 retires today. Seventeen dated churn events in 61 days. The failures that error are the cheap ones. A pinning policy, a grep list, an eval gate.

  • LLM model deprecation
  • model version pinning
  • AI engineering
  • model migration
  • agent maintenance
Aug 232 min read

Your Harness Is the Cost Line, Not Your Model

Claude Code sends ~32,800 tokens before reading your prompt. Databricks changed harness, not model, and cut cost per task more than 2x at the same quality.

  • AI agent cost
  • Claude Code
  • token overhead
  • agent harness
  • AI engineering
Jul 3118 min read

The Agent Audit Trail Paradox: Your Forensics Got Worse

Codex encrypted sub-agent task payloads and the readable agent audit trail went with it. Across 991 real delegations, 97.8% would fit an 8 KiB audit copy.

  • agent observability
  • AI agent security
  • audit trail
  • OpenTelemetry
  • AI engineering
Jul 2828 min read

MCP Goes Stateless: The Migration Guide for Shipped Servers

MCP 2026-07-28 removes the handshake, the session id, and Sampling. Nothing breaks on July 28, which is the trap. Here is the migration, in blast-radius order.

  • MCP
  • model context protocol
  • protocol migration
  • platform engineering
  • AI engineering
Jul 2413 min read

Open Weight vs. Frontier: A Realistic 2026 Coding Verdict

Open-weight coders closed the gap to 5-10 points at a fraction of the price. But they ran 29% of tokens at under 4% of spend in 2026. Route, don't switch.

  • open weight
  • frontier models
  • LLM cost
  • self-hosting
  • AI engineering
Jul 2118 min read

Your Agent's Tools Are a Supply Chain Now

A malicious MCP package ran clean for 15 releases, then a line BCC'd every email to an attacker. Agent tools are a supply chain. Secure them at install time.

  • MCP
  • supply chain security
  • AI agents
  • AI security
  • prompt injection
Jul 1920 min read

Keep the Harness, Change the Model: Run GPT Inside Claude Code

Keep Claude Code's tools, hooks, skills, MCP servers, and permissions while routing its agent harness to supported GPT models through a local proxy.

  • Claude Code
  • GPT
  • AI coding agents
  • developer tools
  • model routing
Jul 1816 min read

The Year the Coding UI Stopped Being a Text Box

In four months of 2026, six coding tools shipped the same parallel-agent command center. With Codex past 5M weekly users, the UI stopped being anyone's moat.

  • AI coding tools
  • Codex
  • Claude Code
  • agentic coding
  • developer tools
Jul 1517 min read

A2A vs. MCP: The Coordination Layer You Haven't Needed Yet

MCP crossed 97M monthly downloads; A2A hit 150+ orgs in a year. But most teams reaching for A2A just need in-process orchestration. Here's the decision tree.

  • A2A
  • MCP
  • AI agents
  • multi-agent systems
  • platform engineering
Jul 1020 min read

Block the Bad Agent in CI: Gate on Trajectories, Not Just Outputs

More than 1 in 5 GitHub code reviews now involve an agent. Pass@1 is the wrong merge gate. Gate on the trajectory, with a flake budget. Here is the CI policy.

  • agent evals
  • CI/CD
  • agent PR review
  • trajectory evaluation
  • AI agents
Jul 720 min read

What Actually Stops Prompt Injection: Defenses vs. Theater

A 2026 lab study bypassed 12 prompt-injection defenses at over 90% attack success. Detection is theater; the durable wins are architectural. Here is what holds.

  • prompt injection
  • AI agent security
  • prompt injection defenses
  • CaMeL
  • AI agents
Jul 415 min read

Narcissus at the Keyboard

Sycophancy is structural, not a bug: models are trained to reflect you back. Why a mirror can't be a collaborator, and how to build the friction back in.

  • AI sycophancy
  • RLHF
  • AI agents
  • coding agents
  • LLM evaluation
Jul 220 min read

Benchmarks Stopped Measuring Intelligence. Evaluate Models Yourself.

The same model scores 80.9% on SWE-bench Verified and 45.9% on contamination-resistant Pro. A leaderboard number isn't a capability. Build your own eval.

  • LLM evaluation
  • AI benchmarks
  • SWE-bench
  • LLM-as-judge
  • model selection
Jun 3020 min read

The Lethal Trifecta: Why Your Coding Agent Is a Loaded Gun

Four AI products leaked private data to prompt injection in eight days, and attacks top 85% against the best defenses. The lethal trifecta is buildable.

  • prompt injection
  • MCP security
  • lethal trifecta
  • AI agents
  • indirect prompt injection
Jun 2718 min read

LLM-as-Judge Is the New Flaky Test

A 2026 RAND harness found no LLM judge is uniformly reliable; trivial rewrites flip verdicts. Here is the discipline that makes a green eval trustworthy.

  • LLM-as-judge
  • AI evaluation
  • benchmarks
  • SWE-bench
  • AI agents
Jun 2517 min read

The Router Pattern: When to Downshift the Model

A 5-25x cost spread separates Haiku from Opus, yet most agent turns pay top-tier rates. A per-call routing decision tree, and where downshifting breaks.

  • AI agents
  • model routing
  • LLM cost
  • Claude Code
  • agent pipelines
Jun 2318 min read

Sandboxing Coding Agents: The 9-Second Argument for Isolation

A Cursor agent deleted PocketOS's prod database and backups in 9 seconds. Prompt rules aren't a boundary; the kernel is. An isolation ladder for coding agents.

  • AI agents
  • sandboxing
  • security
  • Claude Code
  • DevOps
Jun 2017 min read

Does Your CLAUDE.md Actually Help? The Research Says Maybe Not

An ETH Zurich study found context files cut coding-agent success up to 2% and raised cost 20-23%. Field data disagrees. When your CLAUDE.md earns its tokens.

  • Claude Code
  • AGENTS.md
  • context engineering
  • AI agents
  • developer productivity
Jun 1819 min read

The Session Handoff: When Your Attention Budget Is Spent

Anthropic frames context as an attention budget. Lost-in-the-middle costs 30%+ retrieval accuracy. Three axes of handoff, five triggers, one cut.

  • AI agents
  • context engineering
  • Claude Code
  • session handoff
  • attention
Jun 1320 min read

Agent SRE: Oncall and Escalation for Coding Agents

Anthropic's Apr 23 2026 postmortem took 6 weeks to detect. Five SRE primitives map to Claude Code hooks and turn agent oncall into a shipped artifact.

  • AI agents
  • SRE
  • oncall
  • Claude Code
  • hooks
Jun 1124 min read

The Promotion Ladder: Prompt, Skill, Hook, Tool

Four rungs trade flexibility for determinism. AGENTIF puts the best model at under 30% adherence; well-designed schema cuts MCP cost 99.9%. Match the rung.

  • skills
  • hooks
  • mcp
  • agents
  • claude-code
Jun 724 min read

The Handoff Problem: When to Take the Keyboard Back

Developers use AI in 60% of work but fully delegate only 0 to 20% of tasks. Four named cues for the moment you reclaim: drift, scope, novel error, 80%.

  • autonomy
  • agents
  • claude-code
  • AI pair programming
  • agentic coding
Jun 522 min read

Long-Running Autonomous Agents: Drift, Checkpointing, Recovery

METR pegs Opus 4.6 at a 14.5-hour 50%-time-horizon. Pass@1 collapses 24 points on long tasks. Drift as eval, checkpoint on threshold, fork not restart.

  • AI agents
  • Claude Code
  • agent reliability
  • long-horizon agents
  • agentic coding
Jun 316 min read

Cache-Aware Prompting: Engineering for 90%+ Hit Rate

ProjectDiscovery moved from 7% to 84% cache hit rate without changing the model. The discipline, the workload taxonomy, the five named failure modes.

  • AI engineering
  • prompt engineering
  • developer productivity
  • Anthropic
  • cost optimization
Jun 119 min read

Agent Cost Observability: From Personal Token Budget to Team-Wide

98% of FinOps teams now manage AI spend, up from 31% in 2024. Solo ccusage solved one developer; here is the three-axis, two-cap recipe for 200.

  • FinOps
  • AI engineering
  • developer productivity
  • observability
  • platform engineering
May 3118 min read

Tool Design for Agents: Schema Is the Prompt

97% of MCP tool descriptions have at least one code smell. 56% fail to state purpose. The description is the prompt your agent reads to pick a tool. Here is the rubric.

  • AI agents
  • MCP
  • developer tools
  • prompt engineering
  • platform engineering
May 3022 min read

The Project Graph: What Agents Need That Filesystems Can't Give

40 questions, two large repos, three LLM judges. Code-intelligence: judge 7.12 vs default 6.30 (+0.82), 29% faster, +8% tokens. Cites 50% vs CodeGraph's 32%.

  • AI agents
  • developer tools
  • MCP
  • code intelligence
  • platform engineering
May 2821 min read

The Five Failure Modes of Autonomous Coding Agents

Five named failure modes for autonomous coding agents, each with a real 2026 incident, a detection signal, and a retro template you can drop into CLAUDE.md today.

  • AI agents
  • incident response
  • Claude Code
  • evals
  • hooks
May 2722 min read

From Localhost to Production: The Handoff Brief for AI-Built Apps

45% of AI-generated code ships OWASP vulns. 380K vibe-coded apps public right now. The seven-gap handoff brief for builders and engineers.

  • AI engineering
  • vibe coding
  • production
  • security
  • developer experience
May 2517 min read

UI Libraries vs AI-Generated Components: The Tailwind Substrate

Tailwind 51%, v0 4M users, shadcn passed Chakra. The library-vs-AI debate is the wrong frame: substrate placement is the right one. The four-quadrant framework.

  • frontend
  • AI engineering
  • Tailwind
  • shadcn
  • developer productivity
May 2320 min read

MCP Server for Your Codebase: Tool-Shape, Not API-Mirror

Cloudflare's first MCP server would have eaten 1.17M input tokens. Their redesign got it to roughly 1,000. Here is the framework, applied to a codebase server.

  • MCP
  • model context protocol
  • AI engineering
  • developer tools
  • platform engineering
May 2115 min read

Claude Code Hooks: The Only Deterministic Substrate

The best frontier model follows under 30% of agentic instructions perfectly. Hooks run as code on every matched event regardless. Here is the substrate map.

  • Claude Code
  • AI agents
  • hooks
  • policy enforcement
  • agentic coding
May 1918 min read

Agent Evals: A Test Suite for Your Claude Code Setup

Observability says what happened. Evals say if the right thing happened. 89% ship the first, 52% the second. Four control-plane evals for Claude Code.

  • Claude Code
  • AI agents
  • evals
  • agentic coding
  • developer productivity
May 1915 min read

The Permission Prompt Is Dying in AI Coding Agents

Claude Code users approve 93% of prompts. For AI coding agents, prompt walls failed as governance; safety is policy: allow, gate, block, log.

  • Claude Code
  • AI agents
  • permissions
  • policy enforcement
  • agentic coding
May 1822 min read

Stdio MCP Doesn't Scale: Dropping 3,662 Lines for a Daemon

Five subagents across three repos loaded 2.6 GB of duplicated embedding models. v4 deleted the stdio path; the daemon shares everything. Here is the migration.

  • MCP
  • model context protocol
  • developer tools
  • AI engineering
  • platform engineering
May 1618 min read

Claude Mythos vs. the CVE Surge: AI Security in May 2026

On May 11 curl's Daniel Stenberg called Anthropic's Mythos report mostly marketing. The same six months delivered the CurXecute RCE, the Claude Code chain, and a 35-CVE March.

  • AI security
  • CVE
  • Claude
  • Copilot
  • AppSec
  • developer productivity
May 1517 min read

Agent Memory Architecture: Four Memories, Four Fixes

200K-context models rot by 50K tokens. Coding agents hit 150K in 35 minutes. Map four memories onto Claude Code: MEMORY.md, .remember, JSONL, skills.

  • Claude Code
  • AI agents
  • memory architecture
  • context engineering
  • agentic coding
May 1516 min read

Anthropic Just Metered the Agent SDK: What Breaks on June 15

On May 13 Anthropic split Claude subscriptions into interactive and programmatic pools. Power users call it a 25x cost cut. Here is the strategic read.

  • AI engineering
  • Claude
  • Codex
  • agent SDK
  • developer productivity
May 1319 min read

DORA in the Agent Era: Three Metrics Stop Measuring

DORA's four metrics measured human-paced delivery. With agents writing 46% of code and review time up 441% YoY, three no longer measure what they claim.

  • DORA metrics
  • AI engineering
  • developer productivity
  • DevEx
  • engineering management
May 1115 min read

Agentic TDD: When the Failing Test Is the Spec

Spec-driven was last week's new feature. Today's spec: 17 lines of failing test. Artefact-driven TDD for follow-up agent work, against the 1.7x AI-issue rate.

  • Claude Code
  • AI agents
  • TDD
  • agentic coding
  • developer productivity
May 1018 min read

Spec-Driven Agent Development: Brainstorm, Design, Plan

PR 23 told its reviewers to use MCP. They didn't. Per-agent tool calls jumped from 0.6 to 2.6 after a design doc surfaced the wiring bug prompts hid for weeks.

  • Claude Code
  • AI agents
  • spec-driven development
  • agentic coding
  • developer productivity
May 819 min read

Agent Skills: Progressive Disclosure That Actually Scales

Naive skill loading costs roughly 22x more tokens than progressive disclosure, and the attention math gets worse with every model upgrade. The pattern, the catalog math, and the authoring mistakes that break it.

  • agent skills
  • Claude Code
  • context engineering
  • progressive disclosure
  • AI agents
May 815 min read

Subagent-Driven Development: How to Fan Out a Feature Build

Subagents fan out feature builds at ~15x token cost. Wave dispatch, a frozen plan, and the five failure modes specific to subagent-driven development.

  • Claude Code
  • AI agents
  • subagents
  • developer productivity
  • agentic coding
May 615 min read

Engineering That Outlasts the Paradigm

Trust in AI accuracy hit 29% the same year vibe coding became Word of the Year. Both numbers describe the same mistake. Engineering outlasts the paradigm.

  • AI agents
  • software engineering
  • agentic coding
  • career
  • thought leadership
May 416 min read

Subagent Patterns: When to Spawn vs Stay In-Context

Multi-agent burns 15x more tokens than chat. Five-question decision tree, 2026 token math, and three reproducible failure modes for Claude Code subagents.

  • Claude Code
  • AI agents
  • subagents
  • developer productivity
  • agentic coding
May 114 min read

We Tried to Cut Claude's Output 50%. We Got 5%. So Did Anthropic.

We aimed for 50% Claude output compression. We hit 4.7%. Anthropic hit the same wall and reverted at 3%. Here is the data and the failure mode.

  • claude-code
  • llm-output-compression
  • prompt-engineering
  • claude-skills
  • anthropic
Apr 2914 min read

Your Codebase Is the Agent's Operating Environment

Frontier agents hit 90% on SWE-Bench Verified and 21% on SWE-EVO. The variable is the shape of the codebase, not the size of the model.

  • AI agents
  • monorepo
  • code intelligence
  • code graph
  • developer tooling
Apr 2617 min read

AI Reviews the Diff. Humans Review the Decision.

AI code-review adoption tripled to 51.4% in 2025, but 31% more PRs now merge unreviewed. Honest market scan, security posture, and a Claude Code DIY recipe.

  • AI PR review
  • AI code review
  • Claude Code
  • GitHub Actions
  • developer tooling
Apr 2517 min read

Backtesting AI Agents: Replay to Catch Regressions

54% of enterprises ship AI agents in production. Most cannot tell when a CLAUDE.md edit silently regresses behavior. Backtesting is the missing discipline.

  • agent evaluation
  • backtesting
  • Claude Code
  • AI agents
  • regression testing
  • LLM as judge
Apr 2515 min read

Context Engineering in Practice: Where Does Each Piece Go?

Context engineering became the #1 2026 skill shift. Anthropic's research notes context exhibits n² token relationships. Here's the per-surface decision framework.

  • context engineering
  • Claude Code
  • MCP
  • AI agents
  • developer productivity
Apr 1827 min read

Treat AI as a Team Member, Not a Chat Window

84% of developers use AI, 46% distrust it. The right scaffolding (constitution, skills, memory, MCP, subagents) turns an assistant into a team member.

  • AI agents
  • developer productivity
  • Claude Code
  • MCP
  • team workflows
Apr 1611 min read

How to Track Claude Code 5-Hour Window Usage

40.8% of devs use Claude Code, but the 5-hour window is opaque. Build a local dashboard that parses transcripts, estimates your token budget, and rolls up team-wide cost via Grafana Loki.

  • claude-code
  • token-usage
  • developer-tools
  • ai-coding
  • cost-tracking
Apr 925 min read

Your AI Agent Is Flying Blind Without Local Code Intelligence

84% of developers use AI tools but 46% distrust the output. Three on-device models, 32 MCP tools, 9.93/10 relevance, and zero source code leaving your machine.

  • local code intelligence
  • AI agents
  • MCP
  • code search
  • developer tools
Apr 812 min read

Building an LLM Wiki: From Karpathy's Gist to a Working CLI

I turned Andrej Karpathy's LLM wiki concept into a Bun CLI (~500 lines of TypeScript) that automatically builds a persistent knowledge base from Claude Code sessions, files, and URLs.

  • llm
  • cli
  • knowledge-management
  • claude-code
  • bun
Apr 215 min read

How Do You Test Systems That Analyze Behavior Over Time?

Backtesting borrows from quant finance to catch temporal bugs unit tests miss. Poor US software quality costs $2.41T per year. Here's the technique.

  • backtesting
  • software-engineering
  • data-pipelines
  • temporal-data
  • regression-testing
  • synthetic-data
  • developer-tooling

Search posts, projects, resume, and site pages.

Jump to

  1. HomeEngineering notes from the agent era
  2. ResumeWork history, skills, and contact
  3. ProjectsSelected work and experiments
  4. AboutWho I am and how I work
  5. ContactEmail, LinkedIn, and GitHub