From: Anderson A. Giacomolli Date: Fri, 6 Nov 2026 22:05:03 +0000 (-0300) Subject: Give each agent a config and user instructions X-Git-Url: https://git.giacomolli.uk/onechat/commitdiff_plain/4a605fa39078354654ae648e489c117c7a445197?hp=4a605fa39078354654ae648e489c117c7a445197 Give each agent a config and user instructions Each agent has its own directory with a config.json: the name, a random ID, the model, the effort, and the working directory of its commands. The first open writes the file with the defaults (OneChat, gpt-6.1-sol at medium effort, the home directory) and a new 128-bit ID, and no later open changes the ID. The prompt cache key comes from the ID, so a rename keeps the prompt cache and two agents with one name do not share a key. An unknown field is an error, and the ID must be there. The user's instructions are in instructions.md in the agent's directory. The prompt puts them at its end and gets back the clause of the reference design that points to them. Without instructions the prompt has neither, so it describes only what exists. The agent reads the file on each call, and the compactor takes the prompt from the agent at each build, so turns and compactions keep one cached prompt. Issue: 5daf23e ---