Rules in CLAUDE.md that were extended with the scene of each failure went unapplied in a different scene

日本語

Contents of this article

Summary

Whenever I notice a failure by the AI agent and point it out, the AI agent has been adding a rule and recording, in a separate document, why the earlier rule did not work. The rules are lined up in a single instruction file shared by all my projects, and the AI agent reads it at the start of each session. There were times when, the day after a rule was added, the same kind of failure happened in a different scene.

In this column, I reread the records of how things went that remained from October through November. Paying attention to what each rule’s sentence was aimed at, I go through the records one at a time. In what terms should a rule’s target be written for the AI agent to apply the rule even to a scene it meets for the first time? And conversely, what happens when the target is made too broad? I write this as something to go on for people who add a rule every time they point something out, when they reread their own rules.

What you can take away

Material, based on actual records, for thinking about whether to write a rule’s target as a scene or as an action.