Add "assist app" capability
Under Android "Settings > Apps & notifications > Default apps > Assist app" you can choose which "assist app" to run when long pressing on the home button. The default is to run Google Assistant. I currently use Home Button Launcher as a custom "assist app" to run a Tasker task (I use this to lock the screen), but it would be nice to have Tasker provide an "assist app" client configurable to execute a task directly. This would make "Home Button Launcher" unnecessary.