feat(coding-agent): add DEFAULT_RLM_EXTRA_UV_ARGS constant and kernel bootstrap package installation - #59
Merged
Conversation
… bootstrap package installation
zhengr
pushed a commit
to zhengr/prime-agent
that referenced
this pull request
Aug 8, 2026
…chments fix: pass attachments to agent prompt from RPC interface
zhengr
pushed a commit
to zhengr/prime-agent
that referenced
this pull request
Aug 8, 2026
…lm-bootstrap-extra-packages feat(coding-agent): add DEFAULT_RLM_EXTRA_UV_ARGS constant and kernel bootstrap package installation
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.
Changes
Builds on #58 (system prompt mention of pre-installed packages).
export const DEFAULT_RLM_EXTRA_UV_ARGSlisting common Python packages (requests, httpx, pyyaml, tomli, python-dotenv, pandas, numpy, scipy, beautifulsoup4, lxml, pydantic)BOOTSTRAP_SCHEMAfrom 2 to 3 so existing venvs are rebuilt with the new packagesextraUvArgsin the bootstrap version file for proper cache invalidation...DEFAULT_RLM_EXTRA_UV_ARGSto theuv pip installcall inbootstrapVenvDEFAULT_RLM_EXTRA_UV_ARGSdynamically instead of a hardcoded stringFiles changed
packages/coding-agent/src/core/kernel/bootstrap.ts- constant, schema bump, version tracking, pip installpackages/coding-agent/src/core/prompts/rlm.ts- import constant, replace hardcoded string with dynamic referencepackages/coding-agent/CHANGELOG.md- added entryNote
Medium Risk
Updates the Python kernel bootstrap to install additional dependencies and to invalidate/rebuild existing venvs, which could impact agent startup and reproducibility if package resolution changes.
Overview
Adds a shared
DEFAULT_RLM_EXTRA_UV_ARGSpackage list and uses it to install common Python dependencies during kernel venv bootstrap viauv pip install.Bumps the bootstrap schema and records
extraUvArgsin.bootstrap-versionso existing kernel venvs are rebuilt when the default package set changes, and updates the RLM system prompt to render the preinstalled package list dynamically from the same constant.Reviewed by Cursor Bugbot for commit 20aec46. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add
DEFAULT_RLM_EXTRA_UV_ARGSconstant and pre-install default Python packages in kernel bootstrapDEFAULT_RLM_EXTRA_UV_ARGSin bootstrap.ts listing default packages (requests,httpx,pyyaml,pandas,numpy,scipy,pydantic, etc.) to pre-install in new kernel virtual environments.extraUvArgsand updates the current-ness check to require an exact match againstDEFAULT_RLM_EXTRA_UV_ARGS.BOOTSTRAP_SCHEMAfrom 2 to 3, so all existing environments will be considered stale and trigger a full re-bootstrap on next use.Macroscope summarized 20aec46.