Dik Rana · Engineering notes
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.

Featured
"Don't Ask Again" Is a Config File: Approvals Leak Secrets
Apiiro found 2,539 secrets leaked through Claude Code approval rules. I audited my 204 rules: none held a secret, and the file was still committed twice.
Recent

Give the Agent a Way to Fail: Reward Hacking in Coding Agents
Reward hacking in 380 Claude Code and Codex runs: on impossible tasks both turned the check green 90% of the time. One paragraph cut it to 25% and 0%.

Your Agent Sped Up the Part That Wasn't Slow
Across 718 firms, coding agents raised code output 30% and PRs 23%. Resolved issues didn't move, review time rose 49%, and only 42% of engineer time is coding.

Write the Test for What Must Never Happen: AI Code Security
336 Claude Code runs on BaxBench. Exploits the agent could run as tests fired 0 times in 117. Unseen exploits didn't improve; a security prompt changed nothing.

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.
Archive
October2026
September2026
August2026
July2026
- The Agent Audit Trail Paradox: Your Forensics Got Worse
- MCP Goes Stateless: The Migration Guide for Shipped Servers
- Open Weight vs. Frontier: A Realistic 2026 Coding Verdict
- Your Agent's Tools Are a Supply Chain Now
- Keep the Harness, Change the Model: Run GPT Inside Claude Code
- The Year the Coding UI Stopped Being a Text Box
- A2A vs. MCP: The Coordination Layer You Haven't Needed Yet
- Block the Bad Agent in CI: Gate on Trajectories, Not Just Outputs
- What Actually Stops Prompt Injection: Defenses vs. Theater
- Narcissus at the Keyboard
- Benchmarks Stopped Measuring Intelligence. Evaluate Models Yourself.
June2026
- The Lethal Trifecta: Why Your Coding Agent Is a Loaded Gun
- LLM-as-Judge Is the New Flaky Test
- The Router Pattern: When to Downshift the Model
- Sandboxing Coding Agents: The 9-Second Argument for Isolation
- Does Your CLAUDE.md Actually Help? The Research Says Maybe Not
- The Session Handoff: When Your Attention Budget Is Spent
- Agent SRE: Oncall and Escalation for Coding Agents
- The Promotion Ladder: Prompt, Skill, Hook, Tool
- The Handoff Problem: When to Take the Keyboard Back
- Long-Running Autonomous Agents: Drift, Checkpointing, Recovery
- Cache-Aware Prompting: Engineering for 90%+ Hit Rate
- Agent Cost Observability: From Personal Token Budget to Team-Wide
May2026
- Tool Design for Agents: Schema Is the Prompt
- The Project Graph: What Agents Need That Filesystems Can't Give
- The Five Failure Modes of Autonomous Coding Agents
- From Localhost to Production: The Handoff Brief for AI-Built Apps
- UI Libraries vs AI-Generated Components: The Tailwind Substrate
- MCP Server for Your Codebase: Tool-Shape, Not API-Mirror
- Claude Code Hooks: The Only Deterministic Substrate
- Agent Evals: A Test Suite for Your Claude Code Setup
- The Permission Prompt Is Dying in AI Coding Agents
- Stdio MCP Doesn't Scale: Dropping 3,662 Lines for a Daemon
- Claude Mythos vs. the CVE Surge: AI Security in May 2026
- Agent Memory Architecture: Four Memories, Four Fixes
- Anthropic Just Metered the Agent SDK: What Breaks on June 15
- DORA in the Agent Era: Three Metrics Stop Measuring
- Agentic TDD: When the Failing Test Is the Spec
- Spec-Driven Agent Development: Brainstorm, Design, Plan
- Agent Skills: Progressive Disclosure That Actually Scales
- Subagent-Driven Development: How to Fan Out a Feature Build
- Engineering That Outlasts the Paradigm
- Subagent Patterns: When to Spawn vs Stay In-Context
- We Tried to Cut Claude's Output 50%. We Got 5%. So Did Anthropic.
April2026
- Your Codebase Is the Agent's Operating Environment
- AI Reviews the Diff. Humans Review the Decision.
- Backtesting AI Agents: Replay to Catch Regressions
- Context Engineering in Practice: Where Does Each Piece Go?
- Treat AI as a Team Member, Not a Chat Window
- How to Track Claude Code 5-Hour Window Usage
- Your AI Agent Is Flying Blind Without Local Code Intelligence
- Building an LLM Wiki: From Karpathy's Gist to a Working CLI
- How Do You Test Systems That Analyze Behavior Over Time?