feat: interactive file mode inspired by parrot.nvim by jonmorehouse · Pull Request #28 · sourcegraph/amp.nvim

1 min read Original article ↗

This updates amp.nvim to act more like https://github.com/frankroeder/parrot.nvim. The idea being that you can work on an amp thread directly within neovim without leaving. AmpChat will start a thread, and then give you a file to converse with amp with back and forth.

image

AmpThreads lets you navigate between old threads to pick one back up.

image

A few other notes:

  1. We store all threads locally in a file, that is configurable with the thread_storage_dir. This is useful so you can have a cache locally of these threads.
  2. We manage the visibility of the thread, so you can change between public, private etc.
  3. The top of a thread's file has the thread id, url, and the dir of the file.
  4. You can control where amp will run the thread from the metadata at the top.

For me, this basically allows me to stay in vim and have different threads I'm managing at the same time going across my project.