What's Changed
Bug Fixes
- fix(scientist): Enforce python_repl for all Python code execution (#68)
- Scientist agents previously bypassed python_repl and used Bash heredocs for Python execution
- Root cause: The TypeScript inline prompt never mentioned python_repl and taught Bash heredoc patterns
- All scientist agent prompts now explicitly state python_repl is REQUIRED for Python
- Added Bash boundary rules (ALLOWED: shell commands only, PROHIBITED: Python heredocs)
- Updated all 4 scientist files: scientist.ts, scientist.md, scientist-low.md, scientist-high.md
Changes
| What | Before | After |
|---|---|---|
| Python execution | "Execute via Bash heredocs" | "REQUIRED: Use python_repl" |
| Bash usage | "Execute Python code" | "Shell commands ONLY" |
| Language | "PREFERRED" / "fallback" | "REQUIRED" / "NEVER" |
Files Modified
src/agents/scientist.ts- Primary source, completely updatedagents/scientist.md- 9 sections updatedagents/scientist-low.md- Added Tool_Enforcement sectionagents/scientist-high.md- Added Tool_Enforcement section
Full Changelog: v3.3.3...v3.3.4