Repository navigation
feat(runtime): isolate local agent homes with API credentials - #414
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 70f4ec99a6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Could we use the temporary directory as That would give Codex a fresh state directory while keeping |
|
Sorry, I overlooked how my earlier suggestion would change the workspace layout when the option is toggled. Could we use the same layout for every automatically created workspace, I'd suggest |
|
The workspace layout concern is resolved in Could we add an |
Bring in alibaba#429, alibaba#414 and alibaba#424 from main. The only textual conflict was in CHANGELOG.md, where this branch and alibaba#414 each added an entry at the top of Unreleased / Added; both entries are kept.
Summary
Add
environment.agent_home: temporaryfor local Claude Code and Codex evals with API credentials, as an initial implementation of #404. Each case, benchmark arm and retry gets a separate agent home. The defaultinheritedmode preserves inherited home settings.Changes
<system temp>/skill-up-*/workspace/, so switching home modes leaves the workspace layout and the meaning of..unchanged. An explicit--workspacestays at the supplied path;temporarygives it a separate temporary home.HOME,USERPROFILEandCODEX_HOMEat the run directory. Redirect Claude, XDG and Windows application-data paths underneath it, after command environment overrides. DisableBASH_ENVandENV; preserve executable lookup and other inherited variables. Codex authentication and sessions stay outside workspace artifacts and diffs, while transcript collection follows$CODEX_HOME/sessions.ANTHROPIC_API_KEYorANTHROPIC_AUTH_TOKEN; Codex acceptsOPENAI_API_KEY. Normal credential configuration can supply these. Probes use non-secret presence markers, and Codex initializes API-key login through stdin before each invocation.--no-deleteretains the tree. Clean up a script judge's runtime when workspace creation fails. Add config defaults, validation, regression tests, and update the CLI help, guides, package docs and bundled Skill reference.Temporary mode requires the
noneruntime and supported run/judge engines. Personal login files and OS-keychain credentials are not copied. A retained home can contain the Codex API key. Workspace instructions, system configuration and other inherited environment variables remain available; this option is not a filesystem security boundary.Test plan
make verifywith Go 1.26.10make -o test-plugin test)make e2eandnpm run docs:buildCodex 0.80.0 did not start within the local version-check timeout; its two Linux CI jobs must verify that version on this head. Plugin/skill regression scripts and live provider calls remain deferred.