Hi keyes ,
As a quick tip, this already works as a bang that you can add yourself. You can input it like this:
Or paste the following text into the "Search engine name" box:
Discuss Doc
https://kagi.com/discussdoc?url=%s
!discuss
and it will auto-fill for you.
The reason your original example doesn't work, is because the URL is not properly encoded. The bang should take care of that for you.
The "ee" thing is a graphical bug, and we will fix this. We can also add this as an official bang, and explore other ways to open the chat without using a result or bang, that will prompt the user for a URL.