bts-io/codehawk
À propos
Pull request reviews, scans and browser checks for GitHub, run in your own Actions with your own model key.
IA et apprentissage automatiqueProgression mesurée des étoiles
- in 24h
- Historique en cours
- in 7 days
- Historique en cours
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
Pull request reviews, security scans, verified fixes and browser checks for GitHub, run in your own Actions with your own model key.
What it does
Code Hawk runs as reusable workflows in your repository's GitHub Actions. Each job does one thing, and the GitHub App posts the result with scoped permissions.
| Job | What you get |
|---|---|
| PR scan | Static and dependency findings from Semgrep CE, Gitleaks, zizmor and OSV-Scanner. No model calls. |
| PR review | Findings on the added lines, a summary that stays current, and answers when you reply to a finding. |
| Verified fixes | Draft pull requests for labelled issues or a maintainer's @codehawk-app fix, with a test that failed before the fix and passes after it. |
| Browser flows | Recorded flows against your app in a container, with a result, video and diagnosis for each flow. |
| Weekly review | Rotating audits of one area at a time. A second, different model confirms each finding before it is filed. |
flowchart TB
pr["Pull request or schedule"] --> wf["Code Hawk jobs in your Actions"]
wf -->|"your model key"| llm["OpenAI, Anthropic, Google or compatible"]
wf -->|"short-lived app token"| out["Comments, findings, draft fixes"]
Code Hawk never uses pull_request_target, never approves and never merges. Model review reads the trusted base settings and does not run pull request code. Static scanners get no posting credentials, model-written fixes are tested apart from publication, and repository code runs in secret-free containers. Forks and missing secrets take the skip or log-only path. See the trust model.
Screenshots
Pull request review summary
One summary per pull request, kept current on every push, with each finding, its severity and the spend.
Security finding on a changed line
Findings sit on the added line that causes them, with a reply hint to dismiss them for good.
Fix request from a review thread
A maintainer replies with a fix request and Code Hawk opens a draft pull request.
Verified fix pull request
The draft names the finding, the test that failed before the fix and passed after it, and the spend.
Browser flows on a pull request
Recorded flows against a seeded copy of the app, with the facts it saw and a diagnosis tied to the code.
Weekly area review
Each weekly finding is checked by a second, different model before anything is filed.
Quick start
- Install the GitHub App and pick a repository. GitHub brings you back to the setup page.
- Choose a provider and model there, or edit
.github/codehawk.jsonin the Set up Code Hawk pull request. Each job can use its own model profile, with fallbacks and a spend cap. That pull request also adds the pinned caller workflow. - Add one model key as an Actions secret. The static scan runs without one.
- Merge the setup pull request, then open a pull request from a branch in the same repository.
The reusable workflows use the hosted token Worker by default. Set token_worker_url for your own Worker, or pass app_id and the CODEHAWK_PRIVATE_KEY secret to use your own GitHub App. Model jobs have optional spend caps, see models and costs.
Docs
Full documentation is at https://codehawk.app/docs/, written from docs/.
- Start here: Getting started, The GitHub App, Setup page, Repository setup
- Jobs: PR scan, PR review, Replies and re-reviews, Fix requests, Fix issues, Browser flows, Weekly review, Settings commands
- Security: Trust model, Permissions, Model output, Browser flows, Token Worker
- Reference: Configuration, Models and costs, Workflow inputs, Pinning and upgrades, Troubleshooting, Development
Repository layout
| Folder | What it is |
|---|---|
.github/workflows/ |
the reusable workflows your caller workflow pins |
actions/ |
the composite actions those workflows run |
packages/action/ |
the job code, bundled into packages/action/dist/ |
packages/worker/ |
the token Worker and the setup page API on Cloudflare Workers |
packages/shared/ |
settings schema and helpers shared by the action and the Worker |
docs/ |
the guides, published at codehawk.app/docs |
site/ |
the codehawk.app landing page, setup page and docs site |
assets/ |
the brand: logo, icons and banners |
Contributing, security and licence
- Contributing: see CONTRIBUTING.md and the code of conduct.
- Security reports: see SECURITY.md.
- Changes in each release: see CHANGELOG.md.
- Licence: GPL-3.0-or-later, see LICENSE and NOTICE.
Explorer des projets similaires
Chargement…