r/mlops • • 1h ago

Discussion Is there a LeetCode for agent engineering? Where do you prove you can build production AI systems?

2 Upvotes

I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once. I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once.


r/mlops • • 1h ago

Discussion HIPAA doesn’t mandate bare metal, so why did our compliance team still pick it over a cloud BAA for LLM inference?

2 Upvotes

HIPAA doesn't actually care whether you're on shared cloud or bare metal. The Security Rule is tech-neutral. As long as you have BAAs with every vendor touching PHI, a documented risk analysis, audit logging, and proper access controls, either setup works.

Quick heads up on retention too: OpenAI keeps API inputs and outputs for up to 30 days by default for abuse monitoring. Zero Data Retention isn't automatic, you have to get approved for it, so double-check your actual agreement instead of assuming it's turned on.

When we worked through this, we looked at three routes. A ZDR API is the easiest to run since you're just relying on their BAA and SOC 2 once ZDR is enabled. A HIPAA-eligible cloud VPC gives you more control, though you end up spending a lot more time walking reviewers through the shared responsibility model and your own IAM and logging configs.

We went with owned bare metal bought through B3IQ. They signed a BAA with us covering their facility access (they don't have their own SOC 2 yet since it's still in progress, so we aren't leaning on that). HIPAA didn't force us off a shared hypervisor, it just made the audit conversation way shorter. Instead of picking apart a huge VPC setup, we can just point to the box and show who has the keys.

Honestly though, if your PHI volume is low and you don't have the ops bandwidth to manage physical hardware, a HIPAA-eligible cloud VPC is probably the better call. Bare metal only really makes sense if you're already set up to own that layer.

Did your compliance team actually push back on shared hypervisors, or did it mostly come down to BAA language and logging?


r/mlops • • 9h ago

MLOps Questions For a 12 YOE DevOps/Platform Engineer what is a good road map to get into ML Ops?

4 Upvotes

Currently reskilling and trying to level up my skills for a new job after being laid off from my previous company. I have 0 background in Machine Learning Theory, other than a basic understanding how transformers, LLM's work. Prototypes I have worked on:

- Simple Document RAG with PG Vector

- GraphRag with Neo4J

- Some AI Agents that I wrote in Python (with Pydantic AI). Like a Flight tracker for a group of friends, a Terraform Version/Provider upgrader, etc.

What would you guys recommend that I focus on learning? I'm currently trying to brush up my Kubernetes knowledge as I'm very rusty with it. Very knowledgeable in the big three cloud platforms, containerization, Terraform, CICD, etc. Not sure how to tackle this since I don't have professional experience with this but I do have 12 YOE as a DevOps, SWE.


r/mlops • • 1d ago

Discussion Everyone seems to say fine-tune last. Has fine-tuning an open model ever beaten good RAG for you?

2 Upvotes

The standard advice seems to be: prompt first, add RAG, and fine-tune only if you have to.

I handle it with a prompt and the docs myself (I run coding agents on a big legacy Qt/C++ codebase). The model is often wrong about my niche product, so my agents must cite a snapshot of the product docs.

But I understand that some teams got better results for less money by fine-tuning a smaller open-weight model.

Does anyone here have a real case where fine-tuning clearly won? What was the task, and was it worth the upkeep? By upkeep I mean retraining it and hosting it yourself


r/mlops • • 1d ago

Discussion What are the biggest bottlenecks in LLM inference?

5 Upvotes

I work mostly with Linux and IT infrastructure. Lately I've been reading more about LLM inference.

I'm wondering how much of the performance depends on the GPU itself. How often do things like memory bandwidth or PCIe become a real pro blem?

For people working with LLMs in production, what usually causes the most trouble? Is it something you can fix on the infrastructure side without touching the model?


r/mlops • • 1d ago

Discussion How are people actually using batch inference in production (especially with data residency)?

2 Upvotes

Batch inference is half the price almost everywhere now, but I’m trying to figure out how people are actually using it in production, especially when data residency matters.
A few things I’m curious about from people running this for real:
What kinds of jobs do you put on batch vs real-time? How big do the batches get in practice?
If your data has to stay in a specific region (EU, etc.), how much does that limit the options? Are you stuck with fewer models or slower queues?
What did security/compliance actually need to see before you could approve a vendor?
How did you even find the vendor you ended up using?
Would love to hear what’s working (or not) for people who are doing this at any real scale.


r/mlops • • 1d ago

MLOps Questions How hard does infra push back if you want 2-4 model checkpoints warm at once in production ?

0 Upvotes

Hi, I've been digging into multi-tenant model rollouts (mostly mid-sized vision/tabular classifiers, though curious about 7B-14B LLMs too) and keep seeing a gap between what ML teams want on paper and what platform teams will actually tolerate in prod.

On paper, keeping 2 to 4 recent checkpoints warm alongside a new release makes a lot of Day-2 stuff much cleaner: shadow dual-scoring on live traffic, per-tenant version pinning, or instant rollback when one site's metrics quietly drift. In practice, I'm trying to figure out where the real ceiling is before the K8s / GPU infra folks shut it down.

For anyone running Triton, KServe, Ray Serve, or vLLM in production across multiple customers or sites: If you need 2-4 checkpoints warm at the same time (or want to score the same request against multiple versions), what breaks first in your setup: VRAM budget, dynamic batching efficiency, or p95 latency?

Is multi-version serving basically a solved problem now with Triton/ModelMesh or multi-LoRA / shared-backbone head routing, or do those setups still create enough routing and cache headaches that most shops just enforce one active checkpoint per tenant and call it a day?

Roughly what model size is the cutoff where keeping extra versions warm stops being cheap?

Thanks


r/mlops • • 2d ago

MLOps Questions How do you keep eval runs from throttling production on a shared model API?

5 Upvotes

I told a teammate it was fine to run our invoice extractor's pre-release suite during the workday. A few people ended up running it at once and the production worker started getting 429s from the model API.

The dataset evals I run in Braintrust use a separate test key. After seeing the 429s, I checked the provider settings and saw that both keys belong to the same project and share its request quota.

I'm looking at giving tests their own provider project or putting a single rate cap across everyone's eval runs. I want to keep the suite runnable during the day.


r/mlops • • 2d ago

Self-promotion How do you guys actually use cloud GPUs? I'm trying to understand what's broken with the current experience.

1 Upvotes

Hey everyone,

I've been building an open-source runtime and a service around it that allows PyTorch to execute tensor operations on remote GPUs while keeping your Python environment local.

One thing I've realized while working on this is that my own frustrations with cloud GPUs might not necessarily reflect what other researchers and developers struggle with.

I'm curious about things like:

  • How much time you spend setting up environments versus actually running experiments.
  • Whether you find yourself paying for GPUs that aren't actively computing.
  • How much performance overhead you'd tolerate for a simpler development workflow.
  • Whether paying for actual computation rather than GPU rental time makes sense to you.

I've put together a survey to better understand these problems. Even if you've never used a cloud GPU service, your responses would be valuable.

Survey: https://docs.google.com/forms/d/e/1FAIpQLSevmNcJiRSjH_bAU1JM-9oEnvPPvL6zbrZrBtMY0PHqtSXOCg/viewform?usp=dialog

It takes around 5–10 minutes, and no sign-up is required.

Thanks!


r/mlops • • 2d ago

Self-promotion Building InferCrane, looking for early users and contributors

1 Upvotes

I've been building InferCrane, an open-source project focused on making open-weight models easier and more efficient to run.

The idea is to create an open-source lab where people can experiment with different models, GPUs, inference engines and optimizations, benchmark them on real workloads, and verify that performance improvements don't compromise output quality.

Ultimately, I want to make it possible to go from experimenting with an optimization to deploying it, whether through a hosted endpoint or your own infrastructure.

It's still early, and I'm building this solo. I'm looking for beta users, contributors and people willing to challenge the idea.

If you're working with open models, I'd love your feedback. What would make something like this genuinely useful to you?

GitHub: https://github.com/infercrane/infercrane

Beta: https://console.infercrane.com/sign-up

Discord: https://discord.gg/JQcgr4mPwg


r/mlops • • 2d ago

MLOps Questions GPU availability is only the beginning of the AI infrastructure problem

0 Upvotes

Running LLM workloads in production brings several infrastructure challenges that are not always obvious during initial setup.
Managing GPU resources across multiple workloads, handling deployment, monitoring utilization, and scaling without wasting compute can become quite complex.
i have been looking into platforms like neysa while exploring this idea, particularly how GPU infrastructure is managed for production workloads.
For those working with ML infrastructure, what's been the biggest headache: resource allocation, deployment, monitoring, or scaling?


r/mlops • • 3d ago

Self-promotion Running LLMs in production with vLLM and Kubernetes: book giveaway + 50% off

10 Upvotes

Hi r/mlops,

Stjepan from Manning here. We’re publishing Self-Hosting LLMs at Scale by Arek Borucki, and we have five ebook copies to give away here.

I’d be interested to hear from people running inference in-house: what passed your initial benchmarks but became a problem once other teams started using it? How did you change your tests afterward?

That’s the territory this book covers. It follows a law firm building an internal model service with vLLM and Kubernetes, starting with GPU memory estimates, hardware costs, and checking whether a model fits the workload and its licensing requirements.

The serving coverage gets into finding an endpoint’s capacity limit, quantization, and splitting models across GPUs or servers. The planned Kubernetes chapters cover quotas, traffic routing, monitoring, and safe rollouts, along with tuning vLLM against service-level objectives.

It’s still being written through Manning’s Early Access Program, so some of the coverage is forthcoming.

Book page: https://www.manning.com/books/self-hosting-llms-at-scale

To enter the giveaway, join the discussion in the comments. We’ll choose five winners based on their contribution to the conversation: useful experiences, thoughtful questions, or advice others can learn from. We’re looking for substance, not the number of comments. Winners will be contacted through Reddit. No purchase needed.

Manning has also provided a community code for 50% off: MLBORUCKI50RE

Thanks for sharing what you’ve learned, including the things that didn’t work. Looking forward to hearing how it’s going on your side.

Cheers,

Stjepan
Manning Publications


r/mlops • • 3d ago

(Gen)AI / Agents / LLMOps I stopped the tracing server under a running LLM app for 5 minutes. What 5 Python tracing SDKs did (Langfuse, Phoenix, Opik, MLflow, AcruxCore)

1 Upvotes

A self-hosted tracing server goes down sometimes: a deploy, a restart, a full disk. I wanted to know what that does to the app that sends it traces.

Setup: an async Python app makes 20 traced LLM calls a second to a mock model that answers in 100 ms. Each tool runs its own Python SDK at default settings, with the server from its official Docker Compose setup. The test has four 5-minute phases: healthy, down, slow (every answer from the server 5 s late), and healthy again. Each tool ran twice, and both runs gave the same result.

Disclosure: I build AcruxCore, one of the five tools. The harness and every raw reading are public, so you can rerun it.

SDK, default settingsTraces lost while downTraces lost while slowApp p99 added while down
Opik 2.2.1430%0%+5 ms
AcruxCore 0.24.00%0%+1 ms
MLflow 3.18.088%88%+1 ms
Langfuse 5.2.097%0%+0 ms
Phoenix (arize-phoenix-otel 0.17.3)App turned away 95% of requestsApp turned away all requestsAbout 10 minutes

What I found:

  • Phoenix's default register() sends each span on the app's own thread. With the server down, each send blocked the event loop for up to 10 s, so the app stopped serving. With batch=True the app's p99 rose by at most 1 ms, but it then lost 94% of the outage's traces.
  • Langfuse retries a batch for up to 5 s, then drops it. A 5-minute outage dropped almost every trace. It lost nothing while the server was slow.
  • MLflow's queue holds 1,000 traces and sends with 10 workers. The queue filled while the server was down. While the server was slow, MLflow could send about 2 traces a second, and the app made 20.
  • Opik writes failed sends to a local SQLite file and replays them when the server is back. It added 52 ms at p99 while the server was slow.
  • AcruxCore keeps failed spans in memory (20,000 by default, about 8 minutes at this load) and retries with a growing pause, up to 30 s.
  • No SDK raised an exception into the app's code, and no tool stored a trace twice.

Not tested: the Node SDKs, an app restart during the outage, hosted versions, and other request rates.

Write-up with the per-phase tables, recovery times and settings that change the result: https://acruxcore.com/blog/tracing-server-down

Harness and raw results: https://github.com/AcruxCore/AcruxCore/tree/main/scripts/blogs/tracing-server-outage

If your tracing server has gone down in production, what did your SDK do to the app?


r/mlops • • 3d ago

Discussion 7 things to check before deploying a machine learning model into production

4 Upvotes

hey everyone, sharing this here because I think it's relevant to what a lot of people in this community are working on.

training a model and getting good validation metrics is one thing. making sure it continues working reliably after deployment is a completely different challenge.

here are seven areas worth paying attention to:

1. Reproducibility

can you reproduce the same model using the same data, code and configuration?

2. Data validation

are you checking incoming data for missing values, unexpected formats and schema changes?

3. Model validation

are you evaluating performance on data that properly represents the production environment?

4. Deployment

is the model packaged and served in a way that's reproducible and maintainable?

5. Monitoring

are you tracking predictions, latency, errors and resource usage?

6. Drift detection

are you checking whether incoming data or model performance is changing over time?

7. Retraining and maintenance

do you have a process for investigating performance degradation and updating the model?

I came across a hands-on Production ML Engineering workshop by Packt happening on December 5, with practical coverage of deployment, monitoring, reproducibility, validation and drift.

it also covers scikit-learn, XGBoost, LightGBM, CatBoost and Streamlit.

thought it might be useful for people looking to strengthen their production ML skills.

Full workshop details and agenda

i found there's a 30% discount available with code RDT30 as well

curious which of these areas causes the most problems in your production ML workflows?


r/mlops • • 3d ago

Discussion why dont more devs host on distributed compute?

0 Upvotes

hello. i was looking into how cheap distributed compute services like salad is compared to other providers (nearly 60% in some cases) and was wondering why this type of compute hasn't had a mass adoption, or at least, why haven't i heard of it more often?

why aren't enterprises using it, or startups, or hobbiests? if you do or don't use it, im super curious as to why.


r/mlops • • 4d ago

Tales From the Trenches What would you check before booking GPUs for a migration?

2 Upvotes

I work at Nebius. Two recent GB300 write ups gave me a better idea of what a preflight check can actually catch

The first was an NGC PyTorch image

A six-minute scan on a CPU machine found it had NCCL 2.26.3 for a target that needed 2.27.5. Easy to fix before anyone books GPUs.

The second was a cross-rack run.

The error sent you looking for nvidia_peermem, but the actual failure was DMA-BUF registration. The team got it working with a newer SGLang image that bundled NIXL 1.4.0 or later and UCX_TLS=^cuda_ipc. They also verified DMA-BUF was the transport in use. That last check is the part I’d steal for a smoke test.

My takeaway is to check architecture, libraries and kernel targets from the image, then do a small run across the fabric you’ll actually use. If you’ve moved a workload to a new GPU generation, what’s one failure you now check for every time?


r/mlops • • 4d ago

Discussion The self-hosting-is-cheaper argument has one number in it that nobody states: how many tokens a day you need to keep the GPU busy

0 Upvotes

Every time this comes up, someone says just self-host, it is cheaper, and then they skip the one number that actually decides it.

An API bills you per token, so an idle API costs you nothing. A GPU bills you per hour whether it is flat out or doing absolutely nothing. So self-hosting does not win on price per token, it wins once the GPU is busy enough to beat whatever the API would have charged you.

The math is rough but it is enough to see the shape. A small embedding model runs about $0.02 per million tokens on the API, so a billion tokens is around $20 and ten billion is around $200. An A10G is roughly a dollar an hour, so call it $24 a day before any cluster overhead.

Put those together and the crossover sits somewhere around 1.2 billion small-model tokens a day. Under that, your GPU is half asleep and the API is honestly cheaper. Over it, the flat GPU cost starts winning and keeps winning as you grow.

Two things move the line your way. Small models cross way earlier than a 32B ever would, and embeddings, reranking and extraction cross first because they fire on every single query and every reindex multiplies them.

The cost nobody writes into the spreadsheet is ops. That busy GPU still has a human awake at 2am when it falls over.


r/mlops • • 4d ago

Career Is this AI Engineer take-home assignment excessive, or is this the industry standard?

14 Upvotes

Hey everyone,

Apologies for posting here the ai engineering subreddits are restricted and I need some feedback on the below ASAP.

I recently had an interview for an AI Engineer position and received a technical take-home assignment following a successful initial interview.

I'm interested in hearing from people working in AI engineering about whether the scope of this assignment is reasonable for a recruitment exercise.

The objective is to build an agentic AI assistant capable of answering regulatory and compliance questions about the EU AI Act, using both the original and consolidated versions of the regulation available on EUR-Lex as its knowledge base.

I've anonymised and summarised the assignment below.

Part A – Data ingestion and indexing

- Develop a repeatable ingestion script that downloads or loads both the original and consolidated versions of the EU AI Act from EUR-Lex.

- Parse the HTML documents into their logical units, including recitals, chapters, sections, articles, paragraphs and annexes.

- Implement structure-aware chunking, attaching metadata to every chunk, including document version, unit type, article or annex number, title and source URL.

- Generate embeddings and store them in a persistent vector database.

- Ensure ingestion is idempotent and does not create duplicates.

- Document and justify the chunking strategy.

Part B – RAG pipeline

- Build a retrieval and answer-synthesis pipeline using a RAG framework.

- Provide precise citations to individual articles, paragraphs, recitals or annexes, including document versions.

- Handle questions that cannot be answered using the retrieved context without hallucinating.

- Implement metadata filtering.

- Optionally implement hybrid search, re-ranking or query rewriting and measure the improvements.

Part C – Custom MCP server

Develop a local MCP server exposing tools with typed input schemas and structured outputs.

Three mandatory tools:

- Semantic search across the AI Act with metadata filtering and citations.

- Exact retrieval of specific articles or annexes.

- Classification of AI use cases into regulatory risk categories, with supporting citations and confidence levels.

Implement at least two additional tools from the following:

- Retrieve regulatory obligations based on role and risk category.

- Compare provisions between the original and consolidated versions of the AI Act.

- Extract regulatory implementation timelines dynamically from the legislation rather than hardcoding dates.

- Search for relevant academic research papers through the arXiv API (bonus).

Part D – Agent orchestration

- Implement an agent using an agentic framework.

- Connect to the custom MCP server through an MCP client.

- Dynamically discover available tools.

- Allow the agent to autonomously select and chain multiple tool calls.

- Maintain conversational state for follow-up questions.

- Trace tool calls, including inputs, outputs and latency.

Part E – Interface and evaluation

- Implement a CLI or lightweight web interface.

- Create an evaluation dataset containing at least 15 questions with expected source articles or annexes.

- Include at least three out-of-scope or unanswerable questions and demonstrate appropriate refusal behaviour.

Examples of questions the system should handle

- Which AI practices are prohibited under the AI Act?

- Would an AI-powered recruitment screening system be classified as high-risk?

- What transparency obligations apply to customer-facing chatbots?

- Have specific regulatory provisions changed between the original and consolidated versions?

- When do obligations for general-purpose AI models come into effect?

- How does the classification of an AI use case change when human oversight is introduced as a follow-up condition?

Expected deliverables

- Source code repository with a clean commit history.

- Comprehensive README with setup instructions and justification of technical decisions.

- System architecture diagram.

- Evaluation report containing metrics, failure cases and potential improvements.

- Presentation and demonstration during the technical interview.

- Containerisation as a bonus.

AI coding assistants are permitted, but candidates must be able to explain every part of their implementation during the subsequent interview. Any costs incurred through APIs or other services are the candidate's responsibility.

I understand the importance of demonstrating practical AI engineering skills, and I actually find the project quite interesting. However, the combined scope feels more like a substantial proof-of-concept project than a typical technical assessment, particularly when completing it alongside a full-time job.

I'd appreciate your perspective:

- Is this a reasonable take-home assignment for an AI Engineer position?

- How many hours would you realistically expect an experienced AI Engineer to spend on this?

- Are assignments of this complexity becoming standard in AI engineering recruitment?

- Would you complete the entire assignment or timebox it and document the remaining work?

I'm genuinely trying to understand whether my expectations are misaligned with the industry or whether this assignment is unusually demanding.

Thanks in advance!


r/mlops • • 4d ago

Career Mern to mlops?

1 Upvotes

Hi am in 3semester recently completed mern friend advicing switiching to mlops seeing the job market and future say whats your call and do guide me too okay to maths


r/mlops • • 4d ago

MLOps Questions When a model gets pulled from Hugging Face for malware, how do you find the GPU machines that already downloaded it?

1 Upvotes

Disabling the repo on the Hub doesn't touch copies people already pulled. They stay in ~/.cache/huggingface/hub on each machine, one snapshot folder per revision. Do you run hf cache ls on every GPU host, keep an allowlist of repos and revisions, or only download through an internal mirror you can search?


r/mlops • • 5d ago

Discussion How are teams catching silent threshold drift and borderline call flips after a classifier update without relabelling every release?

2 Upvotes

Hi , I posted a question before this is from same research area but in different domain. I've been studying what happens on Day 2 when a shared classifier gets updated sequentially across multiple distinct sites or environments, and one failure mode keeps jumping out that seems like it would be brutal in a SOC, fraud, or abuse-detection pipeline.

Say you run a malware, phishing, or fraud classifier (either an internal model or a vendor-pushed update) wired into a fixed operating cutoff, say 0.72 to auto-escalate or page an analyst. A new model release ships. Global ranking metrics (like AUC) look completely fine, sometimes moving by less than 0.002.

Yet under the hood, two things can happen at the same time:

  1. Operating thresholds silently break. The score distribution shifts or stretches per environment, so your old 0.72 cutoff is suddenly sitting in the wrong place, either flooding the queue with false positives or quietly letting real misses slip through. In our controlled multi-site medical imaging testbed (sequential updates to a shared model across 4 distinct sites), raw model updates accumulated ~0.14 excess operating-point error relative to an ideal threshold, even when overall ranking looked acceptable.
  2. Flat averages hide heavy borderline churn. Even on raw updates where headline AUC barely budged (< 0.002), roughly 10% of positive–negative case pairs still changed rank order, and across raw releases about 16% of individual cases flipped decisions (~8% going from right to wrong and ~8% wrong to right).

(Full transparency: my experiments are in a multi-site medical imaging research testbed, not a live SOC. I'm extrapolating to security/fraud because both share the same painful constraint: multiple distinct environments, fixed operational cutoffs, and scarce or delayed confirmed labels.)

For detection engineers, SOC leads, and ML/MLOps folks running classifiers in production—especially across multiple tenants, business units, or customer environments:

  1. Can you actually gate model updates, or do they land silently? If you rely on vendor ML detections (EDR, email, SIEM), do you even get versioned updates you can test in shadow mode, or do you only notice a shift when alert volume spikes or an incident slips past?
  2. How do you catch threshold drift without fresh labels every cycle? Do teams pin cutoffs to a fixed alert-volume percentile (e.g., top X alerts/day), score against a frozen golden dataset, or run dual-scoring in shadow mode before promoting?
  3. If you use a golden eval set, how do you keep it from going stale or overfitting? Repeated accept/reject checks on small labelled sets leak optimism fast, and fresh confirmed labels (especially true false negatives) are expensive or delayed.
  4. What's the bigger operational nightmare in your setup: a sudden spike in false-positive alert fatigue, or silent recall loss where alert volume stays steady while a different slice of traffic starts slipping through?

Trying to understand how mature teams handle this Day-2 release-gating layer in the real world, whether there are standard production patterns here, or if most shops are mostly re-tuning reactively after something breaks.


r/mlops • • 5d ago

Discussion multi provider LLM routing and fallbacks with Unity Gateway

1 Upvotes

MLOps teams running Unity Gateway in prod in dbx platform , how are you handling model fallback , cost attributions , and latency spike across external LLM providers without adding extra proxy overheads?
Any hands on exp ?


r/mlops • • 5d ago

Discussion Does anyone use autoresearch loops in their daily workflows?

1 Upvotes

In february there was a boom in autoresearch like karpathy's auto loops and other open source loops coming on github. But lately seems like the hype has ended. Does anybody still use those agentic loops in their daily workflows. If no, then why not? What challenges did you encounter when using it?

P.S: I am making a mcp for tabular autoresearch runtime.


r/mlops • • 7d ago

Self-promotion Measuring the long-term memory of the leading coding agents: Claude Code vs Codex vs Devin

1 Upvotes

Disclosure: I'm the CEO of past.dev, our team ran these tests.

Developers keep long conversations going with their coding agents for days or weeks, which makes memory a central driver of their ability to execute tasks. It is also a central driver of cost: every token an agent reads to remember something is a token you pay for, on every task.

The past.dev team tested the memory of the 3 leading AI coding agents, Claude Code, Codex and Devin, each using its own harness and built-in memory, on DolphinBench's 600 tests.

Our results show that Devin has the best built-in memory of the three: Devin Memory scored 84.7%, ahead of Claude Code on Opus 5.5 (76.2%) and Codex on Sol 6.1 (66.3%).

Adding our past.dev plugin on top of their built-in memory lifted Claude Code to 89.7% and Codex to 85.8%. Devin, with past.dev, scored 93.2%, the top score in our runs. On Claude Code and Codex, past.dev also cut the cost per passed test by 41% and 54%.

Why memory matters for coding agents

Engineering is more than code. Engineers use their coding agent to plan migrations, fix bugs, write specs, answer teammates or post release notes. Much of what the agent needs to get things right is not in the codebase: it lives in Slack, meeting transcripts, emails, etc.

The agent needs things that might have been said by a team weeks, months or years ago. And when your agent forgets, you have to catch the mistake and fix it, which can be frustrating and costly to the whole company.

DolphinBench, an open benchmark from mem0, is built to measure and catch these things. Most memory benchmarks ask questions on a large corpus and grade the answers. Asking an agent about a specific rule or data point is now pretty easy with frontier models and simple search techniques.

DolphinBench measures the actions agents take instead of what they find. It follows the work and personal life of three simulated people through nearly five years. Each test gives the agent a request, a set of working apps (email, Slack, Discord, calendar, a CRM), and checks what it does with it.

DolphinBench's paper mostly tests memory systems inside their own reference agents but we decided to run it end to end directly through the leading coding agents instead. Every agent built its own memory from the exact same 13,539 messages, then underwent the exact same 600 tests in fresh sessions, graded by the exact same judge.

Built-in memory results

AgentBuilt-in memoryModelScore on 600 tests
DevinDevin MemoryDevin's medium model84.7% (508)
Claude CodeAuto-memoryOpus 5.576.2% (457)
CodexMemory v2 (Codex 0.165)Sol 6.166.3% (398)

Each coding agent leveraged its own built-in memory as it would with any real user. Our team replayed the exact same 13,539-message history on each agent, then tested the 600 test questions in fresh sessions. Every agent was given the exact same history, questions, and tools.

Codex's recent Memory v2 upgrade showed significant gains. On Sol 6.1 it scored 16.7 points above Memory v1 (49.7%).

Why Devin's memory wins

According to Cognition's own write-up: Devin Memory is personal to each user and consolidated daily, a process Cognition calls "Dreaming." Each memory links back to the session it originated from and Devin reopens that session when it needs the details.

Adding past.dev on top

On Claude Code and Codex, past.dev didn't replace the built-in memory but ran on top of it as a plugin. Before each request, the plugin recalls the memories that are most relevant to the task. The agent can then call past.dev to search for more. The built-in memory keeps working and past.dev is added on top.

AgentOwn memoryOwn memory + past.devAdded by past.dev
Claude Code (Opus 5.5)76.2%89.7%+13.5 points
Codex (Sol 6.1, Memory v2)66.3%85.8%+19.5 points
Devin (Devin's medium model)84.7%93.2%+8.5 points

On Codex, across both models we tested, past.dev reduced input tokens by 41 to 55% and more than halved the cost per passed test. On Claude Code with Opus 5.5, past.dev cut input tokens per test by 41% (193,811 → 114,020) and cost per passed test by 41% ($0.449 → $0.264), in the same run as its 89.7% score.

Devin with past.dev scored 93.2% (559 of 600). Speed is similar: a median of 62 seconds per question, against 65 seconds with the built-in memory only.

Testing method

All tests were completed with the same 600 questions in DolphinBench. Only the memory changed between runs of the same agent.

The benchmark was designed by mem0 and consists of 600 questions, 200 per person (Morgan, Alex, Riley). Questions are based on a history of 13,539 messages: 339 are memory questions and 261 require document generation based on memory.

Answers were graded by the official grader in DolphinBench: gpt-5.6-sol with medium effort.

Each agent built its own memory from the replayed history, as it would for a real user. Devin used its medium model on Devin cloud, Claude Code used Opus 5.5, and Codex 0.165 used Sol 6.1 with Memory v2.

Each test is run in a new session. All agents have access to the same tools within the app.

Limitations

All tests were run by members of the past.dev team. This includes replaying the history and applying the official grader.

These results are not submitted to the public leaderboard in DolphinBench. We load memory and tools differently from the official leaderboard. These results should be compared to each other, and not to any results given in the public leaderboard. Token usage was not returned by the Devin API, so we can only report speed.

Full write-up: https://past.dev/blog/claude-code-vs-codex-vs-devin-memory