
Sign up to save your podcasts
Or


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.
Linksspec → 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.
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 weekThe 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.
Inside a coding agent: context is the budget, skills load on demand, hooks enforce rules, subagents get fresh windows and MCP tools cost tokens. What belongs in CLAUDE.md, and the settings that guard against a PocketOS-style deletion.
LinksEach turn sends the whole conversation back to the model, so every file read and test log stays in the window until you compact or clear. The instruction file, skill descriptions and MCP tool names cost tokens on every request. Skill bodies, subagent work and hooks cost nothing until used. /context shows the breakdown. Rules said only in chat can be lost to compaction; rules in the root CLAUDE.md are reloaded.
What to put in CLAUDE.md or AGENTS.mdPut in what the model can't derive and needs every time: exact build and test commands, conventions that differ from the default, invisible boundaries, mistakes it made twice. Leave out codebase tours: Evaluating AGENTS.md found context files raised cost over 20% without generally improving success, and overviews didn't help. Claude Code now reads AGENTS.md when no CLAUDE.md exists. The memory docs suggest under 200 lines per file.
Claude Code skills vs MCP vs plugins vs subagentsA skill is a folder with a SKILL.md: its description loads at startup, and its body loads when a task matches. The Agent Skills format works in Claude Code, Codex and OpenCode. Anthropic's features overview sorts the rest: outside systems connect through MCP or a CLI, noisy side tasks go to subagents, must-happen steps become hooks, and a setup shared across repositories becomes a plugin.
How to stop an AI agent deleting your databaseIn the PocketOS incident, a Cursor agent found an unscoped Railway token in an unrelated file and deleted a production volume, backups included. Keep production credentials out of the agent's reach, scope tokens, add deny rules, turn on the sandbox, and store backups elsewhere. Permission rules match command text, so a script can get around them. The sandbox is the OS-level boundary, and it's off by default.
Claude Code hooksA hook is a program run at a loop event, and it fires whether or not the model remembers the rule. In Claude Code hooks, exit code 2 blocks and exit code 1 doesn't. Add lint and typecheck after every edit, and a Stop hook that holds the turn while tests fail.
Subagents and worktreesA subagent runs in a fresh window and returns only a summary. Use one for noisy reads and fresh-eyes review. Each spends its own tokens; agent teams in plan mode run about 7x a normal session. Worktrees give each agent its own checkout.
What is an MCP server, and what does it cost?An MCP server exposes tools to the agent over stdio or HTTP. Loading every tool up front is expensive: five servers took about 55K tokens in Anthropic's tool-use tests. Tool search cut that overhead 85% and is now on by default in Claude Code. Prefer a CLI like gh or aws where one exists. The protocol itself: MLA 28.
Memory and moving between toolsClaude Code's auto memory is a local per-repo folder of notes; Codex memories are opt-in. Required rules still belong in the instruction file. AGENTS.md and skills carry over between tools, while hooks and permissions have to be set up again in each one.
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 24, on specs, verification and the review loop.
Vibe coding in 2026 means picking an agent: Claude Code for steering, Codex for delegation, Cursor for editors, Antigravity for Google users. Plus pricing and free tiers, which model to run, OpenCode and DeepSeek or Kimi, and no-code builders.
LinksBuilding software with an AI model without reviewing the code it writes. Andrej Karpathy coined it in February 2025 for "throwaway weekend projects". Fine for prototypes; code that holds user data or that you'll maintain needs a verification loop (MLA 24).
What is a coding agent?A model in a loop with tools: read files, run commands, check the result, repeat. The harness is everything around the model: loop, tools, permissions, context handling. MLA 23 goes inside it.
Claude Code vs Codex vs Cursor vs AntigravityIn the Stack Overflow 2026 survey, 12,255 developers reported using Claude Code (65.5%), GitHub Copilot (58.7%), Codex (29.5%), Cursor (25.5%) and Antigravity (16.0%).
On Terminal-Bench 4.1, Claude Code with Opus 5.5 or Fable 5.2 scores 65.8% and Codex with GPT-6.1 Sol 60.9%, each ±3 points. Choose by fit: Claude Code for interactive work, Codex for delegated work. Many developers write with one and review with the other.
Claude Code pricing, Codex pricing and free tiersClaude Code defaults to Opus 5.5 at medium effort. Fable 5.2 costs 2× Opus, and Sonnet 5.5 costs half. Codex's GPT-6.1 Sol costs a fifth of GPT-6 Astra. Raise effort before you change models, and run search-heavy subtasks on a cheaper tier.
OpenCode vs Claude CodeOpenCode (MIT) runs nearly any provider, including a ChatGPT sign-in and local runtimes. Pi is the minimal alternative you extend yourself. Anthropic's terms bar Claude subscription credentials in third-party harnesses, so Claude in OpenCode means an API key.
Can I use DeepSeek or Kimi with Claude Code or Codex?Yes. Codex takes custom providers. DeepSeek, Kimi Code and Z.ai's GLM Coding Plan publish Anthropic-format endpoints for Claude Code. Kimi K3.1 Pro (open weights, November 4, 2026) scores 59.7% on Terminal-Bench inside Claude Code. Antigravity offers only its own menu. For self-hosting, see MLA 14.
Best vibe coding tools if you can't codeLovable for a polished web app, Replit Agent 4 for app plus hosting plus mobile, Google AI Studio Build mode to start free. Before launch, have a developer check who can read the database.
Which coding agent should I use?Already paying Anthropic or OpenAI → that lab's agent. Editor-first → Cursor. GitHub-centric → Copilot. On Google's plans → Antigravity. Need model freedom → OpenCode or pi. Then test two agents on bugs you already understand.
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 23, on what's inside a coding agent.
A transformer is attention plus multilayer perceptrons: each token's query, key and value let it weigh every other token, and dropping recurrence lets training run in parallel, at a cost that grows with the square of the context window. Also covers RNNs and vanishing gradients, multi-head attention, positional encodings, masking and where to learn transformers.
LinksA transformer is a neural network built from attention layers and multilayer perceptrons (MLPs), introduced in Attention Is All You Need (Vaswani et al., 2017). It is the architecture behind large language models (LLMs) (MLG 034). It reads every token of its input at once, where a recurrent neural network (RNN) reads one step at a time.
Context-free vs context-awareA plain MLP scores each row in isolation: a house from its bedrooms and bathrooms, a freight load from its weight, miles, rate and origin. That is context-free. Attention makes it context-aware, letting each row or token be modified by the others. A dispatcher's loads compete for one truck's capacity and route. In "The blue trophy didn't fit on the shelf because it was too big", "trophy" should take in "blue", and "it" should point to the trophy, not the shelf. A static word2vec embedding (MLG 022) gives a homonym like "close" one vector in every context.
RNNs, vanishing gradients and the origin of attentionAn RNN passes a hidden state from step to step, predicting the next token and updating a running summary of the sequence (MLG 022, MLG 023). It has two separate problems over long sequences. The vanishing-gradient problem is gradients shrinking as they backpropagate through many steps during training. The other is the fixed-size hidden state losing information. LSTM and GRU cells address both.
Attention was first added to RNN encoder-decoders for machine translation (Bahdanau et al., 2014), letting each decoder step weigh every encoder state of the source sentence. The remaining limit was speed: an RNN computes step by step, so training can't be spread across a GPU in parallel. Attention Is All You Need dropped the recurrence and kept attention.
Context window and quadratic costA transformer works over a fixed context window: the prompt plus the tokens generated so far. Self-attention compares every token with every other, so its compute and memory grow with the square of the context length. Attention's learned parameters (the query, key and value matrices) don't grow with context length; only a learned position table, as in BERT and GPT-2, does. In exchange, training and reading the prompt run in parallel. Generation stays sequential: the model emits one token, appends it to the context and runs again.
Query, key and valueLearned weight matrices project each token's embedding into a query, a key and a value vector.
Attention(Q, K, V) = softmax(Q·Kᵀ / √d_k) · V d_k = key dimensionQuery-key dot products measure the match and are not capped at 1. Scaling by √d_k and a softmax turn them into attention weights that sum to 1 for each token. Each token's output is the weighted sum of the value vectors, which moves "trophy" toward "blue trophy". A weight near 0 leaves out that token's contribution. The weights form a tokens × tokens matrix.
Attention heads, multi-head attention and transformer blocks3Blue1Brown's chapter How might LLMs store facts shows how MLP layers can hold a fact, drawing on Google DeepMind's Fact Finding study of factual recall. Locating and Editing Factual Associations in GPT (Meng et al., 2022) traces much factual recall to mid-layer MLPs.
Self-attention vs cross-attentionIn self-attention a sequence attends to itself. In cross-attention one sequence attends to another: in an encoder-decoder translator, the tokens of the translation being written attend to the encoder's representation of the source sentence.
Positional encodings and causal maskingAttention ignores word order, so each token gets position information. The original Transformer added fixed sinusoidal encodings, BERT and GPT-2 learned theirs, and most current LLMs use rotary position embeddings (RoPE), which rotate queries and keys by position.
Causal masking stops each token from attending to later tokens. That lets a model train on a whole sentence at once without seeing the token it is predicting.
Where to learn transformersNext: MLG 034, on LLMs: scaling laws, mixture of experts, RLHF and chain of thought.
Databricks is a cloud-based platform for data analytics and machine learning operations, integrating features such as a hosted Spark cluster, Python notebook execution, Delta Lake for data management, and seamless IDE connectivity. Raybeam utilizes Databricks and other ML Ops tools according to client infrastructure, scaling needs, and project goals, favoring Databricks for its balanced feature set, ease of use, and support for both startups and enterprises.
LinksMachine learning pipeline orchestration tools, such as SageMaker and Kubeflow, streamline the end-to-end process of data ingestion, model training, deployment, and monitoring, with Kubeflow providing an open-source, cross-cloud platform built atop Kubernetes. Organizations typically choose between cloud-native managed services and open-source solutions based on required flexibility, scalability, integration with existing cloud environments, and vendor lock-in considerations.
LinksDirk-Jan Verdoorn - Data Scientist at Dept Agency
Managed vs. Open-Source ML Pipeline OrchestrationThe deployment of machine learning models for real-world use involves a sequence of cloud services and architectural choices, where machine learning expertise must be complemented by DevOps and architecture skills, often requiring collaboration with professionals. Key concepts discussed include infrastructure as code, cloud container orchestration, and the distinction between DevOps and architecture, as well as practical advice for machine learning engineers wanting to deploy products securely and efficiently.
Links;## Translating Machine Learning Models to Production
Expert coworkers at Dept
DevOps Tools
Visual Guides and Comparisons
Learning Resources
Try a walking desk to stay healthy while you study or work!
Full notes at ocdevel.com/mlg/mla-18
(Optional episode) just showcasing a cool application using machine learning
Dept uses Descript for some of their podcasting. I'm using it like a maniac, I think they're surprised at how into it I am. Check out the transcript & see how it performed.
AWS development environments for local and cloud deployment can differ significantly, leading to extra complexity and setup during cloud migration. By developing directly within AWS environments, using tools such as Lambda, Cloud9, SageMaker Studio, client VPN connections, or LocalStack, developers can streamline transitions to production and leverage AWS-managed services from the start. This episode outlines three primary strategies for treating AWS as your development environment, details the benefits and tradeoffs of each, and explains the role of infrastructure-as-code tools such as Terraform and CDK in maintaining replicable, trackable cloud infrastructure.
LinksSageMaker streamlines machine learning workflows by enabling integrated model training, tuning, deployment, monitoring, and pipeline automation within the AWS ecosystem, offering scalable compute options and flexible development environments. Cloud-native AWS machine learning services such as Comprehend and Poly provide off-the-shelf solutions for NLP, time series, recommendations, and more, reducing the need for custom model implementation and deployment.
Links