Repository navigation
feat(python): enable Python and TypeScript in BashTool - #2724
Merged
Merged
Conversation
Expose opt-in runtimes through the native tool and LangChain/deepagents adapters. Preserve host-controlled Python permission, runtime metadata, reset behavior, and snapshot reconstruction. Co-Authored-By: yolop <yolop@everruns.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | e026073 | Commit Preview URL Branch Preview URL |
Oct 14 2026, 06:11 AM |
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.
What changed
BashToolopt into sandboxed Monty Python and ZapCode TypeScript withpython=True/typescript=True.envthrough LangChain and deepagents integrations. Both languages share the tool's VFS, and configuration persists through reset and snapshot reconstruction.env={"BASHKIT_ALLOW_INPROCESS_PYTHON": "1"}is required; an agent script cannot enable it withexport.Why
Agents using the LangChain/deepagents Bash tool need to execute Python and TypeScript against their virtual files without launching host processes.
Closes #2702.
Before / After
Before: the native constructor rejected the requested configuration:
After: a real Anthropic model (
claude-haiku-5-5, discovered via the provider's models API) called each framework's Bash tool. TypeScript wrote[19, 23]to/tmp/numbers.json, then Python read that same VFS file and printed the sum:Example host configuration:
Risk
Validation
just pre-prpassed under GNU Bash (the first macOS Bash 3.2 run hit an existing differential-test compatibility gap; the GNU Bash rerun passed without weakening tests).just testpassed with feature-sliced Rust tests, including serialized failpoint/security coverage.cargo clippy --all-targets --all-features -- -D warningspassed.Checklist
False; existing default behavior is unchangedProduced by yolop