Move run_shell_command to READ_ONLY_TOOLS and update documentation
This commit is contained in:
parent
9abb13cf22
commit
7650033828
|
|
@ -35,12 +35,12 @@ READ_ONLY_TOOLS = [
|
||||||
delete_key_snippets,
|
delete_key_snippets,
|
||||||
read_file_tool,
|
read_file_tool,
|
||||||
fuzzy_find_project_files,
|
fuzzy_find_project_files,
|
||||||
ripgrep_search
|
ripgrep_search,
|
||||||
|
run_shell_command # can modify files, but we still need it for read-only tasks.
|
||||||
]
|
]
|
||||||
|
|
||||||
# Tools that can modify files or system state
|
# Tools that can modify files or system state
|
||||||
MODIFICATION_TOOLS = [
|
MODIFICATION_TOOLS = [
|
||||||
run_shell_command,
|
|
||||||
run_programming_task
|
run_programming_task
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ def run_shell_command(command: str) -> Dict[str, Union[str, int, bool]]:
|
||||||
- Environment: .env, venv, env
|
- Environment: .env, venv, env
|
||||||
- IDE: .idea, .vscode
|
- IDE: .idea, .vscode
|
||||||
3. Avoid doing recursive lists, finds, etc. that could be slow and have a ton of output. Likewise, avoid flags like '-l' that needlessly increase the output. But if you really need to, you can.
|
3. Avoid doing recursive lists, finds, etc. that could be slow and have a ton of output. Likewise, avoid flags like '-l' that needlessly increase the output. But if you really need to, you can.
|
||||||
|
4. Add flags e.g. git --no-pager in order to reduce interaction required by the human.
|
||||||
"""
|
"""
|
||||||
# Check if we need approval
|
# Check if we need approval
|
||||||
cowboy_mode = _global_memory.get('config', {}).get('cowboy_mode', False)
|
cowboy_mode = _global_memory.get('config', {}).get('cowboy_mode', False)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue