

# Investigate observations with your coding agent

Your coding agent, such as Claude Code, Cursor, Kiro, or Codex, can start its investigations from observations instead of raw telemetry. Observations group related anomalies across services, so the agent begins with a likely cause and the services involved, and goes to the telemetry to confirm it.

## Before you begin
<a name="omni-observations-investigate-before-you-begin"></a>

Before you begin, make sure that you have the following:
+ Install the CloudWatch skills from the [Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/what-is-agent-toolkit.html) on the AWS Documentation website. For more information, see [Use Omni skills](omni-use-omni-skills.md).
+ Configure AWS credentials for an identity that allows `cloudwatch:ListObservations`, `cloudwatch:ListAnomalies`, `cloudwatch:GetContextGraph`, and `cloudwatch:SubmitFeedback`. For more information, see [Security in Observations](omni-observations-security.md).

The following policy grants these permissions:

```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "cloudwatch:ListObservations",
      "cloudwatch:ListAnomalies",
      "cloudwatch:GetContextGraph",
      "cloudwatch:SubmitFeedback"
    ],
    "Resource": "*"
  }]
}
```

## How agents investigate with the CloudWatch skills
<a name="omni-observations-investigate-how"></a>

If the CloudWatch skills are installed, we recommend that you use them. The `aws-observability` skill guides the investigation, starting from observations, and selects the APIs to call.

If the skills aren't installed, we recommend that your agent follow this flow:

**To investigate an observation without the CloudWatch skills**

1. List the observations for the incident window, and the anomalies behind the relevant ones.

1. Use the context graph to trace how the affected services connect and where the problem starts.

1. Confirm the likely root cause in its own telemetry. An observation is a starting point, not a confirmed root cause.

1. Answer with the root cause, the causal chain, and the evidence for each affected service or resource.

1. With your consent, submit feedback on how well the observations helped. Review it before you agree to send it. Do not include personally identifying, confidential, or sensitive information in your feedback. For more information, see [Submit feedback to personalize Observations](omni-observations-submit-feedback.md).

With the CloudWatch skills installed, the agent offers to share feedback at the end of its answer. It shows you the feedback and sends it only if you agree, even if the agent runs tools without approval. If you decline or don't answer, it sends nothing. CloudWatch uses feedback to personalize observations for your account only.

## Example prompts
<a name="omni-observations-investigate-example-prompts"></a>
+ "Is anything wrong with <service> right now?"
+ "Users saw errors on <service> between <start time> and <end time>. What caused them?"
+ "Explain the observation <observation title> and find its root cause."

## Turn on Observations from your agent
<a name="omni-observations-investigate-turn-on-from-agent"></a>

Your agent can turn on Observations for you with the `setting-up-cloudwatch-observability` skill. It checks the current setting and turns it on after you confirm.

In the Omni web UI, under **Settings**, **Intelligence**, you can also copy a ready-made prompt. The prompt sets up the CloudWatch skills, turns on Observations after you confirm, and lists your observations and the anomalies behind them.

**Important**  
Agents use generative AI. The responses of any generative AI might be inaccurate, incomplete, or outdated. Verify all findings before acting on them.