Skip to main content

Module shim_functions

Module shim_functions 

Source
Expand description

Makes the build-slot shims win in the shells this wrapper starts.

Every Bash call of an agent runs under this process, and bash imports functions from its environment, so exporting cargo, task, npm, npx and docker as functions that call the shims (agentmux_common::build_slot::shim_function_env) puts the slot in front of those tools however the shell’s profile ordered the PATH. Without it, a cargo.exe in ~/bin (ahead of the shims’ directory in the CLI’s shell snapshot) is found first and the slot is skipped: docs/specs/SPEC_BUILD_SLOT_ENFORCEMENT_2026_10_20.md §4.

Functions§

export 🔒
Sets the functions in this process’s environment, which the bash it starts inherits.