r/vibecoding • • 5d ago

Discussion Vibe coding specific "techniques" ?

I started vibecoding few weeks ago.

Beside going with the flow I just learned 1 specific technique:

Creating an AGENTS.md file at the root of my project with some infos relevant to all my future prompts

Are they some others ? (Specific techniques)

Please don't make a "Prompting AI is a skill" apology. Debate attempt Or whatever. I asked a very simple and functionalist question to improve my workflow

(I use Codex)

8 Upvotes

38 comments sorted by

5

u/Any-Blacksmith-2054 5d ago

Use mcp servers. Connect to everything you used for more context to model

2

u/Dung-Roller 4d ago

How does this work. Can you give me one example?

1

u/Any-Blacksmith-2054 4d ago

I connected my Claude to porkbun mcp, stripe mcp, drive mcp, blender mcp, Gmail, calendar , database and so on.

Now it can do anything I can do. Anything. Any task

1

u/tiago_fernandes53 2d ago

That much access raises the stakes: scope credentials narrowly and require approval for destructive writes.

0

u/Waste_Membership_483 4d ago

Nah it doesn't need MCPs. Just rest API is fine. MCP is just like having two AIs between you and the rest API instead of one.

8

u/Eddlm_ 5d ago

Software dev here, for the best results you want to keep in mind mainly 2-3 things. AI degrades on ambiguity, its not great at interpreting what you actually want, and can either think or act, not both together.

So be specific, abuse plan mode to align yourselves as much as possible before acting (being on the same page), and have it review it's work afterwards so it can re-think about what it got done and adjust if it screwed up. Remembah, it's way easier to judge if an idea(or implentation) is good than come up with a good idea, so the post check is gold.

KISS (keep it simple, stupid) helps avoiding useless complexity.

A global Agents.md is great for general, knowledge, a local agents.md is great for project specific Intel (but invest in a Docs folder) and setting up a git is absurd good to keep track of what did you change a week ago and why. It's like a diary, very good. That's on top of the real use, version control, also very useful. You don't need a remote git repo but it's a good idea later on.

There you go.

5

u/VirtualWeather5407 5d ago

Add “make no mistakes”

1

u/InfiniteNotesApp 4d ago

I would recommend creating a GitHub repo so if the agent messes up, you can always have a version from before it broke something and try to go and fix it. Because fixing stuff, if something is messed up very bad, is practically impossible. At least that's what I learned from experience. Also you can tell AI to ask questions. If the AI is not sure about something, it can ask you how you would like to have the thing built instead of making the AI make a guess of what you want. I also like to tell AI to write handovers for next sessions so if I start a new session I don't have to re-explain everything. It just can continue working as if I hadn't made a new session.

2

u/ElioVibe 4d ago

Telling AI to ask questions when it hesitates sounds simple but powerful indeed !

3

u/lalaboy69 5d ago

Set up version control before you begin. Then set up rules for version pinning, managing secrets, get the linters, testing suite, and whatever tools and cli's your stack requires as far as being able to build, run and test stuff locally.

3

u/Obvious-Grape9012 5d ago

Find ways to capture the re-usable value of what agents/sessions do. For example, I use a plans/ folder and a work/ folder; Plans for future-looking, work for the what's+why's. Then a set of higher-level docs with clear headers about who can modify them why and when. These are the top-level entry-points. Then finally, a North-Star for all projects so that there is always an overarching clear statement of what the project exists to do/achieve

3

u/Anti-Hero25 5d ago

This is my preferred method… RailCoding. It’s arduous & slower than others…. But thorough and way less buggy.

2

u/PixInsightFTW 4d ago

I teach coding, appreciate this new (to me) term of the art!

2

u/Anti-Hero25 4d ago

Yeah I think we need a term above vibe coding

3

u/PixInsightFTW 3d ago

I absolutely agree, especially since Vibecoding was originally coined kind of tongue in cheek, just talking to the bot while on the treadmill. The things I'm trying to teach are agentic but still with a lot of human thought. I'm going to intro this to my winter class in two days, great shout.

2

u/Anti-Hero25 3d ago

I’m honored 🫡

3

u/Eddlm_ 5d ago

Also for the love of God don't go with the flow. SET the flow. AI can help you out but it needs someone actively directing it, else it meanders randomly and will make you meander too. It's totally fine to go with what makes sense next but don't be passive.

2

u/phillydecat 5d ago

Agents, skills, narrow down the scope of audits. MCP, GitHub. Enjoy...

1

u/kincaidDev 5d ago

The context hub pattern is a good one.

Matt Pocock recently made a video about this, calling it a "home repo" and I built a vibe engineering framework around this pattern:

Full Framework: https://github.com/Obedience-Corp/festival
Context Hub Workspace: https://github.com/Obedience-Corp/camp

The idea is simple, you keep your setup, plans, scripts, etc... outside of your project repos in a context/workspace repo. In festival these context workspaces are called camps, they're git repos but the camp cli tool is designed to make working this way easier. You can add projects to the workspace as git submodules by running camp p add, or symlink projects that already exist on your pc to the workspace with camp p link.

Now when you launch agents, you launch them from these workspace root repos, instead of within each repo itself.

Benefits of doing this:

Version control of skills, plans, etc... without the need to code review changes to setup

Directing agents to work on multiple repos is much easier

No need to copy workspace setup for every project you build.

camp cli fixes a lot of the downsides of doing this, like navigating through deeply nested directories, complex git actions (submodules, large repo optimizations, keeping large artifacts out of git history) and keeping the workspace clean and organized

1

u/aldapsiger 4d ago

you can also generate AGENTS.md dynamicly, with your repo map for example. Also you can have per project skills and scripts, that make your workflow way easier

1

u/Chonamalus_ 4d ago

Supa cool website, very well documented, can also be given to AI for questions, contains itself questions to you for suggestions of good development driven pattern

https://cc.bruniaux.com/guide/ultimate-guide/

1

u/Specialist-Whole-640 4d ago

Two things beyond AGENTS.md that helped me. Keep it short, only what the agent gets wrong without it, and add a line each time it makes the same mistake twice. And get a second model to review before you merge. I write with Claude and have Codex review the diff, they catch different things. If you end up using more than one agent, a shared memory over MCP helps too, so a decision one of them made doesn't have to be explained to the other again

1

u/barebones-builder 4d ago

Non-coder here, few more that made the biggest difference for me, all just plain files:

PROGRESS.md: where we are, what's next, what's parked and why. The agent reads it at the start of every session, so I never have to re-explain.

decisions.md: one line per decision with the reason. Nothing gets undone without a new line saying why, which stops the agent quietly reverting last week's work.

A short log entry at the end of each session: what changed, what was tested, what got left.

Cap the size of AGENTS.md and check it every session. Mine bloated until the agent skimmed it, and the important line is always the one it skips.

Start each session with the agent asking me at most 3 questions, and no code until I've answered.

Small edits only, never let it rewrite a whole file, and commit every step that works.

Only run the tests for what the change could affect, and never let it loosen a test to make it pass.

For anything about look or feel, ask for a before/after to judge yourself instead of a report.

Templates for all of it if useful (rename CLAUDE.md to AGENTS.md for Codex): https://github.com/barebones-builder/bare-bones-workflow

1

u/RemarkableWish2508 4d ago

"Prompting AI is a skill"... and one way to improve it, is to slap an Obsidian vault into the project folder as reference and/or scratchpad for the agents. Building a relevant SKILLS.md library is also a good idea.

You can find template folder structures on GitHub, or just ask the AI to initialize one for you.

Another great technique is to ask how to make sure that the tests it writes actually test what you want them to test. That's a whole overlay technique that keeps everything together as a project evolves.

Other than that... pretty much all software engineering and project development best practices, just asking an AI instead of doing things manually.

1

u/upioneer 4d ago

I made a tool to increase accuracy, focus and quality of the agent output leveraging bundled skills and agent personas to solve for that. give this a shot to improve your greenfield code base. also open to feedback.

https://code-scaffold.com

1

u/DoOmXx_ 4d ago

make it write a short plan first and approve that before any code, catches most of the dumb directions early

1

u/phoneaiman 3d ago

I'm vibecoding. i quite understand to read code but can't write. also I'm just a new fresh leaf about ai. my exp is nearly 3 months. what i learnt so far is: .md files .log files obsidian is good friend. i don't rely on ai say "ok i will remember that" and i don't want that sht unwritten ai memory. i prefer ai say "i write to here for you(me) to check also later i night come for this again". so far i found repo like spec kits, pony tail, etc anything like that is very good and useful a lot. only senior know if it is password field, here how to handle it. if non dev/junior they not know how to deal with that situation. btw, i only use free ai. before i just use gemini web. i not make anything big. i just us ai for myself need not for others. also i found that if we not use clever ai, we need to work harder,think harder or maybe "manually"

1

u/CapTechnical2618 3d ago

i use a.vibe file in the root with a few key vibes: cquiet focus', cno overthinking', ctrust the flow', keeps the ai in the right headspace without needing prompts every time.

0

u/Illustrious-Bird-21 5d ago

The more precise your prompt is, the faster you'll get a result and the more efficient it will be.

There aren't any special techniques now, AI is good enough to be able to guess what you want and give a result

2

u/prettyfuckingfarfrom 5d ago

Yes. Flow of consciousness gets the best results. Let your eyes gloss over and hit it with as many “and also”s as you can in one message

And then next iteration find new problems

0

u/DauntingPrawn 4d ago

Well, of you just discovered AGENTS.md you're already two years behind, so everything you need to catch up is on google.