File and shell tools in awe’s chat
When awe’s chat runs on an API model (awe’s own AI plan, or a key you bring), the console gives that model a set of built-in tools to read, search and edit files and to run shell commands on your computer. This page lists those tools, says who gets them, and shows the settings that limit them. It is for developers and for anyone who wants to know what awe can touch.
If your model is a command-line agent such as the Claude CLI, that agent brings its own file and shell tools, and the tools on this page are not used.
Who gets the tools
| Where the turn comes from | File tools | Shell (bash) |
|---|---|---|
| The main chat in the console | Yes | Yes |
Your own texts to awe, and the simple chat at /simple |
Yes | Yes |
| Chats scoped to one app or one skill | No | No |
| Scheduled tasks, check-ins, automations, board workers | No | No |
| Other people (guests in a shared room, other channels) | No | No |
| The OpenAI-compatible API | No | No |
Turns that nobody typed or texted never get a shell.
What a fresh install allows
A release sets two lines in .env:
AWE_FS_TOOLS_ENABLED=1
AWE_FS_TOOLS_UNSANDBOXED=1
Together they mean: the file tools are on, and they can reach any path on your computer that your user account can, apart from the protected paths below. The shell tool is on as well. This is the same reach a coding agent has when you run it in your own terminal.
To narrow it, change .env in your awe folder and restart awe:
| You want | Set |
|---|---|
| No shell, files unchanged | AWE_HOST_TOOLS=0 |
| Files confined to one private folder per conversation, and no shell | AWE_FS_TOOLS_UNSANDBOXED=0 |
| Files confined to one folder you choose, and no shell | AWE_FS_TOOLS_UNSANDBOXED=0, AWE_FS_TOOLS_FLAT_ROOT=1, AWE_FS_TOOLS_ROOT=/path/to/folder |
| No file tools and no shell | AWE_FS_TOOLS_ENABLED=0 |
The shell needs the whole-computer file mode. Turning that mode off turns the shell off too.
The file tools
| Tool | What it does |
|---|---|
read_file |
Read a text file with line numbers. offset and limit page through large files |
write_file |
Create or write a file. mode is create (default, fails if the file exists), overwrite or append |
edit_file |
Replace one piece of text. The text to replace must match exactly one place unless replace_all is set |
multi_edit |
Several edits to one file, applied together or not at all |
list_dir |
List a folder |
directory_tree |
Show nested folders to a depth (1 to 10, default 3) |
search_files |
Find which files contain some text. One line per matching file |
grep |
Show every matching line, with optional lines of context and a file-name filter |
glob |
Find files by name pattern, such as **/*.test.ts |
file_stat |
Size, type, modified time and line count of one path, without reading it |
Reading and searching never ask for approval.
For models that cannot make reliable targeted edits, list part of the model’s name in AWE_WHOLE_FILE_MODELS. Those models are not offered edit_file or multi_edit and rewrite whole files with write_file instead.
The shell tool
bash runs one command as you and returns its output and exit code. On a Mac it uses zsh. On Windows it uses PowerShell. It starts in the awe folder (or the active project’s folder) unless the call gives another one. A command is ended after 2 minutes by default, 10 minutes at most.
Protected paths
In every mode the file tools refuse:
- anything inside
.git,node_modules,.ssh,.awsor.gnupg .envfiles- files ending in
.db,.sqlite,.sqlite3,.key,.pem,.p12or.pfx - the
awe-coreandawe-hook-binprograms
AWE_FS_TOOLS_UNSANDBOXED_ALLOW_PROTECTED=1 lifts this list in whole-computer mode. Leave it off.
This list guards the file tools. It is not a sandbox for the shell: a shell command runs with your full permissions.
When awe asks first
awe checks each shell command and each file change before running it. Commands and file changes that delete, move or overwrite, send, install, change permissions, end programs or change settings are held back. awe tells you in one line what it wants to run, and runs exactly that, once, after you say yes. No yes, nothing runs. In the console the question is a card with Approve and Deny buttons. By text, you reply yes.
Only you can be asked, and only on a turn you started. A guest, or a turn nobody typed or texted (a check-in, a scheduled task), is refused outright.
The same check covers the Claude CLI’s own shell and file tools when that is your model.
Stricter profiles
A second, optional layer sorts actions into categories and gives each a mode: auto (run), ask (wait for your approval) or deny.
| Category | Covers |
|---|---|
file_write |
write_file, edit_file, multi_edit |
bash |
The shell tool, running scripts through a connected server, and registering a script (vc_scripts_register) |
messaging_send |
Sending a message or email through a connected server |
calendar_write |
Changing a calendar |
schedule_create |
Creating, pausing or cancelling a scheduled task or reminder |
mcp_mutation |
Any other tool call that changes something |
One setting, perm_profile, sets them together:
| Profile | Effect |
|---|---|
full (default) |
Everything is auto. Only the destructive-action check above applies |
workspace |
File writes stay auto. bash, messaging_send, calendar_write, schedule_create and mcp_mutation become ask |
read-only |
All six categories are deny |
A single category can be overridden with perm_<category> (for example perm_bash = ask). The most specific setting wins: a per-scope override (perm.<scope>.<category>), then perm_<category>, then the profile. A value that is not auto, ask or deny is treated as deny.
These are console settings stored in its database, not .env lines. The console’s Settings screen has no switch for them yet. perm_profile can be read with GET /api/settings and set with POST /api/settings and {"perm_profile": "workspace"} (one of full, workspace, read-only). Setting it needs the console’s own sign-in: the console page, or the header Authorization: Bearer followed by the contents of .awe/console.token.
Where files go in confined mode
With AWE_FS_TOOLS_UNSANDBOXED=0, each conversation gets its own folder under .awe/workspace/agent-files/ in the awe folder, and paths that try to leave it are refused. AWE_FS_TOOLS_ROOT moves that base folder. AWE_FS_TOOLS_FLAT_ROOT=1 uses the base folder itself for every conversation.
In whole-computer mode, relative paths start from the active project’s folder (see gateway-projects.md) or the awe folder.
Settings
All in .env. The first column’s default is what the code does when the line is absent. A release’s .env sets the first two to 1.
| Setting | Default when absent | What it does |
|---|---|---|
AWE_FS_TOOLS_ENABLED |
off | Offer the file tools |
AWE_FS_TOOLS_UNSANDBOXED |
off | Let the file tools reach any path, and allow the shell |
AWE_HOST_TOOLS |
on | 0 removes the shell tool |
AWE_FS_TOOLS_ROOT |
.awe/workspace/agent-files |
Base folder for confined mode |
AWE_FS_TOOLS_FLAT_ROOT |
off | Confine to the base folder itself, not one folder per conversation |
AWE_FS_TOOLS_UNSANDBOXED_ALLOW_PROTECTED |
off | Lift the protected-path list in whole-computer mode |
AWE_FS_TOOLS_MAX_BYTES |
2000000 |
Largest read, write or edit in bytes. Larger writes are refused, larger reads are cut short |
AWE_WHOLE_FILE_MODELS |
empty | Model-name fragments that get whole-file rewrites only |
AWE_NO_TOOLS_MODELS |
empty | Model-name fragments that get no tools at all |
Related
- gateway-projects.md: point the tools at a project folder
- gateway-state-layer.md: how large tool results are kept out of the conversation
- errands.md: the browser and desktop tools, which are separate from these
- mcp-server-installation.md: tools that come from MCP servers