5 ms·
You could absolutely get this working via the API right now. Here's how to use my API CLI tool to do that: pip install files-to-prompt llm llm-claude-3
by simonw 2y ago
You could absolutely get this working via the API right now. Here's how to use my API CLI tool to do that:
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.
- vaibhav2614 2y ago+1 - I've been using LLM CLI to do this, and it's great. The best part is that you can swap models without changing your workflow. 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>"`
- canadiantim 2y agoAny thoughts on how the quality of this compares with something like Greptile or other tools dedicated to trying to do this?
- lannisterstark 2y agoHow good is this though? IIRC after a certain amount of lines in uploaded files Claude seemed to "Forget" what I was talking about or get confused.
- MeetingsBrowser 2y agoIs Claude’s API available to individuals. Last time I tried it was only available to businesses
- simonw 2y agoYea it's open to individuals now: https://www.anthropic.com/api https://www.anthropic.com/api 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.
- dvfjsdhgfv 2y agoor use: find "$1" -type f \( ! -regex '.*/\..*' \) -print | while IFS= read -r file do echo "$file" echo "---" cat "$file" echo "---" done
- l1n 2y agoI use `find -name '*.py' | xargs tail -n +0 | sed 's/ / /g' | pbcopy` a lot for this! Easy to remember.
- BonoboIO 2y agoThis gets expensive really quickly at least for me. The web ui for 20 dollar is dirt cheap in comparison.
- deleted 2y ago[deleted]
- throwup238 2y agoWith the new Projects feature I was able to hit the message rate limit much faster in Claude, after the API is really the only option until reset time.
- BonoboIO 2y agoI think it’s still a token per time limit. So more files in the project and more artifacts means token usage.