Expand description
Coding-agent tools (packages/coding-agent). The seven built-in tools plus
preset tool sets.
Modules§
- bash
bashtool — execute a shell command in the working directory.- edit
edittool — 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
findtool — find files by glob pattern (gitignore-aware, in-process).- grep
greptool — search file contents (gitignore-aware, in-process).- ls
lstool — list directory contents.- read
readtool — read file contents (text or image).- skill
skilltool — 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
writetool — 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.