Skip to main content

27 posts tagged with "ai"

View All Tags

I wrote a rulebook for my coding agents. Here's where it breaks.

· 14 min read
Pere Pages
Software Engineer
A large rulebook lying open on a desk: the left page is fresh and indigo, the right page is yellowed and torn, and a small robot holds a magnifying glass over the faded page

Every repository I own has the same set of files that tell a coding agent how to work in it. I measured how well that rulebook holds up in my most developed repository, and found it is good at adding knowledge and bad at checking that the knowledge is still true. This post shows the numbers, what is missing, how I plan to fix it, and how I will test that the fix worked.

Seven code principles you can actually check, written for the age of AI

· 30 min read
Pere Pages
Software Engineer
A robot arm passes a block of code along a conveyor belt through a row of check icons (a target, a magnifying glass, a ruler, a puzzle piece, a shield) towards a developer at a desk, who holds a pen to make the final decision

"Maintainable", "understandable", "scalable" and "reliable" sound like good rules for code, but nobody can check them in a review. This post replaces them with seven principles that a machine or a reviewer can check, explains why artificial intelligence (AI) coding assistants make each one matter more, and shows the lint rules, continuous integration (CI) steps and review questions that enforce them.

Goodhart's Law and AI agents: how to measure developer productivity now

· 23 min read
Pere Pages
Software Engineer
A thermometer pushed to its maximum by a small robot holding a flame under it, between a developer quietly working beside a small plant and a conveyor belt carrying a growing pile of code and paper

When a company rewards developers for the number of pull requests they open, artificial intelligence (AI) agents can produce those pull requests almost for free. This post explains why counting output was always a weak way to measure software work, why agents make it actively harmful, and which measures still tell you something true.

Scaling software built with AI: where the real bottlenecks are

· 28 min read
Pere Pages
Software Engineer
A software pipeline where AI agents produce code very fast at one end and the work piles up in front of a few slow stages run by people

Imagine a team where artificial intelligence (AI) agents write most of the code, and then imagine it ten or a hundred times bigger. Writing code stops being the slow part. This post walks through the stages that become slow instead, from reviewing pull requests to talking to other systems, and proposes the best fix for each one.

Claude Code Worktrees: Where They Live, How They Work and How to Use Them Well

· 14 min read
Pere Pages
Software Engineer
A flat illustration of one tree trunk splitting into three branches, each holding its own lit desk with a laptop: robot assistants work at two desks and a person at the third, and thin lines run from every desk back to a shared archive of drawers at the roots

Two Claude Code sessions in the same folder will sooner or later edit the same file and undo each other's work. A worktree fixes that by giving each session its own copy of the files on its own branch. Here is where Claude Code stores worktrees, how they work, what they share with your main folder, and the small routine that makes them worth using.

Sandboxing Agent Graphs in Claude: Where Each Agent Runs and What It Can Reach

· 22 min read
Pere Pages
Software Engineer
Seven small robots work at desks on a dark blue background. Six of them sit inside glass cubes and one does not. Glowing lines carry small notes between them, and the lines that lead away from the group end at closed gates on both sides.

When many Claude agents work together, a single agent that is tricked by hidden instructions can pass those instructions on to all the others. This post explains what a sandbox protects in a group of agents, which kinds of isolation exist from a simple command filter to a separate virtual machine, how to configure them in Claude Code, and which setups work well in practice.

What it really takes to run AI on your own files: models, memory and search

· 29 min read
Pere Pages
Software Engineer
An open laptop on a wooden desk at dusk, with a small library of books, folders and code files rising from its screen under a glass dome; a thin lime-green thread of light runs from a highlighted page to a glowing chip beside the laptop, while clouds drift past outside the dome

A laptop with 16–32 GB of memory can answer questions about your own notes, code and unfinished ideas, and none of your data leaves the computer. Choosing the model is the easy part. Two other things decide whether the answers are useful: how much memory the model has, and how well it finds the right pages of your files. Without them, it just guesses, and it sounds sure even when it is wrong.