From f1e19f8ef0893fd282d4585d092e49b49104d85c Mon Sep 17 00:00:00 2001 From: nprodromou <73134621+nprodromou@users.noreply.github.com> Date: Thu, 7 May 2026 13:27:51 -0700 Subject: [PATCH] entrypoint: write startup-tasks marker on every pod boot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pod-startup handoff to the LLM. On every boot the entrypoint writes ${AGENT_CONFIG_DIR}/startup-tasks containing /cross-agent-review by default. Per the new "Startup Tasks" section of agent-config's CLAUDE.md/AGENTS.md, the agent reads this file at the start of every session and runs the listed slash-commands before doing anything else. The file is not truncated after execution — every session re-runs the tasks. cross-agent-review is idempotent and picks up new ball-in- court items each time, so re-running each session is the point. Override per-deploy: set STARTUP_TASKS in the pod env (multi-line ok). To opt out: set STARTUP_TASKS to a single comment line, e.g. "# disabled". Companion change in nprodromou/agent-config adds the LLM-side instructions that read this file. Co-Authored-By: Claude Opus 4.7 (1M context) --- bin/entrypoint.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index 5e8e87f..d1c1e81 100644 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -233,6 +233,25 @@ if [ -x "${AGENT_CONFIG_REPO_DIR}/install.sh" ]; then retry_or_fatal "install.sh skills" _run_install_skills fi +# Startup tasks marker — written on every pod boot. The agent reads this +# file at the start of every session per the "Startup Tasks" section of +# CLAUDE.md/AGENTS.md, and executes each non-comment line as a slash-command +# before doing anything else. The file is NOT truncated after execution — +# every session in the pod re-runs these tasks (cross-agent-review picks +# up new ball-in-court items each time, so re-running is the point). +# Override per-deploy by setting STARTUP_TASKS in the pod env; set it to +# a single comment line (e.g. "# disabled") to opt out. +STARTUP_TASKS_FILE="${AGENT_CONFIG_DIR}/startup-tasks" +{ + echo "# Startup tasks. One slash-command per line. Lines starting with" + echo "# # are comments. Re-run on every session — do not truncate." + if [ -n "${STARTUP_TASKS:-}" ]; then + printf '%s\n' "${STARTUP_TASKS}" + else + echo "/cross-agent-review" + fi +} > "${STARTUP_TASKS_FILE}" + # Identity banner — surfaced by the bash prompt on login. AGENT_CONFIG_SHA="$(git -C "${AGENT_CONFIG_REPO_DIR}" rev-parse --short HEAD 2>/dev/null || echo missing)" cat > "${HOME}/.${AGENT}-identity" <