News for hackers. Stuff that matters.
Re:Canvas is a new way to write and code with ChatGPT by starfezzy on Thursday October 03, 2024 @09:58PM (#41737097)
I do something similar with a script. Don’t know if anything about my approach could improve yours, but I’m also curious if you have any suggestions?

- Mine prepends the result with the output of running `tree -I node_modules --noreport` before any other content. This informs the LLM of the structure of the project, which leads to other insights like it will know which frameworks and paradigms your project uses without you needing to explain that stuff. - Mine prepends the contents of each included file with “Contents of relative/path/to/file/from/root/of/project/filename.ts:” to reinforce the context and the file’s position in the tree.

There are no comments on this comment yet.