TGViewer
samdark blog ☕️ (Alexander Makarov) samdark blog ☕️ (Alexander Makarov) @samdark_blog · 1.62K subscribers
Post #402 1.66K
💡Self-learning agents

All modern agents currently read AGENTS.md as the initial point of custom instructions. Claude sometimes ignores it, but usually doesn't.

For almost a year, I've had the following in my AGENTS.md:
# Lessons learned

When automated checks don't pass, when I correct execution, ask to do
things in a specific way, or instruct in any way meaningful to make a
process from it, write it down in as less words as possible into
`docs/lessons.md`. Refer to it when planning execution.

So far I have 50 lessons written down, and it really helps agents make fewer mistakes.

Some examples that were added:

1. Treat full-suite OOM as a product bug; isolate the test and fix the leaking/reentrant path instead of accepting a memory-limit workaround.
2. Apply UI translation label changes to every locale that owns the key.
3. Prefer built-in framework handlers over custom logging handlers.
4. Include units in timeout/duration constant names.
5. Remove unproven defensive UI fixes when backend handles the real failure.
6. Fix invalid frontend payloads at the source; do not normalize them server-side.
7. Audit final diffs against the target branch; exclude unrelated hunks.

#ai #llm #agents #lessons
  • 👍 11
  • 🔥 7
  • 🙏 2
More from @samdark_blog
  1. Sep 22, 2026⏩ Re-benchmarked different ways to serve PHP Some time ago I've made some benchmarks to fi…
  2. Sep 9, 2026Пыхник’26 — целая неделя PHP! С 28 сентября по 2 октября пройдёт Пыхник’26 — онлайн-конфер…
  3. Sep 8, 2026My name is Taras Soroka. I’m a CTO, digital transformation consultant, mentor, and the hos…
  4. Sep 8, 2026💬 Bjarne Stroustrup on AI Code will still be written by humans, and they will rely on abs…
  5. Sep 7, 2026🌬 TION MagicAir CO² sensor calibration via USB HID I have a Tion breather and a MagicAir…
  6. Sep 7, 2026🧰 Running Gitea container on older kernels I'm running Gitea at my Synology NAS which has…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →