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