# Cognition and MongoDB partner to modernize enterprise infrastructure in months, not years | Devin

The integration brings Cognition's Devin AI agent into MongoDB's Application Modernization Platform to automate rewriting legacy code, queries, and data access layers.

- Devin rewrites business logic and data access layers while AMP migrates and validates data into MongoDB Atlas.
- In early joint testing, migration tasks that took five to six hours took just over an hour.
- The integration is available immediately for joint MongoDB and Cognition customers.

## Why it matters

Engineering teams migrating legacy applications to MongoDB Atlas can automate complex code refactoring instead of rewriting data access layers by hand.

## Sources

- [Devin: Cognition and MongoDB partner to modernize enterprise infrastructure in months, not years | Devin](https://devin.ai/blog/devin-for-mongodb-modernizations)

---

Summarized by dstilled on 2026-09-29. https://dstilled.ai/story/7f85cc4f-911c-4219-8473-5df862e03819
