Add feature-gated freeform js_repl core runtime#10674
Merged
Conversation
This was referenced Feb 4, 2026
6d093b3 to
c1337ef
Compare
c1337ef to
6d6ac7d
Compare
5797e44 to
a9e1fc3
Compare
e6004d4 to
9cbbf46
Compare
owenlin0
reviewed
Feb 11, 2026
owenlin0
reviewed
Feb 11, 2026
9cbbf46 to
5288465
Compare
owenlin0
approved these changes
Feb 11, 2026
b26c1c9 to
34ad836
Compare
git-stack-id: fjord/js_repl_seq---4hn_dbch6anby6 git-stack-title: Add feature-gated freeform js_repl core runtime
34ad836 to
9b26477
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
This PR adds an experimental, feature-gated
js_replcore runtime so models can execute JavaScript in a persistent REPL context across tool calls.The implementation integrates with existing feature gating, tool registration, prompt composition, config/schema docs, and tests.
What changed
features.js_repl.js_repltool and companionjs_repl_resettool.Feature::JsRepl.CODEX_JS_REPL_NODE_PATHjs_repl_node_pathin configPATHWhy
This enables richer agent workflows that require incremental JavaScript execution with preserved state, while keeping rollout safe behind an explicit feature flag.
Testing
Coverage includes:
awaitsupport).Usage
Optional runtime override:
CODEX_JS_REPL_NODE_PATH, orjs_repl_node_pathin config.git stack
1Add feature-gated freeform js_repl core runtime #106742Add js_repl host helpers and exec end events #106723Add js_repl_tools_only model and routing restrictions #106714Add feature-gated js_repl polling flow #106735Add optional js_repl isolation and vendored Node runtime #10670