| Name | Type | Description |
|---|---|---|
name* | str | The canonical environment variable name (e.g.
|
Look up an env var with DEEPAGENTS_CODE_ prefix override.
Checks DEEPAGENTS_CODE_{name} first, then falls back to {name}.
If the prefixed variable is present in the environment (even as an empty
string), the canonical variable is never consulted. This lets users
set DEEPAGENTS_CODE_X="" to shadow a canonically-set key -- the function
will return None (since empty strings are normalized to None),
effectively suppressing the canonical value.
If name already carries the prefix, the double-prefixed lookup is skipped
to avoid nonsensical DEEPAGENTS_CODE_DEEPAGENTS_CODE_* reads
(e.g., when the name comes from a user's config.toml).