config: disable built-in tools

This commit is contained in:
syntaxbullet
2026-07-23 19:24:34 +02:00
parent 5693e014ec
commit aebf0858a4
3 changed files with 15 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ The launcher is relocatable and can be called while working in another project:
/path/to/kimiko-agent/launch /path/to/kimiko-agent/launch
``` ```
Pi keeps that project's working directory while storing this instance's credentials, settings, sessions, packages, and global resources here. Pi keeps that project's working directory while storing this instance's credentials, settings, sessions, packages, and global resources here. The launcher also passes `--no-builtin-tools`, so Pi starts without the built-in `read`, `bash`, `edit`, or `write` tools while retaining tools registered by extensions.
To use the environment variable directly instead: To use the environment variable directly instead:

8
launch
View File

@@ -4,4 +4,12 @@ set -euo pipefail
instance_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" instance_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
export PI_CODING_AGENT_DIR="$instance_dir" export PI_CODING_AGENT_DIR="$instance_dir"
# Package-management commands must remain the first argument for Pi's CLI dispatcher.
case "${1:-}" in
install | remove | uninstall | update | list | config)
exec "${PI_BIN:-pi}" "$@" exec "${PI_BIN:-pi}" "$@"
;;
*)
exec "${PI_BIN:-pi}" --no-builtin-tools "$@"
;;
esac

View File

@@ -1,5 +1,9 @@
{ {
"defaultProjectTrust": "ask", "defaultProjectTrust": "ask",
"enableInstallTelemetry": false, "enableInstallTelemetry": false,
"packages": [] "packages": [],
"lastChangelogVersion": "0.81.1",
"theme": "dark",
"defaultProvider": "omlx",
"defaultModel": "Ternary-Bonsai-27B-mlx-2bit"
} }