Skip to content

DOC_AGENT_LABEL

const DOC_AGENT_LABEL: "__docagent__" = "__docagent__"

Defined in: src/doc-agent.ts:44

Prefix for ephemeral doc-agent herdr names. Each run appends 8 hex of a fresh UUID so an orphaned husk (after a restart) can NEVER squat a stable name — a re-spawn always gets a new name, so agent_name_taken is impossible by construction (the distiller’s fix; see DISTILL_LABEL). The underscores are load-bearing: prompt-derived session slugs are [a-z0-9-] only, so no real session collides, and sweepOrphans can match husks by this prefix safely.