AI NewsProductivityAnnouncement

Render's support agent checks every citation in the code before answering

Render's developer experience team wrote an agent that reads the source code to answer Discord questions. It only writes an answer the code has verified the links for.

AI News

Editorial2 min read

LinkedInX
Render blog post hero image for the support triage agent

Image: Render

Why it mattersThe familiar failure mode of a model answer, the made-up file path, stops by design. The trusted code builds the link, never the agent.

A support channel's hardest question is one a documentation page cannot answer. The example question Render quotes asks whether a REST API exists for Private Link connections. The person wanted an API like the one for Services. They also wanted to know if it was on the roadmap. Answering that means reading the code. Render has written an agent that does the reading, and shown exactly how it is built.

The agent is called Codebase Researcher. It takes a Slack question from the DX team. It opens the source code in a locked-down environment. It writes an answer, with citations. Then it checks every one of those citations against the code before anyone sees the reply. Jacob Prall wrote it up on Render's blog.

How the agent runs

Three Render primitives sit under the system. Cron Jobs run every hour to build a fresh environment from git. Sandboxes execute the agent inside a snapshot of that environment, so each investigation starts clean. Workflows own the orchestration: they retry a failed step, separate an infrastructure problem from an agent timeout, and keep the conversation history.

The design has three load-bearing choices, each named in the post.

Build the environment once an hour and snapshot it. Every investigation starts from that snapshot, so an agent cannot alter the code it is reading.

Split the credentials by phase. Setup code gets the Git token to clone the repository. The agent itself only sees the model API key. A prompt-injected agent cannot push to the repo because it never held the token.

Validate the citations with code, not the model. The agent reports its findings to a submit_investigation function. That function opens the referenced files, commits and line ranges in the checkout. It rejects the submission if any reference does not exist.

Why the citation check matters

A model answer that names services/private-link/api.ts:42 sounds authoritative. If the file is wrong, or made up, the reader will still trust it until they open the repo themselves. Render's design moves that check to the one place it will never be skipped. Trusted code opens the file. Trusted code reads the lines. The link in the Slack reply is only built after both succeed.

The pattern reads as narrow. One team, one Slack bot, one Render-scoped question. The design does not rely on anything Render-specific, though. The three pieces are small. A read-only snapshot of a repo. An agent that never holds the Git token. A check that every quoted reference exists in the code. A team with any model and any code store can copy them. The repository is open for adoption.

Source

How we built a support triage agent on Render Sandboxes and Workflows, by Jacob Prall.

SourceRender

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project