English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Vibe Coding and LLM-Based Coding Agents: A Comprehensive Survey

Forum topic · QianXun · 2025-10-20

Summary

Based on a survey of Vibe Coding with large language models (arXiv:2510.12399), this post explains how AI-assisted development has evolved from simple code completion into autonomous agent collaboration. Vibe Coding lets developers express intent in natural language while coding agents configure environments, generate code, self-diagnose errors, and iterate — shifting humans from code authors to intent expressers and quality arbiters, formalized as a constrained Markov decision process. The post covers data foundations for code LLMs (The Stack, RefineCode, CommitPack, OpenCodeInstruct), pretraining objectives (CodeBERT, GraphCodeBERT, CodeLlama, DeepSeek-Coder-V2), post-training techniques (SFT, LoRA, RLHF, CodeRL), and agent capabilities including task decomposition (Chain-of-Thought, Tree-of-Thoughts), memory mechanisms, tool calling via the Model Context Protocol, self-reflection and debugging, and multi-agent frameworks such as AutoGen, MetaGPT, ChatDev, and CrewAI. It also examines sandboxed execution environments using Docker and Kubernetes, and notes empirical caveats: experienced developers using Cursor saw completion times increase 19%, suggesting unstructured natural language instruction works best for low-risk prototyping.

This post summarizes a survey of Vibe Coding with Large Language Models (arXiv:2510.12399), covering the paradigm shift from human-written code to agent-driven development.

What is Vibe Coding?

Vibe Coding is an emerging development paradigm where LLM-powered coding agents generate code while human developers verify outputs against their intent — acting as *intent expressers and quality arbiters* rather than code authors. The human–project–agent relationship is formalized as a constrained Markov decision process (CMDP):

\[V_{MDP} = \langle S_P, A_{H \to A_\theta}, T_{A_\theta|P}, R_H, \gamma \rangle\]

where states derive from project state, actions are human-instructed agent behaviors, transitions are constrained by the project, and rewards come from human evaluation.

Key driver: models like GPT-4, Claude Sonnet 4, GPT-5 Pro, and Claude Sonnet 4.5 enabled agents to complete real-world tasks (e.g., 53% on SWE-bench). Caveat: empirical evidence shows experienced developers using Claude in Cursor saw completion times *increase by 19%*, revealing limits of unstructured natural language instructions. Vibe Coding is best suited to low-risk scenarios: one-off prototypes and proofs of concept.

Why It Matters

  • Team-level capability for individuals: agents provide cross-domain expertise (frontend, backend, security, DevOps), reducing coordination overhead.
  • Lowered barriers: natural language becomes the primary interface, letting doctors, educators, and designers build software without CS training.
  • Risks: lack of review can introduce security vulnerabilities, technical debt, and unmaintainable structures; debugging becomes hard as code scale exceeds comprehension.
  • Data Foundations for Code LLMs

  • Depth vs. breadth strategies: The Stack (3.1 TB, 30 languages) vs. The Stack v2 (67.5 TB, 619 languages).
  • Quality filtering: RefineCode (130+ language-specific rules), SwallowCode (four-stage pipeline: syntax validation, quality assessment, dedup, LLM rewriting).
  • Instruction data: CommitPack (2GB of commit-message pairs), OpenCodeInstruct (5M samples), SynCode-Instruct (~20B synthetic tokens); synthetic generation via Self-Instruct, Evol-Instruct, OSS-Instruct; Nemotron-4 reached SOTA with 98% synthetic alignment data.
  • Preference data: CodeUltraFeedback (10k instructions × 4 ranked responses), PLUM (GPT-4-generated unit tests for automatic ranking).
  • Project-level datasets: SWE-Gym (2,438 GitHub instances), Codeforces-CoTs (10k problems with chain-of-thought traces), SWE-RL (24M PR instances).
  • Pretraining and Post-Training

    Pretraining objectives include autoregressive LM (CodeGPT), masked LM (CodeBERT), denoising (PLBART), structure-aware goals like data-flow graphs (GraphCodeBERT), contrastive learning (UniXcoder), and multimodal alignment (CodeT5+). A canonical autoregressive objective:

    \[P(Y|I, K, E) = \prod_{t=1}^T P(y_t|y_{<t}, C_t)\]

    Continual pretraining (CodeLlama, DeepSeek-Coder-V2's +6T tokens) benefits from data mixing — Qwen2.5-Coder's 7:2:1 code/text/math ratio improved performance 20% over code-only training — and replaying ~30% of original data to fight catastrophic forgetting.

    Post-training spans supervised fine-tuning (WizardCoder; AlpaGasus showed 9k filtered high-quality samples outperform larger sets), parameter-efficient methods (LoRA, Adapter Tuning), and reinforcement learning (CodeRL with unit-test feedback, PPO with compiler feedback, GRPO). Agentic systems like AutoDev and ChatDev simulate software-company roles.

    Agent Capabilities

  • Planning: task decomposition via CoT, Auto-CoT, Tree-of-Thoughts, HyperTree Planning; paradigms include LLM-as-Planner, LLM-as-Facilitator (PDDL), and multi-agent planning; ReAct-style interleaved reasoning and memory-augmented approaches like Reflexion.
  • Memory: short-term (context window) vs. long-term (parametric/non-parametric); systems like MemGPT (memory paging), Memory Bank (Ebbinghaus forgetting curve), and MemTool (90–94% efficiency in hierarchical management).
  • Tool use: five-stage action loop (plan, select, extract parameters, invoke, integrate results); Model Context Protocol for standardized context exchange; code-as-action outperforming JSON on API benchmarks.
  • Self-reflection & debugging: iterative refinement with compiler/test feedback, multi-agent coder-critic loops, LLM-as-a-Judge; Meta's TestGen-LLM achieved 75% correct builds and 25% coverage gains; some systems hit 98.2% on HumanEval using control-flow-graph analysis.
  • Multi-agent collaboration: four communication topologies (hierarchical, decentralized, centralized, shared message pool); role-based frameworks — MetaGPT (standard operating procedures), ChatDev (chat-chain software company), CAMEL (role-playing), AutoGen, CrewAI, LangGraph. MapCoder reached 93.9% on HumanEval and 83.1% on MBPP with four specialized agents.
  • Sandboxed Execution Environments

  • Containerization: Docker's layered architecture; Kubernetes assigns tasks to isolated pods with compute quotas and timeouts.
  • Security: gVisor syscall interception, micro-VMs, multi-layer sandboxes (SAFE-LLM, NatiSand), hardware isolation (Intel PKRU, ARM TrustZone), WebAssembly engines.
  • Production scale: deployments on 25,000 CPU-core clusters separating judge pods from execution pods; JUDGE0 supports 60+ languages; CI/CD with GitOps, canary releases, and A/B testing integrated with LLMOps.

References

1. Ge, Y., et al. (2025). A Survey of Vibe Coding with Large Language Models. arXiv preprint arXiv:2510.12399v1. 2. Brown, T., et al. (2020). Language models are few-shot learners. NeurIPS. 3. Yang, J., et al. (2023). SWE-Bench: Can Language Models Resolve Real-World GitHub Issues? 4. Wang, Y., et al. (2021). CodeT5. EMNLP. 5. Luo, Z., et al. (2023). WizardCoder: Empowering Code LLMs with Evol-Instruct. ICLR.

Tags

#vibe-coding#llm#coding-agents#ai-software-engineering#reinforcement-learning#multi-agent-systems#pretraining#sandboxing

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/176030935