ENGINEERING
Daily BigQuery slow-query regression hunter to GitHub tuning issue
Each morning, scans yesterday's BigQuery jobs against a rolling baseline, and for any query whose runtime or bytes-billed regressed past threshold.
How it runs
The automated pipeline, trigger to output.
- TriggerDaily schedule after jobs settle
- ActionQuery yesterday's jobs from INFORMATION_SCHEMA.JOBSBigQuery
- ActionPull 14-day baseline per query hashBigQuery
- LogicKeep only queries past runtime/cost threshold
- ActionFetch query plan and compute cost deltaBigQuery
- OutputOpen GitHub tuning issue with plan and deltasGitHub
What it does
This workflow finds queries that got slower or more expensive overnight and files an actionable tuning ticket so the regression doesn't quietly drain your BigQuery budget. Instead of a generic alert, the issue carries the offending query text, its execution-stage plan, and a before/after cost delta so an engineer can start tuning immediately.
When to use it
Run it on data platforms where scheduled queries and dbt models change often and a single bad join or dropped partition filter can 10x slan run's cost. Best for teams who want a paper trail of regressions in GitHub rather than a noisy Slack feed.
How it works
- 1A daily schedule fires after the prior day's jobs have settled.
- 2BigQuery's INFORMATION_SCHEMA.JOBS is queried for completed jobs and their total_bytes_billed and runtime.
- 3The same query hashes are pulled from a 14-day baseline to compute per-query deltas.
- 4A logic step keeps only queries that regressed beyond the runtime or cost threshold.
- 5For each survivor, the query plan and cost delta are formatted into a tuning report.
- 6A GitHub issue is opened with the plan, deltas, and a 'tuning' label as the final output.
Set it up
What you configure once, before turning it on.
- 1Connect BigQueryDatasets, queries, schemas.
- 2Connect GitHubRepos, issues, pull requests, actions.
- 3Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 4Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 5Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Engineering workflows
Upgrade Impact Router to Module Code Owners
Maps a dependency-bump PR's affected modules to their CODEOWNERS, then DMs each owner on Slack with only the changelog slice that touches code they own.
Re-Voice IVR Prompts on Phone-Tree Config Merge
When a phone-tree config change merges in GitHub, regenerates the ElevenLabs audio for any prompt whose script changed in the diff and opens a follow-up PR adding the new audio…
Agent reviews model-license fit and suggests compliant swaps on the PR
When a PR adds a Hugging Face model, an agent reads the model card and license, judges fit against your commercial-use policy.
Scan for deprecated endpoints and email consumers a weekly sunset countdown
On a weekly schedule, scans the OpenAPI spec for endpoints marked deprecated with a sunset date, and emails each consuming team a countdown of how many days remain before removal.
Publish a versioned API changelog to Confluence on each release tag
On a new semver release tag, gathers the contract changes since the last release and writes a clean.
Gate breaking API PRs behind downstream consumer acknowledgement
When a PR introduces a breaking contract change, comments the impact summary back on the PR, applies a blocking label.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
