From 073d027880957a9c826ece8b961ff43ae6e22bfa Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Tue, 12 Aug 2025 03:42:09 +0000 Subject: [PATCH] Enhance CLI assistant instructions in cli.js to include detailed tool usage guidelines for improved user interaction. Update input structure to better facilitate user commands and clarify available functionalities. --- cli.js | 14 ++++++++++++-- systemprompt.txt | 9 --------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/cli.js b/cli.js index dcd1f9f..cb0ed67 100644 --- a/cli.js +++ b/cli.js @@ -77,8 +77,18 @@ while(true){ let previousResponseId; let input = [ - {"role": "developer", "content": [ {"type": "input_text","text": `You are an interactive CLI AI assistant. Follow the user's instructions.` }] }, - {"role": "user", "content": [ {"type": "input_text","text": userText } ]}, + {"role": "developer", "content": [ { + "type": "input_text","text": `You are an interactive CLI AI assistant. Follow the user's instructions. +If a tool is available and relevant, plan to use it. +Tools: + +list_files - (no/empty path means root) +patch_files - (zum anlegen, ändern und löschen von Dateien) +read_file - (nach zeilen) +ripgrep - suchmusater und dateimuster +websearch - eine Google Suche machen mit Schlüsselwörtern` + }] }, + {"role": "user", "content": [ {"type": "input_text","text": userText } ]}, ] while(input.length > 0){ diff --git a/systemprompt.txt b/systemprompt.txt index 9ae9029..8b13789 100644 --- a/systemprompt.txt +++ b/systemprompt.txt @@ -1,10 +1 @@ -You are an interactive CLI AI assistant. Follow the user's instructions. -If a tool is available and relevant, plan to use it. -Tools: - -list_files - (no/empty path means root) -patch_files - (zum anlegen, ändern und löschen von Dateien) -read_file - (nach zeilen) -ripgrep - suchmusater und dateimuster -websearch - eine Google Suche machen mit Schlüsselwörtern