← Back to OvernightProduct · The Refinery

Overnight Refinery

A swarm of agents that hardens your AI-generated code into production-grade software. It moves secrets out of the source, keeps the files your app saves safe through every update, and wires up the identity and data planes.

the gate — every arrival is hardened on the way in
01 what the refinery does

The production plumbing your IDE skips.

AI generates the software in an afternoon. Hardening it is the prompt-after-prompt slog that takes weeks. The Refinery does that pass for you.

The Overnight Refinery is the hardening layer of a compliant runtime: four agents working side by side on identity, data, routing and the network.

What comes out is still your own code, built and tested, and ready for you to approve before the Runtime runs it inside the boundary.

refinery · refund-desk4 of 4 patched
sourceclaude codeagents4done01234 / 4
diff · production pass
−app.post('/login', localLogin)local login
+identity → company SSOyour identity
−const UPLOADS = "./local/uploads/"local path
+UPLOADS → app volumepersistent
agenttaskstate
identitylocal login → company SSO working✓ patched
data./local/uploads → app volume working✓ patched
routingpaths → the app's own URL working✓ patched
networkoutbound calls → allowlist working✓ patched
testedready for your approval
four agents, side by side
  1. 01secrets

    Secrets move out of the source

    Generated code reaches for the nearest working credential, which is usually a key pasted into a file. The Refinery finds hard-coded keys and replaces each one with a vault reference, so the secret is fetched at runtime instead of committed alongside the code.

    It matters most on the small stuff. The quick data script nobody would call an application is exactly where a production credential would otherwise end up in plain text.

  2. 02files

    Saved files survive every update

    An app that saves uploads to a folder on your laptop loses them the moment it moves. The Refinery gives every app durable storage of its own, so the files it saves survive restarts and updates, with a snapshot taken before each new version goes out.

  3. 03identity & data

    The identity and data planes get wired

    Identity, and which data each user can reach, are the pieces an AI-built demo skips first. The Refinery wires the app into the identity plane and the data plane, so it answers to real users and real data from the first run.

  4. 04the gate

    It drafts the gate that decides what the app may call

    Along with the plumbing, the Refinery drafts the list of services this app is allowed to reach. You confirm it, and the Runtime enforces it on every outside call after that.

    How the Runtime enforces it →
  5. 05the swarm

    A swarm of agents, working side by side

    First, an agent maps where your app handles identity, saves its data, serves its pages and calls out to other services. Then four agents fix those at the same time, one each for identity, data, routing and the network, and Overnight builds the result and tests it. Hardening becomes one step instead of a prompt-after-prompt slog.

    What comes out is still your own source, in the languages and frameworks you built it in. There is no proprietary app format to get stuck inside.

  6. 06any generator

    Bring it from any model, IDE, or generator

    Upload the project, or point your IDE at Overnight. Claude Code, Cursor, Codex or any other generator will do. Keep the editor, keep the model, keep the workflow.

    Overnight deliberately is not trying to be your code generator. Generation is cheap and getting cheaper. The scarce part is getting what it produced to production.

  7. 07ready to run

    Tested, and ready for your approval

    There is no Dockerfile to write and no ops to run. Once the Refinery is done and the app passes its tests, you approve it. Then the Runtime runs exactly that version, in isolation, and logs every call.

    The Refinery keeps widening what it covers, across frameworks, skeletons, and languages, so more kinds of AI-generated software arrive production-ready.

· sign up
Let’s build it

Close the gap between generated and production.

Upload what you have generated and we will show you what the Refinery makes of it.

Get started

Sign up

Tell us a little about what you have built and we will get you set up.

We use this to connect with you, and for nothing else. No recurring marketing emails.