From 878ffd0dee08950c231871f8f5a29e6f4cc7e12d Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sun, 26 Oct 2025 15:49:34 -0400 Subject: [PATCH] Home Assistant mode --- scripts/bin/aquaai.sh | 13 +++++++++++++ zsh/.zshrc | 8 +++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/scripts/bin/aquaai.sh b/scripts/bin/aquaai.sh index 3a920bc..9aacf03 100755 --- a/scripts/bin/aquaai.sh +++ b/scripts/bin/aquaai.sh @@ -267,6 +267,13 @@ function set_regex_agent() { format_for_cli } +# Set chat to help with Home Assistant. +function set_home_assistant_agent() { + name_agent + system_prompt+=" ${AGENT_NAME} assists users with Home Assistant programming." + system_prompt+=" Templating is done with Jinja2." +} + #=============================================================================== # Get the first available model from a given list. @@ -900,6 +907,12 @@ for i in "$@"; do cmd=chat_loop rich_format_mode=false ;; + -ha|--home-assistant) + set_coding_model + set_home_assistant_agent + cmd=chat_loop + rich_format_mode=false + ;; # Other -*|--*) echo "Unknown option ${i}" diff --git a/zsh/.zshrc b/zsh/.zshrc index fa9793f..afd33ee 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -46,11 +46,13 @@ alias pop='git stash pop' # AquaAI export AQUAAI_PATH='~/bin/aquaai.sh' alias q=${AQUAAI_PATH} +alias qb="${AQUAAI_PATH} --bash" alias qc="${AQUAAI_PATH} --cli" alias qg="${AQUAAI_PATH} --git" -alias cr="${AQUAAI_PATH} --code-review" -export AQUAAI_DEFAULT_MODEL='qwen2.5:1.5b' -export AQUAAI_CODING_MODEL='qwen2.5:3b' +alias qr="${AQUAAI_PATH} --code-review" +alias qa="${AQUAAI_PATH} --home-assistant" +export AQUAAI_DEFAULT_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M' +export AQUAAI_CODING_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M' export AQUAAI_RICH_FORMAT_MODE=true export AQUAAI_KEY