Skip to content

feat: support install.codex()#2053

Merged
gaocegege merged 1 commit intotensorchord:mainfrom
kemingy:codex
Nov 5, 2025
Merged

feat: support install.codex()#2053
gaocegege merged 1 commit intotensorchord:mainfrom
kemingy:codex

Conversation

@kemingy
Copy link
Copy Markdown
Member

@kemingy kemingy commented Nov 5, 2025

try it with:

def build():
    base(image="ubuntu:24.04", dev=True)
    shell('fish')
    install.codex()

Signed-off-by: Keming <kemingyang@tensorchord.ai>
@kemingy kemingy requested review from Copilot and removed request for lalawuu and zwpaper November 5, 2025 03:32
@gaocegege gaocegege enabled auto-merge November 5, 2025 03:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CodeAgent type 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.

Comment thread pkg/lang/ir/v1/agent.go
@gaocegege gaocegege added this pull request to the merge queue Nov 5, 2025
Merged via the queue into tensorchord:main with commit e23061d Nov 5, 2025
17 checks passed
@kemingy kemingy changed the title feat: support install.codex() feat: support install.codex() Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants