ampcode / ampcode/amp.nvim

Reload files after agent uses shell commands

Open
#31 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
199
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I've seen the agent use a command like sed and this cause issues because the file is not reloaded automatically in Neovim. The plugin should be notified when commands are used so it can issue :checktime.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the plugin entry point that handles agent shell commands and examine how Neovim buffers are updated afterward. Reproduce the issue by editing a file with a shell command such as sed while it is open, then verify that the buffer reloads through :checktime without losing unsaved changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, shell
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.