Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One strategy I've been experimenting with is maintaining a 'spec' document, outlining all features and relevant technical notes about a project. I include the spec with all relevant source files in my prompt before asking the LLM to implement a new change or feature. This way it doesn't have to do as much guessing as to what my code is doing, and I can avoid relying on long-running conversations to maintain context. Instead, for each big change I include an up-to-date spec and all of the relevant source files. I update the spec to reflect the current state of the project as changes are made to give the LLM context about my project (this also doubles as documentation).

I use an NPM script to automate concatenating the spec + source files + prompt, which I then copy/paste to o1. So far this has been working somewhat reliably for the early stages of a project but has diminishing returns.



You're describing functionality that's built into Aider. You might want to try it out.

Aider also has a copy/paste mode to use web ui interfaces/subscriptions instead apis.

I definitely use and update my CONVENTIONS.md files and started adding a second specification file for new projects. This + architect + "can your suggestion be improved, or is there a better way?" has gotten me pretty far.


Didn't know about Aider - going to give that a try, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: