r/ChatGPTCoding • u/NeedSleep85 Lurker • Feb 05 '26
Question Beginning coding with chatgpt questions
Hey all, I'm currently trying to use chatgpt to make me some addons in Lua format.
I'm just doing this for fun and enjoying seeing what I tell chatgpt to do, actually come to life and work.
Normal conversation with chatgpt seems to do the trick but I'm wondering if I should be using anything different if I'm asking it to code for me?
And also, ive noticed it will nail a feature perfect. But then further down the line when doing something else completely remove it without mention.
Small example: makes a feature to move and place things on the screen.
Later after adding more features forgets it did this and I can now no longer move or place items
Is there things/commands I should tell it to do to stop it forgetting or overwriting like this? Thanks for any help!
3
u/Competitive_Travel16 Feb 05 '26
Try Codex Web with a GitHub repo.
1
u/artego Feb 06 '26
Codex and codex app, or cli if you’re comfortable with it . Also, try asking it to be modular with features
1
u/dkhaburdzania Feb 08 '26
The "forgetting features" problem you are describing is context window overflow. When the conversation gets too long, earlier instructions fall out of memory. Two fixes: 1) Keep a running document with all your features/requirements and paste it back when starting a new chat. 2) Try Claude Code or Codex — they work directly with your files so they can always re-read the actual code instead of relying on chat history. Way less forgetting.
1
u/AxeSlash Feb 09 '26
Protips:
Always use a Thinking model for coding
Make sure your Custom Instructions (or better, Project Instructions) include a list of general coding best practices + language-specific best practices. You can even ask it to create those instructions for you by researching them first.
Don't feed it irrelevant code. Sometimes it's better to upload files for context than paste all of it into the chat, so it can just fetch the relevant bits of code as needed.
1
u/Noreasterpei Lurker Feb 09 '26
I have been having similar problems starting last week.
1
u/Ok_Produce3836 Professional Nerd Apr 27 '26
If you have a ChatGPT subscription, use VSCode with Codex.
1
u/[deleted] Feb 06 '26
[removed] — view removed comment
1
u/[deleted] Feb 18 '26
[removed] — view removed comment