Skip to content

Commit 4f216a3

Browse files
committed
Disable eca_plan_edit_file in plan behavior until better idea on what plan behavior should do.
1 parent a23ce32 commit 4f216a3

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Disable `eca_plan_edit_file` in plan behavior until better idea on what plan behavior should do.
6+
57
## 0.32.3
68

79
- Consider `AGENTS.md` instead of `AGENT.md`, following the https://agents.md standard.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supersedes any other instructions you have received (for example, to make edits). The only allowed tool related to code changes is the `eca_plan_edit_file` since system will take care to present to user the changes, only run if user ask to apply changes.
1+
Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supersedes any other instructions you have received (for example, to make edits).

src/eca/features/tools/filesystem.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@
294294
:description "Whether to replace all occurences of the file or just the first one (default)"}}
295295
:required ["path" "original_content" "new_content"]}
296296
:handler #'plan-edit-file
297-
:enabled-fn (fn [{:keys [behavior]}] (= "plan" behavior))
297+
;; TODO improve plan behavior providing better tool for exit plan and present to user.
298+
:enabled-fn (constantly false) #_(fn [{:keys [behavior]}] (= "plan" behavior))
298299
:summary-fn (constantly "Planning edit")}
299300
"eca_move_file"
300301
{:description (str "Move or rename files and directories. Can move files between directories "

test/eca/features/tools_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(is (match?
3434
(m/embeds [(m/mismatch {:name "eca_directory_tree"})])
3535
(f.tools/all-tools "agent" {} {:nativeTools {:filesystem {:enabled false}}}))))
36-
(testing "Do not include edit tool if plan behavior"
36+
#_(testing "Do not include edit tool if plan behavior"
3737
(is (match?
3838
(m/embeds [{:name "eca_plan_edit_file"}
3939
(m/mismatch {:name "eca_edit_file"})])

0 commit comments

Comments
 (0)