Claude Code takes a checkpoint on every turn. Anthropic’s Claude Code documentation (2026) says it keeps file snapshots for the 100 most recent checkpoints per session, so a bad change is usually one rewind away.
There’s a gap, though. A file that only Bash commands such as rm, mv or cp have changed is not tracked, which means a git commit still covers what /rewind cannot.
That cheap undo is most of the reason Claude vibe coding feels fast. You describe the goal in plain language, Claude Code writes, runs and fixes the code, and you steer by what comes back instead of reading every line. Solo developers and small teams use it for prototypes, internal tools and small apps, where the baseline is writing and reviewing the same code by hand.
What Claude Vibe Coding Means and Where It Stops Being Vibe Coding

Andrej Karpathy coined the term on February 2, 2025, in a post on X that Simon Willison quoted in full in his March 2025 write-up. His own description was careless on purpose. He accepted every AI-generated change without reading the diffs and pasted error messages straight back into the model.
That’s the strict meaning of vibe coding, and Karpathy called it fine for throwaway weekend projects.
Collins Dictionary made the term its 2025 Word of the Year and defines it far more loosely, as using natural-language prompts to get AI help with writing code. Most people talking about Claude use that looser sense: Claude, usually through Claude Code, writes and edits the software while you steer with plain-language instructions. Which definition a source has in mind decides how far its advice can be trusted.
Vibe Coding vs AI-Assisted Programming
The line is review. Everything else about the workflow can look identical.
Strictly speaking, vibe coding means building software with a language model and never reviewing the code it writes. Once the developer reviews, tests and understands that code, it’s AI-assisted programming, and the model has only changed who types.
Martin Fowler drew the same line in May 2026 under different labels. Agentic engineers review the generated code and pay attention to its structure. Vibe coders don’t examine it at all. He still wants the two kept apart, even though many people now use “vibe coding” for both.
Willison’s working test for production code is blunt. If he couldn’t explain it in full to somebody else, he won’t commit it.
Everything below sits on the reviewed side of that line. The aim is a shorter loop with a human still reading the diff.
Where Claude Code Fits

Most of the speed gains come from Claude Code, not from the chat window.
It reads your project files and runs commands in the terminal. Changes land across several files at once, and it keeps working through a problem while you watch, redirect or step away. Anthropic’s documentation describes it as an agentic coding environment, which is not the same thing as a chatbot that answers and waits.
Which Claude Tool and Model Fits Which Job?
For a throwaway proof of concept, Claude.ai artifacts are enough. Anything that lives in a repository belongs in Claude Code. I’d start on Sonnet and bring in Opus for planning-heavy work, while Haiku suits subagents doing simple, high-volume tasks.
| Option | Best for | Trade-off |
|---|---|---|
| Claude.ai artifacts | Single-page tools, quick demos | Self-contained pieces only |
| Claude Code (terminal or VS Code) | Real projects, multi-file changes | Needs setup and context care |
| Sonnet 5.5 | Default building work | $2 / $10 per million tokens |
| Opus 5.5 | Planning, hard architecture calls | $4 / $20 per million tokens |
| Haiku 5.5 | Simple subagent tasks | From $0.10 / $0.50 per million tokens |
Artifacts open beside the conversation and cover documents, single-page sites, dashboards and small interactive tools, per Anthropic’s help center. They work well for early prototyping, but Claude only creates one when the content is self-contained and typically over 15 lines.
My rule is simple. Start every session on Sonnet, then switch to Opus with /model once a plan touches several files or the approach isn’t clear.
Anthropic’s own pages don’t agree on the default. The model overview recommends Opus 5.5 for most workloads and points to Fable 5.2 ($8 / $40) for demanding, long-horizon agentic work. The Claude Code best-practices guide lists Opus 5.5 at medium effort as the starting default on most plans and providers. The Claude Code cost documentation goes the other way. It says Sonnet handles most coding tasks well and costs less, with Opus held back for architecture and multi-step reasoning.
The likely reason is scope. The overview speaks to every API workload, while the cost page speaks to long agentic sessions where each file read adds tokens (prices as of November 2026).
Anthropic’s cost documentation puts the average at roughly $13 per developer per active day, with 90% of users staying below $30.
There’s one cost trap here. Subagents inherit the session’s model, so switching to Opus switches them too. Set model: haiku on the simple ones.
The VS Code route needs VS Code 1.94.0 or later, and installing the Claude Code extension in VS Code is a search and one click in the Extensions view.
The extension bundles its own copy of the CLI for the chat panel but does not put claude on your PATH. To run it in the integrated terminal, install the standalone CLI too.
How to Set Up CLAUDE.md and Permission Modes Before the First Prompt

Start with /init in the project root. The CLAUDE.md it generates will run long, so cut it down to the rules Claude cannot work out from the code. Then pick a permission mode before you send anything.
CLAUDE.md is read at the start of every conversation, which makes it the cheapest place to store build commands, code style and workflow rules.
Keep whatever Claude would otherwise get wrong:
- Bash commands Claude cannot guess
- Code style rules that differ from defaults
- Test runner and testing instructions
- Branch naming and PR conventions
- Required environment variables
Standard language conventions can go, since Claude already knows them. Long tutorials and API docs go too (link to them instead), and so do file-by-file descriptions of the codebase.
Anthropic’s cost documentation sets the ceiling at under 200 lines. Past that, important rules get lost in the noise and Claude starts ignoring parts of the file.
/context confirms Claude actually loaded the file, and /doctor proposes cuts for anything Claude can derive from the code.
Check the file into source control so teammates can tighten it as the project changes.
CLAUDE.md is advisory. A rule that must hold on every edit, such as running eslint after each file change, belongs in a hook, because hooks run deterministically.
Permission modes decide how often Claude stops to ask. As of Claude Code v2.1.283 (Anthropic documentation, November 2026), auto mode is the built-in starting mode for interactive terminal and VS Code sessions.
In auto mode a separate classifier model reviews most actions and blocks scope escalation, unknown infrastructure and actions driven by hostile content. Manual mode asks before most actions that edit files, run shell commands or reach the network, while reads run without a prompt.
Manual mode has a failure pattern of its own. By the tenth approval prompt people click through instead of reviewing.
The fix is a permission allowlist for commands you trust, such as npm run lint or git commit, plus sandboxing for the rest. The auto classifier gates actions. It does not judge whether the code Claude wrote is correct.
On an unfamiliar codebase, start in Manual with a tight allowlist. Move to auto once tests exist to catch what the classifier will not.
How to Plan and Prompt So Claude Stays on One Task

Plan first, code second. Anthropic’s permission-modes documentation describes plan mode as a way to let Claude research and propose changes without editing source, with edits blocked until you approve the plan. Reviewing the plan catches a wrong approach before it becomes code you have to unpick. If you could describe the diff in one sentence, skip the routine.
- Press Shift+Tab until the status bar shows plan mode on, or start with claude –permission-mode plan. Claude reads files and answers questions without changing anything.
- Ask for a detailed implementation plan. Ctrl+G opens it in your text editor so you can edit it before Claude proceeds.
- Approve the plan or press Shift+Tab to leave plan mode, then let Claude code and check its work against the plan.
- Ask for a descriptive commit message and a pull request.
When to Use Plan Mode and When to Skip It
Plan mode adds a review step, so it only pays off when there is something to review.
It earns its keep when the approach is uncertain or the code is unfamiliar, and when a change touches several files.
Skip it for a typo fix or a variable rename. One added log line doesn’t need it either, and neither does anything exploratory where you want to see how Claude reads the problem.
For bigger features, have Claude interview you with the AskUserQuestion tool and write the result to SPEC.md. Then start a fresh session to build it, so the new session carries clean context focused on implementation.
A useful spec names the files and interfaces involved and says what is out of scope. End it with an end-to-end check. Time spent there pays back more than time spent watching the build.
How to Write a Scoped Prompt
The more precise the prompt, the fewer corrections follow.
| Vague prompt | Scoped prompt | What changed |
|---|---|---|
| Fix the checkout bug | Checkout fails when the coupon field is empty. Check src/cart/ and write a failing test first | Symptom, location, target |
| Add a settings page | Follow the pattern in ProfilePage.tsx and use only libraries already in package.json | Existing pattern named |
| Why is this slow? | Profile the /reports endpoint and list the three slowest queries | One question, one output |
Asking for a failing test before the fix is test-driven development squeezed into a single prompt. Claude gets a pass or fail signal it can read, and you stop being the only check.
Typed text isn’t the only input Claude takes. @ references point it at files, so you don’t have to describe where the code lives. You can paste screenshots, hand it URLs for documentation, or pipe data in, as in cat error.log | claude -p “explain this error”.
Vague prompts still have a place. Asking what you would improve in a file is a fine way to explore, as long as you can afford to course-correct.
How to Manage the Context Window and Token Costs

Use /clear between unrelated tasks. When one task keeps going, /compact with instructions trims the history, and noisy research is better pushed into subagents so the file reads never land in the main session.
Anthropic’s current best-practices guide no longer treats the context window as the main constraint. Most current models have a 1M-token window and Claude Code compacts automatically, so running out is rare. The habits below still pay off, because a focused context gives better answers and costs less.
The window holds every message, every file Claude reads and every command output. A long debugging session or codebase exploration still fills it, and all of it is re-sent with every request.
Here’s what you have to work with:
- /clear resets the window between unrelated tasks. Run /rename first so /resume can find the old session.
- /compact summarizes the history and takes instructions, such as “focus on the API changes”.
- /rewind followed by Summarize from here condenses only the messages after a point you pick.
- /btw answers a side question without adding it to the conversation.
- The status line shows context use continuously, so you notice before quality drops.
Claude Code also compacts on its own near the limit. A “Compact instructions” section in CLAUDE.md that names the modified-file list and the test commands keeps both through the summary.
Cost follows the same curve. Claude Code sends the full conversation with every request, so a one-line question in an all-day session still pays for everything before it.
This is where it gets expensive in odd ways. The first message after a break longer than the prompt cache lifetime reprocesses the whole context, and /compact on a huge session is itself a large request. /clear costs nothing.
My rule of thumb is to clear when the next task is unrelated and compact only when the history still matters. A clean session with a sharper prompt usually beats a long one full of patches.
Research is the biggest context eater. Telling Claude to use subagents for an investigation keeps the file reads in a separate window and returns only a summary. Each subagent sends its own requests, so this saves context, not tokens.
A hook can also trim noise before Claude reads it, such as cutting a long test log down to the failing lines.
Kitchen sink sessions happen when unrelated tasks pile into one window, so clear between them. Correcting over and over is worse. After two failed corrections the window is full of dead approaches, so clear it and write a better first prompt.
Then there’s the unscoped investigation. Ask Claude to “look into the auth system” and it wanders through hundreds of files. Narrow the question, or hand it to a subagent.
Which Automation Features Speed Up Claude Vibe Coding?
Pick the feature by the trigger, not by what looks impressive. A rule that has to hold every time goes in a hook. Knowledge Claude needs only sometimes, or a prompt you keep retyping, becomes a skill. A side task that floods the conversation goes to a subagent, and data that lives in another system comes in through an MCP server.
| Feature | Runs when | Context cost | Main failure |
|---|---|---|---|
| Hooks | A lifecycle event fires | Zero unless output returns | Matchers miss shell-made edits |
| Skills and slash commands | You type /name or the description matches | Descriptions load every session | Vague descriptions misfire |
| Subagents | Claude or you spawn one | Isolated window | Rewind usually skips their edits |
| MCP servers | Session start, tools on call | Low until a tool runs | Unused servers add overhead |
Anthropic’s features overview says to build the setup over time. Add each piece when its trigger shows up, not before.
Hooks, Skills and Slash Commands
Hooks are the only option here that does not depend on Claude choosing to follow a rule.
They run at lifecycle events such as PreToolUse, PostToolUse and Stop. Exit code 2 blocks the action and feeds your message back to Claude.
Skills live in .claude/skills/ as SKILL.md files and load on demand. Claude applies one when its description matches the task, or you call it with /skill-name. Slash commands are the typed way in, and Claude Code ships bundled ones such as /code-review, /batch and /debug.
A PostToolUse hook scoped to Edit and Write is the usual home for formatting and linting after each change. Guards for protected files such as .env belong on PreToolUse.
The matcher has a blind spot. Edit and Write matchers miss changes made through shell commands, so a hook that must see every change needs a Stop hook that scans the working tree, or a Bash matcher as well.
Stop hooks have a ceiling too. Claude Code overrides one after eight consecutive blocks with no tool call in between, so read the stop_hook_active field in the hook input and exit early when it is true (Anthropic hooks guide).
Promote a prompt to a skill the third time you paste it. Set disable-model-invocation: true on anything with side effects, like a deploy, so only you can trigger it.
Subagents, MCP and Parallel Worktrees

Subagents run in their own context window and hand back a summary. That makes them a good fit for research and verification, and for tasks that run in parallel.
MCP servers connect Claude to issue trackers and databases, and to design files as well. Add one with claude mcp add, a server name and a URL or command. Tool search is on by default, so only tool names enter context until Claude calls a tool. CLI tools such as gh stay leaner than an MCP server, and /mcp lists your servers so you can disable the ones you are not using.
For parallel sessions, claude –worktree feature-auth creates a git worktree under .claude/worktrees/feature-auth on a new branch named worktree-feature-auth. A second terminal with a different name gives a second isolated session, so edits never collide.
A worktree is a fresh checkout. Install dependencies there, and list your .env files in a .worktreeinclude file to copy them over automatically.
Parallel work costs tokens. Agent teams, an experimental mode that is off by default, use roughly 7x more tokens than a standard session when teammates run in plan mode, per Anthropic’s cost guidance as of November 2026.
How to Verify Claude’s Output Without Losing Speed
Give Claude a check it can run, and ask it to show the output instead of claiming success. Rewind or commit before you trust a large change.
Anthropic’s guide explains why. Claude stops when the work looks done, and without a check it can run, “looks done” is the only signal, which makes you the verification loop.
Anything Claude can read counts as a check: a test suite, a build exit code, a linter, or a script that diffs output against a fixture. A screenshot compared against a design works too.
Ask for unit tests with example inputs and expected outputs, and tell Claude to run them before it reports back. Evidence beats assertion. Test output or a command and its result will do, and so will a screenshot.
How strictly the check gates the finish is up to you. In a single prompt, ask Claude to run the check and iterate in the same message. For a whole session, set the check as a /goal condition and an evaluator re-checks it after every turn. A Stop hook is the hard gate, since it runs your check as a script and blocks the turn from ending until it passes. For a second opinion, a verification subagent tries to refute the result in a fresh context.
Each step trades setup for attention. The one-prompt version works today, and the Stop hook is what lets an unattended run finish correctly.
Every prompt that starts a turn creates a checkpoint. Press Esc twice or run /rewind to restore code and conversation together, either one alone, or to summarize from a message you choose.
The limits are real, per Anthropic’s checkpointing documentation. A file that only Bash commands such as rm, mv and cp changed is not tracked (Bash changes to files Claude already edited are rewound). Edits from outside the session or from other sessions are not captured either, and checkpoints do not replace version control.
Hence the habit. Commit small and often, because git history is the undo that survives a closed terminal.
Review matters most when Claude has worked alone for a while. A code review in a fresh context catches what the writing session is biased toward, either in a second session or through the bundled /code-review skill.
Reviewers have a failure mode too. Tell one to find gaps and it will report some even when the work is sound. Tell it to flag only gaps that affect correctness or stated requirements, or you get extra abstraction layers and tests for cases that cannot happen.
When Does Claude Vibe Coding Stop Working?

It stops working once the code has to be maintained and secured, and when nobody can verify what Claude wrote.
Fowler’s note says vibe-coded output often carries problems with maintainability and security, and with correctness too, which is why it fits disposable software for a limited audience. Every unreviewed change also adds technical debt that the next prompt has to work around.
On project size, one practitioner’s field notes (LessWrong, June 2025) set a comfortable ceiling for small projects and say vibe coding at larger scale does not work well yet. The post offers no evidence for its line count and dates the caveat to mid-2025 tools, so treat it as a rule of thumb.
Security is better documented. Veracode’s 2025 GenAI Code Security Report ran more than 100 models through 80 curated tasks, and nearly half of the results introduced vulnerabilities. Larger, newer models did not improve security.
Escape.tech’s research looked at deployed apps instead. Its team analyzed publicly available applications built on vibe coding platforms and found exposed secrets and personal data, including medical records and IBANs.
Neither study measured a reviewed Claude Code session. Veracode graded raw completions on tasks built around known weakness classes, and Escape.tech scanned platform-hosted apps, so read both as the price of skipping review.
Speed is murkier. The evidence conflicts, and the conflict comes from one source.
METR’s July 2025 randomized trial gave 16 experienced open-source developers 246 real issues and found tasks took longer when AI was allowed, even though the developers believed it had helped.
In February 2026 METR called its own central estimate likely a bad proxy for the real effect, because selection effects distorted the newer data, and said late-2025 tools likely sped developers up. The study design is being changed.
Both positions hold. Early-2025 tools slowed experienced developers in large, familiar repositories, and later tools probably help but have no clean measurement yet. Treat any exact speedup claim, including your own impression, with suspicion.
Some situations are a poor match from the start:
- Authentication, payments and anything that stores personal data, unless a person reads every change
- Large legacy repositories where one prompt touches code nobody can explain
- Work with no test or build signal for Claude to run
- Anything that will outlive the afternoon and has users depending on it
For reference, the figures from this section in one place:
- Tasks took 19% longer with AI allowed, across 16 experienced developers and 246 issues (METR, July 2025).
- 45% of AI-generated code samples introduced vulnerabilities, across 80 tasks and 100+ models (Veracode, 2025).
- Escape.tech scanned 5,600 deployed vibe-coded applications and found 400+ exposed secrets (Escape.tech, 2025).
- One practitioner suggested a ceiling of about 5,000 lines, with no supporting data (LessWrong, June 2025).
Vibe on prototypes you plan to delete. The moment someone depends on the result, switch to the plan, review and verify loop.
Claude Vibe Coding FAQ
Can a beginner start with Claude vibe coding?

Yes. Anthropic’s quickstart assumes only a terminal and a project, and a separate terminal guide covers opening one. The harder part for a newcomer is checking the output, so start with a small project that has tests Claude can run.
Does Claude Code work on Windows?
It does, natively. Run the PowerShell installer or winget install Anthropic.ClaudeCode, then open a new terminal and run claude –version to confirm.
Git for Windows is recommended so Claude can use the Bash tool. Without it, Claude Code falls back to PowerShell. WSL setups skip that requirement.
Which account or plan do I need?
Anthropic’s documentation lists a Claude Pro, Max, Team or Enterprise subscription, a Claude Console account with pre-paid API credits, or access through Amazon Bedrock, Google Cloud’s Agent Platform or Microsoft Foundry. The free claude.ai plan does not include Claude Code. Plan prices change, so check the pricing page before you choose.
How is Claude Code different from Cursor or GitHub Copilot?
Cursor is an editor, while Claude Code works as an agent that reads your codebase, edits files, runs commands and works with git. The two also combine, since Anthropic ships a Claude Code extension for Cursor and VS Code.
Compare tools on your own repository, since rival features and pricing shift often.
What can you build with it?
Anything a developer would build by hand, from prototypes and internal tools to new features across multiple files. Anthropic’s overview also lists the tedious jobs, such as writing tests, fixing lint errors, resolving merge conflicts, updating dependencies and drafting release notes.
Do I need a terminal to use it?
No. Claude Code also runs in VS Code, JetBrains IDEs, a desktop app and the browser at claude.ai/code, and all of them share the same engine.
Your CLAUDE.md files, settings and MCP servers carry across, so the setup is portable.
Where to Start in a New Project
The speedup only holds when every change can be proven and undone. So before the first prompt, set up a check Claude can run and a commit routine.
Write the test or build command into CLAUDE.md first, then commit before each batch of prompts. Order matters here. Without a check, Claude has no signal to iterate against, and a commit made without one only preserves unverified work.
The setup is working when Claude reports test output without being asked and a bad change costs one git revert instead of an afternoon.
Both habits add seconds to every turn, and that overhead is the price of changes you can trust.
This advice reflects documentation and studies checked in November 2026. METR is redesigning its developer productivity study, and a clean new speed measurement would change how much review time a team should budget.
- PyCharm Tutorial: From Install to Your First Debug Session - December 3, 2026
- How Software Teams Can Retire Old Hardware Without Losing Sleep - December 2, 2026
- PyCharm vs VS Code for Python: Speed, Debugging, Cost - December 1, 2026



