# Investigation Agent

> The Investigation Agent reads your code, logs and past tickets to find why something broke, then shows the line that did it.

Canonical: https://www.decimal.app/agents/investigation-agent · Last reviewed: 2026-09-23

## How it works a bug report.

- **Reads the ticket**: The whole thread and every attachment: screenshots, HAR files, logs.
- **Checks what’s already known**: Searches your docs and earlier tickets first.
- **Reads the code**: Finds the code path the customer hit and follows it.
- **Looks at what changed**: Compares the report with recent commits.
- **Asks production**: Queries logs, data, flags and incidents for that customer.
- **Writes it up**: Root cause with file and line, plus a reply for the customer.

## Everything an engineer would have opened.

- **Code, across every repo**: Searches every repository on GitHub, GitLab, Bitbucket and Azure Repos.
- **Commit history**: What shipped around the time it broke.
- **Logs**: Datadog, CloudWatch, Google Cloud, Sumo Logic, Cribl, Loki and more, queried live.
- **Warehouse data**: Snowflake, Databricks, BigQuery and ClickHouse. Read only.
- **Feature flags**: Was the flag on for this customer? It checks.
- **Incidents**: Open incidents from incident.io and PagerDuty.
- **Identity and billing**: The user in WorkOS and the subscription in Stripe.
- **The customer’s own files**: HAR files, profiles and zipped logs, opened in an offline sandbox.
- **Screenshots and PDFs**: Read the way a person would. “See attached” is enough.

## A report your engineers would have written.

- **The short version first**: A summary a support lead can act on.
- **Root cause, with the line**: Every finding cites its file and line.
- **What it ruled out**: Dead ends are listed, so nobody repeats them.
- **What it isn’t sure of**: Open questions are stated, not hidden.
- **A reply for the customer**: Short, in their language, with nothing internal.
- **Your format**: Use a template or define your own sections.

## Your sources. Your rules.

- **Switch any source on or off**: Each source has its own toggle and instructions.
- **Bring your own tools**: Add any internal API or MCP server as a tool.
- **Read only, everywhere**: It reads code, logs and data. It can’t change them.
- **Checked before it sends**: A second agent verifies every claim first.
- **Nothing internal leaks**: File paths and source code never reach a customer.
- **Ask it anywhere**: On a ticket, in Slack, in the playground or by API.

## Evidence, not a summary.

When the cause is a bug, the trace, the screenshot and the failing line go with it. Engineering’s first question is already answered.

## FAQ

### What does it need access to?

Read access to the repositories, log sources and data you choose. It never writes to them, and every tool call is scoped to your organisation.

### What if it can’t find the cause?

It says so, lists what it checked and ruled out and what it would look at next, and hands the ticket to a person.

### Does it only work on bugs?

No. It answers any question where the truth is in the code, the logs or the data, such as why a job was slow or which plan a limit applies to.

### Can it run arbitrary queries against our warehouse?

No. It chooses a table, columns and filters through a read-only interface. It cannot write free-form SQL or change data.

### Does its answer go straight to the customer?

Only if you allow it. A second agent checks the reply for grounding, completeness and tone first, and you can hold any reply where code or logs were consulted.

### We use a tool that isn’t listed. Can it use that?

Yes. Define a custom tool against any HTTP API, or connect an MCP server and pick the tools it may call.

---

Decimal · Book a demo: https://cal.com/decimal-demo/30m · Markdown index: https://www.decimal.app/llms.txt
