podqast
Machine Learning GuideOCDevelAll episodes

MLA 024 Agentic Coding: Specs and Review

31 min
Next episodeMLG 034 Large Language Models 145 min
Get its new episodes on Latest. No account

Agentic coding best practices: write a spec, make the agent plan, verify with checks it must run, and review with a fresh model before you merge. Also: parallel agents, auto mode safety, and what studies show about speed.
Links • Notes and resources at ocdevel.com/mlg/mla-24

Agentic coding best practices spec → plan → implement in slices → verify → review → human merge
Writing code is cheap; checking it is the job. Anthropic's and OpenAI's Codex guides both describe this loop.
How detailed should a spec be? Scale it to the change's size and reversibility.

How to make a coding agent verify its work Give it a pass/fail command (typecheck, lint, tests, build) and require the output; "all tests pass" alone proves little. Enforcement runs from softest to hardest: prompt → /goal → Stop hook → CI. Agents game tests: on ImpossibleBench, 2025 frontier models passed about half of tasks whose tests contradict the spec, and letting the model report the conflict cut GPT-5's rate from 54% to 9%. Review test-file edits first. For UI, have the agent screenshot the page.
Should a second model review the code? At minimum a fresh context: /code-review, a second session, or a read-only reviewer subagent. For a different model family, the Codex plugin for Claude Code runs Codex reviews inside Claude Code. Review against the spec and skip style. Keep standing rules in AGENTS.md or REVIEW.md.
How many coding agents in parallel? About three per supervising person; Anthropic's agent-team guidance starts at 3–5. Review speed is the limit. Parallelize only tasks on separate files; beyond that, use a labeled issue queue. Before any unattended run, answer: what's done, how it checks itself, what it may touch, what stops it, who signs off.
Is Claude Code auto mode safe? Safe enough in a dev checkout with no production credentials, and not a security boundary (permission modes). It may read your .env and use those keys with their own API. Put must-nevers in deny rules (MLA 23); skip permissions only in a throwaway container without internet. Injection: MLA 28.
Do AI coding agents make developers faster? No clean number exists for current agents. METR's 2026 update estimated 18% faster (returning developers) and 4% (new), both intervals crossing zero, after its 2025 study found 19% slower. Cursor adopters saw a two-month velocity spike and lasting rises in warnings and complexity (He et al., MSR '26). DORA 2025: more throughput, less stability. Anthropic's trial: learners using AI scored 50% vs 67%.
How to use Claude Code: the first week • Ask questions about a project you know, make one small change, read the diff, commit.

Also about technology and AI
Every episode about Technology & AI
More from Machine Learning Guide