Features

AI agent

Ask about a project's errors, slow routes, queries, logs, jobs and runtime in plain words, and get the cause and the fix, with links to the records.

The AI agent answers questions about a project from its data in PeekInside Cloud: what broke today and why, which routes are slowest and what's slowing them, is memory growing anywhere. It reads the records a question needs, says what's wrong and how sure it is, and suggests a fix, with links to the exceptions, requests, statements and job runs behind the answer.

It's on every plan: Team and Business include tokens for it each month, and on Hobby and Pro it runs on token packs (see Tokens). Open a project and choose Agent in the sidebar.

Working in an editor? Your own AI tool (Claude Code, Cursor, VS Code and others) can read the same records over MCP, and change your code: see AI tools (MCP).

Who can use it#

Everyone in the organization can use the agent, each with what their role can see. Owners and admins can switch it off for a member with the AI agent switch on their row of the Team page, and back on the same way.

Asking#

Type a question, or pick one of the suggestions, and press Ask (Enter; Shift+Enter starts a new line). While the agent works, the page shows what it reads: Reading errors · last 24 hours, Opening a request. Answers are in plain words, with code and SQL in blocks you can copy.

Some questions it's good at:

  • What went wrong in the last 24 hours, and why?
  • Why does POST /checkout fail since this morning's release?
  • Which routes are slowest, and what's slowing them down?
  • Are there N+1 or slow queries I should fix first?
  • Did any job fail or miss its schedule today?
  • Is memory growing anywhere, or the event loop getting blocked?

Follow-up questions keep the conversation's context: and on staging?, show me the query. New chat starts over. Stop stops a question that's taking long.

Your chats are saved as you go: open the list with Chats to come back to one and carry on, or delete it. Each member sees only their own chats, and the latest 100 per project are kept.

Making changes#

The agent can also do what you ask, within what your role allows:

  • Alerts: alert me when checkout returns a 5xx more than 5 times in 10 minutes, email the team when the nightly report job fails, turn off the slow-requests alert. It sets the source, conditions and threshold from your words, and uses email or Slack when you ask and your plan has them.
  • Issues: resolve that error marks its issue resolved (it reopens by itself if the error comes back).
  • Saved records: save that request keeps it past the project's history.

Before anything changes, the agent shows what it's about to do, in plain words, with a button to confirm it and one to cancel. Nothing changes until you confirm, so a misread question, or text in your logs that reads like an instruction, can't change anything by itself.

The agent sticks to the project: it answers questions about its data, debugging and fixing what that data shows, and using PeekInside. It politely declines anything else.

What it reads#

The agent works like the dashboard's pages, with the same numbers:

It reads Like the page Needs your role to read
Errors grouped into issues, one exception's stack with your source lines, and what ran before it Exceptions exceptions
Routes with their traffic, errors and percentiles Routes requests
Requests that match (a path, a status, slow ones), one request's timeline and findings Requests requests
Database statements across requests: time, runs, N+1 Queries requests
Log lines from a level up Logs logs
Jobs, their failures, and schedules that went missing Jobs jobs
Processes' memory, CPU and event loop, and the findings Runtime the runtime

It only ever reads what your role can, so two members may get different answers. It reads windows of up to 10,000 records (a busy app's longer windows are its latest records, and the answer says so).

Your data#

The agent works the way the dashboard does: your browser opens the records, and only those your role can see.

  • Only what a question needs. The agent reads a short summary of the records a question is about: the numbers, error messages, stack traces, queries and timelines. Request and response headers and bodies, and query strings, are left out.
  • Answered by an AI model. The summary goes with your question to the AI model that writes the answer. The providers PeekInside uses are listed in the privacy policy.
  • Chats stay encrypted. Your chats are saved encrypted in your browser with the project's key, like your app's data, so PeekInside can't read them. Only you see yours, and deleting one deletes it.
  • Your app's data is just data. The agent ignores instructions that turn up inside your logs or errors, and doesn't repeat secrets it comes across.

Tokens#

The agent's use is counted in tokens, as the AI model counts them: what it reads (your question, the conversation so far, and the records' summaries) and what it writes. A question takes from a few thousand tokens to tens of thousands, depending on how much data it reads.

Plan Tokens included a month
Hobby, Pro None: the agent runs on token packs
Team 3M
Business 10M

The count starts again on the 1st of each month (UTC). The agent's page shows what's left, and the Plan & billing page shows the month's tokens, the questions asked, and any packs.

Token packs add 10M tokens for $20 on any plan, used once a month's included tokens run out (right away on Hobby and Pro), for 12 months. Members who manage billing buy them on the Plan & billing page. When the tokens and packs run out, the agent answers again as soon as a pack is bought, or, on Team and Business, at the start of the next month.