Mew. Work. Docs

Built-in tools›Shell

Bash

bash
Group
Shell
Turned on by
Its own switch on the Tools page of Conversation settings.
Approval
Reviewed: writes and open-ended actions ask for approval unless the security level or an earlier “Always allow” covers them.
Profile key
tool.bash.description

Runs a command line in Bash in the conversation's workspace and returns its output.

On macOS and Linux this is the first bash on your PATH; on Windows it is Git Bash, so use a WSL workspace for Linux commands. On this computer, calls load the aliases, functions and PATH from your ~/.bashrc.

When it asks you

Always allow is never offered. The card shows the full command, marked [Background] for a background run. A recursive delete of the filesystem root, your home folder, a system folder such as /etc, or a path built from a variable or command substitution asks at every level, Full access included.

Good to know

  • A command still running at its timeout moves to the background and keeps running, whether the main agent, a subagent or a workflow step ran it. A subagent's or workflow step's background commands report to it, and any still running when it gives its final reply are stopped. Background commands end when Mewrk quits or crashes.
  • A background command writes its output to a file in the tool-output folder of Mewrk's app-data folder as the output arrives, and its receipt names the file. The model can read or grep it while the command runs, and can stop the command with task_stop. The file stops growing at 64 MiB; the command and its final result are not affected.
  • Each workspace, on any machine, remembers the directory its last successful command ended in, and the next command in that workspace starts there. A command that ends outside the workspace sends the next one back to the workspace root, and its result says so. Background commands start in the remembered directory but never change it.

Parameters

ParameterTypeDetails
command required
Command
string—
description
Description
string—
run_in_background
Run in background
booleanStopped at your final reply if still running.
timeout
Timeout (ms)
numberMilliseconds (default 120000, max 600000).