The trick when vibe coding, if you got a feature working, commit it.

Don't be greedy and try to stack more features, it will be difficult to unwind and go back to the feature that was working.

probably smarter devs will know how to go back, but I vibe coder like me will be stuck.

it's like not hitting save and needing to go back to an old checkpoint.

Reply to this note

Please Login to reply.

Discussion

Real af

i discovered that making a branch for anything promising saves one a lot of undoing.

I probably need to learn that part of git.

You know I’m a total noob. πŸ˜‚

do you use git on cli or the desktop client?

CLI mostly

Best process I have found so far is

1 write your issue in GH

2 write a process doc locally for your AI to follow so that on a new session its bootstrap is:

1 reads process doc

2 reads GH issue and all comments

3 checkout new branch

4 code

5 add commit and push new branch with comment

Then you engage to review at that time

If it needs tweaks or whatever, make them

If its context is starting to blow out, start a new session and have it read comments and diffs in its bootstrap

If it has failed too badly:

1 have it write a post mortem and add as comment to the GH issue

2 delete branch and session

3 start again, and its bootstrap will be enhanced by the post mortem of the failed session

nostr:nevent1qqsvxlllaxhud6j9u448xazcksar5rm06frp5e3kqmtg44kfx8eeh4spzemhxue69uhhyetvv9ujumt0wd68ytnsw43z7q3qnje4ghpkjsxe5thcd4gdt3agl2usxyxv3xxyx39ul3xgytl5009qxpqqqqqqznrmly9

Just create a branch at the beginning and make every output a commit

Learn GIT. And if you are in VSCode, use GIT graph to get a visualization of your GIT.

And a GUI to manage it without using commands.

I am in both VSCode and Xcode. But I really don’t know what I’m doing πŸ˜‚

I do see the GIT visual in VS Code when I pull some firmwares I install on random Meshtastic devices.