MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / _scratch_dir

Function _scratch_dir

codeclash/utils/environment.py:14–20  ·  view source on GitHub ↗

Local scratch dir for staging `docker cp` transfers. Defaults to the system temp dir. Override with CODECLASH_TMPDIR (e.g. on AWS Batch, where the default temp dir misbehaves).

()

Source from the content-addressed store, hash-verified

12
13# Secret env vars whose values must never be recorded in command output / trajectories.
14_SECRET_ENV_VARS = ("GITHUB_TOKEN", "LLAMA_API_KEY")
15
16
17def redact_secrets(text: str | None) -> str | None:
18 """Replace known secret values with a placeholder so they never land in recorded output."""
19 if not text:
20 return text
21 for var in _SECRET_ENV_VARS:
22 val = os.getenv(var)
23 if val and val in text:

Callers 2

copy_between_containersFunction · 0.85
create_file_in_containerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected