Dawnfix
An AI SRE (AI Site Reliability Engineer) for AWS and GCP that runs in your own GitHub Actions. A deterministic, read-only job reads CloudWatch Logs, alarms, load balancer 5xx or Cloud Logging every hour, fingerprints and redacts the errors, and remembers which ones it has seen. When one is new, an agent runs with your own AI API key (Claude today). It either files a GitHub issue with the cause, the impact and a severity, or writes a failing test and the fix and opens a draft PR for you to review. It never merges or deploys. Your logs never leave your accounts.
On GitLab, it runs as four jobs in your project's pipeline (GitLab CI).
Free and source available. No key and no plan is needed for anything in this repo.
Quick start
In the repo whose production Dawnfix should watch (Node 20+, and gh signed in):
npx dawnfix init
It asks where your logs are (AWS or GCP) and how far the agent may go (autonomy, start
with diagnose), shows the two files it will write, and writes them when you say yes:
.dawnfix.yml: the log sources,autonomy,test.command(every key: templates/dawnfix.yml);.github/workflows/dawnfix.yml: about 15 lines that call the reusable workflow, with your schedule and permissions:
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
It never asks for a secret and never writes one. It prints what you run next:
- Read-only cloud role. AWS:
infra/aws/dawnfix-read-role.yamlwith CloudFormation (it trusts GitHub OIDC for your repo's default branch only; check it withinfra/aws/verify_readonly.py). GCP:infra/gcp/setup-wif.sh(Workload Identity Federation,roles/logging.vieweronly). - Repo settings, typed by you: the role as the variable
DAWNFIX_AWS_ROLE_ARN(orDAWNFIX_GCP_WIF_PROVIDER), andgh secret set DAWNFIX_AI_API_KEY(your AI API key, Claude today). The model is themodelinput (yourDAWNFIX_AI_MODELvariable); the default issonnet. - Review and run. Open a PR with the two files and merge it. Then
gh workflow run dawnfix.yml -f dry_run=trueshows exactly what would leave your account, andgh workflow run dawnfix.yml -f baseline=truerecords the errors you already have, so only new ones are reported. npx dawnfix doctorchecks the config, the pinned workflow, the secret and variable names, and says whether you run Free or Enterprise.
Renamed in v0.4.0: the secret ANTHROPIC_API_KEY is now DAWNFIX_AI_API_KEY, and the
template's variable DAWNFIX_MODEL is now DAWNFIX_AI_MODEL. The old names still work as a
deprecated fallback for this release, with one notice in the run log.
Later, switch autonomy to plan or draft-pr through a PR (and give install-command).
For draft PRs that trigger your CI, set a GitHub App (pr-app-id,
DAWNFIX_PR_APP_PRIVATE_KEY) or a fine-grained token (DAWNFIX_PR_TOKEN) as the PR author.
The workflows
Reusable workflow (uses: dawnfix/dawnfix/.github/workflows/<file>@v0) |
Copy-it-yourself template |
|---|---|
| dawnfix.yml: the read job and the diagnose or fix agent | templates/github/workflows/dawnfix.yml |
| parity.yml: config drift between two AWS environments | dawnfix-parity.yml |
| flare.yml: the daily Cloudflare audit | dawnfix-flare.yml |
| receipt.yml: a cost comment on every production deploy | dawnfix-receipt.yml |
Each reusable workflow's header shows its caller and lists its inputs and secrets. The
permissions in your caller are a ceiling: every job asks for less (only the read job gets
id-token, only the publish job can push, on a fresh runner after the agent's job has
ended, and it only opens draft PRs). @v0 follows the
latest 0.x release; pin @v0.3.0 or a commit SHA to freeze it. Each release installs the
same version of the PyPI package dawnfix and loads the agent's instructions from
prompts/ci/ at its own tag. Fallback, without PyPI: the core-ref input (a tag or commit
SHA of this repo) installs from git at that ref and loads the instructions from it.
The templates are the same jobs and steps, reading repository variables
(DAWNFIX_AWS_ROLE_ARN, DAWNFIX_INSTALL_COMMAND, ...) instead of inputs, for those who
would rather keep the whole file in their repo. Copy one, copy the schedule of
.dawnfix.yml into its cron, and set the variables its header lists.
The CLIs
pipx install dawnfix # PyPI: dawnfix (the read job's CLI), logbill, parity, sweeper, leastpriv, receipt, fleet
dawnfix validate --config .dawnfix.yml
npx dawnfix flare --help # npm: the Cloudflare audit (also node flare/dist/cli.js)
GitLab CI
On GitLab, Dawnfix runs as four jobs in your project's pipeline. Each job is a fresh container that holds one secret:
dawnfix-read: the cloud OIDC token only (id_tokens:). Reads your logs.dawnfix-agent:DAWNFIX_AI_API_KEYonly. It runs no git and has no repo token. Its only output is an artifact with the changed files and the issue texts.dawnfix-publish:DAWNFIX_HOST_TOKENonly. It checks the files again in a fresh checkout, then opens a draft merge request or an issue. It never merges.dawnfix-report:DAWNFIX_ENTERPRISE_KEYonly, optional.
Shared runners on gitlab.com work. The agent's sandbox starts there, and the agent job is also isolated by being its own job.
Hardening:
- The agent job never clones (
GIT_STRATEGY: none): it gets a copy of the commit without.git, and the CI job token and every CI password are unset before the agent runs. - Turn on the runner feature flag
FF_GIT_URLS_WITHOUT_TOKENS, and limit the project's job token (Settings > CI/CD > Job token permissions). - Dawnfix branches are pushed with
-o ci.skip, so no pipeline runs on them by itself. The merge request's pipeline runs when a person runs it or pushes to the branch, or when your config has merge request pipelines. Dawnfix never changes CI config, including files your.gitlab-ci.ymlincludes withinclude: local.
-
Init.
npx dawnfix init --host gitlabwrites.dawnfix.ymland shows the include for your.gitlab-ci.yml. It never asks for a secret. -
Include the template at the release tag. GitLab checks it against the hash before it runs it (the template's header says how to get the hash):
include: - remote: https://raw.githubusercontent.com/dawnfix/dawnfix/v<version>/templates/gitlab/dawnfix.gitlab-ci.yml integrity: sha256-…
-
Read-only cloud role. AWS:
infra/aws/dawnfix-read-role-gitlab.yamlwith CloudFormation (it trusts GitLab OIDC for your project's default branch only). GCP:infra/gcp/setup-wif-gitlab.sh, which prints the value forDAWNFIX_GCP_WIF_PROVIDER. -
CI/CD variables. Each secret is masked, protected and scoped to one environment:
Variable Environment scope What DAWNFIX_AI_API_KEYdawnfix-agentyour AI API key (Claude today) DAWNFIX_HOST_TOKENdawnfix-publisha project access token: role Developer, scopes apiandwrite_repositoryDAWNFIX_ENTERPRISE_KEYdawnfix-reportoptional, Enterprise only Not secret:
DAWNFIX_AWS_ROLE_ARNandDAWNFIX_AWS_REGION, orDAWNFIX_GCP_WIF_PROVIDER.glabreads each secret from stdin, so it stays out of your shell history:glab variable set DAWNFIX_AI_API_KEY --masked --protected --scope dawnfix-agent glab variable set DAWNFIX_HOST_TOKEN --masked --protected --scope dawnfix-publish glab variable set DAWNFIX_ENTERPRISE_KEY --masked --protected --scope dawnfix-report # optional glab variable set DAWNFIX_AWS_ROLE_ARN --value "<role arn>"
-
Schedule. The jobs run only when
DAWNFIX_RUNistrue, so your other pipelines are untouched:New projects block pipeline variables, and the schedule needs
DAWNFIX_RUN: allow them for maintainers (Settings > CI/CD > Variables > Minimum role to use pipeline variables).glab api --method PUT "projects/:fullpath" --field ci_pipeline_variables_minimum_override_role=maintainer glab schedule create --cron "17 * * * *" --ref main --description dawnfix --variable "DAWNFIX_RUN:true"
To run it by hand: Build > Pipelines > Run pipeline with
DAWNFIX_RUN=true, plusDAWNFIX_DRY_RUN=trueorDAWNFIX_BASELINE=true.
What it costs you
Dawnfix itself is free, with no key. It runs on accounts you already pay for, and those bills go to you, not to us:
- Claude tokens, on your own AI API key (
DAWNFIX_AI_API_KEY). Only the diagnose or fix job uses them, and only on a run that found a new error. A quiet hour spends no tokens.limits.fix_prs_per_dayand the agent'smax_turnscap a busy day. - GitHub Actions minutes. The read job runs every hour, about a minute each, so about 720 minutes a month on the default schedule, plus the agent jobs when they run. Free on public repos; on private repos they count against your plan's included minutes.
- AWS API calls in your account: the tick reads with
FilterLogEventsandDescribeAlarms, and load balancer 5xx withGetMetricData($0.01 per 1,000 metrics). Logbill's Logs Insights queries are billed per GB scanned; it prints the estimate and stops at its budget. - AWS Cost Explorer, for Receipt only: $0.01 per request, one per deploy (two with
--tag-key).
autonomy |
What happens when a new error shows up |
|---|---|
diagnose |
An issue: cause with file:line, impact, severity. The agent has no shell and the job cannot push |
plan |
An issue with the planned test and fix |
draft-pr |
A failing test, then the fix, as two commits on dawnfix/<fingerprint>, opened as a draft PR. An issue when no cause or failing test can be shown |
Use it from your coding agent
prompts/ holds copy-paste prompts for any coding agent (Claude Code, Codex, Cursor and others): set up Dawnfix in a repo, diagnose or fix a findings file, check status, and run each tool below. Paste one, or ask your agent to save it as a skill or a command. prompts/ci/ holds the instructions the workflow gives its agent.
What is here
| Folder | |
|---|---|
| core/ | dawnfix-core: the deterministic tick (query, fingerprint, dedupe, redact), the findings and ingest schemas |
| .github/workflows/ | the reusable workflows dawnfix.yml, parity.yml, flare.yml, receipt.yml, and release.yml |
| templates/ | .dawnfix.yml and the copy-it-yourself workflows: dawnfix.yml, and the optional dawnfix-parity.yml, dawnfix-flare.yml, dawnfix-receipt.yml |
| infra/ | the read-only AWS role (CloudFormation), its verifier, the GCP Workload Identity script |
| prompts/ | copy-paste prompts for coding agents, and the CI agent's instructions |
| logbill/ | Dawnfix Logbill: read-only CloudWatch Logs bill X-ray that runs on your machine |
| parity/ | Dawnfix Parity: read-only config drift between AWS environments and a secret inventory; names and metadata only |
| flare/ | Dawnfix Flare: read-only audit of Cloudflare accounts and Workers and your wrangler files; one bundled file, node flare/dist/cli.js |
| sweeper/ | Dawnfix Sweeper: what an AWS migration left behind, priced per month, with a teardown plan; never deletes |
| leastpriv/ | Dawnfix Leastpriv: least-privilege trim of one IAM role from last-accessed data, as a PR body and diffs; never changes IAM |
| receipt/ | Dawnfix Receipt: a comment on every production deploy with what it did to the AWS bill |
| fleet/ | Dawnfix Fleet: a read-only collector for agencies that look after many client accounts |
| hosted/ | a helper for Dawnfix Enterprise, the hosted part (below) |
Also cli/, the npm package dawnfix (init, doctor, flare), and
pyproject.toml, the PyPI package dawnfix (core and the Python tools in one). How a
release is published: RELEASING.md.
Tests: cd core && make install && make test; core/.venv/bin/pytest -q infra/tests;
cd <logbill|parity|sweeper|leastpriv|receipt> && make install test;
cd fleet/collector && make install && make test;
cd flare && npm ci && npm test && npm run build:check;
cd cli && npm ci && npm test && npm run build:check.
Enterprise (hosted, optional)
Everything above runs in your own accounts with no key. Our hosted part adds a status page,
digest and alert emails, the Fleet board, and support.
Dawnfix Enterprise is sold by contact: dawnfix@sivakoza.ai. It is a monthly
subscription, priced per organization (https://dawnfix.dev/pricing). With an Enterprise key
in the DAWNFIX_ENTERPRISE_KEY secret, the workflows also send counts (never log text, names or
values) to the hosted service. Field by field: core/schema/ingest.schema.json and
https://dawnfix.dev/security. Without the key, each of those steps prints one line, such as
"Hosted reporting (status page and digest) needs an Enterprise key.", sends nothing, and the
run goes on.
License
Dawnfix is under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2). In plain words, and the license text is what counts:
- You may use, copy, modify and run it, including in your company and for your clients' systems.
- You may not sell it or offer it, or a substitute for it, as a competing product or service.
- Every release becomes Apache-2.0 two years after it is published.
- Contributions are welcome.
Versions released before 27 Nov 2026 were MIT-licensed; from v0.2.0 on the code is under FSL-1.1-ALv2.
Metadata
Release files for dawnfix 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dawnfix-0.4.0.tar.gz | 185.9 kB | With provenance | Details for dawnfix-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dawnfix-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for dawnfix-0.4.0-py3-none-any.whl |
Total release size: 400.1 kB
Release files / dawnfix-0.4.0.tar.gz
| Download URL | dawnfix-0.4.0.tar.gz |
|---|---|
| Size | 185.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcf8bbe2ce8df6729d74e21880acfa683bc2c71bbcab5421f84831fd85f59e65
|
|
BLAKE2b-256 checksum How to use checksums |
66a47f4ef6befdde463cb2c2cf2fff304ec4e78bd2e43e2c91852d896ed90799
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / dawnfix-0.4.0-py3-none-any.whl
| Download URL | dawnfix-0.4.0-py3-none-any.whl |
|---|---|
| Size | 214.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc9f130a55ab82e35638bb058b53f4916c2c0f09f4c44f215aaafc27f7be34be
|
|
BLAKE2b-256 checksum How to use checksums |
29d4b735b819877f94ea6452f62df40058a0d8dc281bef5d2b70a377eb17f7b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for dawnfix 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dawnfix-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.