An agent reads your git log and your old files far more carefully than you do. That sounds great until it finds a workaround from two years ago and copies it, because to the agent it looks like house style.

We all have that code. The "what on earth were we thinking?" code. The agent has no idea you're embarrassed by it.

Two lines take care of most of the damage:

```text
History is not a template.
When you cite past work, label it: "replicate" or "for awareness only".
```

And one more, for the search it does before planning:

```text
Find the nearest existing example before you plan.
Reuse beats writing. Say which example you follow and why.
```

Now it has to tell you which old code it wants to copy. If it names the workaround, you can say no before the thing spreads to five more files.

We have a related rule in our own setup. Something the agent saw once in the code is only a *candidate* pattern. It gets *approved* when a person says so.
0%