Unofficial Hacker News companion — get notified on comment replies, and more.

A Visual Guide to Agent Harnesses (opens external site)

451 points by mariuz 2 days ago | newsletter.maartengrootendorst.com | 80 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (5)

  1. 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.)

    Replies (2)
    1. I for one would love this!
    2. 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?

      Replies (1)