devbox-entrypoint

Instructions for a devbox startup command that resumes an AI-agent session by running cn serve with an agent ID.

In plain words
What is it for?
They cover reusing the session file, skipping an already-sent initial prompt, preserving environment variables, and checking that follow-up messages remain in one session.
Why use it?
They prevent a suspended devbox from creating duplicate sessions, repeating its first prompt, or losing environment settings when it restarts.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/continuedev/continue/devbox-entrypoint
Clone the repo
git clone --depth 1 https://github.com/continuedev/continue
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 262 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00262
Opus 5 $0.00000 $0.00131
Sonnet 5 $0.00000 $0.00052
Haiku 4.5 $0.00000 $0.00026

Measured yesterday against content hash 02e41663d793, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

devbox-entrypoint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/cli/src/commands/devbox-entrypoint.md · 13 lines

What it actually says

Devbox entrypoint behavior (cn serve)

Context: runloop resumes a devbox by re-running the same entrypoint script, which invokes cn serve --id <agentId> .... Because the entrypoint always replays, the CLI must avoid duplicating state on restart.

  • Session reuse: serve now calls loadOrCreateSessionById when --id is provided so the same session file is reused instead of generating a new UUID. This keeps chat history intact across suspend/resume.
  • Skip replaying the initial prompt: shouldQueueInitialPrompt checks existing history and only queues the initial prompt when there are no non-system messages. This prevents the first prompt from being resent when a suspended devbox restarts.
  • Environment persistence: The devbox entrypoint (control-plane) writes all env vars to ~/.continue/devbox-env and sources it before cn serve, so keys survive suspend/resume. The CLI assumes env is already present.

Operational notes:

  • Changing the entrypoint is expensive; prefer adapting CLI/session behavior as above.
  • When testing suspend/resume, confirm a single session file under ~/.continue/sessions for the agent id and that follow-up messages append normally without replaying the first prompt.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 13 lines · 0 tokens per session scan A 02e41663d793

Subscribe to this mod's changes

devbox-entrypoint is a command published in the GitHub repository continuedev/continue (35,702 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 262 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.