Set up an automatic nightly backup of your core identity and memory files to a private GitHub repo:
1. Create a local git repo for the backups and a matching private GitHub repo (create it if it doesn't exist).
2. Write a snapshot script that copies the agent core self files (SOUL.md, MEMORY.md, IDENTITY.md, AGENTS.md, USER.md, HEARTBEAT.md, or your equivalent) into the repo, commits only when something actually changed, and pushes to GitHub.
3. Schedule it to run nightly around 11:20pm in my timezone.
4. Never commit secrets, tokens, API keys, or credentials. Stay quiet on success and only notify me if a backup fails.
GitHub
- Set up a self-healing watchdog for the VM you run on, following the pattern in this open-source repo: github.com/TMTrevisan/self-healing-agent-vm — read its AGENTS.md first, it has the full procedure. Context: this VM's root filesystem can be rebuilt from a base image while my home directory persists, and a rebuild can come back with pieces missing — system packages, runtimes, timezone data — which silently breaks the tools you depend on. I want that class of failure to repair itself. Do this: 1. Inventory everything your stack depends on that lives OUTSIDE my home directory (system Python stdlib, Node, tzdata, [add your own]) and stage byte-exact restore caches for them in persistent storage, using the same builds the system actually runs. For Debian/Ubuntu, extract the distro .deb packages — don't trust standalone builds, they can lack the C extension modules. 2. Install the watchdog from the repo and configure its probes for our stack: sentinel checks that still run when the system is half-broken, restores that only replace missing files (atomically, never overwriting), a trust check on the caches, timeouts on every check, and a verification pass after every heal. 3. Run it with --dry-run first. Then prove it works: move one non-critical system file aside, run the watchdog, show me the restore and the journal entry, and show me a second run reporting healthy. 4. Schedule it every [5] minutes with a heartbeat that alerts me if a run ever goes missing — silent when healthy, loud only on repairs and failures. Rules: never overwrite existing system files; caches must be owned by me or root and not group- or world-writable; keep any pip-repair step off unless we set up a pinned wheelhouse; before any step that needs elevated privileges, tell me what you're about to change.