Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/coding-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/coding-agent/src/core/prompts/rlm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

System prompt claims packages exist but aren't installed

High Severity

The new system prompt line tells the model that requests, httpx, pyyaml, tomli, python-dotenv, pandas, numpy, scipy, beautifulsoup4, lxml, and pydantic are pre-installed and can be imported directly with "no pip install needed." However, the kernel bootstrap in bootstrap.ts only installs ipykernel and prime-agent-runtime — none of these 11 packages are actually installed. This will cause the agent to hit ImportError at runtime and, worse, the prompt explicitly discourages the agent from running pip install, so it may not self-recover.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ab1bf3a. Configure here.

);
}

Expand Down
Loading