Skip to main content

Module env

Module env 

Source
Expand description

The environment variables the kernel process and its Python runtime (runtime.py and its modules) read, where a subagent’s worktree lives, and the interpreter the kernel runs.

Constants§

BASH_YIELD_AFTER_ENV
CELL_YIELD_AFTER_ENV
CODE_SKILLS_DIR_ENV
FILE_HOOKS_ENV
IN_KERNEL_ENV
Set (to 1) in every kernel’s environment, so a cell’s command or a program it started knows it runs inside a kernel. Rust-only; the resource limits beside it may also come from the user.
PARENT_REPO_ENV
PYTHON_ENV
RLM_ENV_ALLOW_ENV
RLM_MAX_CPU_SECONDS_ENV
RLM_MAX_MEMORY_MB_ENV
RLM_MAX_TREE_MEMORY_MB_ENV
RLM_OUTPUT_BYTES_ENV
RLM_SPILL_DIR_ENV
RLM_STREAM_OUTPUT_ENV
RLM_TREE_MEMORY_BACKEND_ENV
WORKTREES_DIR
The directory under the Git common dir that holds subagent worktrees and their records (worktrees.ts WORKTREES_DIR).
WORKTREE_BRANCH_ENV
WORKTREE_ENV
A subagent’s worktree, its parent’s checkout and its branch (worktree_api.py).

Functions§

inside_kernel
Whether this process runs inside an Ultron kernel (IN_KERNEL_ENV).
python
kernel.ts: the interpreter the kernel runs, ULTRON_PYTHON ?? (linux && /usr/bin/python3 exists ? "/usr/bin/python3" : "python3").