paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
18.2k stars 1.7k forks source link

Add http API to aider #850

Open cngarrison opened 2 months ago

cngarrison commented 2 months ago

Issue

My IDE is BBEdit. I'd like to facilitate better integration with BBEdit & aider.

Since BBEdit uses "shell worksheets" which are not terminal (tty), aider doesn't run in there. But if aider had another 'interface' (other than readterm and streamlit) then I can initiate chat with BBEdit devs to possibly support aider directly. @siegel

For proof-of-concept I created an API for aider. As simple test I was able to add files and send a chat message from a BBEdit shell worksheet. So hopefully BBEdit and aider can become good friends.

Is an "api" a reasonable feature for aider?

Alternatively, rather than 'http' API, how about using stdin/stdout (or other FD's) for JSON RPC (similar to LSP)?

Version and model info

No response

paul-gauthier commented 1 month ago

Thanks for trying aider and filing this issue. Adding an http api is currently out of scope for aider, but is a possible future enhancement.