Skip to content

Commit 1d5c83e

Browse files
committed
Update CLI agent requirements to clarify image tool usage and forbid shell commands
- update `README.md` for [Changes] ├── README.md └── apps └── editor └── src ├── constants │ └── instructions.ts └── views └── prompt └── backend └── message-handlers └── utils └── build-cli-prompt.ts
1 parent c89e006 commit 1d5c83e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ Whenever showing a new, updated, renamed, or deleted file, provide a brief expla
174174
175175
# Requirements
176176
177-
- All project's files were preloaded to [files](#files). If [task](#task) includes *.png image paths, read them. Looking for other files is FORBIDDEN.
178-
- You may only perform file operations (create, update, delete) required to complete the [task](#task); running any other tools or shell commands is FORBIDDEN.
177+
- All project's files were preloaded to [files](#files). If [task](#task) includes *.png image paths, read them using the appropriate tool.
178+
- You may only perform file operations (create, update, delete) required to complete the [task](#task); running any shell commands (grep, glob, ls, git, etc.) is FORBIDDEN.
179179
180180
# Task
181181
@@ -213,8 +213,8 @@ _Multi-purpose: explanations, code reviews, you name it._
213213
214214
# Requirements
215215
216-
- All project's files were preloaded to [files](#files). If [task](#task) includes *.png image paths, read them. Looking for other files is FORBIDDEN.
217-
- Running any additional tools or shell commands is FORBIDDEN.
216+
- All project's files were preloaded to [files](#files). If [task](#task) includes *.png image paths, read them using the appropriate tool.
217+
- You may only use tools to read images from [task](#task). Modifying the file system or running any shell commands (grep, glob, ls, git, etc.) is FORBIDDEN.
218218
219219
# Task
220220

‎apps/editor/src/constants/instructions.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ export const voice_input_instructions =
7070

7171
export const cli_edit_ask_requirements = {
7272
preloaded_context:
73-
"All project's files were preloaded to [files](#files). If [task](#task) includes *.png image paths, read them.",
73+
"All project's files were preloaded to [files](#files). If [task](#task) includes *.png image paths, read them using the appropriate tool.",
7474
restrict_tool_calls:
75-
'Running any other tools or shell commands (grep, glob, ls, git, etc.) is FORBIDDEN.',
75+
'You may only use tools to read images from [task](#task). Modifying the file system or running any shell commands (grep, glob, ls, git, etc.) is FORBIDDEN.',
7676
restrict_tool_calls_with_exceptions:
77-
'You may only perform file operations (create, update, delete) required to complete the [task](#task); running any other tools or shell commands (grep, glob, ls, git, etc.) is FORBIDDEN.'
77+
'You may only perform file operations (create, update, delete) required to complete the [task](#task); running any shell commands (grep, glob, ls, git, etc.) is FORBIDDEN.'
7878
}

0 commit comments

Comments
 (0)