feat: support install.codex()#2053
Merged
gaocegege merged 1 commit intotensorchord:mainfrom Nov 5, 2025
Merged
Conversation
Signed-off-by: Keming <kemingyang@tensorchord.ai>
gaocegege
approved these changes
Nov 5, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for installing the Codex code agent in envd environments. The implementation introduces a new code agent installation framework and provides the ability to install Codex via the install.codex() Starlark function.
- Added
CodeAgenttype to represent code agents with name and version - Implemented
compileAgent()method to orchestrate agent installation during the build process - Integrated agent compilation step into the LLB compilation pipeline
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/lang/ir/types.go | Defines new CodeAgent struct type with name and version fields |
| pkg/lang/ir/v1/types.go | Adds CodeAgents field to generalGraph struct to store configured agents |
| pkg/lang/ir/v1/interface.go | Exposes Codex() function to configure Codex agent from Starlark |
| pkg/lang/ir/v1/agent.go | Implements installAgentCodex() method to download and install Codex binary |
| pkg/lang/ir/v1/system.go | Adds compileAgent() method and removes nolint:unparam comment |
| pkg/lang/ir/v1/compile.go | Integrates agent compilation into the LLB build pipeline |
| pkg/lang/frontend/starlark/v1/install/install.go | Adds codex builtin function to Starlark install module |
| pkg/lang/frontend/starlark/v1/install/const.go | Adds ruleCodex constant for the install.codex rule |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
try it with: