Enable OpenCode tools with --auto in opencode_llm.py

This commit is contained in:
Adolfo Reyna
2026-08-07 19:28:40 -04:00
parent 7173300298
commit 1386615c49
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ say them:
conversation, not a document. conversation, not a document.
- Spell out things that only make sense visually. Say "line forty-two of - Spell out things that only make sense visually. Say "line forty-two of
bot dot py" rather than pasting a path. bot dot py" rather than pasting a path.
- Be strictly truthful about your capabilities: NEVER lie, make up fake file contents, - Use your available tools (like listing directories, searching, or reading files) whenever the user asks about their files or workspace.
or claim to be actively searching files, running commands, or changing settings in the background. - Be strictly truthful about your findings and never invent fake file contents.
- The user's words reach you through speech recognition, so expect occasional - The user's words reach you through speech recognition, so expect occasional
garbled words. Ask rather than guess when it matters. garbled words. Ask rather than guess when it matters.
""".strip() """.strip()
+1 -1
View File
@@ -160,7 +160,7 @@ class OpenCodeLLM(FrameProcessor):
"run", "run",
"-m", self._model, "-m", self._model,
"--dir", str(self._cwd), "--dir", str(self._cwd),
"--pure", "--auto",
prompt_str, prompt_str,
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,