Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pi injects docs for extending itself into the system prompt. You just tell the agent what features you want, and it knows how to do the rest.
 help



Do you have an example of how you'd use this?

I use pi from Emacs, via its RPC interface (I hate TUIs). I've replaced pi's reading/writing tools with alternatives which invoke emacsclient. That way:

- Emacs buffers remain up to date (rather than the on-disk content changing underneath it).

- I can use ordinary undo, etc. on changes made by pi.

- Various editor conveniences are automatically applied, e.g. auto-formatting of code; showing the contents of compressed files; etc.

- The LLM is given extra metadata, like warnings from linters/compilers/LSP/etc.

- The same tools work for buffers which aren't files (e.g. shells, Web browser, etc.)


Clever. So pi drives emacs via emacsclient, and you use emacs.

So it's pair programming with the machine in the best sense.

Though I don't understand how read/write works with emacsclient and pi. Care to share?



bro that's sick

I for one would love this!

I said I want it to support voice dictation. It downloaded whisper, cursed at ALSA, and eventually gave me a button to press to talk.

...and 20 features later I realized I just need to download omp.sh


Great... New rabbit hole.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: