This website uses cookies

Read our Privacy policy and Terms of use for more information.

Hello,

Long time since I sent a newsletter. Trying to resume this habit. This week I wrote about coding agents and tried to compare or asses various settings from Claude Code and Codex.

Development and Testing

Should test output be Markdown or JSON for LLM agents?

I run Minitest and RSpec under coding agents most of the day, and I wanted to know if I should feed those agents Markdown or JSON test output.

The one study I found that tests this directly says the format barely matters. With the same three fields (where it failed, what it observed, what a valid value would be), prose and JSON were 2 points apart for one model and 0 for the other. Adding the valid alternatives took repair success from 28% with the raw error message to 70%.

The caveat: the study ran on text adventure games, not Ruby test suites, and I have not run my own benchmark yet. I think it transfers because the agent has to guess the target state either way.

What hurts more than format is volume. In one case study an agent took 608 seconds to read a test run that took 96 seconds, because the answer was at the bottom of 419KB of output and got truncated. The fix was a JSON reporter to a file, terminal output to /dev/null, and jq for the summary. The agent then saw only this:

RESULT=PASS
TESTS=3683 passed, 0 failed

What I would do:

  1. Make a green run one line, because it carries one bit of information

  2. Put the details in a file, because the agent can open a file but cannot un-read a transcript

  3. Spend tokens on expected vs actual, not on the backtrace, because that is where the gain is

I wrote about it here, with the links to the study and the case study.

Development

Think twice before removing a field from your logs

When there are too many logs or they cost too much, the usual move is to start removing fields from the log lines. I think this should be done more carefully now.

When we read logs, we look for what we already expect: the error, the request id, the slow query. But an AI is very good at pattern matching across a wide area of data, and it does not read with our expectations. A field that is noise for us today could be the one that explains a pattern tomorrow.

Once a field is removed, that option is gone. No model can find patterns in data you did not keep.

I am not saying keep everything. Private information, leaked secrets, tokens and anything that should never be in a log must be removed.

I think the question changes from "do I need this field when I read the logs?" to maybe "is this increasing visibility into what is happening or a duplicate information?"

AI and LLM

Codex ignores writable_roots when default_permissions is set

In Codex, you can list a folder outside your repo in writable_roots under [sandbox_workspace_write]. If your user config also sets default_permissions, can a session write to that folder?

On Codex CLI 0.167.0 the answer is no, but you might never notice. When default_permissions is set in any config layer, Codex uses permission profiles and ignores [sandbox_workspace_write]. The writable_roots entry is dead config, and nothing warns you.

I found it because my agent team writes a status file in a folder outside the repo, and that write always worked. The session's permission profile listed only the repo, /tmp and TMPDIR. Each write went out as an escalation request, and auto review approved it every time. On a machine without auto review, that is an approval prompt in every session or a failed write. I confirmed it in the 0.167.0 source and with a test: codex sandbox could not create a file in that folder.

The fix is a permission profile in the repo's Codex config that extends :workspace and gives that one folder write access:

# repo .codex/config.toml, above the first table
default_permissions = "startup-team"

# at the end of the file
[permissions.startup-team]
extends = ":workspace"

[permissions.startup-team.filesystem]
"/absolute/path/to/team-folder" = "write"

After the change, a codex exec session wrote there with no escalation, while the parent folder, .git and .codex stayed blocked. It only applies when the repo is trusted.

If you set default_permissions anywhere, check where your writable_roots live, because the old table is ignored. And try one real write with codex sandbox, because auto review can make a broken sandbox look fine.

Development

Re-reading A Philosophy of Software Design

I am re-reading A Philosophy of Software Design by John Ousterhout after seeing it recommended by Matt Pocock. Looking at an older PDF with my old highlights, I now highlight different things.

I had an older note debating his idea about smaller classes. Now I think we should all re-evaluate our priors in the context of AI engineering. Smaller classes were maybe better when code was written and approved by a human, but now we need to look at it more like architecture: review the architecture and the interactions between modules.

The same goes for a changeset or PR. Before, I believed in the Cookpad approach: keep PRs under 100 additions. Now the number of PRs is getting bigger, and I am not sure reading each line of a diff is still the best way to review such changes.

AI and LLM

Multiagent coding is the future

Patrick McKenzie wrote about how coordinating many AI coding agents at once changed his view of software development. Here are three passages I highlighted, each with my note.

> I don’t think you can truly grok multiagent development until you fire yourself from writing code or operating terminals. You have people for that now. On a one-to-one basis you may have a skill or context or speed advantage (though, candidly: would not bet on that being durable), but you can have an *almost arbitrarily high* number of people. If you still have time or brainsweat to think about programming you could spend that brainsweat managing people instead, and that pays better. Darn it, the industrial logic of software firms strikes again.

_Patrick McKenzie, "Multiagent coding is the future", kalzumeus.com_

I agree with this that I think along many other skills that are needed to be taken by the "new" software developer is the ability to lead the AI and that is making sure it has the proper tools, processes, feedback loops needed for the tasks that you gave them along with providing directions, objectives and feedback about their performance.

> One route to having a long and fulfilling engineering career is to become a Subject Matter Expert. There is some risk to this strategy. SMEs might become the local equivalent of a tenured professor, indispensable but also not really doing much net new in any given year.

_Patrick McKenzie, "Multiagent coding is the future", kalzumeus.com_

This is something to reflect upon. For the senior people today in any field being Subject Matter Expert and using AI is the best combination that produces a lot of value at a high level quality when having a good agents setup and delegating the high level decisions, the prompt to build the quality gates, the way verification is states and checked.

But for tomorrow's world what happens with the juniors that are now entering various fields and they are using AI. Will they be better than AI in 5 years so that their value as Subject Matter Expert is still required and compensated in an agentic system? And an even bigger questions will be:
Are we looking at the end of Subject Matter Expert in 10 years horizon and do we really want to do that?

I do hope in this entire crazy run with AI there is someone focusing on education and how we learn and what does this mean for the human race? What is the school of the future look like.

> A year ago I thought taste was a compelling moat against modern coding tools.

_Patrick McKenzie, "Multiagent coding is the future", kalzumeus.com_

Saying this only for coding or tech work:
Yes, today taste is important. But taste is important because we had to choose between so many tools and we had many options available for code architecture, naming, OOP vs functional and so on.

But if the agents will start handling the code and we are not going to read it when education or creating taste does it have any sense?

An important piece of taste is that in case of software engineering is based on an intuition coming from experience of how something was build + what failed or worked.

In case of full LLM implementation we are removing the knowledge of the "how something is built" and thus we remove the feedback loop about knowing what works or not in that level.

Of course we can level up where we play with taste: not at the level of code but at the level of components, products, interactions. There is still there a lot of possibilities to educate one taste.

That's it for this week. Reply and tell me what is one article that you read this week that you really liked or found inspiring.

Lucian

Reply

Avatar

or to participate