←back to thread

435 points crawshaw | 6 comments | | HN request time: 0s | source | bottom
1. amelius ◴[] No.43999501[source]
Huh, isn't this already built-in, in most chat UIs?
replies(2): >>44000798 #>>44000819 #
2. bkyan ◴[] No.44000798[source]
This is for running locally in the terminal (or in WSL2 if you are on Windows).

Here is an example session from a similar script that I <cough>ChatGPT</cough> wrote in Perl, illustrating the same concept:

$ ~/agentloop.pl

YOUR PROMPT:

Is Python installed on this system? If so, which version?

BASH STDIN:

python --version 2>&1 || python3 --version 2>&1

BASH STDOUT:

/bin/bash: python: command not found

Python 3.6.7

LLM RESPONSE:

Python is installed on this system. The version available is Python 3.6.7. However, it looks like the python executable (python) is not directly available, but python3 (or a direct version path) exists and resolves to Python 3.6.7.

If you need to use Python, you should use python3 as the command.

3. cheema33 ◴[] No.44000819[source]
Which chat UI lets me use my local tools? Like git, find, pnpm, curl...?
replies(1): >>44001001 #
4. insin ◴[] No.44001001[source]
Has anybody written an Electron app yet which injects tools into existing chat UIs, letting you you expose whatever you want from your machine to them via Node? I was planning to create something like that for the BigCo internal chat UI I work on.
replies(2): >>44001798 #>>44001981 #
5. energy123 ◴[] No.44001798{3}[source]
Someone wrote a browser extension that does that for Gemini web chat
6. NitpickLawyer ◴[] No.44001981{3}[source]
Careful, this might break the ToS on some products. At least for those that offer all you can prompt in a browser vs. API.