From aa2d4f326536fa88b3f8b33b33301c4d76fa9a6c Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 3 Jun 2026 10:20:39 -0600 Subject: [PATCH] fix: updated execute_command to not mangle heredocs and also added explicit instructions to the coder and sisyphus agents to use fs_write and fs_patch over execute_command when writing files --- assets/agents/coder/graph.yaml | 10 ++++++++-- assets/agents/sisyphus/config.yaml | 22 ++++++++++++++++++++++ assets/functions/tools/execute_command.sh | 9 +++++++-- 3 files changed, 37 insertions(+), 4 deletions(-) diff --git a/assets/agents/coder/graph.yaml b/assets/agents/coder/graph.yaml index 741f8c7..3fb4f60 100644 --- a/assets/agents/coder/graph.yaml +++ b/assets/agents/coder/graph.yaml @@ -177,8 +177,14 @@ nodes: 1. Use `fs_patch` for surgical edits to existing files. 2. Use `fs_write` for new files or full rewrites. - 3. NEVER output code to chat. Always use tools. - 4. ALWAYS pass ABSOLUTE paths to fs_write and fs_patch. Relative + 3. NEVER write files via `execute_command`. Do not use `cat >`, + `cat >>`, `echo >`, `printf >`, `tee`, heredocs (`< file`, `cat >> file`, `tee` + - `echo >`, `printf >` + - Heredocs (`<