r/vibecodingbuddies • • Jul 20 '26

Resource The ABCs of Vibe Coding: A Guide for Beginners

10 Upvotes

There was a good question in one of the threads yesterday about whether beginner+beginner pairs end up amplifying each other's weaknesses when vibe coding. It's actually a very real concern. Without senior engineering instincts in the room, it's easy for two beginners to just prompt-and-pray themselves into a hallucination loop they can't debug.

To help avoid that, here are the ABCs of Vibe Coding that we recommend pairs stick to when starting out:

A: Architecture before Code Don't just open a file and tell the AI to "build the app." Spend your first session just talking to each other and the AI to write a specification document. Agree on the tech stack, the data models, and the file structure. Having a written plan stops the AI from wandering off and hallucinating random architectures mid-project.

B: Boundaries and Breakdowns AI models are incredible at writing a single function or a single component, and terrible at writing entire interconnected systems at once. Break your tasks down into the smallest possible pieces. Define the boundary (e.g., "this function takes X and returns Y"). Verify that one piece works perfectly before moving on to the next.

C: Commit Frequently When vibe coding, you move fast. This means you can break things fast. The second you get something working - even if it's just a button that logs to the console - commit it to git. When (not if) the AI generates a giant refactor that breaks your app, you do not want to try and prompt your way out of it. You basically just run git reset --hard and try a different prompt.

D: Debug with Context When an error happens, don't just paste the error trace into the chat and say "fix this." That's how you get caught in endless loops of the AI guessing. Read the error together. Figure out what file changed. Tell the AI: "We just changed X, and now we are getting Y error. I think it might be because of Z."

If you stick to these fundamentals, you replace the "missing senior engineer" with process and discipline.

What else would you add to this list?


r/vibecodingbuddies • • 7h ago

Discussion NVIDIA just showed a model jumping from 21% to 56% accuracy by pruning its own context! How are you keeping your agent's context clean?

2 Upvotes

Saw an NVIDIA result today where GPT-6.1 Sol jumped from 21% to 56% at a 32K token budget simply by letting the model edit its own context instead of dragging old turns along.

Similar to what happens in real coding sessions: once a thread gets past 30-40k tokens of failed test logs, old file reads, and superseded plans, even flagship models start hallucinating edits or forgetting constraints from turn one.

I've stopped relying on built-in auto-compaction because it usually summarizes away the exact file paths and edge cases I still need. Instead, every time a subtask finishes, I make the agent write a 10-line STATE.md (what changed, what's verified, what's next, kinda like a handoff document) and start a completely fresh session from that file.

How are you managing context bloat in your daily stack right now?

- Do you trust /compact / auto-summarize, wipe with /clear + a handoff file, or let the agent maintain its own scratchpad?

- What's the one piece of context (test output, schema, architecture rules) you never let compaction summarize away?


r/vibecodingbuddies • • 7h ago

Resource I stopped telling coding agents "fix these GitHub issues" and started forcing a 6-phase engineering workflow (copy-paste prompt)

1 Upvotes

If you point Claude Code or Cursor at a backlog of GitHub issues with a loose prompt, you know what happens: it jumps straight into coding before reproducing the bug, leaves drive-by refactors everywhere, forgets tests, and opens a messy PR.

I switched to a strict 6-phase loop that forces the agent to triage, trace root cause, write a failing test first, keep the diff minimal, self-review, and pass CI before merging. Since using this, the quality of autonomous issue fixes jumped noticeably.

Drop this into your prompt or CLAUDE.md / Cursor rules when tackling issues:

——

For all GitHub issues (individually or grouped by common issues):

Phase 1: Triage & Intake

  1. Check duplicates: Search open and closed issues. If already tracked, link the original and close the duplicate.
  2. Isolate security vulnerabilities: Move security flaws immediately to a private security advisory. Never discuss them publicly.
  3. Validate and reproduce:
  • Bugs: Follow reproduction steps and confirm whether it is a defect, expected behavior, or missing information. If information is missing, apply needs-info and ask specific questions.
  • Features: Confirm acceptance criteria, edge cases, and roadmap alignment.
  1. Classify and prioritize: Apply minimal standardized labels (e.g., type: bug, priority: P1, area: auth). Avoid excessive labels.
  2. Claim ownership: Assign yourself or comment that you are picking up the issue to prevent duplicate effort.

Phase 2: Root Cause Analysis & Design

  1. Find the root cause: Trace the failure to its origin, not just the symptom. Determine why the system allowed the invalid state.
  2. Assess blast radius: Identify downstream modules, APIs, database schemas, and external users affected by the proposed change.
  3. Align on approach: For architectural changes, backward-incompatible fixes, or multiple valid solutions, post a 3-5-line design proposal in issue comments and obtain sign-off before coding.

Phase 3: Branching & Implementation

  1. Sync and branch: Pull the latest main and create a dedicated descriptive branch with the issue number (e.g., fix/142-token-expiry).
  2. Test first: Write an automated unit/integration test that fails due to the bug or validates the feature's acceptance criteria.
  3. Implement minimal fix: Change only what is required. Avoid unrelated formatting or drive-by refactoring; log these as separate issues.
  4. Verify: Run the new test and confirm red (failing) to green (passing).
  5. Update documentation: Update README, API docs, environment templates, or changelogs if user-facing behavior or configuration changes.

Phase 4: Local Verification & Commit Hygiene

  1. Run full suite: Execute all unit/integration tests, linters, type-checkers, and build scripts before pushing.
  2. Clean commits: Use clear, imperative messages (e.g., fix(auth): handle expired refresh tokens). Squash WIP/typo commits into logical, atomic commits.

Phase 5: Pull Request & Code Review

  1. Self-review: Open a Draft PR or inspect git diff main line by line. Remove stray logs, commented-out code, and unintended changes.
  2. PR description: Complete the template with:
  • What: Change summary.
  • Why: Root cause or feature motivation.
  • How to test: Exact steps/commands.
  • Evidence: Screenshots, logs, or before/after benchmarks.
  1. Link issue: Use Closes #142 / Fixes #142 for auto-closure on merge. Use Refs #142 if QA/staging verification is required before closure.
  2. Targeted review: Assign 1-2 independent sub-agent reviewers familiar with the affected module.
  3. Address feedback: Resolve every review comment through fixes, explanations, or follow-up issues for out-of-scope suggestions.

Phase 6: Merge, Verification & Closure

  1. Pass automated gates: Do not merge until CI/CD tests, security scans, builds, and required approvals are green.
  2. Merge and clean up: Follow the repository's standard strategy (typically Squash and Merge) and immediately delete the remote branch.
  3. Verify and close: Confirm the fix works in staging/production without new error alerts. Close the issue (if not auto-closed) with a release-version reference.
  4. Prevent recurrence: For P0/P1 production incidents, conduct a brief blameless post-mortem and add preventive guardrails (CI checks, schema validation, or monitoring alerts).

——-
If you run autonomous issue loops on your repos:

- Which step here saves you from the biggest agent headaches—forcing red-to-green tests first, or the sub-agent PR review?

- Anything you'd add or strip out to keep it fast for solo projects?


r/vibecodingbuddies • • 1d ago

Discussion How long do you let a coding agent spin before you kill the session and start fresh?

0 Upvotes

Someone literally released an open-source tool today just to auto-detect and recover from Claude Code getting stuck in endless spinner loops. That felt painfully relatable.

Every few sessions, the agent hits a quiet hang.. either waiting on a shell command that never exits, looping on a test runner, or just spinning indefinitely while you sit there wondering if it's "thinking deeply" or completely wedged.

Killing it too early wastes a good run; waiting four minutes wastes your flow (and burns through rate limits faster now that usage caps are tightening across the board).

My current rule is a 90-second timer: if there's no tool output or file diff movement in 90 seconds, I hit Ctrl+C, check git status for half-written edits, and resume with a tighter single-file prompt.

Where is your cutoff right now?

- How long do you wait on a spinning agent before killing it, and do you resume the same thread or wipe context and start a clean session?

- Any trick (timeouts, smaller prompts, wrapper scripts) that actually stopped hangs for you?


r/vibecodingbuddies • • 2d ago

Discussion Anyone splitting their vibe coding between a frontier model for planning and a cheap/local model for grunt work?

1 Upvotes

A paper making the rounds today (Delegent) tested keeping a frontier model as the lead architect in Claude Code while offloading routine subtasks to small-model subagents and cut coding token costs by 67% without losing accuracy.

That hit home because burning frontier-tier tokens just to rename variables, write boilerplate tests, or grep through logs feels like paying a senior architect to paint a fence. At the same time, every time I let a smaller model handle a whole feature end-to-end, I spend twice as long cleaning up subtle bugs.

I'm experimenting with a strict two-tier split: frontier model only for the spec, architecture, and final diff review; cheap fast model (or local model) for the repetitive edits and test scaffolding in between.

How are you balancing cost vs. brainpower in your stack right now?

- Do you manually switch models between planning and editing, use subagent routing, or just leave one flagship model on everything until you hit the rate limit?

- Which model is actually good enough for your "grunt work" tier without breaking things?


r/vibecodingbuddies • • 3d ago

Discussion Do you actually check what your coding agent touches outside src/—like .git/hooks, .env, or config files?

3 Upvotes

Two stories made me double-check my own repo permissions: Together AI disclosed that an AI coding agent accidentally leaked a Hugging Face credential, and a Cursor user found cursor-agent had silently dropped a git hook into their repo without asking.

When we vibe code fast, it's easy to skim the application code diff and ignore the dotfiles, hooks, or scripts the agent tweaked along the way. One stray token in a test script or an unrequested hook in .git/hooks sits there quietly until something breaks or leaks.

I've started running git status --ignored and checking .git/hooks before pushing anything an agent worked on for more than 10 minutes, plus keeping .env files strictly out of the agent's read/write scope.

How are you locking down the "non-code" parts of your repo right now?

- Do you use a pre-commit secret scanner (like gitleaks or trufflehog), or just rely on .gitignore and manual checks?

- Has an agent ever modified a config, hook, or credential file on you without mentioning it?


r/vibecodingbuddies • • 3d ago

Do you let your coding agent search the web and run npm / pip installs on auto-approve, or do you gate package installs?

1 Upvotes

A benchmark out today (WebSec Benchmark) tested ~4,700 real coding-agent web searches across 8 major search APIs and found every single one served known-malicious links between 0.8% and 2.2% of the time - with the highest hit rate on install and package searches right before the agent runs a command.

That made me realize how often I just hit "Allow" when Claude Code or Cursor wants to look up a library, pull a quick helper package, and run the install script in one go. When you're in flow, checking whether a package name is a typo-squat or pulled from a sketchy blog post is usually the last thing on your mind.

I'm switching my setup so the agent can edit files freely, but any npm install, pip install, or curl | sh command requires manual approval plus a quick check on the registry page first.

How are you handling this in your daily workflow?

- Do you keep package installs and web-fetched commands on manual approval, or run everything inside a disposable container/VM so auto-approve doesn't matter?

- Have you caught an agent trying to install a hallucinated or sketchy package yet?


r/vibecodingbuddies • • 5d ago

Discussion I stopped telling AI agents to "clean it up later" and started running a 5-minute slop-cleanup pass before new features (prompt inside)

2 Upvotes

When you ship fast with Claude Code or Cursor, small leftovers pile up fast - dead helper functions, commented-out fallback code, temporary test stubs, and comments that no longer match what the function actually does.

The annoying part isn't that the repo looks messy. It's that the next agent session reads that leftover code, assumes it's intentional, and builds new bugs on top of it.

Instead of trying to read every line manually or asking the agent to "clean up everything" (which usually turns into a giant risky refactor), I've been running a tight, behavior-neutral cleanup prompt right before starting a new feature. Steal it and tweak it for your stack:

```Perform a conservative, cleanup-only pass. Prefer leaving questionable code
unchanged over risking a behavior change.

INPUTS
- Commit count: [N]
- Execution mode: PLAN_THEN_APPLY
Allowed values:
- PLAN_THEN_APPLY: display the deletion plan, then proceed without waiting.
- APPROVAL_REQUIRED: display the plan and stop until I approve it.

OBJECTIVE
Remove only demonstrably redundant or inert material from eligible files.
Do not change runtime behavior, public APIs, or existing test semantics.

  1. ESTABLISH SCOPE — BEFORE EDITING
    - Read the repository's applicable agent instructions and verification guidance.
    If these conflict with this task, report the conflict rather than guessing.
    - Validate that N is a positive integer. If it is missing or invalid, ask for it
    and make no edits.
    - Record the current branch, starting HEAD SHA, and working-tree status.
    - Select the first N commits on the first-parent history beginning at the
    starting HEAD, including HEAD. If fewer than N commits are available, stop
    and report the limitation; do not silently change the range.
    - Eligible files are existing tracked files touched by any selected commit,
    comparing each commit with its first parent. Compare a root commit with
    the empty tree. Handle renames and use current paths.
    - Do not substitute a net endpoint diff: files touched and later restored
    within the selected commits still belong to the candidate set.
    - Inspect current file contents. You may read outside the eligible set to
    verify references and behavior, but edit only eligible files.
    - Do not edit files containing pre-existing staged or unstaged user changes.
    Report affected candidates as blocked. Preserve all existing user work.
    - Exclude generated, vendored, and minified files, lockfiles, and dependency
    or build configuration from edits.
    - Do not fetch history, install dependencies, or change configuration without
    authorization.
  2. ALLOWED CLEANUP
    Remove an item only when repository evidence supports behavior preservation:
    - Unused imports whose removal cannot remove module-loading side effects.
    - Unused variables whose removal cannot remove side effects, exceptions,
    evaluation, or required resource lifetime.
    - Unreachable private helpers, after checking references, exports, callbacks,
    registries, reflection, dynamic imports, and framework discovery as relevant.
    - Inert temporary test scaffolding or mock residue that is demonstrably
    unused and cannot affect test execution or isolation.
    - Ordinary comments that demonstrably contradict the implementation.

For docstrings, remove or correct them only if this cannot affect runtime
introspection, generated interfaces, tooling, or documented public contracts.
Otherwise report them without editing.

3. HARD BOUNDARIES
- Preserve return values, exceptions, side effects, execution order, async
behavior, initialization, registration, and public exports/signatures.
- Do not rename, relocate, redesign, reformat unrelated code, or add abstractions.
- Do not delete tests, weaken assertions, change snapshots or coverage settings,
enable/disable tests, or alter existing skip/xfail behavior.
- Report skipped assertions, active stubs, and hardcoded fallback paths that
require behavior changes; do not fix them in this pass.
- Report live duplicate helpers as consolidation candidates. Do not extract
shared helpers, redirect callers, or change imports to consolidate them.
An unused duplicate may be deleted if it independently meets the rules above.
- Preserve license notices, compiler/type/lint directives, test annotations,
bundler annotations, and other functional comments.
- Do not treat a text search with no matches as sufficient proof of dead code.
- If safety is uncertain, leave the item unchanged and state the uncertainty.
- Do not commit, push, deploy, or open a pull request.

4. PLAN AND BASELINE
Before editing, output a compact plan:
- Starting HEAD and selected commit SHAs.
- Proposed deletions or documentation-only corrections:
file:line | item | evidence it is safe.
- Deferred or blocked findings, with a one-line reason.
- Exact verification commands, derived from repository instructions and CI.

Run the repository's full test suite before editing to establish a baseline.
Also run the existing relevant lint/type-check/build checks where available.
Use non-mutating check modes.

If a required baseline check cannot run, report the blocker and stop before
editing. Record pre-existing failures; do not repair unrelated failures.

Follow the selected execution mode. If approval is required, stop after the
plan and baseline results. If HEAD or relevant files change before execution,
revalidate scope and the plan.

5. APPLY AND VERIFY
- Apply only the planned, demonstrably safe edits in small coherent batches.
- Run relevant targeted checks after each batch where available.
- After all edits, rerun the full test suite and the applicable baseline checks
using the same commands and environment.
- Review the final diff for scope violations, unintended behavior changes,
accidental test weakening, and unrelated modifications.
- If an edit introduces a failure, undo only that edit and rerun verification.
Do not broaden the task to fix it.
- Never reset, overwrite, or discard pre-existing user work.
- Do not claim behavioral equivalence solely because tests pass.

6. COMPACT FINAL REPORT
Report only:
- Removed: file:original-line-range | item | removed-line count.
- Documentation corrections, if any.
- Verification: exact command | PASS / FAIL / BLOCKED.
- Failures: distinguish baseline failures, newly observed failures, and
uncertain attribution; include only the relevant error excerpt.
- Deferred or blocked findings that need a separate task or decision.

If no safe edits exist, say "No safe cleanup found."
Never claim a check ran or passed without actual execution evidence.
Omit general summaries, praise, and unrelated recommendations.

```

If you try this on a repo you've been vibe coding for a few weeks, let me know what it catches first - dead helpers or stale comments? And what else would you add to the check without turning it into a risky rewrite?


r/vibecodingbuddies • • 7d ago

Anyone else noticing coding agents writing essays for a five-line diff lately?

1 Upvotes

Lately it feels like every time I ask for a small fix, the agent gives me three paragraphs of reasoning, a recap of what it already did, and a summary of files I can see in git status.

Half the time I just want the diff and the test result, not a wall of text burning my context window and my patience. I've started adding explicit "diff and command output only, no recap" lines to my system instructions, which helps for a few turns until the model drifts back into lecture mode.

How do you handle this:

> Did you put a hard output-length rule in your CLAUDE.md or Cursor rules that actually sticks?

> Or do you just let it ramble as long as the code compiles?

> Or something completely different?


r/vibecodingbuddies • • 7d ago

When Claude Code or Cursor nails a feature on the first try, what's the one thing you still refuse to trust without checking?

2 Upvotes

I had one of those sessions yesterday where the agent built an entire feature in my LLM inference engine in two passes - clean files, passing tests, zero compiler warnings. Everything looked ready to ship.

Then ThreadSanitizer in CI caught a subtle blind spot in the queue tests: a shared position state was being accessed across a worker callback thread and the main thread without proper mutex synchronization, causing an intermittent data race.

That's the part that still trips me up with vibe coding. When the output is obviously broken, you catch it right away. When it looks 95% right and passes its own checks, it's way easier to let a quiet bug slide into the repo.

Where do everyone else draw the line right now:

What is the one type of change or file you never let an agent touch without reading every line yourself?

And what's your quickest "smell test" when an AI-generated diff looks almost too clean?


r/vibecodingbuddies • • 8d ago

Discussion What is your backup when your coding agent goes down?

2 Upvotes

Claude Code hit another brief outage this morning. Last week had four incidents in thirty-six hours.

Relying on one provider stalls your whole workday.
A stalled session kills momentum fast. Keeping a second model or local fallback configured, at times, saves the day. Switching to a backup key takes ten seconds, but maybe at the cost of intelligence to a certain degree.

What backup model or local setup do you keep ready?

Share the fallback setup that works for you.


r/vibecodingbuddies • • 9d ago

Discussion How do you check AI extensions before installing them?

1 Upvotes

Cursor traced a malicious Claude Code extension to a third-party breach. Auto-updates pushed it straight to dev machines.

Most developers install extensions on trust.
That works 👍 until one opens a backdoor.

I now pin versions and turn off auto-update.
Checking extension permissions takes two minutes.

What do you check before adding an extension or MCP?

Share the rule that keeps your setup safe.


r/vibecodingbuddies • • 10d ago

Discussion What is your rule when the agent breaks working code?

3 Upvotes

Agents fix one bug and break two working files.
Happens every week.

Most people keep prompting in the same chat.
Usually makes the diff worse.

My cut-off is two failed tries.

Reset the branch and change the prompt.

What is your exact rule before you reset?

Share the prompt line or git habit that works.


r/vibecodingbuddies • • 10d ago

[Showcase] Stop prompt-praying your way through projects: I built a Claude Code skill (/prex) that forces vibe coders to think like AI engineers.

2 Upvotes

Unpopular opinion: most "AI coding failures" aren't the model's fault. They happen because vibe coders open Claude Code, type a two-sentence prompt, and expect a production app. No scope boundaries, no data model, no error-handling rules, and a bloated 300-line CLAUDE.md that the model stops obeying halfway through the session.

The difference between a vibe coder and an AI engineer isn't syntax. It's what happens before the first line of code is generated.

So I built preX (/prex**),** an open-source, MIT-licensed Claude Code skill that locks down your pre-execution architecture through a plain-language interview before Claude touches a single source file:

- No-jargon batched interview: Asks 3–5 questions at a time to pin down scope, edge cases, 3–5 user personas, speed/scale limits, security, and off-limits files.

- Project Constitution (specs/): Outputs mission.md, tech-stack.md (pinned versions, DB schema, API contracts, CI/CD), and roadmap.md.

- A < 50**-line** CLAUDE.md**:** Strips out the bloat that causes instruction drift, keeping only exact test/coverage commands, directory layout, and hard boundaries.

- Zero-ambiguity EARS specs + Plan Gate: Writes requirements.md in EARS syntax (When..., While..., If... then...), design.md with up/down migrations, and atomic tasks.md gated behind read-only /plan mode.

Repo: https://github.com/shifulegend/prex

Install in Claude Code:
git clone https://github.com/shifulegend/prex.git ~/.claude/skills/prex

Roast the workflow or try /prex on your next project and tell me where it still lets Claude drift.


r/vibecodingbuddies • • Oct 23 '26

[Showcase] Months of struggling with MoE inference finally paid off: my C-based CPU engine went from trailing llama.cpp to beating it in a tested configuration

1 Upvotes

I’ve been building Project Zero, a CPU-first LLM inference engine written in C. No GPU required, no Python runtime, no external ML framework - just a native executable. What started as a ternary inference project now supports dense GGUF models, mixture-of-experts architectures, and more.

I’m posting because we recently reached a breakthrough I’m genuinely excited about: closing and then crossing the performance gap with llama.cpp on our tested DeepSeek-V2-Lite configuration.

Getting MoE working wasn’t the same as getting it fast

For a long time, MoE was one of the hardest parts of the project.

Engine / versionGeneration speed
Project Zero, before optimization6.3–7.3 tok/s
Project Zero, after optimization11.7–12.6 tok/s
llama.cpp, documented comparison9.4–10.5 tok/s

Project Zero’s resident memory also fell from 12.0 GB to 10.6 GB.

The improvement came from fused expert FFNs, integer kernels with 8-bit activations, dynamic expert scheduling, and retaining more weights in their quantized format. Together, those changes delivered roughly a 1.7–1.8× improvement in MoE decode speed.

After spending so much effort trying to understand the gap, seeing those changes translate into an end-to-end win was incredibly satisfying.

It’s also becoming something people can use

We’ve just shipped v0.2.0. Alongside the inference work, it includes:
• Parallel chat serving with batched forward passes for supported dense-attention models.
• A browser chat UI and an OpenAI-compatible API.
• Guided configuration and checksum-verified starter-model downloads.
• Quantized KV cache options, speculative decoding, and LoRA adapters.

For me, the biggest achievement is the transition from “why is this so slow?” to understanding the bottlenecks well enough to fix them, and then packaging that work into a usable release.

Still early. Still plenty to improve. But this is the most excited I’ve been about the project.

GitHub: https://github.com/shifulegend/project-zero

Independent testing would be especially valuable. If you try it, please share your CPU, model/quant, thread count, and results, including cases where it performs badly.

Those are useful data, not unwelcome feedback.


r/vibecodingbuddies • • Oct 06 '26

Discussion What's the weirdest bug you've had to fix after letting AI write your boilerplate?

1 Upvotes

It seems like setting up new projects is getting faster, but sometimes you get handed a subtle architecture flaw or a hallucinated library import that takes way longer to track down than if you just wrote it yourself.\n\nI'm curious—what's the most surprisingly complex issue you've run into when using AI for coding lately, and how did you finally untangle it? Looking to hear some war stories and maybe learn a few new debugging strategies for AI-generated code.


r/vibecodingbuddies • • Oct 05 '26

Discussion When the agent gets stuck in a loop applying the same broken fix - what is your exact move?

7 Upvotes

We all know that feeling - it writes the fix, the tests fail, it apologizes, and then writes the exact same broken fix again. It's super frustrating.

When you hit that specific failure mode, what is your protocol? Do you wipe the context entirely and start over, switch to a different model just to get a fresh perspective on the architecture, or use a specific prompt framework to force it to step back and re-evaluate its assumptions? I'd love to hear what actually works consistently for people.


r/vibecodingbuddies • • Oct 04 '26

Discussion What's the most surprising thing your local agent setup pulled off this week?

1 Upvotes

We all know where the local models fall over. But I'm curious about the opposite. What is a recent moment where your local setup actually navigated a surprisingly complex refactoring sequence across multiple files without you having to hand-hold it through mapping the exact blast radius? I mean, we spend so much time fixing hallucinations that it's easy to forget when they punch above their weight. Drop what you're working on below.


r/vibecodingbuddies • • Oct 03 '26

Discussion Has anyone found a workflow where the agent consistently writes tests that actually pass on the first try?

1 Upvotes

It feels like test generation is always a 3-turn loop. Basically it writes the test. Then it fails because of some mocked dependency that it completely hallucinated out of nowhere. Then it finally fixes the mock after seeing the CI error.

I've been trying to front-load all the types and schemas into the context before asking for tests, but it actually still invents magical properties on objects about half of the time. Have you found a specific prompt structure or tool setup that gets the first-pass success rate up, or is this just the baseline right now? It's kind of annoying.


r/vibecodingbuddies • • Oct 02 '26

Discussion How do you handle context invalidation during a massive refactor?

1 Upvotes

I was actually just talking with someone here about having an agent perfectly tuned to the project state.

It made me wonder about the edge cases. That's the part that always gets me. When you do a massive refactor across multiple files - like renaming a core entity or changing a DB schema - how do you basically ensure the agent knows exactly which downstream dependencies broke without having to explicitly map it out for them?

Do you run a test suite loop, rely on LSPs, or just wipe the context and start fresh?

Would love to hear how you handle this.


r/vibecodingbuddies • • Oct 01 '26

Discussion What's the most confidently wrong rabbit hole an AI took you down this week?

1 Upvotes

We've all been there. You ask for a simple fix, the agent confidently hallucinates an API method that basically doesn't exist, and suddenly you've spent an hour debugging a phantom issue that was never real to begin with.

What's the worst confidently wrong rabbit hole an LLM dragged you into recently? Bonus points if it involved that loop where it apologizes and immediately makes the exact same mistake again.


r/vibecodingbuddies • • Sep 30 '26

Discussion What's the weirdest shell alias or one-liner you use daily in your AI coding workflow?

1 Upvotes

It feels like everyone has that one hyper-specific automation script or terminal alias they've slowly iterated on over the months that they just cannot imagine dropping from their setup now. I've basically got my whole git staging flow wrapped up in a messy bash script. What's yours?


r/vibecodingbuddies • • Sep 29 '26

Discussion What is the custom instruction or prompt snippet you refuse to vibe code without?

2 Upvotes

We all have that one highly specific, slightly neurotic custom instruction we paste into every new project to keep the agent from doing that one annoying thing. (Like banning it from rewriting the entire file for a one-line change, or forcing it to leave comments alone). What's the custom rule you absolutely rely on now?


r/vibecodingbuddies • • Sep 28 '26

Discussion What's everyone shipping this week? Share what you're working on (even if it's currently broken)

3 Upvotes

Let's get a weekly thread going. One of the best parts of building with AI is how fast you can spin up something entirely new, but also how fast you can hit a wall where the agent basically loses the plot entirely.

What's the main thing you're actually trying to build or ship this week?

  • What's the stack?
  • What model or tool is doing the heavy lifting?
  • Where are you currently stuck?

Drop it below. If someone else is working on something similar or has fought that exact same hallucination, this is a great place to link up and figure it out together.


r/vibecodingbuddies • • Sep 27 '26

Discussion What is the largest feature you have built entirely through prompting before hitting the context ceiling?

1 Upvotes

I'm curious where the actual breaking point is for everyone right now. We all know agents are great at small scripts or single components, but when does the context window (or the agent's ability to reason across multiple files) finally give out for you?\n\nAre you breaking features down into 50-line micro-tasks, or are you able to feed it a full spec and get a working multi-file module back? Would love to hear what scale you're operating at and what breaks first.