Skip to main content

Module tools

Module tools 

Source
Expand description

Coding-agent tools (packages/coding-agent). The seven built-in tools plus preset tool sets.

Modules§

bash
bash tool — execute a shell command in the working directory.
edit
edit tool — exact text replacement with optional multi-edit.
edit_diff
Exact-replace edit application + unified-diff generation (core/tools/edit-diff.ts).
file_mutex
Per-file mutation lock (core/tools/file-mutation-queue.ts).
find
find tool — find files by glob pattern (gitignore-aware, in-process).
grep
grep tool — search file contents (gitignore-aware, in-process).
ls
ls tool — list directory contents.
read
read tool — read file contents (text or image).
skill
skill tool — invoke a discovered skill to load its instructions.
truncate
Shared truncation utilities (core/tools/truncate.ts).
util
Shared tool helpers: path resolution and display.
write
write tool — create or overwrite a file.

Constants§

BUILTIN_TOOL_NAMES
Names of all built-in tools.

Functions§

all_tools
All seven built-in tools.
coding_tools
The full coding tool set: read, bash, edit, write (mirrors pi’s createCodingTools).
read_only_tools
Read-only tool set: read, grep, find, ls (mirrors createReadOnlyTools).
select_tools
Build a tool set from an allowlist of names.