From 448feda282a18e2cb850fdcd817f4f9d34b2ab61 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 5 Mar 2026 23:31:49 -0800 Subject: Agent defaults --- agent.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/agent.sh b/agent.sh index 597571c..0b4fa7c 100755 --- a/agent.sh +++ b/agent.sh @@ -10,13 +10,13 @@ TIMEOUT_MAX="${TIMEOUT_MAX:-300}" N_RETRIES="${RETRY_MAX:-5}" teaissue() { - echo tea issues create --title "$1 (TeAgent)" --body "$2" --login teagent --repo "${REPO}" + tea issues create --title "$1 (TeAgent)" --body "$2" --login teagent --repo "${REPO}" } SERVER="${OLLAMA_HOST:-http://localhost:11434}" MODEL="${OLLAMA_MODEL:-llama3.2}" -read -p "Source file listing cmd: " -e -i "find . -type f -iname \\\\*.py" source_file_fn +read -p "Source file listing cmd: " -e -i "find src -type f -iname \\\\*.py" source_file_fn SOURCE_FILES=`eval "${source_file_fn}"` # Select what files @@ -26,14 +26,14 @@ for source_file in ${SOURCE_FILES}; do if [ ! -s "${source_file}" ]; then continue fi - FILE_SELECTIONS+=("${source_file}" "" off) + FILE_SELECTIONS+=("${source_file}" "" on) INDEX=$((INDEX+1)) done FILE_CHOICES=$(dialog --clear \ --title "Files to process" \ --checklist "Choose files:" \ - 10 40 3 \ + 0 0 0 \ "${FILE_SELECTIONS[@]}" \ 2>&1 >/dev/tty) if [ "$?" -ne "0" ]; then @@ -69,6 +69,7 @@ EOF TASK_NAME="Cleanup" PROMPT_BASE=$(cat << EOF Please write tests for the following source, leaving ample documentation. +The testing backend of choice is pytest. If there don't seem to be any natural tests, simply write: DONE EOF ) @@ -82,7 +83,6 @@ EOF exit 1 ;; esac -echo "$PROMPT_BASE" for source_file in $FILE_CHOICES; do if [ ! -s "${source_file}" ]; then -- cgit v1.2.1