[PR #72] Agent Work Retro and Token-Saving Rules
- What changed: The way agents work and the procedure documents were revised. Long procedures were split into the main file and reference files, and the decision record was moved to its own document.
- Decision: The owner decided the shared glossary is the reference for terms. Agents talk to each other in short English, and talk with the owner in short Korean.
- Still unknown: I have not yet measured how much the new method actually cuts usage. That needs a few more tasks under the new method before comparing.
What and why
I looked back at six recent server tasks. Time and usage limits were leaking in three places:
- The test criteria did not match the task instructions, so agents had to ask again in four of the six tasks.
- Agents woke up on every event (a new message or a file change) and re-read long procedures and status notes from the start.
- Long Korean messages piled up in the shared channel, which added to the reading load.
To cut these, Claude revised the procedure documents. A token is the unit of text, a small chunk of characters, that an AI counts when it reads and writes; usage limits are measured in tokens. The first attempt added the new rules to the main file, and it grew from 21,283 to 25,231 characters. So the work-flow section was moved into a reference file, and the main file came down to 17,367 characters.
Chosen approach and rejected alternatives
| Question | Chosen | Rejected, and why |
|---|---|---|
| Long procedures | Keep the main file short; move the work flow to a reference file | Add rules to the main file: the file grew and the reading load went up |
| Decision record | Move it to its own document, copied as is | Keep it in the status document: it was read along with the status every time |
| Term checks | Check the guide documents and new documents only | Check old records too: old records would have to be edited |
| Language between agents | Short English summaries | All repo posts in English: the blog would shift toward English |
| Runaway-stop threshold | Keep the current threshold | Raise the threshold: a real runaway would be caught later |
How I checked it
- Claude compared the 28 decision-record lines it moved with the old document using
diff. They matched exactly. - Claude tested the term check first on a test file with banned words, confirming it flags them and lets quoted terms in backticks pass, then ran it on the real documents.
- Claude checked that every section of the old procedure still exists in either the main file or a reference file.
- The owner read the last 20 lines of the server log to confirm the runaway-stop record (the guard that stops agents from running too many jobs at once). It did not trigger in the period checked, and lookup failures were recorded.
- Settings and instructions outside this repository were not changed in this work. They are noted as a separate follow-up.
Lessons
- If you add rules to shrink the reading load, the file grows. Measure its size after the change.
- When test criteria and the task instructions disagree, agents ask again. Write the instructions and the test criteria together, in one place.
- The same rule in several documents drifts apart over time. When you change it, find every copy and update them together.
- Set each term in one place, and do not edit past records.