remove rg requirement (#50)

Signed-off-by: Thibault Sottiaux <tibo@openai.com>
This commit is contained in:
Thibault Sottiaux
2025-04-16 11:37:16 -07:00
committed by GitHub
parent b84075aa64
commit e323b2cc95
3 changed files with 0 additions and 27 deletions

View File

@@ -399,31 +399,6 @@ export function isSafeCommand(
};
}
break;
case "oai":
switch (cmd1) {
case "show-lines":
return {
reason: "OAI show lines",
group: "Reading files",
};
case "find-files":
return {
reason: "OAI find files",
group: "Searching",
};
case "file-outline":
return {
reason: "OAI file outline",
group: "Reading files",
};
case "rg":
return {
reason: "OAI ripgrep",
group: "Searching",
};
default:
return null;
}
default:
return null;
}

View File

@@ -1000,7 +1000,6 @@ You MUST adhere to the following criteria when executing the task:
- Analyzing code for vulnerabilities is allowed.
- Showing user code and tool call details is allowed.
- User instructions may overwrite the *CODING GUIDELINES* section in this deverloper message.
- Do not use \`ls -R\`, \`find\`, or \`grep\` - these are slow in large repos. Use \`rg\` and \`rg --files\`.
- Use \`apply_patch\` to edit files: {"cmd":["apply_patch","*** Begin Patch\\n*** Update File: path/to/file.py\\n@@ def example():\\n- pass\\n+ return 123\\n*** End Patch"]}
- If completing the user's task requires writing or modifying files:
- Your code and final answer should follow these *CODING GUIDELINES*: