Posted by franze 12 hours ago
Already in Chrome as an origin trial: https://developer.chrome.com/docs/ai/prompt-api
apfel -o json "Translate to German: apple" | jq .content
Unfortunately, I found the small context window makes the utility pretty limited.
Then save the heavy lifting for the big boys.
Both are easily extensible, so you could certainly wire either up to the local (or hosted) LLM of your choice.
Side note: I just noticed the extension example in the Command Palette demo reel searches HN.
[1] https://www.alfredapp.com/
[2] https://learn.microsoft.com/en-us/windows/powertoys/command-...