Skip to content

feat(coding-agent): add DEFAULT_RLM_EXTRA_UV_ARGS constant and kernel bootstrap package installation - #59

Merged
samsja merged 1 commit into
mainfrom
feat/rlm-bootstrap-extra-packages
May 21, 2026
Merged

feat(coding-agent): add DEFAULT_RLM_EXTRA_UV_ARGS constant and kernel bootstrap package installation#59
samsja merged 1 commit into
mainfrom
feat/rlm-bootstrap-extra-packages

Conversation

@samsja

@samsja samsja commented May 21, 2026

Copy link
Copy Markdown
Member

Changes

Builds on #58 (system prompt mention of pre-installed packages).

  • Add export const DEFAULT_RLM_EXTRA_UV_ARGS listing common Python packages (requests, httpx, pyyaml, tomli, python-dotenv, pandas, numpy, scipy, beautifulsoup4, lxml, pydantic)
  • Bump BOOTSTRAP_SCHEMA from 2 to 3 so existing venvs are rebuilt with the new packages
  • Track extraUvArgs in the bootstrap version file for proper cache invalidation
  • Pass ...DEFAULT_RLM_EXTRA_UV_ARGS to the uv pip install call in bootstrapVenv
  • Update the system prompt to reference DEFAULT_RLM_EXTRA_UV_ARGS dynamically instead of a hardcoded string

Files changed

  • packages/coding-agent/src/core/kernel/bootstrap.ts - constant, schema bump, version tracking, pip install
  • packages/coding-agent/src/core/prompts/rlm.ts - import constant, replace hardcoded string with dynamic reference
  • packages/coding-agent/CHANGELOG.md - added entry

Note

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_ARGS package list and uses it to install common Python dependencies during kernel venv bootstrap via uv pip install.

Bumps the bootstrap schema and records extraUvArgs in .bootstrap-version so 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_ARGS constant and pre-install default Python packages in kernel bootstrap

  • Adds DEFAULT_RLM_EXTRA_UV_ARGS in bootstrap.ts listing default packages (requests, httpx, pyyaml, pandas, numpy, scipy, pydantic, etc.) to pre-install in new kernel virtual environments.
  • Extends the bootstrap version file to persist extraUvArgs and updates the current-ness check to require an exact match against DEFAULT_RLM_EXTRA_UV_ARGS.
  • Replaces the hardcoded package list in rlm.ts with a dynamically assembled string from the constant.
  • Risk: Bumps BOOTSTRAP_SCHEMA from 2 to 3, so all existing environments will be considered stale and trigger a full re-bootstrap on next use.

Macroscope summarized 20aec46.

@samsja
samsja merged commit a77df78 into main May 21, 2026
2 of 3 checks passed
@kevinjosethomas
kevinjosethomas deleted the feat/rlm-bootstrap-extra-packages branch May 22, 2026 18:46
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
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.

1 participant