aider icon indicating copy to clipboard operation
aider copied to clipboard

feature request: allow for external or internal plugins for commands

Open alexanderkjeldaas opened this issue 2 years ago • 4 comments

blue-sky idea, but I can see use-cases where plugins to aider is useful:

  • attach a PR/MR to an issue in github/gitlab
  • pull/select PR/MR that should be reviewed (by querying github/gitlab APIs)
  • import gitlab/github issue description into context before starting to implement a feature.
  • import hackmd document into context (could be a design document)

aider could provide a file-based API (file x contains context, y contains list of edited files, z contains bar), and then exec aider-foo for the /foo command, similar to how git handles external commands.

alexanderkjeldaas avatar Jul 14 '23 01:07 alexanderkjeldaas

These features could potentially use hub / gh to ease the setup for the user

FallenChromium avatar Jul 14 '23 12:07 FallenChromium

Thanks for making this suggestion. It's certainly an interesting idea.

I think that this is probably out of scope for the project in the near term. Although, if you have specific integrations or even ideas for implementing a more general system, I'd be happy to discuss them in terms of a draft pull request, or something along those lines.

paul-gauthier avatar Jul 21 '23 12:07 paul-gauthier

I'm going to close this issue for now, but feel free to re-open or file a new issue any time.

paul-gauthier avatar Aug 18 '23 20:08 paul-gauthier

I'm unsure whether to reopen this issue or create a new one.

I'm using git-bug (stores issues in the repository) for my personal repos, and /git bug add <parameters> works well enough, but I can't ask Aider to create a well-formed issue and use that command. I can ask Aider to create a file with that info, which I then create an issue from using /git bug add -F filename but that file is committed when it shouldn't be.

I also contribute to other repositories that use github issues directly (I use gh in those cases) and a custom script for creating work items in Azure.

In other words, too many different options for aider to support directly.

harleypig avatar Feb 13 '24 17:02 harleypig