← Blog/Agents
Let your product team ask the backend
Give a small team an AI agent that reads your repositories and answers product and support questions about the backend in Slack, with the files it found them in.
Every small product team has the same quiet bottleneck. The product manager wants to know what happens when a customer downgrades in the middle of a billing period. Support wants to know why a user did not get a password reset email. The designer wants to know which fields of the signup form are actually required. And all three questions end up in the same place: a message to the one backend developer who knows, who stops what they were doing to go and look.
None of these questions is hard. The answer is in the code. It just takes someone who can read the code to find it. That is a job an AI agent does well, as long as it can see your code and your team can reach it where they already ask questions.
The setup: one agent that knows the backend
Picture a five-person team: two developers, a product manager, a designer and a support lead. Here is a setup that takes an afternoon.
A computer for the agent. Use a small office machine that is always on. Install Claude Code, log in, and connect the machine to your Mercur workspace with one command. From then on it shows up on the Agents page as a host with a green dot.
One agent, read-only. Create an agent called "backend" on that machine and set its highest mode to Read-only. It can read and search, but it cannot change files or run commands. For a question-answering agent that is all it needs, and it means nobody has to worry about what a question in a busy channel might make it do.
The repositories. A developer connects their GitHub account in Mercur and adds the API and the worker repositories to the agent, with pushing turned off. The machine keeps a copy of each and brings it up to date before every answer, so the agent always reads the current main branch, not last month's.
Slack. Finally, the workspace owner creates a Slack bot for the agent from the manifest Mercur
prepares, names it @backend, and invites it to #product and #support. Nobody else on the
team needs a Mercur account: anyone in the Slack workspace can mention the bot.
What it looks like on a Tuesday
A support lead pastes a customer complaint into #support:
@backend A customer says they cancelled on the 3rd but were charged on the 5th. Is that possible?
Shortly after, in the thread:
Yes, if they cancelled after the invoice for the next period was already created. Invoices are created three days before renewal (
billing/renewals.ts), and cancelling only stops future invoices; an invoice that already exists is still collected (billing/cancel.ts, thecancelSubscriptionfunction). The customer should get a refund for that charge; there is no automatic one.
The product manager asks in the same channel about a feature they are planning:
@backend If we let users change their email address, what else uses the email as an identifier?
The agent lists the three places that look users up by email, notes that one of them is the login for invited team members, and points at the files. That answer turns a vague feature request into a ticket with the right questions in it, before anyone writes code.
Nobody had to interrupt the backend developer. When the developer does get pulled in, it is for a real decision, not for a lookup.
Why it works
It reads the real code. Documentation drifts; the code is what runs. Because the agent reads the repositories directly and they are refreshed before each run, its answers match what is deployed from main, not what someone wrote down a year ago.
It shows its sources. Asking the agent to name files and functions makes every answer checkable. A developer can open the file and confirm in ten seconds instead of investigating from scratch.
It remembers context. The agent has a memory folder for notes it keeps between conversations: that "workspace" in the code means "company" in the product, that the worker repository owns emails. The team adds to it simply by telling the agent in a conversation.
It stays where you put it. Read-only mode, pushing off, and a bot that only answers when mentioned in the channels it was invited to. The workspace owner can switch the bot off in a channel, or entirely, from the agent's Slack tab.
What to keep in mind
The agent can be wrong. It reads code well, but it can miss a configuration value that only exists in production, or a rule that lives in another service it cannot see. Treat its answers the way you would treat a quick answer from a colleague: good enough to plan with, worth checking before you promise a customer something.
It also only knows what you give it. If a question touches a repository the agent does not have, it will say so, or worse, guess. Add the repositories your questions actually depend on.
And the bot answers anyone in your Slack workspace with the access of the person who connected it. For a read-only agent that is exactly what you want; just keep that in mind before you give the same bot permission to edit.
Set it up
You need a Mercur account on Free, Solo or Team, a computer with Claude Code, and about half an hour.
- Connect the computer and create a read-only agent: AI agents on your own machine.
- Add your repositories from the agent's Repositories tab (same page).
- Connect a Slack bot and invite it to your channels: Put an agent in Slack.
Create your first agent