From ab1bf3a735224ff0fb9c295bf4b2206a5a894a57 Mon Sep 17 00:00:00 2001 From: Sami Jaghouar Date: Thu, 21 May 2026 11:06:07 -0700 Subject: [PATCH] feat(coding-agent): add system prompt note listing pre-installed Python packages --- packages/coding-agent/CHANGELOG.md | 5 +++++ packages/coding-agent/src/core/prompts/rlm.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index ced559e1b43..e99cdd97fa1 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,11 @@ ## [Unreleased] +### Added + +- Added system prompt note listing pre-installed Python packages (requests, httpx, pyyaml, tomli, python-dotenv, pandas, numpy, scipy, beautifulsoup4, lxml, pydantic). + + ## [0.0.2] - 2026-05-20 ### Added diff --git a/packages/coding-agent/src/core/prompts/rlm.ts b/packages/coding-agent/src/core/prompts/rlm.ts index 622a5c69638..c86cce6388b 100644 --- a/packages/coding-agent/src/core/prompts/rlm.ts +++ b/packages/coding-agent/src/core/prompts/rlm.ts @@ -52,6 +52,8 @@ export function buildRlmPrompt(options: RlmPromptOptions): string { parts.push( "", "Use `ipython` for both Python and shell work. For repository shell commands, prefer IPython shell syntax: `!rg ...`, `!npm run check`, or `%%bash` for multi-line scripts. Do not wrap ordinary shell commands in Python subprocesses unless you need Python-level processing.", + "", + "The kernel has requests, httpx, pyyaml, tomli, python-dotenv, pandas, numpy, scipy, beautifulsoup4, lxml, and pydantic pre-installed. Import them directly; no pip install needed.", ); }