we should use my repo more, for all things. so my ai wrote every rule, preference and decision it runs on into one repo through a small api. now any agent can pick up where it left off
Recipe No. 56
Give Your Assistant One Home for Its Brain: a Repo and an API
Serves Anyone whose assistant keeps its memory in a chat window and loses it on a bad day
Have the assistant write down everything it needs to operate (its working rules, his preferences, and the reasoning behind past decisions) as plain files in one repo, using a small write API and a validator so every file follows the same shape.
You will need
Method
Give the assistant write access to one repo through a narrow API, not your whole account. Keep the token out of the repo.
Have it dump its operating rules, your preferences and past decisions as small markdown files, one topic per file, each dated.
Add a schema version to every file and run a validator on each write, so drift gets caught the day it happens.
Keep an index file at the top and have the assistant update it whenever it adds or moves a file.
Make the rule stick: new rules go into the repo first, then into the chat. Test it by asking a second agent to do a job using only the repo.