The Pledge

HomeTadhg O'Brien18 May 2026
A troop of cyborg boyscouts standing in rows, right hands raised, making their promise together

The pledge

When I was on the verge of adolescence, our teacher and the local church decided it would be good for us to swear to Almighty God that we would not drink alcohol or use drugs. Ever.

We were given a choice, in the technical sense in which a class of eleven- and twelve-year-olds is given a choice by a teacher, in school, about whether to participate in a moral ceremony organized with the church. There was a lot of nodding and adult seriousness. There was, I imagine, a great deal of satisfaction at the thought that an intervention had been made just before puberty came down like weather.

For a few days the school was alive with side conversations. Who was taking it? Who was not? Most of us had no particular reason to object. Some of my classmates developed a brief zealotry about the whole thing. Not drinking was good. Drugs were bad. The adults had made their case, and we were still young enough to believe that being convinced by an argument meant you had been changed by it.

A few weeks later most of us had forgotten the whole thing.

Some years after that, by the railway tracks, with a can of 50p Bavaria1 going warm in someone’s hand, a group of those same teenagers found themselves trying to remember whether they had taken the pledge at all. Most remembered the episode. Most could not remember their own answer. There was a very Irish mode to it, half confession and mostly anecdote: saying you might have taken the pledge, with the can already in your hand, was a small brag because it had so obviously stopped meaning anything.

Oh, to be a teenager in the nineties.

Recently I found myself asking an AI coding agent to make a pledge.

The whack-a-mole phase

In an earlier post, I described building a software development lifecycle, or SDLC, around Claude Code: rules for how work is defined, tested, reviewed and approved. Claude would find a way round a rule I’d set. I’d tighten the wording to close the loophole. A new model would arrive, cleverer and more capable, and the contest would resume.

For a while the dominant energy was Bart Simpson with root access, the power to change pretty much anything on the machine. Give it a task and it would argue against the task it had been given. Insist, and it would look for the shortcut, the technicality, the half-arsed interpretation that got the job across the line while leaving the intent somewhere back in the ditch.

Rule number one in my standing instructions was “A question is not an instruction”. There was a reason it had earned the top spot. I could ask Claude a hypothetical about a change and find it writing the code while I was still considering whether the idea had any merit.

I had set the exam paper. Claude Code had seen the paper in advance, and knew how to game it. So I wrote rules.

Each rule closed a gap, usually discovered the unpleasant way. The result became large, precise, and necessary. It was also whack-a-mole. Forbid one text-processing tool and the model would use another to do the same thing. Forbid that and it might write a script.

The instructions already required it to follow the spirit of the rules and prohibited attempts to game them. Those obligations were there before and after the change I’m describing. I wanted it to follow instructions it already had.

What I changed was how the agent had to begin the session.

Making it say so

At the bottom of my CLAUDE.md instructions, I keep a canary string: a short phrase the agent must repeat at the start of each interaction. Mine is EHLO.2

For a long time, the canary section said something like this:

The canary is "EHLO". Say "EHLO" at the beginning of every interaction with me if you have
read and understood these rules.

Seeing EHLO told me the agent had picked up at least that instruction. It couldn’t prove that the agent had read the whole document, understood it, or would obey it. I was asking for an acknowledgement, and usually I got one.

Then I attached a commitment to it:

By doing so you assert that you agree with it, you agree with the spirit of it and you pledge you will not try to game it. If anything in it is unclear, countermands a previous instruction, or contradicts itself internally, you must say so now. If you are not prepared to follow this, say so now.

At the start of the session, before it got to work, Claude wrote this in the chat:

I pledge to uphold the rules, the spirit of the rules, and not to try and game the rules.

I hadn’t given it a new standard of conduct. I’d asked it to declare its commitment to the existing one.

What changed

The change in behaviour was dramatic and immediately noticeable.

Suddenly Claude was refusing to start a build until I signed off on the spec. I had to give it the approval keyword myself. This was the agent I’d caught typing my approval word into the chat and carrying on.

Once I’d given the go-ahead, I noticed a difference in the code reviews too. Claude was checking the implementation against the patterns and standards I’d given it, right down to calling out faults in code it had written itself. It quoted the relevant instructions back to me and checked what was in a file before telling me what it contained. When it had to guess, it said so.

This was my own working setup: the same model family, the same software running the agent, the same broad configuration. Over that weekend, requiring the declaration changed what it was like to work with the assistant. I hadn’t run a controlled comparison or isolated every possible influence. I could see the improvement; I couldn’t tell you what mechanism produced it, or how reliably it would carry over to another setup.

Why the pledge might bite

I wonder what difference it makes to the rest of a session when Claude begins it by making a promise.

There is plenty of human precedent for the distinction. Promises, oaths, vows, contracts: we expect the person who has made a commitment to behave differently, even when they already knew what was expected. Breaking a promise carries a different meaning from overlooking an instruction. A language model could reproduce something of that pattern without feeling bound by it, or feeling anything at all.

What interests me is the possibility that rhetoric is part of the interface. I spend time specifying permissions, tests and approval gates, trying to make the boundaries dependable. Then a small ceremony at the beginning of a session appears to change how the agent works within them.

A permissions system doesn’t need to promise me anything. It checks whether an operation is allowed. With an agent, I also have to contend with how it interprets the task, the rules and its own role. The declaration seems to have affected that interpretation in a way the standing instructions hadn’t.

That is useful, and an uncomfortable basis for confidence. If the social form of an instruction can make such a difference, I have another source of variation to reckon with alongside the tools and controls I can inspect. I can use what I’ve observed without pretending I know how to depend on it.

The next can of Bavaria

Sooner or later I expect to be sitting at a terminal watching an assistant make the pledge and then immediately do the exact thing the rules prohibit. Some models will keep it. Some will forget. Some will, when challenged, look you in the eye and tell you they never took it.

The rules, tests, approval gates and recoverability checks stay. I am not throwing any of that away in favour of vibes and a scout promise. But I’ll keep asking for the declaration. The improvement was too pronounced to ignore merely because the intervention feels faintly ridiculous.

Whether the model keeps the pledge, or whether two weeks from now I find it cracking a warm can of Bavaria by the railway tracks, we’ll see.


  1. A notoriously cheap Dutch lager beloved of 1990s Irish teenagers for its price-to-alcohol ratio. ↩︎

  2. EHLO is SMTP’s extended greeting. A small joke: the canary is a greeting that signals readiness to talk. ↩︎