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").