News for hackers. Stuff that matters.
Re:Show HN: Plandex – an AI coding engine for complex tasks by visarga on Wednesday April 03, 2024 @04:44PM (#39922856)
This approach works. I just built a SPA in 3 days with GPT-4 of which about 50% was generated. My only tooling was a bash script to list all the files in the repo (with some exceptions), including a README.md planning the project, a file list, and at the end I type my task.

I run about 10-15 rounds with it. At the beginning I was using GPT more heavily, but in the middle I found it easier to just fix the code myself. The context got as big as 10k tokens, but was not a problem. At some point I might need to filter the files more aggressively.

But surprisingly all that is needed for a bare-bone repo-level coding assistant is a script to list all the files so I could easily copy paste the whole thing into the chatGPT window.

Re:Show HN: Plandex – an AI coding engine for complex tasks by nico on Wednesday April 03, 2024 @06:15PM (#39923947)
> a script to list all the files so I could easily copy paste the whole thing

Just in case you are using a Mac, you can pipe the output of your script to pbcopy so that it goes directly into your clipboard

script.sh | pbcopy

Re:Show HN: Plandex – an AI coding engine for complex tasks by danenania on Wednesday April 03, 2024 @04:50PM (#39922929)
Yes, well said. Doing exactly this kind of thing for months with ChatGPT is what convinced me the idea could work in the first place. I knew the underlying intelligence was there--the challenge is giving it the right prompts and supporting infra.
Re:Show HN: Plandex – an AI coding engine for complex tasks by Aeolun on Wednesday April 03, 2024 @07:48PM (#39924832)
Do you have any of the issues where ChatGPT tends to forget the first parts of it’s context window? It could have the information explicitly spelled out, but if it weren’t in the last 2K tokens or so it’d just start to hallucinate stuff for me.
Re:Show HN: Plandex – an AI coding engine for complex tasks by danenania on Wednesday April 03, 2024 @08:40PM (#39925180)
Plandex uses gradual summarization as the conversation gets longer (the exact cutoff point in terms of tokens is configurable via `plandex set-model`). So eventually, with a long enough plan, you can start to lose some resolution. That said, assuming you use the default gpt-4-turbo model with a 128k context window, you'd need to go far beyond 2k tokens before you'd start seeing anything like that.

We don't know what ChatGPT's summarization strategy is since it's closed source, but it does seem to be quite a bit more aggressive than Plandex's.

Re:Show HN: Plandex – an AI coding engine for complex tasks by ugh123 on Wednesday April 03, 2024 @06:31PM (#39924134)
Do you have any boilerplate part of your prompt you can share?
Re:Show HN: Plandex – an AI coding engine for complex tasks by sanmon3186 on Wednesday April 03, 2024 @10:41PM (#39925999)
What’s your experience with API cost? I've also tried something similar, but I often end up using up my balance too quickly.
Re:Show HN: Plandex – an AI coding engine for complex tasks by CGamesPlay on Thursday April 04, 2024 @01:04AM (#39926728)
I can generally have these tools solve a simple issue in about 0.1 USD, or "complex" issues in 1-2 USD (complex generally just means that I'm spending time prompt engineering to get the model to do the right thing).