Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make aider aware of command that itself supports #574

Open
jianghoy opened this issue Apr 24, 2024 · 0 comments
Open

Make aider aware of command that itself supports #574

jianghoy opened this issue Apr 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jianghoy
Copy link

The problem

When I ask Aider to commit my code changes (made outside using nvim), it response a typical git workflow.

> ok, could you commit current code (which contains my code change)?

As an AI language model, I don't have the capability to directly commit code to a git repository. However, I can help you prepare the code for a commit. If you have made changes to the set-diff.rkt file and you want to commit those
changes, you would typically follow these steps in your local development environment:

 1 Stage the changes for commit:

    git add set-diff.rkt

 2 Commit the changes with a message:

    git commit -m "Implement set difference functionality in set-diff.rkt"

 3 Push the commit to the remote repository (if necessary):

    git push


Please execute these commands in your terminal or use your preferred Git GUI to commit the changes. If you need further assistance with the commit message or any other part of the process, feel free to ask!

I then run them manually with /git command.

The proposal

Instead of just saying the normal stuff that users likely know how to do, e.g. how to commit code etc etc, when aider has a /cmd command supporting such operation, it should be aware of its capability and prompt user to act accordingly, so in this case aider can try to say something like:

you can try to commit code directly in aider by running: /git add set-diff.rkt 

etc, etc. The change will likely include a way to incorporate existing helper message into system prompt one way or another.

Metadata

Models: gpt-4-1106-preview with udiff edit format, weak model gpt-3.5-turbo
Creating empty file /Users/jianghongying/code/racket/set-diff.rkt
Git repo: .git with 2 files
Repo-map: using 1024 tokens
Added set-diff.rkt to the chat.
Use /help to see in-chat commands, run with --help to see cmd line args
@paul-gauthier paul-gauthier added the enhancement New feature or request label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants