Sign up

Production context agent (eve)

An eve agent for Slack that answers "why did this change?" with Clearlook's evidence and hands it to the pull request that shipped it.

clearlookhq/eve-production-context-agent is an eve agent you deploy to your own Vercel team. It runs in Slack and starts every question with Clearlook's investigation. Then it checks the deploy on Vercel and the code on GitHub, and offers to comment the answer on the pull request that shipped the bad release.

It reads only. The one thing it writes, a pull request comment, waits for a person to approve it.

What you need

  • A Vercel team (model calls go through Vercel AI Gateway).
  • Slack and GitHub, connected through Vercel Connect when you deploy.
  • A Clearlook service key with only Ask questions (query) ticked: Settings › API keys › New key. It reads analytics, errors, server logs and uptime, and changes nothing. Webhook and channel-watch runs have no person to sign in, so they need it.

Deploy

Open the repository and select Deploy with Vercel. It asks for:

Variable What it is
CLEARLOOK_API_KEY The read-only service key.
CLEARLOOK_PROJECT The project to investigate when a request names none (its slug, name or id).

Then invite the Slack app to a channel and ask @sre did my last deploy break anything?.

What it does

  1. Why did this change? investigate gives a verdict, likely causes ranked with evidence numbers, and what was ruled out. When nothing unusual happened, the agent says so and stops.
  2. What changed then? The release, the error it brought, the page that slowed or the path that started failing (from server logs).
  3. Which code? The release's commit, its pull request and the lines that match the evidence.
  4. Hand it over. With approval, a comment on that pull request with the answer and the evidence links.

Try it on the demo

Set CLEARLOOK_PROJECT=demo and ask @sre why are Safari sign-ups down since the last release?. The demo's planted bug, release [email protected] breaking the sign-up form on Safari, is what it should find.