Frequently asked questions

Short answers about running agents against MongoDB. Ask the maintainers in Discussions.

What is Argon?
Argon gives AI agents disposable MongoDB sandboxes. Each agent run gets a real MongoDB database forked from your data; you review what it changed, then merge or discard it. Underneath it is Git for MongoDB: an MIT-licensed, self-hosted versioning layer with branching, time travel, reviewed merge and per-actor undo. Explore the features.
Is Argon Git for MongoDB?
Yes. Argon keeps a history of your MongoDB documents that you can branch, diff, merge, read at an earlier position and undo, with commands that mirror Git: argon branches create, argon diff, argon merge preview, argon undo. A sandbox for an agent run is a branch checked out as a real MongoDB database, much as a Git worktree is a branch checked out in its own directory. Unlike Git there is no commit step: a running capture process records each change. Git and Argon side by side.
How do I give an AI agent a MongoDB sandbox?
Create a sandbox and hand its connection string to the agent. From the CLI, argon sandbox create -p <project> --ttl 1h forks a branch, checks it out into its own MongoDB database and sets an expiry. Agents connected through the MCP server or the REST API create sandboxes themselves, and that server manages capture and expiry. The agent uses an ordinary MongoDB driver. Connect an agent.
What is the difference between a code sandbox and a data sandbox?
A code sandbox such as E2B, Modal or Daytona isolates the machine that agent-written code runs on. It does not contain writes that the code sends to a database over a connection string. A data sandbox is an isolated, disposable copy of the database for one run, with a record of what changed and a way to merge or discard it. Argon is a data sandbox for MongoDB; the two are used together. Code sandbox vs data sandbox.
Is there a Neon-style branching workflow for MongoDB?
Yes, with differences. Argon adds branches, retained-history reads, reviewed merge and undo to MongoDB. It is a self-hosted engine, not a managed service, and a branch must be checked out into a physical MongoDB database before drivers can query it, which takes time and storage in proportion to the data. Branching tools compared.
How do I review conflicting MongoDB changes from two AI agents?
Give each agent its own sandbox from the same pinned state, then preview the merge of each. The first plan applies cleanly. The second reports a conflict for every document both agents changed, with both versions, and nothing is merged until you choose a strategy or discard the run. Conflicts are never resolved silently. Two agents, one document.
How do I clean up MongoDB sandboxes with a TTL, and who runs capture?
Every sandbox has a time to live, one hour by default, set with --ttl. The next sweep after it expires removes the sandbox; a running MCP server or REST service sweeps and captures for you, and with the CLI alone you run argon watch and schedule argon sandbox sweep. argon sandbox discard removes a sandbox at once, and argon sandbox keep removes its TTL. A TTL does not stop the agent process. Sandbox commands.
Is this Argon related to Argon2 or Argo CD?
No. Argon here is the open-source MongoDB tool from Argon Labs. Its CLI is installed as the argonctl package and run as argon. It is unrelated to the Argon2 password-hashing algorithm and its command-line utility, and to the Argo projects for Kubernetes. The Argon CLI.
How is a branch different from a database dump?
A dump is a standalone copy without history. A branch is metadata in Argon's log; checkout turns it into a real database when you need one. How database branching works.
Can I use my existing driver?
Yes. argon checkout materializes a branch and prints a MongoDB connection string. Drivers, mongosh and Compass connect to that database. Keep capture running while you write so the changes are recorded. Start locally.
Does Argon work with MongoDB Atlas?
Yes, as the database Argon imports, follows and writes back to. Run the engine on a replica set you manage and point argon import database --online at the Atlas connection string. It is tested on free M0 and dedicated M10 clusters with least-privilege custom roles. Running the engine itself on Atlas is not tested. Atlas roles and limits.
What are the requirements?
Use a MongoDB replica set, including a single-node local set, or a compatible Atlas deployment. Change streams do not work on a standalone mongod. Exact pre/post images and the necessary MongoDB permissions are required for supported restoration. Run argon doctor before a workload. Set up MongoDB.
Are branches an access-control boundary?
No. Each experiment writes to its own database and nothing reaches the target until a reviewed merge is applied, but access isolation comes from MongoDB credentials and network controls. Operating limits.
Can I limit what an agent's database connection can reach?
Yes. Create the sandbox with argon sandbox create --credential, or credential=True in the Python SDK. Its connection string then carries a MongoDB user that can read and write only that sandbox's database, and discarding or sweeping the sandbox revokes the user. Sandbox commands.
Can every change be undone?
Changes captured with complete images, within retained history. Undo filters by the actor label of a branch, so give each agent its own branch. Capture and attribution.
How far back can I time-travel?
As far as history is retained. A pin keeps the state it names from being reclaimed; a reclaimed position returns an error, not a partial answer. Time travel and backups.
Can Argon import a database that is in use and keep up with it?
Yes. argon import database --online copies a replica-set database while your application keeps writing to it, and argon source follow keeps main current, so each sandbox forks from recent data. It is tested with MongoDB 6.0 to 8.0 and Atlas, not with sharded clusters. Following a database in use.
Can Argon write a reviewed change back to the database it follows?
Yes, from the CLI. Review the plan, optionally run argon merge check to catch unique-key collisions, then pass the plan's approval digest to argon merge apply --write-back. The write is one transaction: without a matching digest, or if a document changed on the source since the review, nothing is written. Write a reviewed change back.
How fast is branching?
Creating a branch writes metadata and copies no documents. Checkout, historical queries and storage cost more and depend on the dataset. Reproduce the benchmarks.
How do I install Argon?
CLI: npm install -g argonctl@2.12.0 --allow-scripts=argonctl, or brew install argon-lab/tap/argonctl. Python SDK: python3 -m pip install "argon-agents[langgraph]==0.3.0", in a virtual environment. Run the full setup.