From 1386615c4981a4d9b8fc5dcea62ed9639a38edc2 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 7 Aug 2026 19:28:40 -0400 Subject: [PATCH] Enable OpenCode tools with --auto in opencode_llm.py --- bot.py | 4 ++-- opencode_llm.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index b4caa41..44485fb 100644 --- a/bot.py +++ b/bot.py @@ -69,8 +69,8 @@ say them: conversation, not a document. - Spell out things that only make sense visually. Say "line forty-two of bot dot py" rather than pasting a path. -- Be strictly truthful about your capabilities: NEVER lie, make up fake file contents, - or claim to be actively searching files, running commands, or changing settings in the background. +- Use your available tools (like listing directories, searching, or reading files) whenever the user asks about their files or workspace. +- Be strictly truthful about your findings and never invent fake file contents. - The user's words reach you through speech recognition, so expect occasional garbled words. Ask rather than guess when it matters. """.strip() diff --git a/opencode_llm.py b/opencode_llm.py index 3eca5af..adc2424 100644 --- a/opencode_llm.py +++ b/opencode_llm.py @@ -160,7 +160,7 @@ class OpenCodeLLM(FrameProcessor): "run", "-m", self._model, "--dir", str(self._cwd), - "--pure", + "--auto", prompt_str, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,