News for hackers. Stuff that matters.
Re:ReactAgent: LLM Agent for React Coding by lgas on Wednesday October 25, 2023 @08:17PM (#38020064)
A good trick here is to use the API rather than the web interface and give it access to functions that let it edit files directly. Then you don't have to do the iterations where you ask it for something new and it forgets something old, it just updates the code in place, leaving all the old stuff and changing/adding the new stuff.
Re:ReactAgent: LLM Agent for React Coding by kodapoda on Wednesday October 25, 2023 @09:09PM (#38020503)
Interesting. Is there an IDE (ideally, VSCode) extension you could recommend for that?

What do you mean by giving access? Is it possible to limit its access only to certain functions/files?

Re:ReactAgent: LLM Agent for React Coding by vishnumenon on Wednesday October 25, 2023 @09:26PM (#38020618)
Not the GP, but I've been working on an open platform [0] for integrating OpenAI APIs with other tools (VSCode, JupyterLab, bash, chrome, etc) that you might find interesting, the VSCode integration supports editing specific files / sections etc.

Also worth taking a look at Github Copilot Chat[1], it's a bit limited but in certain cases it works well for editing specific parts of files.

[0] https://github.com/lightrail-ai/lightrail

[1] https://marketplace.visualstudio.com/items?itemName=GitHub.c...

Re:ReactAgent: LLM Agent for React Coding by JCharante on Wednesday October 25, 2023 @09:26PM (#38020619)
Not built in, you have to use the API and then build functions for it to invoke which would fetch the files. It’s called function calling (https://openai.com/blog/function-calling-and-other-api-updat...) but it’s not as easy as you might expect.
Re:ReactAgent: LLM Agent for React Coding by deathmonger5000 on Thursday October 26, 2023 @12:51AM (#38021718)
This is exactly the use that Promptr is intended for https://github.com/ferrislucas/promptr

* full disclosure: I’m the author of Promptr

Re:ReactAgent: LLM Agent for React Coding by kodapoda on Thursday October 26, 2023 @03:13AM (#38022661)
Looks promising, thank you! I will try it out this week.
Re:ReactAgent: LLM Agent for React Coding by ponyous on Thursday October 26, 2023 @04:30AM (#38023160)
cursor.sh. Does exactly that.
Re:ReactAgent: LLM Agent for React Coding by just-tom on Friday October 27, 2023 @05:13AM (#38036261)
Yes. Cursor at cursor.sh. I'm happily paying for it, and it works great giving answers based on your codebase. It generates great inline code, but doesn't have file and multi-file generation (yet?).