| Name | Type | Description |
|---|---|---|
state_dir | Path | None | Default: NoneOptional state directory override for tests. |
Return whether onboarding should open at interactive startup.
DEEPAGENTS_CODE_ONBOARDING overrides the marker in both directions: a
truthy value forces the flow open on every startup, and a falsy value keeps
it closed even on a fresh install. An unset or unrecognized value leaves the
marker in charge, so the override never has to be unset to get first-run
behavior back.