From f4c020b76157c1af61fdf1f5a210f52029f34752 Mon Sep 17 00:00:00 2001 From: worldmozara Date: Tue, 4 Aug 2026 21:40:55 +0800 Subject: [PATCH] core/config: point default playbook and reminder at run_argv tools --- src/plyngent/agent/directive_checkpoint.py | 4 ++-- src/plyngent/config/models.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plyngent/agent/directive_checkpoint.py b/src/plyngent/agent/directive_checkpoint.py index 50f0348..047e5a9 100644 --- a/src/plyngent/agent/directive_checkpoint.py +++ b/src/plyngent/agent/directive_checkpoint.py @@ -17,8 +17,8 @@ DEFAULT_DIRECTIVE_REMINDER_TOKENS = 100_000 DEFAULT_DIRECTIVE_REMINDER_TEXT = """\ Tool playbook still applies (see system). Hard constraints: -- Prefer file tools over shell; several `run_command` calls may run in parallel; \ -use `run_command_batch` for ordered pipelines. +- Prefer file tools over shell; several `run_argv` calls may run in parallel; \ +use `run_argv_batch` for ordered pipelines. - `edit_replace`: fix match / `max_replaces`; `edit_lineno` edits only lines read via \ `read_file(with_lineno=true)`, and line numbers reset after any file write. - Prefer `fetch` for HTTP(S); private/LAN hosts need human policy allow (not YOLO). diff --git a/src/plyngent/config/models.py b/src/plyngent/config/models.py index 2f4fb1a..a8aa937 100644 --- a/src/plyngent/config/models.py +++ b/src/plyngent/config/models.py @@ -34,8 +34,8 @@ re-read with line numbers after any `edit_*` / `write_file` / copy/move/delete, since line numbers go stale. ### Commands -- Prefer `run_command` / `run_command_batch` (argv, no shell) over `bash -c` or similar. -- Several `run_command` calls in one step may run in parallel; use `run_command_batch` \ +- Prefer `run_argv` / `run_argv_batch` (argv lists, no shell) over `bash -c` or similar. +- Several `run_argv` calls in one step may run in parallel; use `run_argv_batch` \ for ordered pipelines (`pipe_out` / `mix_stderr` as needed). - Prefer `vcs_*` for status/diff/log/branch when enough.