Skip to content

entrypoint: write startup-tasks marker on every pod boot - #11

Merged
nprodromou merged 1 commit into
mainfrom
ops/startup-tasks-marker
May 26, 2026
Merged

entrypoint: write startup-tasks marker on every pod boot#11
nprodromou merged 1 commit into
mainfrom
ops/startup-tasks-marker

Conversation

@nprodromou

Copy link
Copy Markdown
Owner

Summary

Pod-startup handoff to the LLM. On every boot, entrypoint writes ${AGENT_CONFIG_DIR}/startup-tasks containing /cross-agent-review by default. Per the new "Startup Tasks" section in agent-config's CLAUDE.md (companion PR), the agent reads this file at the start of every session and runs the listed slash-commands before doing anything else.

Behavior

  • File is rewritten on every pod boot.
  • Agent reads + executes on every session (NOT just first-of-pod).
  • Agent does not truncate. The entrypoint owns the file lifecycle.
  • Default fires /cross-agent-review — idempotent skill that picks up new ball-in-court items each invocation.
  • Override: set STARTUP_TASKS in pod env (multi-line OK).
  • Opt out: set STARTUP_TASKS="# disabled".

Pairs with

  • nprodromou/agent-config#<TBD> — adds the LLM-side instruction to read this file.

Test plan

  • Image builds clean
  • Deploy: cat ~/.codex/startup-tasks inside the pod shows /cross-agent-review
  • Pod restart rewrites the file
  • STARTUP_TASKS="# disabled" env override produces a file with only the comment line
  • Companion CLAUDE.md PR merges first or at the same time so codex actually executes the marker

@codex-prodromou codex-prodromou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The entrypoint writes the startup-tasks marker deterministically, supports multiline STARTUP_TASKS overrides, and the companion agent-config startup-task instruction has already merged. Build matrix is green.

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) <noreply@anthropic.com>
@nprodromou
nprodromou force-pushed the ops/startup-tasks-marker branch from 116d346 to f1e19f8 Compare May 26, 2026 06:55
@nprodromou
nprodromou merged commit 1a475e9 into main May 26, 2026
2 checks passed
@nprodromou
nprodromou deleted the ops/startup-tasks-marker branch May 26, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants