Your Backend Knows More About Your Business Than Your BI Tool
Amine Mezzour

On this page
Ask your database what an "active student" is and it will show you columns. Ask your backend and you may find the rules that actually decide when a student counts.
That's the gap most analytics tools inherit. The data is available. The business logic that gives it meaning is scattered across application code, product decisions, and institutional memory.
If you want an AI agent to analyze a business accurately, that context is not optional.
The schema is only the surface
Imagine an edtech product with tables for students, lessons, teacher audio, and grades. An analyst can join those tables. But the code may reveal that an audio event is triggered on playback initiation rather than listening completion, or that some grades come from practice rather than formal assessments.
Those details completely change what a responsible analysis should say.
The same issue appears in B2B SaaS. A subscription_status field might not map neatly to paying customers. An organization_created event may fire before onboarding. A deleted project might remain in the database because the app uses soft deletion.
A model trained on general software patterns can make reasonable guesses. Your backend provides evidence about the specific product you actually built.
Why we built codebase context into Matys
Matys can begin answering data questions as soon as a supported database or warehouse is connected. But we wanted it to get beyond first-pass schema exploration.
When you connect GitHub, Matys reads your backend code to learn how data is produced, and uses it, along with your schemas and Metabase if you connect it, to write its context. Backend logic is often especially useful because it encodes operational rules that were never formalized in a data catalog.
The generated knowledge appears in a Global context tab so your team can audit and supplement it. When a conversation clarifies a definition, Matys proposes an update and an admin reviews it, so the context becomes more useful over time.
This is not a claim that code is always the single source of truth. Production behavior, database contents, and written business rules can diverge. An agent should treat code as important evidence, then validate interpretations against actual data and user input.
Real questions need more than SQL
One early edtech customer was in a live meeting with a government client when a question came up: was listening to teachers' audio related to student grades?
Previously, that might have turned into a follow-up analysis request. With Matys, the team could investigate during the conversation itself. The immediate ability to examine the question changed the experience for both the team and the client.
The story is not proof that audio listening improved grades. It shows why having accessible, context-aware analysis matters when an important question is asked unexpectedly.
Context versus a traditional semantic layer
Our view is that the startup data stack has overinvested in manually encoding business logic a second time. Some teams already maintain the rules in code, then rebuild simplified versions in transformation models and BI definitions.
Why not let an agent learn from more of the existing system?
That doesn't mean throwing away metric governance. If net revenue has an agreed definition, it should stay consistent. But a flexible context layer can capture more than a list of predefined measures: lifecycle events, edge cases, product terminology, and relationships that evolve with the application.
The goal is to make the company's knowledge available to the agent without requiring a separate months-long context-building project.
The next step
We plan to make context maintenance more proactive, including periodic optimization from connected sources and conversations. Today, context generation and conversational refinements are available; continuous scheduled re-optimization is not.
We're building toward a data agent that understands the business increasingly well, not just the tables it can see.
Connect Matys to your data and codebase with a 14-day free trial.
Keep reading
- Your Business, Understood. Automatically.How Matys writes down what your data means, from your schemas, backend code and Metabase, in a context your team can read and correct.
- Can Claude Replace Your BI Tool? What We Learned Building MatysConnecting Claude to a database feels like magic until you ask who defines an active customer. Why we built Matys as the data layer that runs inside Claude, not a replacement for it.
- How to Connect Product, Sales, and Support Data Without Losing the PlotYour most important business question probably doesn't live in one tool. Here's how to connect product, sales and support data without joining the wrong things.