AI governance and spend control
- Who can use it
- Org admins set it up. Managers read it for the teams they can see.
- Where
- Admin → AI budgets, Admin → AI policy, Admin → Agents, Admin → Integrations, and the AI Impact category
- Availability
- Some parts are included by plan and some are switched on workspace by workspace. Each section says which.
- Enforcement
- Reports after the fact. The optional AI policy check can fail a pull request, and that blocks a merge only if you make it a required check in GitHub. DevGlimpse never blocks a person or a tool.
Keep AI spend on budget, check that teams follow your AI rules, and find out whether an AI rollout actually helped. AI impact shows what AI-assisted work ships. This page covers the controls around it.
- Every figure is per team or per workspace. Nothing here ranks a person.
- DevGlimpse reports after the fact. It never blocks a person or a tool. The optional AI policy check can fail a pull request, and that blocks a merge only if you make it a required check in GitHub.
AI budgets
Set a monthly US dollar budget for the whole workspace, a team or a group. DevGlimpse forecasts the month-end figure and alerts you before the budget is spent.
- Open Admin → AI budgets (org admins).
- Pick what the budget covers (workspace, team or group), the tool and the monthly amount.
- Keep the default alert thresholds of 80% and 100%. Or set between one and ten of your own, each from 1% to 200%.
- Choose where overage alerts go: email, Slack or Microsoft Teams.
A budget row also appears in the AI Adoption report (AI Impact category). Managers see only budgets for their own teams and groups.
How budgets work:
- The forecast extends the last 14 days’ run rate to the end of the month.
- A nightly check at 02:00 UTC sends each threshold alert once per budget and month.
- A workspace can hold up to 50 budgets.
- A team smaller than your minimum group size shows no figure.
AI policy
Write down how your company wants AI used. DevGlimpse then reports where pull requests and agents break those rules (violations). The report never blocks, comments on a pull request or notifies the author. If you also want a rule checked before merge, give it a check setting and turn on the AI policy check.
Org admins set rules on Admin → AI policy:
- Human review required: AI-assisted pull requests need between 1 and 5 human reviews.
- Maximum AI pull request size: a size limit between 50 and 10,000 changed lines.
- Approved models: a list of model name patterns per AI tool. A tool with no approved pattern never produces a violation.
- Unapproved agents: flags every agent that is not marked approved on Admin → Agents.
The human review and maximum size rules also have an On the check setting: Off (report only), the default, Advisory or Blocking. It matters only where the AI policy check is turned on.
To review violations:
- A rule can cover up to 500 repositories.
- The AI Policy Compliance report (AI Impact category) lists the violations.
- An org admin, or a manager whose visibility setting covers the person, resolves a violation.
- An exemption needs a note of up to 500 characters.
- Only an org admin can resolve an agent violation.
Agents
See which AI agents and bots work in your repositories, and decide which ones you approve. Each night DevGlimpse looks through 90 days of bot activity and AI signatures to find them. It sorts them into coding agents, AI reviewers, dependency bots, automation and unknown.
- Open Admin → Agents. Managers can read it. Only an org admin reviews.
- Mark each agent Approved, Not approved or Retired.
- Optionally add a note of up to 1,000 characters, and name the team or group that owns it.
- Open the Agents report (AI Impact category) to see what each agent did: sessions, pull requests and cost.
Developers see only the approved agents, with their name, kind and tool. The Agents report hides dependency bots by default, so the list shows agents that write or review code.
Quality-adjusted AI return on investment
Check whether AI raised output without lowering quality. On AI Adoption, the adoption date and ROI section has a Quality-adjusted toggle. It is off by default. It removes failed pull requests from throughput (merged pull requests), and adds:
- the failure rate, where a failed pull request is one that was reverted or linked to a bug or incident,
- the rework ratio (the share of merged lines later reworked), counted within 90 days,
- AI against human pull requests on both,
- net merged pull requests per $1,000 of AI spend.
Things to know:
- It shows teams and the workspace, never a person.
- A team with fewer than 10 merged pull requests in a window is flagged as a small sample.
- The net figure shows no value when spend did not rise.
- It states correlation, not causation.
Interventions
Did a rollout change anything? Interventions (AI Impact category) compares before and after a change. It compares the teams that got the change (treatment) with teams that did not (control). The control group cancels out whatever both groups shared, such as a quarter-end rush.
- Create an intervention. Managers and org admins can do this. Give its kind (AI rollout, process, tooling or other), the treatment teams or groups, optional control teams or groups, and a start date.
- Choose the ramp (0 to 56 days, default 14) and the comparison window (7 to 90 days, default 28).
- Open the intervention to read throughput per person-week, cycle time, pickup time (wait for the first review), review latency, revert rate and the AI-assisted share.
Read the results with care:
- Without a control group, the report says it is a before-and-after comparison only.
- It runs no significance tests, so read it as direction, not proof.
- Both groups are withheld if either is smaller than your minimum group size.
AI Code Durability
How much of the code a pull request added is still there 30 and 90 days later? AI Code Durability (AI Impact category) answers this for AI-assisted, AI agent and human pull requests, by AI tool, by team and over time.
- Open Admin → Integrations and find the Line history panel (org admins).
- Turn on the repositories you want measured. Every repository starts off.
- Open AI Code Durability. A repository you just turned on fills in over the next nights.
What it reads and its limits:
- It reads line ranges and commit hashes from GitHub’s blame view. It never fetches file contents.
- It works for GitHub only and skips archived repositories.
- It samples up to 20 files per pull request.
- An opt-in reaches back 90 days.
Advisory risk check on pull requests
Spot risky pull requests before they merge. DevGlimpse can post a check run named DevGlimpse risk on pull requests. It is advisory only:
- Its conclusion is always neutral, so it never blocks a merge.
- It adds no comments, labels or reviews.
- It never names the author.
To turn it on:
- Open Admin → Integrations and find the Risk check panel (org admins).
- Approve the Checks: write permission when GitHub asks. It is the only write permission DevGlimpse requests. Until you approve it, a notice on Admin → Integrations says new App permissions await approval, and no check is posted.
- Turn the check on for the repositories you want.
The check scores six factors from 0 to 2 each, and gives a plain-sentence reason for each:
- size, against the repository’s own history,
- files changed, against the repository’s own history,
- how many times the branch was pushed,
- how long the pull request has been open,
- the repository’s change failure rate,
- whether the author is new to the repository.
A total of 2 or more reads elevated. A total of 4 or more reads high. A repository needs 10 merged pull requests before size is compared, and 5 deploys before the failure rate is.
AI policy check on pull requests
DevGlimpse can post a second check run, named DevGlimpse AI policy, on non-draft pull requests. It evaluates the AI policy rules you gave a check setting before the pull request merges. Pull requests that are not AI-assisted pass. It adds no comments, labels or reviews, and never names a person.
- Open Admin → AI policy and set each rule’s On the check setting (org admins):
- Off (report only): the rule stays in the report and is left off the check. This is the default.
- Advisory: a broken rule makes the check neutral.
- Blocking: a broken rule makes the check fail.
- Open Admin → Integrations, find the AI policy check panel, turn it on and pick the repositories (org admins). It uses the same Checks: write permission as the risk check.
- To make Blocking stop a merge, mark DevGlimpse AI policy as a required check in your GitHub branch protection or ruleset. DevGlimpse never changes your branch protection, so without that step a failing check is a signal, not a block.
- It fails open. When DevGlimpse cannot evaluate, because the plan no longer includes the AI policy, the workspace is read-only or something went wrong, the check reads neutral, never failing.
- New pushes get the check straight away. Open pull requests DevGlimpse has seen a push for get it within the hour. A pull request DevGlimpse has not seen a push for, such as one opened before the App was installed, gets the check on its next push or reopen.
- Exemptions. Each check links to a page in DevGlimpse with the result per rule. A manager in scope or an org admin can exempt the pull request from a rule there, with a reason.
- Turning it off or deselecting a repository turns its open checks neutral within the hour.
GitHub shows every check to everyone who can read the repository, so turning the check on publishes DevGlimpse’s AI-assisted classification of each pull request there. On a public repository that means anyone on the internet.