From 06e8f4b77c5c8e6d9bde5fb60c252515ddf2fb05 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Thu, 25 Jun 2026 04:29:26 +0200 Subject: [PATCH] feat(seed): install AGENTS.md from seed to zot's ZOT_HOME global slot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The seed importer already dual-writes SSH material to the daemon home. Adds an AGENTS.md install block targeting /var/db/colibri/.local/state/zot/ — the path pinned by colibri_daemon.in's ZOT_HOME export. Zot reads this as its first AGENTS.md source, giving the autospawned agent operational rules (mother, verbs, capabilities) on first boot. --- live/operator-session/clawdie-live-seed | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/live/operator-session/clawdie-live-seed b/live/operator-session/clawdie-live-seed index aacc48d..9d08f10 100644 --- a/live/operator-session/clawdie-live-seed +++ b/live/operator-session/clawdie-live-seed @@ -358,6 +358,16 @@ _seed_activate_agent() { # Same seed material, same private key, separate ~/.ssh directory. _seed_install_ssh_material "${_dir}/ssh" "${SEED_DAEMON_USER}" "${SEED_DAEMON_HOME}" fi + # Install AGENTS.md to zot's global slot so the autospawned zot reads + # operational rules (mother, verbs, "install Hermes next") on first boot. + # Must match ZOT_HOME exported by colibri_daemon.in prestart. + if [ -f "${_dir}/AGENTS.md" ]; then + _zot_home="${SEED_DAEMON_HOME}/.local/state/zot" + mkdir -p "${_zot_home}" + install -m 0644 -o "${SEED_DAEMON_USER}" -g "${SEED_DAEMON_USER}" \ + "${_dir}/AGENTS.md" "${_zot_home}/AGENTS.md" + _seed_log "installed AGENTS.md -> ${_zot_home}/AGENTS.md" + fi _seed_log "activated agent '${_agent}' for user ${_user} (home ${_home})" }