Skip to content

Commit 11a37ba

Browse files
committed
docs: documenting jail bypass if shell namespace is used
1 parent 634f723 commit 11a37ba

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/namespaces.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ Simulates the reasoning process at runtime.
270270

271271
Let the agent execute shell commands.
272272

273+
> [!WARNING]
274+
> Using this tool will bypass the filesystem jail mechanism
275+
273276
<details>
274277
<summary><b>Show Tools</b></summary>
275278

nerve/tools/namespaces/shell.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
"""
22
Let the agent execute shell commands.
3+
4+
> [!WARNING]
5+
> Using this tool will bypass the filesystem jail mechanism
36
"""
47

58
import subprocess
@@ -11,7 +14,6 @@
1114
EMOJI = "💻"
1215

1316

14-
# TODO: if both filesystem and shell are used, shell can be used to bypass the filesystem jailing system. find a way to either prevent it, or communicate it.
1517
def shell(
1618
command: Annotated[str, "The shell command to execute"],
1719
) -> str | bytes:

0 commit comments

Comments
 (0)