MLA 024 Agentic Coding: Specs and Review
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 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners 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. One-sentence diff: a specific prompt naming the symptom, where to look and what fixed means. A few files: goal, context, constraints, and a "done when" line a machine can check, plus what's out of scope. Multi-day, schema or public API: have the agent interview you into a spec file, then build it in a fresh session. Review the plan (plan mode, Shift+Tab or /plan in Claude Code and Codex) for the files it names, its verification step and its scope. 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. Put your one-command check in CLAUDE.md. Write a task with a done-when line; run it through plan mode. Run /code-review before merging. Try one parallel task in a worktree on a separate module. The full course on this topic is Gnothi's Claude Code, next to the Agentic AI Course, at ocdevel.com/courses. More in the resources. Next: MLA 25, on AI image generation.
Embed this episode
No transcript yet.