AI Coding Basics

Cursor Vibe Coding: Building Apps With AI-first Workflows

Cursor Vibe Coding: Building Apps With AI-first Workflows

With Cursor vibe coding, you describe a feature in plain language and Cursor’s Agent writes and edits files across the whole project. Then you run the app and decide if it works, instead of reading every line.

You set the direction and accept or reject changes. The AI-first editor does the multi-file grunt work.

Mostly this produces prototypes and internal tools, plus the occasional small web app.

Professional adoption is lower than the hype suggests. In Stack Overflow’s 2025 Developer Survey, nearly 72% of respondents said vibe coding is not part of their professional work, and another 5% said they emphatically do not do it.

The method suits throwaway projects and first versions. Once other people depend on the code, it needs human review.

What is Cursor vibe coding?

YouTube player

Inside the Cursor editor, vibe coding means you say what you want, an AI agent writes the code, and you run it and adjust by feel. Cursor’s help center gives almost the same definition and credits Andrej Karpathy with coining the term in early 2025.

Anysphere develops the editor, a fork of Visual Studio Code. If you are weighing the switch, this breakdown of how Cursor stacks up against stock VS Code covers the editor differences.

Where the term comes from

The original post went up on X on February 2, 2025, according to The New Stack. Karpathy’s pitch was to give in to the vibes and forget that the code even exists.

He also described his own setup. Cursor Composer and a voice tool, so he barely touched the keyboard. He aimed the whole approach at throwaway weekend projects.

The term caught on fast. In November 2025, Collins named vibe coding its Word of the Year and defined it as AI prompted by natural language to help write code (Euronews). About a year after the post, Karpathy proposed agentic engineering as the name for professional AI-assisted development, and The New Stack headlined the original style as passé.

The rest of this article sticks to Cursor’s version of the practice. For the general idea, see this explainer on what vibe coding means in general.

Why Cursor’s CEO objects to the label

Cursor’s CEO would rather you didn’t call Cursor a vibe coding tool.

Michael Truell told Fortune in December 2025 that vibe coding means working with AI without looking at the code. It suits quick mockups, he said, and gets risky for advanced programming because stacked layers on a weak foundation start to kind of crumble.

In Truell’s telling, the agent builds the whole thing and you never read a line. The help center describes the same loop but points it at prototypes, experiments and internal tools, and adds a plain warning: “We don’t recommend shipping software you don’t understand to production.”

So the two positions agree on where the boundary sits and only argue about the word. This article uses Cursor vibe coding for the whole range, from loose prompting to a reviewed, tested build.

Tech.co files Cursor under coding assistants rather than software generators, unlike Base44 or Hostinger Horizons.

Which Cursor mode fits vibe coding: Agent, Ask, Plan or Tab?

YouTube player

Most vibe coding happens in Agent mode. Plan mode comes first when a feature touches several files, Ask mode explains code without changing it, and Tab handles the small edits you make by hand. Cursor’s help center also lists a Debug mode for bugs that are hard to reproduce or understand.

Shift+Tab cycles through the modes.

ModeBest forEdits files
AgentFeatures, refactors, bug fixesYes
AskUnderstanding code and architectureNo, read-only
PlanComplex features you want to review firstYes, after you approve the plan

Agent mode

Agent is the default for building. It can search your code and edit several files in one pass. Terminal work is on the table too, and Cursor’s documentation says there is no cap on tool calls per task.

  • Describe the outcome, not the implementation
  • Name files with @ when you know them, and let it search when you don’t

This is the part of agentic coding that makes vibe coding possible. It’s also the part that needs supervision.

Plan mode

Plan mode researches the codebase and asks clarifying questions, then writes an editable plan before any code changes. You read it, fix what’s wrong, and press Build.

Cursor’s own guidance says the hard part of a large change is usually deciding what should change. Spend your effort there and hand the implementation to Agent. I’d take the extra few minutes for anything bigger than one component.

Skip Plan for one-file tweaks. The review step costs more than a small edit saves.

Cursor Tab

Tab predicts your next edit. That can span several lines, add a missing import, or jump you to the next edit location after you accept a suggestion. It reads your recent edits, the code around the cursor and linter errors to do it.

What it doesn’t read is rules, since Cursor’s rules documentation states that rules do not affect Tab.

Use Tab when you stop prompting and start typing.

Composer and model choice

Cursor 2.0, released October 29, 2025, introduced Composer. Cursor calls it its first coding model and describes it as 4x faster than similarly intelligent models.

The prompting guide suggests faster models for quick edits and stronger ones for complex reasoning and multi-file refactors. Cmd or Ctrl plus slash cycles through them.

A published full-stack workflow on DEV Community paired Cursor with Google’s Gemini 2.5 Pro, so the model is a setting and not a lock-in. Switching modes starts a fresh context window, so open a new chat when the task changes.

Context: indexing and @ references

YouTube player

Agent finds files on its own, and indexing is what makes that work.

Cursor’s documentation reports that combining semantic search with grep answers codebase questions with 12.5% higher accuracy than grep alone. Indexing of the project’s codebase starts when you open a workspace, and semantic search becomes available at 80% completion.

Chats share a fixed context window. When it nears full, Cursor summarizes the older parts, and the context ring beside the prompt box shows what is eating the space. Typing @ in the chat lets you attach specific context.

  • Files and folders
  • Terminal output
  • Previous chats
  • Git diffs, either uncommitted changes or the full branch diff against main
  • Browser context

Setting up project rules and AGENTS.md before the first prompt

YouTube player

Create a .cursor/rules folder and an AGENTS.md file before the first prompt. Record the stack and the file layout in them (naming conventions too, if you care about those). Always Apply rules join every conversation, so the agent stops guessing your framework on prompt number 12.

Where each instruction file lives

Project rules are .mdc files in .cursor/rules and travel with the repo in version control. AGENTS.md is plain markdown that you can drop in the project root or any subdirectory. User rules hold global preferences in Cursor Settings and apply to every project you open, while Team rules are managed from the dashboard on Team and Enterprise plans.

When rules conflict, Cursor’s documentation puts Team rules above Project rules above User rules.

A plain .md file inside .cursor/rules is ignored because it has no frontmatter, per the rules documentation. Older tutorials still describe a single .cursorrules file, so check the date on any guide you follow.

Choosing how a rule applies

TypeLoads whenGood for
Always ApplyEvery conversationStack, naming, folder layout
Apply IntelligentlyAgent judges it relevant from the descriptionTopic guidance, such as API conventions
Apply to Specific FilesA file matches a pattern like *.tsxLanguage or component rules
Apply ManuallyYou @-mention it in chatRare, situational workflows

Create a rule with /create-rule in chat, or from the Customize page.

AGENTS.md for simpler projects

AGENTS.md skips the metadata. Write plain markdown and Cursor picks it up.

Nested files apply to work in their own directory and combine with the ones in parent directories. Where they disagree, the more specific instruction wins.

What belongs in a rule

Cursor’s documentation recommends keeping each rule under 500 lines and splitting big ones into composable pieces. Concrete beats vague. “Use TypeScript for new files, prefer functional components, use snake_case for database columns” works, and “write clean code” doesn’t.

The same documentation lists a few things to leave out.

  • Whole style guides (a linter does that job)
  • Every possible terminal step
  • Instructions for rare edge cases
  • Copies of code that exists elsewhere (point to a canonical example instead)

What happened to Memories

Cursor 1.0 introduced Memories in June 2025 as a beta. Cursor picked up facts from your conversations and reused them later, stored per project. Then version 2.1 removed the feature in November 2025, and the current rules documentation doesn’t mention it.

If an older tutorial tells you to rely on Memories, write those facts into a project rule or AGENTS.md instead. Cursor staff said earlier memories could be exported to an .mdc rule file from the Command Palette.

Rules also spend the same context window as the conversation. The context ring breaks usage down by category, and rules sit next to the system prompt, MCP and the chat itself.

How to build an app in Cursor, step by step

YouTube player

Spec first, stack second, and no feature prompts until both are written down. After that it’s a loop of small prompts, diffs you actually read, and commits.

Cursor’s help center names prototypes, experiments and internal tools as the strong fit. One non-engineer documented a full-stack SpendTracker build. They started with a requirements document drafted in ChatGPT and had Cursor build the first version from it. The author later switched to OpenAI’s Codex after hitting the Cursor free plan limit, and reports about 20 hours of work overall.

The stack decision deserves a few minutes because the agent follows it for the whole build. The nocode.mba Cursor tutorial paired Node.js with Supabase for a recipe tracker, and the tech stack behind a web app is worth settling before the first prompt.

  1. Write the spec. One page covering what the app does, who uses it, the first few features and what is out of scope, then run it through Plan mode for an editable plan file.
  2. Fix the stack by naming the framework, database and host in a rule or AGENTS.md.
  3. Scaffold once. One prompt creates the project, and you run it before adding anything.
  4. Prompt one feature at a time, with small asks and @ files when you know which ones matter.
  5. Run it and read the diff. Accept nothing you haven’t seen working.
  6. Commit after each working change. A clean revert point beats an undo history.
  7. Start a new chat when the task changes.
  8. Deploy early.

The scaffold step can be as short as it sounds. Analytics Vidhya’s walkthrough asked Cursor to build a web-based to-do app using Flask, and the project was set up from that one prompt.

Deploy after the first working feature, not the last one. Deploying the app early surfaces environment variable and build errors while the project is still small.

Long chats are where this breaks. Cursor summarizes older messages when the context window fills, so early decisions can drop out of view. Rules and a saved plan file bring them back.

Extending Cursor with MCP servers, plugins and cloud agents

The Model Context Protocol (MCP) connects Cursor to outside tools and data sources. Plugins package up repeatable know-how, and cloud agents take whole tasks off your machine. All of it widens what one prompt can reach, and what can go wrong with it.

Cursor’s documentation now calls Background Agents cloud agents, so older tutorials and current menus use different names for the same feature.

MCP servers

Servers install from the Customize page or through an mcp.json file, with a project file at .cursor/mcp.json and a global one at ~/.cursor/mcp.json.

TransportRunsAuth
stdioLocally, managed by CursorManual
SSELocally or deployed remotelyOAuth
Streamable HTTPLocally or deployed remotelyOAuth

Cursor asks before using MCP tools by default. Keep it that way.

The docs carry a warning worth taking literally. Servers can access external services and execute code on your behalf, so understand what a server does before you install it and only install from trusted sources. API keys with minimal permissions and a code audit for critical integrations are sensible extra precautions.

Plugins, skills and hooks

Plugins bundle skills, subagents, MCP servers, hooks and rules into one install, and the Cursor Marketplace is where you find them. They work in the desktop editor, on the web and in the CLI. Command-based hooks from .cursor/hooks.json run inside cloud agents.

The Cursor CLI mirrors the editor’s modes. Plan mode starts with /plan or –mode=plan, and Ask mode with /ask or –mode=ask.

Cloud agents

Cloud agents run in isolated cloud VMs with a full development environment, so your own machine doesn’t need to stay online. You can start one from the Cloud option under the agent input, from cursor.com/agents, Slack, Linear or the API, or with an @cursor comment on a GitHub pull request or issue.

What comes back is a separate branch and a pull request, along with artifacts such as screenshots, videos and logs.

On cost, Free and Plus plans don’t include cloud agents, which start with Premium. Cursor asks you to set a spend limit on first use.

Cursor 2.0 added a sidebar for managing agents and plans. It lets you run up to eight agents in parallel on a single prompt, each in an isolated copy of the codebase through git worktrees or remote machines.

Environment setup decides whether any of this works. The docs call it the most important step for effective cloud agents.

Run modes and approvals

Auto-review is the recommended default. Allowlisted calls run immediately and other shell commands run in the sandbox when possible. Whatever is left goes to a classifier.

The allowlist option is stricter, since only the actions you list run without approval. Run Everything sits at the other end, where every tool call runs automatically with no sandbox and no classifier.

Run Everything is the closest match to what older changelogs called Yolo Mode. Use it on a throwaway project, never on one with secrets in reach.

The sandbox limits terminal work to workspace read and write access, protects paths like .git/config, and blocks network access by default. Even so, Cursor’s documentation says “Auto-review is not a security boundary.”

One gap matters for the previous section. Run modes apply only to local agents, and cloud agents never ask for approval.

Where vibe coding in Cursor breaks down

YouTube player

Unreviewed AI-generated code carries security flaws at rates that depend on how you measure. And the one randomized trial that used Cursor found experienced developers slower with AI, not faster. Neither result rules out Cursor vibe coding, but they do show where it stops being safe.

What the studies found

  • Veracode’s July 2025 report found that 45% of code from more than 100 LLMs introduced security vulnerabilities across 80 coding tasks.
  • The SUSVIBES paper (arXiv, December 2025) ran agents through 200 tasks. Its best configuration, SWE-Agent with Claude 4 Sonnet, was 61.0% functionally correct but only 10.5% secure and correct. The revised version published for ICML 2026 reports 186 tasks, with the best agent at 57% functionally correct and 11.8% correct and secure.
  • Georgia Tech’s Vibe Security Radar (2026) logged 74 confirmed cases of vulnerabilities traced to AI tools, 35 of them in March 2026 alone.
  • METR (July 2025) found that tasks took 19% longer when developers were allowed to use AI tools.

Why the figures disagree

Veracode grades single completion tasks tied to known weakness categories. SUSVIBES looks at whole agent runs on real project tasks, and the code has to be both correct and secure to count. Georgia Tech’s radar only counts bugs that reached public advisories while an AI signature, such as a co-author tag, is still visible in the commit history.

Three methods, three denominators, so the numbers do not average into one rate. Only METR used Cursor. SUSVIBES tested SWE-Agent, OpenHands and Claude Code and did not test Cursor, and the Georgia Tech write-up names Claude Code and Copilot as the bulk of detections without mentioning Cursor. The Register’s breakdown of the radar data lists two Cursor cases among the 74.

Read the security figures as direction, not as a Cursor failure rate. The radar’s researchers say they have only scratched the surface, because the method cannot see AI code once its markers are gone.

Where speed gains disappear

Before the study, METR’s participants expected a 24% speedup. Afterward they still believed they had gained 20%. The measured result was the 19% slowdown.

The 16 developers averaged 5 years of experience on the mature projects they worked in, and they mostly used Cursor Pro with Claude 3.5 and 3.7 Sonnet. METR itself does not claim its developers or repositories represent most software work.

Big, old codebases are where this pattern shows up first. For more on stretching the approach to systems with a lot of moving parts, see this guide to vibe coding apps with many interacting pieces.

When Cursor vibe coding does not apply

  • Production systems that other people depend on and nobody on the team will read
  • Authentication, payments and personal data, where a missed flaw costs the most
  • Mature repositories you already know well, the setting METR measured
  • Anything you could not explain to a teammate

One book chapter on the topic recommends vibe coding for proofs of concept and creative experiments, and reserves rigorous processes for critical systems.

Skipping review doesn’t remove the work. It just defers it as the technical debt that builds up until someone has to read the code anyway.

How to review and test AI-generated code in Cursor

YouTube player

No single check covers the failures described above, so stack them. Linter errors, tests and checkpoints do the work while you build, Bugbot looks at every pull request, and a static analysis scan in CI runs before deploy.

LayerRuns whenCatches
Linter and testsWhile you buildRule violations and behavior you wrote tests for
BugbotOn each pull requestBugs, security issues, code quality problems in the diff
Static analysis scanIn CI before deployKnown vulnerability patterns

Checkpoints and Git

Agent creates a checkpoint automatically before significant changes, and you restore one from the chat timeline. Restoring reverts files only and leaves the conversation intact.

Checkpoints are stored locally, separate from Git. Use them to undo Agent changes, and use Git for permanent history.

Tests before features

Write the failing test first, then ask Agent to make it pass. Driving the build with tests first gives you a pass or fail signal that doesn’t depend on reading every generated line.

Don’t lean on a rule that says “write secure code.” The SUSVIBES authors found that adding security guidance to the prompt cost about 7 percentage points of functional correctness and did not make agents reliably produce solutions that were both correct and secure.

Bugbot on every pull request

Bugbot reads the diff, not your intent.

  • It reviews pull requests for bugs, security issues and code quality problems, leaving comments with explanations and suggested fixes
  • A Fix in Cursor link opens the issue directly in the editor
  • Each pull request update triggers an automatic review, and you can also start a run by commenting bugbot run or cursor review
  • By default it only looks at changes since its previous review

Your business rules reach Bugbot only if you write them down. Project context goes in .cursor/BUGBOT.md files, admins can set team rules, and learned rules fold feedback from merged or closed pull requests into future runs. Cursor’s .mdc project rules do not apply to Bugbot.

Bugbot supplements the code review process. A person still has to read the change.

Static analysis before deploy

Veracode’s report recommends adding software composition analysis so AI-generated code doesn’t pull in vulnerable third-party components. Run it alongside a static analysis scan in CI.

Academic work points the same way. The VibeGuard paper tests whether targeted static analysis can close the security gap in AI-generated code.

Cursor, Claude Code, Windsurf or Lovable: which one fits the job?

YouTube player

Cursor suits people who want to read and steer the code. If you live in the terminal, Claude Code fits better, and a hosted builder such as Lovable or Bolt makes sense when you want a first version without opening a code editor. GitHub Copilot is for teams that stay in stock VS Code and GitHub. Windsurf, renamed Devin Desktop in June 2026, is the closest alternative AI editor.

ToolTypeBest fitCode control
CursorAI editorDevelopers who steer and reviewHigh
Claude CodeTerminal agentDelegated multi-file tasksHigh, no visual editor
Windsurf (now Devin Desktop)AI editorDevelopers wanting a second editor optionHigh
GitHub CopilotExtension and agentTeams on VS Code and GitHubHigh
Lovable and BoltHosted app buildersNon-developers, first demosLow

The split that matters is builders versus editors. Lovable’s own guide puts Lovable, Bolt.new, Replit and v0 on one side as tools that create complete applications from conversation, and Cursor, GitHub Copilot and Windsurf on the other as editors that expect programming knowledge.

Cursor’s help center disagrees. It names designers, product managers and people without prior coding experience among its audience.

Both vendors have a stake in that argument, so here’s a simpler test. If you can’t read a diff, a builder that hides the code will cost you less than an editor that shows it.

  • Cursor gives you full diff control and project rules, but it assumes you can read code.
  • Claude Code is strong for delegated multi-step work, with no visual editor in the loop.
  • Windsurf (now Devin Desktop) is a capable alternative, so the pick often comes down to habit.
  • GitHub Copilot is the smallest change to an existing GitHub workflow.
  • Lovable and Bolt are the quickest route to a demo, with less control underneath.

Claude Code runs on the command line and connects to your entire codebase, which this guide to vibe coding with Claude covers in more detail. Appwrite’s 2026 comparison reaches a similar split: Cursor for large refactors and project rules, Claude Code for terminal-native agent workflows, Copilot as the easiest default inside VS Code.

For a non-developer’s first throwaway prototype, skip Cursor. A hosted builder like the one in this write-up on vibe coding with Lovable gets you to a demo faster, and you can move the idea into Cursor once it deserves real code.

Cursor Vibe Coding FAQ

Is there a free plan for Cursor vibe coding?

YouTube player

Yes. Cursor’s pricing page lists a Free plan at $0 per month with limited agent requests, chat requests and AI usage. Paid tiers run Plus at $8, Premium at $30, Super at $100 and Ultra at $200 per month.

Included usage refreshes weekly, and you can buy top-offs if you hit the limit early. Prices change often, so check the page before you commit.

Can a beginner vibe code in Cursor?

YouTube player

Yes, for a small first project. Cursor assumes you can read a diff, though, so keep the app a throwaway prototype until you can follow what the Agent changed.

Turn on Git from the first prompt. It gives you a way back when a generated change breaks something you don’t understand yet.

Which model should I pick?

Start with Auto. Cursor picks the model for each task, balancing speed and quality, and Auto draws from the same included usage pool as Cursor’s own models, such as Composer 2.5.

The Free and Plus plans include only Cursor’s own models, so third-party models need a higher plan. Switch to a specific model only when Auto stalls on a hard task.

Does Cursor use my code to train its models?

Only if Privacy Mode is off. With it on, your code is never stored by model providers or used for training, backed by zero data retention agreements.

With it off, Cursor may store codebase data, prompts and code snippets to improve its AI features and train its models. Enterprise teams get it on by default, and Teams and Enterprise admins can lock it for every member.

Keeping a Cursor-Built App Maintainable After Launch

A Cursor-built app stays maintainable when tests, rule files and automated review are in place before the next feature, not after. Cursor vibe coding produces code fast, and these controls are what keep the result changeable.

The order matters.

  • Tests that pin down current behavior
  • Rule files in AGENTS.md or .cursor/rules that record project decisions
  • Bugbot and a static scan on every pull request

Tests go first, because they let you swap models, edit rules or refactor without silent regressions. Rules come next so every Agent session starts from the same decisions. Review sits last since it can only check what already exists.

The downside is slower early progress. Every feature costs an extra test and review pass, and that overhead buys cheaper changes later.

This was last verified in November 2026. Cursor’s model lineup and usage pools change often, so keep rule files free of model names.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.