Skip to content

buildBashEnv

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/agent-core/src/benchmark/agent-hardening.ts

Build bash environment with pager-disabling variables.

Pattern from SWE-agent: Disable all interactive pagers and progress bars to prevent the agent's bash commands from hanging on user input prompts.

Merges with existing env, overriding pager-related vars.

Signature

ts
function buildBashEnv(existingEnv: Record<string, string | undefined>): Record<string, string>

Parameters

NameType
existingEnv`Record<string, string

Returns: Record<string, string>

Was this page helpful?

Download as PDF