I feel like this will probably be an option down the line - I wonder if it would be possible to replicate this functionality via the API as well, kind of like how there are open source projects attempting to replicate artifacts via the API.
I feel like this will probably be an option down the line - I wonder if it would be possible to replicate this functionality via the API as well, kind of like how there are open source projects attempting to replicate artifacts via the API.
pip install files-to-prompt llm llm-claude-3
llm keys set claude
# paste in your Claude API key
llm models default claude-3.5-sonnet
files-to-prompt my-github-repo/ | llm --system 'say OK'
And now you can start an interactive chat with Claude 3.5 Sonnet pre-seeded with your files like this: llm chat --continue
The --continue will ensure it is a continuation of the previous chat session where you dumped in all those files.If you want to run against an updated copy of your files, start a new conversation with the files-to-prompt piping again.
I use Claude 3.5 for my daily coding tasks, but used Gemini Pro 1.5 to analyze a new Github repository the other day because it has a much larger context size.
You simply run `llm -m gemini-1.5-pro-preview-0409 "<your question>"`
You may have to add a credit card in order for it to give you an API key, it's been a while since I set mine up.
find "$1" -type f \( ! -regex '.*/\..*' \) -print | while IFS= read -r file
do
echo "$file"
echo "---"
cat "$file"
echo "---"
doneI've been trying to generate test coverage with 3.5 on a repo that has existed for years. it can take up to 20 attempts of file -> this is the error i get -> error -> error until i get one that runs successfully. It slightly improves when i give it a file, and also give it other files it successfully generated after 20 attempts and ask it to use the same style and learn from the changes it made previously to make it work
But its very hard to get it done with less than 10 attempts.
“You are currently nr 27341 on our waitlist”. Oh.
Right now Cursor can already use Claude 3.5 so I feel like that's very close to integrated into a code editor.
I haven't been able to determine if it is using an existing agent like Aider, or something else.