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.

This commit is contained in:
sebseb7
2025-08-12 03:42:09 +00:00
parent 70fe6fccdb
commit 073d027880
2 changed files with 12 additions and 11 deletions

14
cli.js
View File

@@ -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){

View File

@@ -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