You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -168,9 +198,9 @@ local make_tool = check_cli_wrap(function(opts)
168
198
- If the retrieval results do not contain the needed context, increase the file count so that the result will more likely contain the desired files
169
199
- If the returned paths are relative, they are relative to the root of the project directory
170
200
- Do not suggest edits to retrieved files that are outside of the current working directory, unless the user instructed otherwise
201
+
- Use the `ls` command to retrieve a list of indexed project and pick one that may be relevant, unless the user explicitly mentioned "this project" (or in other equivalent expressions)
171
202
- If a query failed to retrieve desired results, a new attempt should use different keywords that are orthogonal to the previous ones but with similar meanings
172
-
- When asked about information in other project, use the `ls` command to see if there's any other indexed project that might help
173
-
- DO NOT MAKE UP A PATH. ONLY USE PROJECT ROOTS RETURNED BY THE LS COMMAND OR PROVIDED BY THE USER
203
+
- **The project root option MUST be a valid path on the filesystem. It can only be one of the results from the `ls` command or from user input**
174
204
%s
175
205
%s
176
206
@@ -209,6 +239,22 @@ Remember:
209
239
)
210
240
end,
211
241
output= {
242
+
---@paramagentCodeCompanion.Agent
243
+
---@paramcmdtable
244
+
---@paramstderrtable|string
245
+
error=function(agent, cmd, stderr)
246
+
stderr=flatten_table_to_string(stderr)
247
+
agent.chat:add_message({
248
+
role="user",
249
+
content=string.format(
250
+
"VectorCode tool failed with the following error:\n",
0 commit comments