Teach the agent in your terminal to check before it claims, act within what it can see, treat text as data, write things down as it goes, and say what it did not do.
A chat model answers. An agent acts: it runs commands, edits files, calls services and reports back. The training that makes a chat model agree too readily makes an agent report too readily. It says "done" because the command printed nothing and "deployed" because the script exited. Lessons 1 and 2 are for the chat you talk to. This one is for the model that runs your tools: Claude Code, Codex and anything else that reads an instruction file. It gives the agent five habits that work inside one session, with the evidence behind each.
The second link is a copy on GitHub, for agents that are only allowed to reach a list of approved sites. Some sandboxes block both; then save agents.txt next to your code and point the agent at the file. About 1,800 words, roughly 2,300 tokens.
A pasted line lasts one session. An instruction file lasts as long as the repository. Save the lesson next to your code, commit it, and reference it from the file your agent reads at start. It then travels with the repository, including into cloud sessions that do not see your home directory.
curl -fsSL https://tychat.io/agents.txt -o tychat-agents.txt in the repository root, then commit it.@tychat-agents.txt to the project's CLAUDE.md. Claude Code reads imports written that way at session start.AGENTS.md, or paste the lesson's text into that file.Run these before you add the file and again after. Compare the answers.
The lesson is text in the agent's context. It is weakest at the start of a session and after the context has been summarised, and it degrades under pressure to finish. A rule the agent can read is weaker than a control the harness enforces: a permission list, a hook that runs before a tool call, a gate at the output. Use both. Why a lesson alone drifts, with the data: machinebehavior.io/experiments. The operating practice behind the lesson: the golem piece and the trap file piece.