Skip to content

Commit a172071

Browse files
committed
Refine CLI edit/ask requirements and rename large file markers to unread files
1 parent 7fadf80 commit a172071

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Whenever showing a new, updated, renamed, or deleted file, provide a brief expla
174174
175175
# Requirements
176176
177-
All project files necessary for the task were preloaded and are attached in [files](#files). You cannot make any codebase discovery tool calls.
177+
Begin by looking at [files](#files) section for referenced files (### File: `[PROJECT-RELATIVE PATH]`) and read them. Then, read potential images from the [task][#task]. You cannot make any other tool calls in this session except creating, deleting or updating listed in [files][#files] paths to complete the [task](#task).
178178
179179
# Task
180180
@@ -212,7 +212,7 @@ _Multi-purpose: explanations, code reviews, you name it._
212212
213213
# Requirements
214214
215-
All project files necessary for the task were preloaded and are attached in [files](#files). You cannot make any codebase discovery tool calls.
215+
Begin by looking at [files](#files) section for referenced files (### File: `[PROJECT-RELATIVE PATH]`) and read them. Then, read potential images from the [task][#task]. You cannot make any other tool calls in this session except creating, deleting or updating listed in [files][#files] paths to complete the [task](#task).
216216
217217
# Task
218218

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

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

7272
export const cli_edit_ask_requirements = {
7373
preloaded_files:
74-
'All project files necessary for the task were preloaded and are attached in [files](#files). You cannot make any codebase discovery tool calls.',
74+
'All project files necessary for the task were preloaded and are attached in [files](#files). Read potential images from [task][#task], and nothing else. You cannot make any other tool calls in this session except creating, deleting or updating listed in [files][#files] paths to complete the [task](#task).',
7575
referenced_files_with_some_preloaded:
76-
"You must start by reading all 'large files' listed as project-relative paths in [files](#files). You cannot make any further codebase discovery tool calls.",
76+
"Begin by looking at [files](#files) section for unread files (### Unread file: `[PROJECT-RELATIVE PATH]`) and read them. Then, read potential images from the [task][#task]. You cannot make any other tool calls in this session except creating, deleting or updating listed in [files][#files] paths to complete the [task](#task).",
7777
referenced_files_only:
78-
'You must read all files listed as project-relative paths in [files](#files). You cannot make any further codebase discovery tool calls.'
78+
'Begin by looking at [files](#files) section for referenced files (### File: `[PROJECT-RELATIVE PATH]`) and read them. Then, read potential images from the [task][#task]. You cannot make any other tool calls in this session except creating, deleting or updating listed in [files][#files] paths to complete the [task](#task).'
7979
}

‎apps/editor/src/views/prompt/backend/message-handlers/utils/build-cli-prompt.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const build_cli_prompt = async (params: {
105105
)
106106
are_any_files_preloaded = true
107107
} else {
108-
file_blocks.push(`### Large file: \`${data.relative_path}\``)
108+
file_blocks.push(`### Unread file: \`${data.relative_path}\``)
109109
}
110110
} else {
111111
file_blocks.push(

0 commit comments

Comments
 (0)