AI & Machine Learning

Why I'm Starting to Believe AI Can Actually Help With Hard Problems, If We Build It Right

A

Adil Sher

Author

Nov 9, 2026
5 min read
1 views
Why I'm Starting to Believe AI Can Actually Help With Hard Problems, If We Build It Right

Last month, I was debugging a payment integration that had been causing intermittent failures for months. The pattern was there in the logs the whole time, certain user segments, specific timing conditions, an old API deprecation nobody had connected to the failures. A colleague pulled up three years of incident reports, and suddenly the answer was obvious. I remember thinking: why didn't we have a system that flagged this before it broke production?

That's the kind of thinking behind TrialSleuth, an AI agent built to catch drug safety risks before human trials begin. And I have to say, reading about it shifted something in how I think about what AI agents can actually do when we stop treating them like chatbots and start treating them like systems with real memory.

The Problem With Forgetting Everything

Here's what bugs me about most AI tools I've used: they're amnesiacs. You paste context into a chat, get an answer, and the moment you refresh or ask a follow-up question, it's gone. Ask ChatGPT to review a drug safety concern and you get something generic-"monitor liver function, watch for interactions"-because the LLM has no idea what happened last time this exact scenario came up.

A real expert doesn't work like that. They remember the case from 2019 where a similar molecule damaged the liver. They know which interactions bit you before and which warnings actually mattered. Memory compounds expertise over time.

TrialSleuth flips this. It uses Hindsight, an agent memory system that doesn't just store conversations, it actually learns. Every past drug review, every outcome, every lesson gets retained and recalled when a new drug comes in for evaluation. The agent can cite specific past cases (with traceable IDs) and explain its reasoning against real evidence, not just plausible-sounding advice.

How Real Memory Changes the Game

The technical choice here fascinates me. Instead of RAG (retrieval-augmented generation) or a basic knowledge graph, they built on Hindsight's learning-focused architecture. The agent performs four core operations:

Create a memory bank. Retain observations with precision, doses, percentages, outcomes, what worked to fix problems. Recall relevant history for each new case. Reflect to identify patterns across all stored cases.

The requirement that every claim cite an ID (HB-02 for a body fact, PC-102 for a past drug) is intentional friction. It forces traceability. You can't just hallucinate a plausible warning, the system demands you back it up with something you actually learned before.

This matters in regulated domains. In pharma, you need to defend every decision. In fintech, banking, healthcare, anywhere the cost of being wrong is catastrophic, you need systems that don't just sound confident; they need to prove they're not making things up.

What This Actually Means for Developers

Here's my honest take: this is one of the few AI agent projects I've read about in the last year that tackles a real problem in a way that makes sense.

Most AI projects I encounter fall into two camps. Either they're replacing human judgment where human judgment actually matters (bad idea), or they're augmenting it in ways that don't require the AI to be right, just useful (good idea). TrialSleuth is firmly in the second camp. It doesn't declare drugs safe. It flags known risks so experts can design them out before dosing begins.

The reliance on Hindsight is smart but also tells me something about the state of agent memory, it's not baked into standard LLM tooling yet. If this approach works at scale, I'd expect to see the memory patterns they've built become standard practice.

I'd want to know more about failure modes, though. What happens when the recalled past case is almost similar but not quite? How does the agent weight conflicting evidence? And honestly, how much of the safety improvement is coming from the agent and how much from forcing the development team to formalize their input in a structured way? That structure alone might catch things.

The Code Isn't the Interesting Part

I could show you the Python integration with Hindsight's API, but it's straightforward. What matters is the architecture: memory operations that track what worked and didn't, traceable citations, and reflection that builds on accumulated knowledge.

The interesting part is the discipline it enforces on a domain where memories live scattered across old reports, people's heads, and lessons nobody formally documented.

What Comes Next

I'm genuinely curious whether approaches like this will migrate beyond regulated industries. Could you build a version that tracks customer payment failures? Deployment incidents? Security vulnerabilities in your dependencies that sometimes interact in unexpected ways?

The constraint is real memory cost and the need for structured observation. But in production engineering, we're drowning in structured data anyway.

What problems are you working on where you keep hitting the same failures because the context got lost?

Source: This post was inspired by "Catch the Risk Before the First Dose - Building an AI Drug Safety Reviewer That Remembers" by Dev.to. Read the original article

Written by Adil Sher

Full stack developer building high-traffic platforms, AI services, and custom web applications. Explore my portfolio, learn about my background, or get in touch.

Related Articles

Why I Finally Stopped Trusting LLMs to Summarize My Documents
AI & Machine Learning Nov 8

Why I Finally Stopped Trusting LLMs to Summarize My Documents

Last month, I watched a financial audit report lose a transaction ID. A contract number just... vanished. The LLM had read it, understood it, but when it summarized the chunk, that specific fact didn't make it to the final output. My team caught it during QA, but the thought that...

I Got 6 AWS Certs and All I Got Was This Lousy Appreciation for Trade-offs
AI & Machine Learning Nov 6

I Got 6 AWS Certs and All I Got Was This Lousy Appreciation for Trade-offs

Last year, I watched a colleague spend three months cramming for AWS certifications. Every morning, he'd show up with dark circles, talking about memorization tricks for RTO vs RPO, debating whether to use RDS or DynamoDB in hypothetical scenarios that bore zero resemblance to ou...