Skip to content

Commit cacc3a0

Browse files
Better tmux instructions
1 parent 80aafbb commit cacc3a0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/smolagents/bp_tools_tmux.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,16 @@ class TmuxCreateTool(Tool):
6767

6868
name = "tmux_create"
6969
description = (
70-
"Creates a new independent named tmux screen session. "
70+
"Creates a new independent named tmux screen session."
7171
"Use this to run long-running processes (servers, builds, watches) "
72-
"in the background while continuing other work. "
72+
"in the background while continuing other work."
7373
"Each session is a full shell you can send commands to and read output from."
74+
"* Create a new bash session:"
75+
" tmux_create(\"newsession\") or tmux_create(\"newsession\",\"bash\")"
76+
"* Type ls -l:"
77+
" tmux_send(\"newsession\",\"ls -l\")"
78+
"* Create a fresh clone of yourself without your context/history:"
79+
" tmux_create(\"myclone\",\"bpsa\")"
7480
)
7581
inputs = {
7682
"session_name": {

0 commit comments

Comments
 (0)