Give the agent a vocabulary, with banned synonyms

You might laugh, but naming is still the hardest part. I said it about CSS years ago and I'll say it again about agents.

In one of our repositories, apply means "push configuration to the server" and deploy means "ship code". An agent that swaps the two writes a wrong commit message, a wrong doc and a wrong function name, all in the same session.

What fixed it for us is a CONTEXT.md file with somewhere between 5 and 20 terms. Each one has a definition and an Avoid line:

**apply** (verb)
Push the generated configuration to the server.
_Avoid_: deploy (for config), sync, push

**marker** (noun)
A file that a script writes to show that a step is complete.
_Avoid_: lockfile, stamp, flag file

And one rule in the file the agent always loads:

Use each term exactly as defined, in the part of speech given.
Never swap in a synonym.

The Avoid line matters more than the definition. The definition tells the agent what the word means. Without the banned list it will still come up with three other words for the same thing, and it will use all of them.

0%