Get a second opinionBook
Menu

Replit Agent ward

Code review for apps built with Replit Agent

Replit Agent builds a full-stack app, gives it a PostgreSQL database and puts it on a public URL without you leaving the browser. Everything from the schema to the deploy is one conversation away.

Replit’s security scanner goes first, and I start where it stops, with the question a scan cannot answer: what should be true for your app? You get a ranked list, proven on your live app, with a fix prompt for each finding you can paste back into Replit Agent.

US dollars, no tax added. See both prices.

X-rayserver/storage.ts1 fracture
export class MemStorage implements IStorage {
  private users = new Map<number, User>()
  async createUser(insert: InsertUser): Promise<User> {
    const user = { ...insert, id: this.currentId++ }
    this.users.set(user.id, user)
    return user
  }
}
  1. Line 1: Every account lives in a Map inside the Node process, so a restart or redeploy wipes them all; the Drizzle schema next to this file is never used.

Your first opinion

Replit’s Security Center offers three scan levels: Level 1 is free, Level 2 requires a paid plan and Level 3 has extra plan and project-access requirements. Replit’s own docs say no scan guarantees that your app is secure. Run the levels you have and paste what they found; ran Replit’s automated pentest? Paste that report too.

What Replit Agent usually generates

  • Express
  • TypeScript
  • React
  • Vite
  • Drizzle ORM
  • PostgreSQL
  • Passport.js
  • Tailwind CSS

Reviewed:

Common problems in Replit apps

Not every one of the Replit apps I review has all of these; the report says which yours has, where and what to do. Items marked scan are ones Replit Agent’s own scan usually flags too; paste its results when you book and I start there. The rest is where my time goes.

“Slop” is what the AI left behind, not you. Every AI tool skips the same things, whoever is at the keyboard.

  1. Critical

    Test data that went live with the app

    Your published app gets its own production database, separate from the development database, and the agent cannot modify production. Replit does not copy development data into production by default; if you copied it yourself or seeded production by hand, test accounts and seed rows are live. I check which database the published app uses and what is in it.

  2. High

    Schema changes pushed straight to the database

    drizzle-kit push applies whatever the schema file says, with no migration files and no way back. It is fine while you build. Once there is customer data, every push is an unreviewed change to a live database. The fix prompt moves you to migrations.

  3. High

    API keys that drifted out of the secrets tabscan

    Replit stores secrets outside the code, which is right. Keys still turn up pasted into a file as a fallback for when the variable did not load, or in a config committed to the repository. I find each one and tell you which to rotate.

  4. Medium

    One routes.ts with every endpoint

    Hundreds of lines of app.get and app.post in a single file, each one checking auth by hand or not at all. I group them, say which ones need middleware and point out the ones that need it most.

  5. Medium

    Storage that forgets on every restart

    An in-memory storage class written to get the UI working, still wired in behind the same interface as the database one. Data looks saved until the next deploy. I check which one your app actually imports.

  6. Low

    Stack traces sent to the client

    An Express error handler that returns err.message, or the whole stack, in the JSON response. Useful while debugging, informative to anyone probing the API. The fix logs on the server and says less to the client.

Case history

How this usually happens with Replit Agent

Replit Agent does everything in one place: it writes the code, creates the database, runs the app and publishes it. Agent-built apps often change the database with drizzle-kit push, which is fine while you build and risky once customers are in it.

Your published app gets its own production database, separate from the development database, and the agent cannot modify production. Replit does not copy development data into production by default; if you copied it yourself or seeded production by hand, test accounts and seed rows are live.

Many of these apps also start on in-memory storage so the screens work before the database exists. If nobody switches it over, everything looks saved until the next restart.

X-rayserver/index.ts1 fracture
app.use((err: any, _req: Request, res: Response, _next: NextFunction) => {
  const status = err.status || err.statusCode || 500
  const message = err.message || 'Internal Server Error'
  res.status(status).json({ message })
})
  1. Line 3: Whatever the error says goes straight to the browser. A database error can name your tables, columns and constraints, which is a map for anyone probing the API.

Python backends are out of scope

I review JavaScript and TypeScript only. A Replit app with a Python backend (Flask, FastAPI or Django) is the wrong fit, even with a React frontend, because the rules that protect your data live in the backend.

Tell me before you book. If I see it first, I say so before I start and you get a full refund.

If your Replit app uses Express and Drizzle

Many Node apps pair an Express server with the Drizzle ORM. If yours does, four things are worth a look before customers arrive. Check that every app.get or app.post line that touches user data runs an auth middleware.

Check that queries filter by the signed-in user, not by an id taken from the URL. Check that schema changes go through migrations instead of drizzle-kit push once customers exist. And check that the Drizzle schema file still matches the live database.

Two databases, one published app

Replit’s docs say your published app gets its own production database, separate from the development database you use while building. They also say the agent is not able to modify the production database.

What the docs do not promise is that production is clean. Replit does not copy development data into production by default, so any test accounts or seed rows there got in some other way: a seed script, a copy or a test sign-up. Before launch, open the database tool, pick the production database and read the user table. Every row should be a person you know.

Self-exam

Five checks for Replit apps

Five things you can look at today in Replit apps. If one of them turns something up, fix it or let me look at the rest.

  1. Check which database your published app uses

    Open the database tool in your Replit project. Check that your published app uses its own production database and that no test accounts or seed rows are in it.

  2. Sign in to the live app with your test accounts

    Use the test emails you made while building. If they work on the live app, your development data went live with them.

  3. Search for MemStorage

    If server/storage.ts has a class like MemStorage and your routes use it, your data lives in memory and disappears on every restart or redeploy.

  4. Look at the database scripts in package.json

    If the only database command is drizzle-kit push and there is no migrations folder, every schema change goes straight to the live database with nothing to review or undo.

  5. Search your code for keys

    Search for sk_, api_key, apiKey and token. Keys belong in Replit's Secrets tool, not in a file, not even as a fallback for when the secret does not load.

Want a longer list your AI can run for you? Get the free self-check prompt.

Pharmacy

Prices

Same fixed prices for Replit Agent, whichever tool wrote the code.

  • Full exam

    Launch Review

    $999

    Launching, raising or selling? Every problem proven, and a signed report you can show.

    Replit Agent apps: ready in 4 business days. Up to 30k lines (50k: +$299).

    Book Launch Review for Replit Agent

Prices in US dollars, no tax added, paid once by card. A fix list or Aftercare is offered in your report, never sold by card. See everything each tier includes.

Replit Agent questions

How do I share a Replit project?

Replit has a Git integration, so push the project to a GitHub repository and give me read-only access (I send you a key to paste in; it takes a minute). I also need the database schema, which is the Drizzle schema file plus a pg_dump --schema-only of the live database if the two have drifted.

My app is already deployed on Replit. Is it too late?

No, but it changes the order. I look first at anything that can lose or expose customer data: test accounts in production, schema pushes, public endpoints. The cleanup can wait; those cannot.

Can I apply the fixes with Replit Agent?

Yes, each finding has a fix prompt. For database changes the prompt asks for a migration rather than another push, so the change is something you can read before it runs and undo if it goes wrong.

Questions about price, privacy or refunds for Replit Agent? All questions and answers.

Built with Replit Agent? Ask me.

A question about your app, the price or how this works? I answer myself, by email. Replies within 2 business days.

I use your email only to answer. Privacy policy.

Find out what Replit Agent skipped.

Replies within 2 business days.