Home Assistant mode

This commit is contained in:
2025-10-26 15:49:34 -04:00
parent e9e8d8ad29
commit 878ffd0dee
2 changed files with 18 additions and 3 deletions

View File

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

View File

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