Skip to content

Guides

Vibe Coding Best Practices: Match Effort to the Stakes

Vibe coding best practices, drawn from a Treasury CIO's AI-built game: match effort to the stakes, prompt specifically, and review before you launch.

On this page
  1. What happened: a Treasury CIO, a Civilization-style game and a security incident
    1. The facts in the report
    2. What the report does not claim
  2. What the story shows about vibe coding
    1. Plain-language feedback really works
    2. Speed makes it easy to keep tinkering
  3. Vibe coding best practices: match the effort to the stakes
    1. A simple stakes ladder
    2. Time-box your building sessions
    3. Own the decisions that carry risk
  4. Prompting with feedback you can verify
    1. Good vs vague feedback examples
    2. Verify in the preview, not by trust
  5. Keep security and compliance human-owned
    1. A short pre-launch review list
    2. Public code means public mistakes
  6. Build it with FromScratch
    1. Start with a low-stakes project
    2. Use versions as your safety net
  7. FAQ
Person at a laptop checking an app preview, illustrating vibe coding best practices for a small project
Photo by Mohammad Rahmani on Unsplash

Vibe coding best practices start with one idea: the tool is fine, but you need to match your effort to the stakes. A recent 404 Media report about a government technology chief shipping updates to an AI-built strategy game during a security incident makes a useful case study. Here is what happened, what it does and doesn't show, and how to build with AI agents without losing focus or cutting corners.

What happened: a Treasury CIO, a Civilization-style game and a security incident

According to 404 Media, Sam Corcos, the Treasury Department's Chief Information Officer, was pushing updates to a hobby project called Legatum while the Financial Crimes Enforcement Network (FinCEN) was dealing with a cybersecurity incident. Legatum is an open-source, turn-based strategy game modeled on Civilization VI. Its readme says it was built largely with AI coding agents (Claude and OpenAI's Codex), and most of its art was generated with OpenAI's image models.

The facts in the report

  • FinCEN posted a notice saying it was investigating unauthorized access to a limited subset of its systems and had taken some systems offline as a precaution.
  • A bank compliance reporting panel was down, and FinCEN said it was extending deadlines for affected filers.
  • Meanwhile, Legatum's commit history showed ongoing changes: balance patches, music by era, music for the Aztec faction, battle sounds, wall fixes for the mid-to-late game, and a new special unit for Egypt.
  • Several commits appear to include Corcos's own feedback to Claude, such as "I like Chariot archers for egypt, their current special unit is lame."
  • The game runs in a browser with nothing to install.
  • The Treasury Department did not respond to 404 Media's request for comment.

What the report does not claim

The report does not say the game caused or worsened the FinCEN incident. It doesn't say Legatum touched any government system. The criticism is about priorities and optics: someone responsible for cybersecurity at a department was visibly busy with a side project while that department dealt with a breach. That's a fair point to discuss, but it's different from a claim about technical cause.

What the story shows about vibe coding

Set the politics aside and the story shows two things about building software with AI agents.

Coding on a dark theme computer screen
Photo by Bernd 📷 Dittrich on Unsplash

Plain-language feedback really works

A playable, browser-based strategy game exists largely because someone described what he wanted to AI agents and kept giving feedback. "Their current special unit is lame" is not a technical specification, yet it produced a concrete change: a new unit. That's the real shift. The barrier between an idea and a working app has dropped far enough that a busy person can steer a project in short bursts.

The same applies to ordinary business software. A founder who can say "add a search bar" or "require login" and see the result can build a scoreboard, a client portal, or a small internal tool without writing the code. If you're new to the idea, our explainer on what an AI app builder is covers the basics.

Speed makes it easy to keep tinkering

The other lesson is less flattering. When each tweak takes one sentence and a few minutes, it's tempting to keep going: one more unit, one more soundtrack, one more graphical fix. Low friction is a feature, but it also means building can quietly crowd out the work that matters more. The problem in the story isn't the tool. It's where the attention went.

Vibe coding best practices: match the effort to the stakes

People often ask whether vibe coding is safe. The honest answer is that it depends on what you're building. A game for friends and a system that handles compliance filings should not get the same level of care. For a deeper take, see our piece on whether vibe coding is risky.

A simple stakes ladder

Project type Example Acceptable rough edges What you should do
Hobby A party game, a personal tracker Many Build freely, share with friends
Internal tool Team request board, simple dashboard Some Test with real users, restrict access
Customer-facing app Booking page, online store Few Review login, payments, data handling before launch
Regulated or critical Anything involving compliance filings, financial reporting, sensitive records Almost none Human-owned design, independent review, formal testing

A vibe coding side project can be messy, experimental and fun. The higher you go on the ladder, the more review, testing and accountability you need, whoever or whatever wrote the first draft of the code.

Time-box your building sessions

Because AI makes iteration so cheap, set limits before you start:

  1. Decide what "done" means for this session ("scoreboard works on a phone").
  2. Set a time limit, such as 45 minutes.
  3. Park extra ideas in a list instead of building them immediately.
  4. Check your actual responsibilities before opening the builder, not after.

This is ordinary time management, but it matters more when building feels effortless.

Own the decisions that carry risk

An AI agent can draft authentication, payments and data access. You still decide how they should work and confirm that they do. Whoever ships the app owns the consequences. Keep a human, ideally you or someone you trust, responsible for anything involving money, personal data or compliance obligations.

Prompting with feedback you can verify

If you want to know how to prompt an AI coding agent well, the story offers a clue: specific, opinionated feedback works. Here's how to make it even more reliable.

black laptop computer turned on on table
Photo by James Harrison on Unsplash

Good vs vague feedback examples

Vague Specific
"Make it better." "On the leaderboard, show the top three players in larger text with their total score."
"Fix the login." "After login, send admins to the dashboard and regular members to their profile page."
"Improve the design." "Use a lighter background and increase the button size on mobile."
"Add some features." "Add a field for notes on each round, visible only to the person who created the game."

The pattern: one concrete change per request, plus a description of the result you expect. Small steps also reduce the chance the agent edits things you didn't ask about. Our guide to AI code scope creep explains how to keep changes contained.

Verify in the preview, not by trust

After each change, open the live preview and try it yourself:

  • Click the thing you asked for. Does it behave as described?
  • Click two or three things nearby. Did anything else change?
  • Try it on a phone-sized screen.
  • Try it logged out, if login matters.

This is the non-developer version of reviewing AI-generated code. You may not read every line, but you can test behavior systematically. If you want to see how experienced engineers approach it, read about professional review habits for vibe coding.

Keep security and compliance human-owned

Vibe coding security risks don't disappear because the code came from an AI agent. They sit with whoever deploys it.

A short pre-launch review list

Before sharing anything beyond your own circle, check:

  • Login and permissions: Can someone see or edit data they shouldn't? Test with a second account.
  • File uploads: What file types are accepted, and who can open them afterward?
  • Real customer data: Is it necessary? If so, who can access it, and where is it stored?
  • Payments: Are card payments handled by a established payment provider rather than custom code?
  • Error behavior: What does a user see when something fails?
  • Backups and rollback: Can you restore a previous working state?

For anything heading toward real users, our vibe coding production checklist goes further. And if your app collects personal information or operates in a regulated area, take legal exposure seriously; our article on vibe coding legal risks is a good starting point.

Public code means public mistakes

Legatum is open source, which means its commit history, including the notes about what was changed and why, is visible to anyone. The 404 Media report relied on exactly that. Plenty of projects are fine being public, but keep these habits:

  • Never paste passwords, API keys or private customer data into prompts or into files that might be published.
  • Assume anything in a public repository can be read, copied and criticized.
  • Keep experiments separate from production work so a casual change history doesn't expose anything sensitive.

Build it with FromScratch

The best way to practice these habits is with a low-stakes project. Here's one: a scoreboard for game night. It's small, useful, and harmless if something goes wrong. FromScratch lets you describe the app in chat; an AI agent builds a React front end, a Python (FastAPI) back end and a database.

Start with a low-stakes project

  1. Open FromScratch and start a new project. You can begin on the free plan.
  2. Paste this prompt into the chat:

Build a simple web app called Game Night Scoreboard where my friends and I can create a game, add players, log scores each round, and see a live leaderboard. Add a page for house rules where I can upload a PDF, and require a simple login so only invited players can edit scores. Use a clean, playful design.

  1. Wait for the live preview to appear, which typically takes a few minutes.
  2. Test it: create a game, add three players, log two rounds, and check the leaderboard.
  3. Refine with one specific request at a time, for example: "Show the round number next to each score" or "Make the leader's name bold."
  4. Attach your real house rules PDF so the rules page uses your actual content.
  5. When it works, publish with one click to a public URL, or connect your own custom domain.

Notice what this practice builds: specific feedback, checking each change, and a login requirement from the start.

Use versions as your safety net

Every change in FromScratch is saved as a version, and you can restore an earlier one. That makes experimentation much less risky. Try a bold redesign; if it breaks the leaderboard, roll back. Keep experiments in their own projects, away from anything customers or colleagues rely on. If your idea grows into something heavier, such as a team tool, an internal tool is a natural next step, and that's the point to move up the stakes ladder and apply the review list above.

FAQ

Is vibe coding safe for serious work?

It can be, but only with review and testing proportional to the stakes. AI-generated code should be treated like a draft from a fast junior colleague: useful, but verified by a person before it handles money, personal data or compliance. For regulated or critical systems, keep human ownership and independent review in place.

Did vibe coding cause the FinCEN incident?

The 404 Media report doesn't say so. It reports that FinCEN was investigating unauthorized access to some of its systems, and separately that the Treasury CIO was updating a hobby game built with AI agents. The criticism concerns priorities, not a demonstrated technical link.

Can I build a game without coding?

Yes. The Legatum story shows a full strategy game assembled largely through AI agents, and simpler games or game-related tools like a scoreboard are much easier. Describe what you want in plain language, check the live preview, and refine one change at a time.

How do I keep an AI-built app from changing things I didn't ask for?

Make one request at a time, say exactly what should change, and say what should stay the same. After each change, test nearby features in the preview. If something shifts unexpectedly, restore the previous version and ask again more narrowly.

How should I review AI-generated code if I'm not a developer?

Focus on behavior rather than syntax. Test every feature as a normal user and as someone who shouldn't have access, check login and permissions, and try unusual inputs. For anything serious, ask an experienced developer or security-minded colleague to review the parts that handle authentication, payments and personal data.

Written by

FromScratch TeamEditorial team

The team building FromScratch, the AI app builder that turns a plain-language description into a real, published full-stack app.