# AI Can Build. Can It Know What Worked?

Code Mode and Data Assistant Agent give teams and AI the reasoning and trustworthy data to understand what happened, why it happened, and what to do next.

Source: https://amplitude.com/en-us/blog/code-mode-data-assistant

---

[Carmen DeCouto](/blog/author/carmen-decouto)

[Director of Product Marketing, Amplitude](/blog/author/carmen-decouto)

[](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fcode-mode-data-assistant)[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fcode-mode-data-assistant)[](https://twitter.com/intent/tweet?url=https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fcode-mode-data-assistant\&text=Building%20Got%20Faster.%20Knowing%20What%20Worked%20Didn%E2%80%99t.)[](mailto:?subject=Checkout%20this%20Amplitude%20Article\&body=Check%20this%20out%3A%20https%3A%2F%2Famplitude.com%2Fblog%2F%2Fblog%2Fcode-mode-data-assistant)

Every product runs the same loop: build it, ship it, measure what happened, then use what you learn to build the next thing.

The first half of that loop has become increasingly automated. CI/CD ships code. Feature flags control rollouts. AI can write, test, and iterate alongside developers. But turning what happens next into the right next move still depends heavily on human judgment.

That judgment is the next thing to automate.

Knowing why a metric moved, whether it matters, and what to do next requires more than access to data. It requires two things: the ability to reason through the context, and confidence that the underlying data is trustworthy. As more decisions shift from humans to agents, both become increasingly important. An agent that reasons well from bad context (or bad data) can still confidently make the wrong call.

In Anthropic's [June 2026 Economic Index report](https://www.anthropic.com/research/economic-index-june-2026-report), researchers asked Claude users what they believed AI would never be able to do. The most common answers pointed to the same thing: judgment, contextual awareness, and situational reasoning—knowing what a situation calls for.

We see that as the next problem to solve: helping teams make better decisions with better context and more trustworthy signals.

Today, we're introducing two AI capabilities built for that problem: **Code Mode** and **Data Assistant Agent**.

Code Mode helps teams reason more deeply about what their data shows: what changed, why it matters, who's affected, and what to do next. Data Assistant Agent helps make the data behind that reasoning easier to trust by identifying and prioritizing data-quality issues.

## Answer the questions behind your metrics

Most product teams can see when a metric moves. The harder questions come next: Why did it move? Which users drove the change? What behaviors predict what happens next? Did the thing we shipped actually make a difference?

Answering those questions often means exporting data, writing custom SQL or Python, or waiting for help from a data scientist. Code Mode brings that work directly into Amplitude.

It runs SQL and Python against the behavioral data already in Amplitude, letting teams investigate questions that go beyond a standard chart without leaving their workflow.

Teams are already using Code Mode to uncover hidden segments and behavioral patterns, compare journeys across cohorts, build custom visualizations, and catch discrepancies between systems that neither flags on its own.

That means teams can move beyond questions like "How many people used this feature?" and start asking:

- Which behaviors predict long-term adoption?
- Where do different user segments get stuck?
- Did this launch actually improve retention?
- Which users are most likely to benefit from an intervention?

And because every query and validation step is logged along the way, the analysis can be inspected, challenged, and rerun. Teams don't have to take an AI-generated conclusion on faith.

Available to all Free, Plus, and Growth customers, Code Mode brings deeper analysis into Amplitude so teams can move from signal to explanation to opportunity without exporting data or waiting on a separate analysis cycle.

## Build a trusted data foundation

Deeper reasoning only works if the data underneath it can be understood and trusted.

If event names are unclear, definitions are missing, similar behaviors are tracked in multiple ways, or important context lives only in someone's head, humans and AI can interpret the same signals differently. As more analysis shifts to agents, those ambiguities become more consequential: AI can only reason from the context your data provides.

And it isn't hypothetical. In Hex's[ 2026 State of Data Teams survey](http://hex.tech/state-of-data-teams), data quality and lack of trust was the biggest barrier data leaders cited to scaling AI—named nearly twice as often as cost, skills, or tooling combined.

Data Assistant Agent expands[ Data Assistant](https://amplitude.com/blog/Amplitude-AI-data-assistant-data-governance) with new intelligence, a broader set of prioritized data-quality recommendations, and an interactive experience for investigating and acting on those recommendations in chat.

It reviews taxonomy, metadata, usage patterns, and project context to identify unclear, duplicated, or undefined events and properties. Then it explains why those issues matter and recommends improvements that make Amplitude data more trustworthy for both people and agents.

Teams can:

- Run an AI-specific audit
- Investigate taxonomy issues
- Ask for prioritization
- Ask for explanations
- Draft metadata improvements

Now available to all Plus, Growth, and Enterprise customers with AI features enabled, Data Assistant Agent ensures teams adopting AI-powered analytics have reliable data for both humans and agents to make the right decisions about your product.

## **Close the loop from measurement to action**

AI has accelerated how products get built and shipped. Now the rest of the product development loop needs to catch up.

Code Mode and Data Assistant Agent tackle the two things AI needs to make better decisions from product data: the ability to reason deeply about what the signals mean, and a data foundation reliable enough to reason from. One helps uncover what happened, why it happened, and what to do next. The other helps identify and improve the data-quality issues that could undermine those conclusions.

Together, they turn measurement from the end of the process into what it was always supposed to be: the beginning of what you build next.

##### Ready to use AI to transform your product?

Amplitude Agents help you understand your users more easily than ever.

[Get started now](/signup?source=blog-agents\&topic=agents\&siteLocation=blog-inline-cta)

About the author

Carmen DeCouto

Director of Product Marketing, Amplitude

[More from ](/blog/author/carmen-decouto)

<!-- -->

[Carmen](/blog/author/carmen-decouto)

Carmen DeCouto is a Product Marketing leader at Amplitude. She's launched AI products, built growth programs across the full user lifecycle, and made a career out of translating the technical into something people actually care about. With nearly a decade in data and analytics, she's developed a sharp instinct for where the industry is heading and how to build for it.

Topics

[Agents](/blog/tag/agents)

[Amplitude AI](/blog/tag/amplitude-ai)

[Global Agent](/blog/tag/global-agent)

#### Recommended Reading

[Read ](/blog/hybrd-agent-evals-retention-signal)

[Customers](/blog/hybrd-agent-evals-retention-signal)

###### [How HYBRD Turned Agent Evals into a Retention Signal](/blog/hybrd-agent-evals-retention-signal)

[Jul 28, 2026](/blog/hybrd-agent-evals-retention-signal)

[5 min read](/blog/hybrd-agent-evals-retention-signal)

[Read ](/blog/amplitude-adobe-tags-extension-update)

[Product](/blog/amplitude-adobe-tags-extension-update)

###### [Replay Sessions and Retarget VIPs with Your Existing Adobe Tags](/blog/amplitude-adobe-tags-extension-update)

[Jul 28, 2026](/blog/amplitude-adobe-tags-extension-update)

[4 min read](/blog/amplitude-adobe-tags-extension-update)

[Read ](/blog/beyond-the-rate-retail-banking-competitive-front)

[Insights](/blog/beyond-the-rate-retail-banking-competitive-front)

###### [Beyond the Rate: Retail Banking's New Competitive Front](/blog/beyond-the-rate-retail-banking-competitive-front)

[Jul 20, 2026](/blog/beyond-the-rate-retail-banking-competitive-front)

[13 min read](/blog/beyond-the-rate-retail-banking-competitive-front)

[Read ](/blog/how-ns-prevented-1.8m-in-revenue-loss-through-experimentation)

[Customers](/blog/how-ns-prevented-1.8m-in-revenue-loss-through-experimentation)

###### [How NS Prevented €1.8M in Revenue Loss Through Experimentation](/blog/how-ns-prevented-1.8m-in-revenue-loss-through-experimentation)

[Jul 20, 2026](/blog/how-ns-prevented-1.8m-in-revenue-loss-through-experimentation)

[7 min read](/blog/how-ns-prevented-1.8m-in-revenue-loss-through-experimentation)
