Project reflection7 min read

Autonomous AI agent case study: building Mentova end to end

This autonomous AI agent case study is about Mentova, the product I founded and build: a trader uploads a chart, and an agent reads it, plans a visual narrative, calls generation tools, checks its own output and re-plans until the animated explainer is right. It is live in production and used by real traders across multiple trading communities. The model calls were never the hard part. The hard parts were the evaluator, the async plumbing around a long-running job, and a loop that makes the agent better every week.

Most pages that rank for this topic are lists of company names with a headline metric, or vendor explainers that describe a perceive, decide, act, learn loop in four bullets. Neither tells you what it takes to run one. This is the version I wish I'd read before I started: the problem, what I built, why an agent was the right call, and what I'd change next.

The problem: a screenshot freezes the story

Charts are never static. A trade is a sequence: a setup forms, liquidity gets taken, structure shifts, the entry triggers and price runs to target. A screenshot shows only the end state, so the reasoning (the part that actually teaches) disappears.

Traders who wanted to show that reasoning had one option: edit video by hand, trade after trade. That doesn't scale for someone who takes several setups a week, and their expertise ends up buried in a feed of identical images.

So the product goal was simple to say and hard to build. Turn every uploaded trade into an animated explainer that replays the setup step by step, branded to the trader, with no manual editing between upload and delivery. Mentova's explainers are education about how a setup played out, not trading advice, and nothing in this post is either.

Why an agent and not a fixed pipeline

I default to fixed pipelines. Anthropic's guide to building agents draws the same line I use: a workflow follows code paths you wrote in advance, while an agent decides its own next steps at runtime, and you should reach for the agent only when the steps can't be predicted up front.

Mentova falls on the agent side of that line for one reason. Every chart is a different trade with a different set of key moments, so the number and kind of scenes isn't known until the chart has been read. A template with fixed slots either crams a complex trade into too few scenes or pads a simple one. The agent has to read the chart first, then decide what story it tells.

The second test is whether a machine can check the output. If it can't, an agent is just a loop that rephrases its own mistakes. That's why the evaluator came before most of the autonomy, and why every clip still gets owner review before it ships.

What I built: the loop at the heart of this autonomous AI agent case study

Here is the system at the level I can share, from upload to inbox.

fail

pass

failed generations and lessons

updates

Trader uploads a chart

Authenticated async order, persisted and tracked

Read: identify the setup and its key moments

Plan: the visual narrative, scene by scene

Generate: call tools to build the scenes

Evaluate against quality checks

Adapt: re-plan and regenerate

Owner review

Delivered to the trader and saved to their library

Weekly improvement loop

Read. The agent interprets the uploaded chart and identifies the setup and its key moments. Everything downstream depends on this step: a misread moment produces a well-made scene that explains the wrong thing.

Plan. It turns those moments into a visual narrative: which scenes, in which order, telling which part of the trade. The plan is the contract the evaluator checks against later.

Generate. It calls generation tools to build the scenes in one of four layouts: Single, Recap, Fractal and Trade Breakdown. One trade engine drives all four, so a layout is a different way of telling the same trade rather than a separate pipeline.

Evaluate and adapt. The agent checks its own output against quality checks. When a check fails, it re-plans and regenerates instead of shipping a near miss. This is close to what Anthropic calls the evaluator-optimizer pattern, one step produces and another critiques, except the critique feeds back into the plan, not just the last draft.

Deliver and keep. A finished explainer goes to the trader and into their personal library. Over time each trader builds an archive of the setups they take, which is the part that turns one-off clips into a body of work.

The infrastructure nobody puts in the diagram

Vendor explainers stop at the reasoning loop. In production, the loop runs inside a job that can take a while, can fail halfway and has a paying customer waiting on the other end.

Mentova runs every request as an authenticated, stateful async order with scheduled orchestration, persistent tracking and automated fulfillment. Three things fall out of that design:

  • A run survives restarts. Because the order's state is persisted, a deploy or a worker restart doesn't lose the trader's request. Work held only in memory would.
  • Every order has a status. Persistent tracking means I can answer "where is my clip?" without reading logs, and so can the system that fulfills it.
  • Delivery is automatic. Fulfillment runs from upload to inbox with no manual step except the owner review gate, which is deliberate.

If you're building your first agent, I'd budget as much time for this layer as for the prompts. The Sutherland explainer is one of the better-ranking pages here, and it lists monitoring and debugging complexity as a limitation of autonomous agents without saying what to do about it. Most of the answer is ordinary backend engineering: durable state, idempotent steps, clear status, and a queue you can inspect.

The evaluator decides how autonomous the agent can be

An agent is only as autonomous as its checks are trustworthy. The order I follow when designing an evaluator is cheap and certain first, expensive and fuzzy last: structural checks that code can decide, then model judgment only for the questions code can't answer, such as whether a scene actually explains the moment it was planned for.

Mentova layers two gates on top of each other. Automated checks run inside the loop and drive re-planning. Owner review runs before anything ships. I've kept the human gate even as the automated checks improved, because a clip carries the trader's brand. A wrong explainer published under their name costs more than the minutes a review takes.

The design principle I'd pass on: let the automated checks decide whether the agent tries again, and let a person decide whether the result goes out, until you have evidence the checks agree with that person. The earlier post on building an LLM evaluation harness covers how to gather that evidence with a golden set and regression gates.

Closed-loop evaluation: how the agent improves every week

The runtime loop fixes one run. It doesn't make the next run better. For that, Mentova has a closed-loop evaluation harness: it aggregates failed generations and the lessons learned from them, and applies improvements to the pipeline every week.

That cadence matters more than any single fix. A failure that shows up once is noise. A failure that shows up across many traders' charts in the same week is a pattern, and it gets turned into a better plan, a better tool or a new check. The agent gets better on its own schedule, without me waiting for complaints.

Salesforce's guide describes autonomous agents that learn and improve over time, and stops there. In practice, "the agent learns" should mean something you can point at: a list of failures, a change made because of them, and a check that would catch the regression. If you can't name the change, the agent didn't learn.

Results, stated carefully

Here is what I can say about outcomes, and nothing more:

  • Mentova is live in production and used by real traders across multiple trading communities.
  • The agent takes a trade from upload to a finished, branded explainer with no manual video editing.
  • Every explainer is saved to the trader's library, so each trade becomes content that teaches and markets their expertise.
  • Every clip passes automated checks and owner review before it ships, and the pipeline improves every week.

You'll notice there's no deflection rate or percentage here. Several of the case-study roundups that rank for this keyword lean on vendor-reported numbers. I'd rather give you the architecture and the gates, which you can reuse, than a metric you can't check.

What I'd do next

If I were extending Mentova from here, these are the next steps I'd take:

  1. Measure the gap between the two gates. Track how often owner review rejects a clip that passed the automated checks. That number tells me which checks to add and when the human gate could become a spot check.
  2. Make cost per delivered clip a first-class metric. Re-planning is the right behavior, but every extra iteration costs time and money. I'd watch the cost of the clips that ship, not just the count.
  3. Turn repeated weekly lessons into tests. Each pattern the weekly loop fixes should leave a case behind in a golden set, so a later change can't quietly bring it back.
  4. Trace the read step separately. Most downstream failures start with a misread chart. Logging what the agent identified, next to the final clip, makes the weekly review faster.

The lesson I'd give anyone building an autonomous agent: the loop is a weekend's work. The evaluator, the durable job around it and the weekly habit of learning from failures are the product. The Mentova case study shows the agent at work, the layouts and real exports.

Sources

  1. Building effective agents (Anthropic)anthropic.com
  2. Autonomous AI Agents Explained: Architecture, Use Cases, and Limitations (Sutherland)sutherlandglobal.com
  3. What are Autonomous Agents? A Complete Guide (Salesforce)salesforce.com
  4. 15 AI agent useful case studies that deliver results (Superhuman)blog.superhuman.com