# 23. New agent, same old mistakes

> A fresh agent inherits nothing from the last chat.

Lesson 23 of 27. Part 5 of 6: Make it stick. Source: https://chiefofagents.si/lessons/new-agent-same-old-mistakes

## The lesson

Different kinds of knowledge live in different places. A project wiki explains architecture, decisions and history. Repository rules record the failures every agent must read. A memory service gives lasting recall of preferences and lessons across sessions. Hooks inject context and enforce rules automatically, without relying on anyone remembering.

The sources have an order of authority. The code that is running and the project’s written rules outrank summaries, the wiki and remembered context. Memory helps an agent find its feet. It does not overrule the system that actually runs.

## How I do it

I use a project wiki, repository rules, Mem0 for memory across sessions, and hooks.

## The rule

Decide where each kind of knowledge lives, and which source wins when two disagree.
