Dawnfix
AI SRE for AWS and GCPRuns in your GitHub Actions

The AI SRE that hands you a tested fix, not an alert.

Dawnfix is an AI SRE (AI Site Reliability Engineer) for AWS and GCP that runs inside your own GitHub Actions. When a new production error appears, it measures the impact, writes a failing test, fixes the code and opens a draft PR for you to review. It uses your own AI API key (Claude today), and your logs never leave your accounts.

Setup
npx dawnfix init                  # .dawnfix.yml and a 15-line workflow
# then deploy the read-only role it prints
gh variable set DAWNFIX_AWS_ROLE_ARN
gh secret set DAWNFIX_AI_API_KEY
gh workflow run dawnfix.yml -f dry_run=true

From a production error to a draft PR

A new error in production is read and redacted in your own Actions, reproduced with a test that fails, fixed, and opened as a draft PR. You review it and decide.

Works with AWS CloudWatch Google Cloud GitHubGitHub GitHub ActionsGitHub Actions ClaudeClaude GitLabGitLab BitbucketBitbucket (Bitbucket Cloud: diagnose only; fixes on self-hosted runners) CircleCI Not available yet

A production error becomes a redacted finding, then a failing test, then a fix, then a draft pull request that you review. Production error TypeError on /orders/:id · 37 in an hour Redacted finding 1997f265 · emails, ids and tokens redacted Failing test test_order_total_without_discount · FAIL The fix orders.py:42 · the test passes Draft PR for you to review test first, then the fix · you merge
All of it runs in your own GitHub Actions. Nothing is merged for you.
Your cloud, read-onlyA role taken through GitHub OIDC. No stored keys, and a check script refuses one that can write.
Your AI API keyClaude today. An Actions secret in your repo. It is never sent to us.
Your logs stay putNothing leaves without an Enterprise key. With one, only counts, fingerprints and a PR link.
You mergeA draft PR, failing test first. Nothing is merged or deployed for you.

How it works

Four steps, every hour, inside your own GitHub Actions.

  1. Read, in your Actions. Every hour a job in your own GitHub Actions takes a read-only role in your AWS or GCP account (GitHub OIDC, no stored keys). It reads the last hour of errors from CloudWatch Logs, alarms, load balancer 5xx or Cloud Logging. A check script refuses a role that can write.
  2. Fingerprint, dedupe, redact. No LLM. A deterministic script folds errors into fingerprints, drops the ones it has seen, and redacts emails, ids, tokens and query strings. Nothing new: the run stops and spends no tokens.
  3. Fix, failing test first. Only for a new error, a second job runs Claude with your AI API key and no cloud credentials. It finds the cause in your code, measures the impact from the counts, writes a test that fails, then the smallest fix. If it cannot see the cause or make a test fail, it opens an issue instead.
  4. You review a draft PR. The PR's first commit is the failing test, the second the fix, labelled AI-generated. Dawnfix never merges or deploys. Start with autonomy: diagnose: you get issues, not code, until you trust them.
How data moves through Dawnfix Logs are read in your cloud account by a read-only job in your GitHub Actions. Redacted findings stay in your Actions run; a separate fix job with your AI API key and no cloud credentials opens a draft pull request. Only a summary of counts and fingerprints, and the pull request state, reach the Dawnfix service. Your AWS / GCP account logs · alarms · load balancer 5xx read-only role, 15 min Job A · read no LLM · dedupe, redact artifact, 3 days findings.json redacted · stays in your Actions only if new Job B · fix your AI API key · no cloud creds failing test, then fix Draft PR in your repo labelled AI-generated · you merge Dawnfix service Enterprise only digest email status page PR acceptance counts PR url Dashed: the only data that leaves your accounts.
Solid arrows stay in your cloud account and your GitHub. The dashed ones carry counts, fingerprints, route templates and a PR link to the hosted service, and nothing else (every field). They exist only with an Enterprise key; without one nothing leaves.

Set it up in three steps

Free, no key. You type every secret yourself.

  1. Run npx dawnfix init. It shows .dawnfix.yml and a 15-line .github/workflows/dawnfix.yml in full, and writes them when you say yes. The workflow calls dawnfix/dawnfix/.github/workflows/dawnfix.yml@v0, below.
  2. Deploy the read-only cloud role. A CloudFormation stack on AWS, or workload identity federation with roles/logging.viewer on GCP. init prints the commands.
  3. Set two repo settings, by name. The variable DAWNFIX_AWS_ROLE_ARN (or DAWNFIX_GCP_WIF_PROVIDER) and the secret DAWNFIX_AI_API_KEY, your AI API key (Claude today). DAWNFIX_ENTERPRISE_KEY is optional, for Enterprise only.
# Dawnfix (https://github.com/dawnfix/dawnfix), written by `npx dawnfix init`. The jobs are in the
# reusable workflow below; each asks for less than the permissions granted here.
name: dawnfix
on:
  schedule: [{ cron: "17 * * * *" }] # the `schedule` of .dawnfix.yml
  workflow_dispatch: { inputs: { baseline: { type: boolean }, dry_run: { type: boolean } } }
permissions: { contents: write, pull-requests: write, issues: write, id-token: write }
jobs:
  dawnfix:
    uses: dawnfix/dawnfix/.github/workflows/dawnfix.yml@v0
    with:
      aws-role-arn: ${{ vars.DAWNFIX_AWS_ROLE_ARN }}
    secrets:
      DAWNFIX_AI_API_KEY: ${{ secrets.DAWNFIX_AI_API_KEY }} # your AI API key (Claude today)
      DAWNFIX_ENTERPRISE_KEY: ${{ secrets.DAWNFIX_ENTERPRISE_KEY }} # optional

What leaves your account

One small JSON document per run: counts, severities, 16-character fingerprints, route templates like /users/:id, an error class and a PR link. No log lines, no messages, no service names, no account or project ids. The hosted service rejects anything else.

An AI SRE that runs in your CI

Most AI SRE products run in the vendor's cloud and read your telemetry from there. Dawnfix runs in your own GitHub Actions with read-only roles and your own key, and what it hands you is a failing test and a draft PR, not a report.

Set it up with your coding agent

Paste this into any coding agent, in your repo. It shows you every change before it makes it, keeps your cloud access read-only and never asks for a secret in the chat.

Set up Dawnfix (https://github.com/dawnfix/dawnfix), the source-available AI SRE, in this GitHub repo and try it once. Follow prompts/setup.md in that repo, step by step. In short: npx dawnfix init writes .dawnfix.yml and a 15-line workflow that calls dawnfix/dawnfix/.github/workflows/dawnfix.yml@v0. Then comes a read-only cloud role, then two repo settings set by name. For the local CLI, run pip install dawnfix==0.5.0.

Rules:
- Before you change anything (a file, a cloud role, a repo variable, a commit, a PR), tell me exactly what you will change and wait for my yes.
- Least privilege: the AWS role or GCP identity must be read-only. Check the AWS role with infra/aws/verify_readonly.py from the Dawnfix repo, and stop if it fails. Never widen a policy to make it pass.
- Never ask me to paste a secret into this chat, and never print one. I set my AI API key (Claude today) myself with gh secret set DAWNFIX_AI_API_KEY, and DAWNFIX_ENTERPRISE_KEY only if I have Enterprise.
- Start with autonomy: diagnose in .dawnfix.yml (issues only, no code changes). Never push to the default branch; everything goes through a PR I review.
- Tell me what it costs me: my own Claude tokens (on my AI API key), GitHub Actions minutes and small CloudWatch API charges. No Dawnfix key is needed.

To try it, run this with my read-only credentials and show me the JSON it prints:
dawnfix tick --config .dawnfix.yml --state "$(mktemp -d)/state.json" --baseline --dry-run
Then open the setup PR.

More prompts, one per tool, are in prompts/. For Dawnfix Enterprise (hosted status page, digest, Fleet board), email dawnfix@sivakoza.ai.

Wake up to a tested fix, not an alert.

Start with issues, free. Switch on draft PRs once you trust what they say.