feat(deepagents): add filesystem tool allowlist - #671
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 5c3d982 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
deepagents-acp
deepagents
@langchain/sandbox-standard-tests
@langchain/daytona
@langchain/deno
@langchain/modal
@langchain/node-vfs
@langchain/quickjs
commit: |
Merged
Colin Francis (colifran)
pushed a commit
that referenced
this pull request
Jul 16, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## deepagents@1.11.0 ### Minor Changes - [#671](#671) [`6ae9d1e`](6ae9d1e) Thanks [@hntrl](https://github.com/hntrl)! - feat(filesystem): add allowlist for filesystem middleware tools - [#669](#669) [`4643148`](4643148) Thanks [@hntrl](https://github.com/hntrl)! - feat(deepagents): add structured system prompt configuration - [#673](#673) [`eb18c70`](eb18c70) Thanks [@hntrl](https://github.com/hntrl)! - feat(backends): add delete protocol support Adds a `DeleteResult` type and optional backend `delete` method, preserves delete through backend protocol adaptation, and implements file deletion across the built-in state, store, filesystem, composite, context hub, sandbox, and node-vfs backends. ### Patch Changes - [#691](#691) [`39a7049`](39a7049) Thanks [@colifran](https://github.com/colifran)! - fix(deepagents): backend adapter drops route prefixes - [#672](#672) [`cc26c41`](cc26c41) Thanks [@hntrl](https://github.com/hntrl)! - fix(deepagents): allow custom middleware to replace defaults by name ## deepagents-acp@0.1.19 ### Patch Changes - Updated dependencies [[`39a7049`](39a7049), [`6ae9d1e`](6ae9d1e), [`cc26c41`](cc26c41), [`4643148`](4643148), [`eb18c70`](eb18c70)]: - deepagents@1.11.0 ## @langchain/node-vfs@0.2.1 ### Patch Changes - [#673](#673) [`eb18c70`](eb18c70) Thanks [@hntrl](https://github.com/hntrl)! - feat(backends): add delete protocol support Adds a `DeleteResult` type and optional backend `delete` method, preserves delete through backend protocol adaptation, and implements file deletion across the built-in state, store, filesystem, composite, context hub, sandbox, and node-vfs backends. ## @deepagents/evals@0.0.18 ### Patch Changes - Updated dependencies [[`39a7049`](39a7049), [`6ae9d1e`](6ae9d1e), [`cc26c41`](cc26c41), [`4643148`](4643148), [`eb18c70`](eb18c70)]: - deepagents@1.11.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Hunter Lovell (hntrl)
added a commit
that referenced
this pull request
Jul 24, 2026
Adds a `tools` allowlist option to `createFilesystemMiddleware` so callers can restrict which built-in filesystem tools are exposed to the model. The middleware now builds the filesystem system prompt from the tools that are actually visible on the request, avoiding instructions for tools that were filtered by the allowlist or backend capability checks. - Adds a public `FsToolName` type and `tools` option to `FilesystemMiddlewareOptions`. - Filters filesystem middleware tools at construction time when an explicit allowlist is provided, while preserving existing `execute` backend capability filtering. - Requires `read_file` in explicit allowlists because it is needed for filesystem workflows and large-result recovery. - Generates the filesystem tool prompt dynamically from visible filesystem tools, and only appends execute-specific instructions when `execute` is actually available. - Adds unit and integration coverage for allowlist behavior, prompt filtering, unsupported `execute`, and user-provided non-filesystem tools.
Hunter Lovell (hntrl)
pushed a commit
that referenced
this pull request
Jul 24, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## deepagents@1.11.0 ### Minor Changes - [#671](#671) [`6ae9d1e`](6ae9d1e) Thanks [@hntrl](https://github.com/hntrl)! - feat(filesystem): add allowlist for filesystem middleware tools - [#669](#669) [`4643148`](4643148) Thanks [@hntrl](https://github.com/hntrl)! - feat(deepagents): add structured system prompt configuration - [#673](#673) [`eb18c70`](eb18c70) Thanks [@hntrl](https://github.com/hntrl)! - feat(backends): add delete protocol support Adds a `DeleteResult` type and optional backend `delete` method, preserves delete through backend protocol adaptation, and implements file deletion across the built-in state, store, filesystem, composite, context hub, sandbox, and node-vfs backends. ### Patch Changes - [#691](#691) [`39a7049`](39a7049) Thanks [@colifran](https://github.com/colifran)! - fix(deepagents): backend adapter drops route prefixes - [#672](#672) [`cc26c41`](cc26c41) Thanks [@hntrl](https://github.com/hntrl)! - fix(deepagents): allow custom middleware to replace defaults by name ## deepagents-acp@0.1.19 ### Patch Changes - Updated dependencies [[`39a7049`](39a7049), [`6ae9d1e`](6ae9d1e), [`cc26c41`](cc26c41), [`4643148`](4643148), [`eb18c70`](eb18c70)]: - deepagents@1.11.0 ## @langchain/node-vfs@0.2.1 ### Patch Changes - [#673](#673) [`eb18c70`](eb18c70) Thanks [@hntrl](https://github.com/hntrl)! - feat(backends): add delete protocol support Adds a `DeleteResult` type and optional backend `delete` method, preserves delete through backend protocol adaptation, and implements file deletion across the built-in state, store, filesystem, composite, context hub, sandbox, and node-vfs backends. ## @deepagents/evals@0.0.18 ### Patch Changes - Updated dependencies [[`39a7049`](39a7049), [`6ae9d1e`](6ae9d1e), [`cc26c41`](cc26c41), [`4643148`](4643148), [`eb18c70`](eb18c70)]: - deepagents@1.11.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Hunter Lovell (hntrl)
added a commit
that referenced
this pull request
Jul 24, 2026
Adds a `tools` allowlist option to `createFilesystemMiddleware` so callers can restrict which built-in filesystem tools are exposed to the model. The middleware now builds the filesystem system prompt from the tools that are actually visible on the request, avoiding instructions for tools that were filtered by the allowlist or backend capability checks. - Adds a public `FsToolName` type and `tools` option to `FilesystemMiddlewareOptions`. - Filters filesystem middleware tools at construction time when an explicit allowlist is provided, while preserving existing `execute` backend capability filtering. - Requires `read_file` in explicit allowlists because it is needed for filesystem workflows and large-result recovery. - Generates the filesystem tool prompt dynamically from visible filesystem tools, and only appends execute-specific instructions when `execute` is actually available. - Adds unit and integration coverage for allowlist behavior, prompt filtering, unsupported `execute`, and user-provided non-filesystem tools.
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.
Summary
Adds a
toolsallowlist option tocreateFilesystemMiddlewareso callers can restrict which built-in filesystem tools are exposed to the model. The middleware now builds the filesystem system prompt from the tools that are actually visible on the request, avoiding instructions for tools that were filtered by the allowlist or backend capability checks.Changes
FsToolNametype andtoolsoption toFilesystemMiddlewareOptions.executebackend capability filtering.read_filein explicit allowlists because it is needed for filesystem workflows and large-result recovery.executeis actually available.execute, and user-provided non-filesystem tools.