We’ve been hard at work pushing Mongoose Studio further beyond a traditional MongoDB GUI. The Chat tab is a key part of that vision: generate and run code directly from your browser.

The goal isn’t just to generate scripts - it’s to understand your data well enough to generate the right script the first time. It is also to allow the agent to explore your data without giving it access to wipe our your database.

Our v0.4.0 release introduces the first version of that idea:

🤖 Agent Mode

The Chat tab now has an Agent Mode.

Instead of blindly generating code, the assistant can now explore your database before writing a script.

Under the hood, the agent has access to a small set of tools:

  • Query collections (find, findOne) with a maxTimeMS cap to avoid runaway queries

  • Check collection size (estimatedDocumentCount)

  • Validate scripts before returning them (typeCheck)

The workflow looks like this:

  1. Identify relevant models

  2. Sample real data from your database

  3. Verify assumptions about fields and values

  4. Generate a script based on reality — not guesses

  5. Type-check it before returning

The key constraint:
These tools are for exploration only - the final script still runs independently against your database.

🧠 Higher One-Shot Accuracy

Less back-and-forth, more “that just worked”.

In personal testing, Agent Mode has been a big step up: ~40% → ~85% one-shot success rate.

That means fewer iterations fixing incorrect assumptions and less manually fixing up scripts.

It turns Chat from “a decent starting point” into something much closer to a reliable workflow tool.

⚠️ Early Days (On Purpose)

Small surface area, deliberate design.

Right now, the toolset is intentionally minimal. Just enough to look at real data and avoid bad assumptions.

The next couple of tools we’re adding:

  1. Dry run mode. Run the script in a transaction automatically and abort the transaction when the script is done. A quick way to test with minimal risk.

  2. Geocoding. Imagine you have a Restauraunt model, you can tell the chat tab to “add a new restauraunt at 1234 Sample Rd, Pompano Beach, FL” and the agent can automatically convert the address to a lat/lng for you.

If you try Agent Mode, I’d especially love to hear:

  • Where it works great

  • Where it still guesses wrong

  • What tools you wish it had

Jump into Discord or open a GitHub issue - a lot of this direction is being shaped in real time.

Keep reading