Quick answer: coding moved to AI agents because code lives in one place, with tests, so an agent can check its own work. Data hasn't moved yet, because the data stack is spread across five tools and nothing stops a wrong number. Put the data in code, make every check block what comes after it, and agents can run it too. The output stops being dashboards and starts being decisions.
Coding went first for a reason
A year ago, most engineers still typed most of their code. Today a lot of them describe a change and review what Claude Code, Codex or Cursor writes. That happened fast, and it happened for a boring reason: code is easy for an agent to work with.
- It lives in one repository, so the agent can read all of it.
- It has tests, so the agent knows when it broke something.
- It ships through pull requests, so a person reviews every change.
Read, change, run, check, review. An agent can do the whole loop without guessing.
Why data didn't follow
Now look at where most companies keep their data work:
- Ingestion in one tool, configured in a web UI.
- Transformations in a second tool, in a repository.
- Scheduling in a third.
- Quality checks in a fourth, if anywhere.
- Dashboards and their metric definitions in a fifth.
An agent dropped into that setup sees one corner of the line. It writes a join it can't verify against the source, because the source config lives in another tool's UI. It has no test that tells it revenue is now counted twice. So it does what any fast, confident worker does without feedback: it guesses.
In code, a bad guess fails a test. In data, a bad guess becomes a number, and the number goes into a meeting. A wrong number is worse than no number, because people act on it.
What has to change
The fix is not a smarter model. It is giving agents the same conditions they have in code.
- One repository for the whole line. Sources, models, checks, owners and schedules as files, so the agent can read the path from source to dashboard.
- Checks that stop the line. When a check fails, nothing downstream runs. The broken number never reaches a dashboard or an answer.
- Lineage from the code. If an asset declares what it depends on, the agent can see what breaks before it renames a column.
- Metrics defined once. Revenue means one thing, in one file, for every dashboard and every agent.
- Pull requests, not direct writes. The agent drafts, a person approves.
This is what we built Bruin around: ingestion, SQL and Python pipelines, quality checks and lineage in one open-source CLI and one Git repository, so an agent can run all of it from a terminal and read its instructions in one file.
The output changes too
Once agents can run the line safely, it stops making sense to measure the result in dashboards built. Nobody wanted a dashboard. They wanted to know what changed and what to do about it.
So the line keeps going past the warehouse: an agent notices cost per signup jumped on Tuesday, checks the numbers, and drafts "pause this campaign" with the work attached. You approve it or you don't. That is what we mean by a decision factory: data in, decisions out, with checks at every step and a person making the call.
What stays human
Agents will write most of the SQL. They won't decide what "active customer" should mean, which edge case matters to the business, or whether a decision is worth making. That work gets more important, not less, because it's the part the whole line depends on.
Coding showed what happens when work moves into a form agents can check. Data is next, for teams that move it into code first. To try it, point your agent at getbruin.com/agents.md, or start free and connect your own warehouse.
