Skip to content

Commit 80cc4e5

Browse files
Replaces !!? by !!!
1 parent 05bcbef commit 80cc4e5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The project uses a `src/smolagents/` layout. All source code is under `src/smola
5555
- `prompts/` - YAML prompt templates for different agent types
5656

5757
### Beyond Python (BP) Extensions
58-
- `bp_cli.py` - Interactive CLI (`bpsa`): REPL and one-shot modes with CodeAgent, slash commands, token tracking, shell escapes (`!`, `!!`, `!!?`), `/alias`, `/redo`, auto-save
58+
- `bp_cli.py` - Interactive CLI (`bpsa`): REPL and one-shot modes with CodeAgent, slash commands, token tracking, shell escapes (`!`, `!!`, `!!!`), `/alias`, `/redo`, auto-save
5959
- `bp_tools.py` - Extended tool library: file I/O, source code analysis, OS commands, multi-language support (24+ languages including Pascal, PHP, C++, Java, Go, Rust)
6060
- `bp_thinkers.py` - `Thinker` agent with multi-step reasoning (thoughts/plans/code sections)
6161
- `bp_executors.py` - `LocalExecExecutor` for direct Python execution via `exec()`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The REPL supports command history, tab completion for slash commands, and multi-
7474
|--------|-------------|
7575
| `!<command>` | Run an OS command directly (agent does not see the output) |
7676
| `!!<command>` | Run an OS command with streaming output; output is appended to the next prompt sent to the agent |
77-
| `!!?<command>` | Run an OS command and immediately send the output to the agent for analysis |
77+
| `!!!<command>` | Run an OS command and immediately send the output to the agent for analysis |
7878

7979
#### Aliases
8080

src/smolagents/bp_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def print_help():
503503
table.add_column("Description")
504504
table.add_row("!<command>", "Run an OS command directly (agent does not see the output)")
505505
table.add_row("!!<command>", "Run an OS command; output is appended to the next prompt sent to the agent")
506-
table.add_row("!!?<command>", "Run an OS command and immediately send the output to the agent for analysis")
506+
table.add_row("!!!<command>", "Run an OS command and immediately send the output to the agent for analysis")
507507
table.add_row("/alias <name> <value>", "Define alias (saved to ~/.bpsa_aliases). No args=list, -d <name>=delete")
508508
table.add_row("/auto-approve \[on|off]", "Toggle or set auto-approve for tag execution")
509509
table.add_row("/cd <dir>", "Change working directory")
@@ -1542,8 +1542,8 @@ def get_input():
15421542
rest = text[len(first_word):].lstrip()
15431543
text = aliases[first_word] + (" " + rest if rest else "")
15441544

1545-
# Handle !!? shell escape: run OS command and immediately send to agent
1546-
if text.startswith("!!?"):
1545+
# Handle !!! shell escape: run OS command and immediately send to agent
1546+
if text.startswith("!!!"):
15471547
shell_cmd = text[3:].strip()
15481548
if shell_cmd:
15491549
output = _run_shell_streaming(shell_cmd)

0 commit comments

Comments
 (0)