From the workbench

Notes on AI that works.

Practical writing on AI strategy, cleanup, and delivery from the Moonlight AI team.

Diagram of the PHP2Shell timeline: a wide AI-assisted discovery stage feeding into a narrow fix-decision stage, followed by a patch window measured in hours.

AI Vulnerability Discovery Moves the Bottleneck to Fixing

Four teams found PHP2Shell flaws with AI help, one in a single night. Finding bugs is now cheap. Triage, fix decisions, and patch latency are the limits.

  • ai-security
  • vulnerability-management
  • agent-harness
  • engineering-leadership
  • patch-management
Diagram of an agent operating domain: incoming changes pass an eligibility gate, then independent verification, then release or fallback, with ineligible work routed to a human path.

Grant Agent Autonomy One Class of Work at a Time

Agent autonomy belongs to a class of work, not to a team. How to write an operating domain: eligible work, permissions, independent checks, and fallback.

  • ai-agents
  • software-development-with-agents
  • ai-sdlc
  • agent-reliability
  • engineering-leadership
Diagram: five agent sessions route their requests through standing instructions, a triage queue, and risk-based review before reaching one person.

Design Agent Work Around Human Attention

Anthropic's workforce report finds interactive agent sessions idle 80% of the time, waiting for people. How to treat human attention as the constraint.

  • ai-agents
  • software-development-with-agents
  • engineering-leadership
  • team-design
  • code-review
Diagram: model output passes through a schema check and a component catalog before reaching the screen; anything off-catalog falls back to text.

Generative UI Needs a Component Catalog You Own

MCP Apps, A2UI, and json-render let agents return UI, not just text. Let the model pick from components you own and validate its output like a tool call.

  • generative-ui
  • ai-agents
  • mcp
  • llm-systems-in-production
  • agent-reliability
A five-step staircase labelled chat, skills, specs and workflows, parallel agents, and managing agent teams, with the fifth step highlighted in orange.

The Five Levels of AI SDLC Maturity

A five-level model for AI in the software lifecycle, from chat and skills to spec-driven workflows, parallel agents, and agent teams, and what each requires.

  • ai-sdlc
  • software-development-with-agents
  • spec-driven-development
  • ai-agents
  • engineering-leadership
Diagram: token traffic dominated by cache-read replay feeds a capability floor gate, which admits four harness changes: fused edit and check calls, gated compaction, archived tool output, and verified log summaries.

How to Cut Agent Token Spend Without Cutting Capability

On long agent runs, most tokens are context the model rereads. What NVIDIA's SoL-Pi harness changed, what it cost in capability, and how to copy the method.

  • ai-agents
  • agent-harness
  • llm-cost
  • context-engineering
  • evals
Diagram of an agent proposing changes and an engineer applying three kinds of no: system constraints, reviewer trust model, and change intent, before code merges.

The Engineer's Job With Coding Agents Is Saying No

Anthropic's Scion team says Claude writes better code than they do. Their job became saying no and reviewing intent. How to make that work outside a lab.

  • software-development-with-agents
  • code-review
  • engineering-leadership
  • ai-agents
  • adversarial-review
Diagram of a layered review pipeline for agent-written code: verification, AI review, CI, a risk classifier routing changes to zero, one, or two human approvers, then flags and rollback.

Review AI-Written Code by Risk, Not by Line

Line-by-line review can't keep up with agent-written code. How Anthropic's Claude Code team tiers review by risk, and the parts most teams forget to copy.

  • code-review
  • ai-agents
  • software-development-with-agents
  • verification
  • engineering-leadership
Diagram: an agent runs inside a Firecracker microVM with no secrets. Its outbound request passes a network gateway that checks egress policy and adds the API key from a vault before reaching the API.

Keep Agent Credentials Outside the Sandbox

Perplexity open-sourced SPACE, the microVM sandbox behind Perplexity Computer. Its key idea: the sandbox needn't hold API keys. How it works and what to copy.

  • ai-agents
  • agent-sandboxes
  • agent-security
  • firecracker
  • credentials
Diagram of an agent harness in two layers: a runtime layer with a brain, replaceable sandboxes, and a session log, and a workflow layer with instructions, permissions, a reviewer, a completion check, and a progress note.

Build the Harness Before the Long Agent Run

Long agent runs usually fail in the scaffolding, not the model. What Anthropic's Managed Agents and a 7-layer setup teach, and what you still own.

  • ai-agents
  • agent-harness
  • long-running-agents
  • claude-code
  • evals
Diagram: merged PRs, decision records, and releases flow through a nightly job into a present-tense context wiki that agents read, while meeting notes and brainstorms are filtered out.

Build Agent Context From What Shipped, Not What Was Said

Hand-written agent context goes stale. PostHog now derives it from completed work, and Atlassian is heading there. How to build it, and what's unsolved.

  • ai-agents
  • agent-context
  • context-engineering
  • developer-workflow
  • engineering-leadership
Diagram of OpenSpec's explore, propose, apply, and archive loop, with the two human review seams between steps highlighted in orange.

OpenSpec Is Automating Its Best Feature

Specs survive only inside workflows. OpenSpec's announced agent harness aims to automate its loop. Right bet, if the human review seams survive.

  • spec-driven-development
  • openspec
  • ai-agents
  • agent-harness
  • developer-workflow
A white cassette tape with its loose tape unspooled across an orange background.

How to Replay Production Agent Traces Offline

A promoted production trace often won't reproduce offline. Learn how to freeze tool reads, handle divergence, and intercept writes in agent evals.

  • evals
  • ai-agents
  • testing
  • observability
  • ai-engineering
Glowing blue nodes joined by thin lines into a twisting mesh against a dark navy background.

Graph Engineering for AI Agents: Design the Shape First

How to design multi-agent workflows as graphs: remove waits that move no data, give nodes schemas, verify against anchors, and know when one agent wins.

  • ai-agents
  • multi-agent-systems
  • agent-architecture
  • claude-code
Rows of brass gears, dials, and linkages packed inside a historic tide-predicting machine, seen from above.

Complexity Is Easy. Reliability Takes Design.

Adding agents, tools, and autonomy doesn't make AI systems reliable. Here's what the evidence shows, and the ten design controls that make agents dependable.

  • ai-agents
  • reliability
  • agent-architecture
  • ai-engineering