Retrieved article excerpt
Open article · Retrieved 2026-10-27T02:27:06.675970+00:00
Open source · MIT · Python 3.12+
# Know when the APIs under your agents move.
Tiltmeter learns the shape of every third-party API you depend on from real responses, warns you, your CI and your agents the moment it changes, and opens the pull request that adapts your code.
$`pip install tiltmeter`copy
[Try it on a fake API in five minutes →](https://github.com/tiltmeter-dev/tiltmeter/blob/main/docs/getting-started.md)
Are you an agent? Read [/llms.txt](https://tiltmeter.dev/llms.txt) and set it up yourself.
Field report · October 2026
## Retired APIs are still in production code.
We searched public GitHub code for API changes that already shipped, then let Tiltmeter fix the most-starred active repositories, one reviewed pull request at a time. [Every pull request and its status →](https://tiltmeter.dev/migrations/)
files on GitHub still name `llama-3.3-70b-versatile`, ten weeks after Groq shut it down for free and developer keys
: 314k
pull requests Tiltmeter opened for changes at 8 APIs
: 64
merged so far, each as Tiltmeter wrote it
: 5
GitHub stars across the repositories that got a fix
: 1M+
- **Groq.** 260 of 1,619 popular, active AI repositories still name a model Groq has retired, often as the default. 15 fixes went out, to LibreChat, Harvard's Machine Learning Systems book and DB-GPT among others. [Groq →](https://tiltmeter.dev/migrations/groq/)
- **Anthropic.** Swapping the model id isn't enough: Claude Sonnet 5.5, the recommended replacement, rejects `temperature` and thinking budgets. Two maintainers caught our first fixes on it, so Tiltmeter now adapts how requests are built. [Anthropic →](https://tiltmeter.dev/migrations/anthropic/)
- **Stripe.** 78 repositories still read `subscription.current_period_end`, removed in API version 2025-03-31, including Stripe's own subscription sample, which no longer type-checks against Stripe's SDK. [Stripe →](https://tiltmeter.dev/migrations/stripe/)
- **Slack.** `files.upload` stopped on November 12, 2025, and openreplay, reconftw and intuit/auto still called it. Their fixes use the three-step upload that replaced it. [openreplay's fix →](https://github.com/openreplay/openreplay/pull/5067)
- **OpenWeatherMap.** One Call API 2.5 closed in June 2024, and Aerial (21k stars), Raycast's script commands and Linux Mint's weather applet still called it. [Aerial's fix →](https://github.com/JohnCoates/Aerial/pull/1428)
- **HubSpot.** Pipelines API v1 stops on December 4, 2026, and Airbyte's HubSpot connector still reads it: the case for fixing code before a shutdown instead of after.
**billing\_customers** GET /v1/customers
shape stable breaking drift
BREAKING · 3 changes
`balance` integer → string
`phone` removed, possibly renamed to `phone_number`
Reported once. Then it's the new normal.
check 1check 13check 26 · vendor deploycheck 40
```
$ tiltmeter check
✗ billing_customers 200 · 13 ms BREAKING · 3 changes
breaking type_changed $.data[*].balance integer → string
breaking field_removed $.data[*].phone string → (absent) possibly renamed to $.data[*].phone_number
info field_added $.data[*].phone_number (absent) → string possibly replaces $.data[*].phone
1 endpoint checked · 1 breaking
$ echo $?
2
```
ClaudeThe vendor most likely renamed `phone` to `phone_number`. Code doing math on `balance` will break now that it is a string. Read `phone_number` and parse `balance` as a number.
Typed code crashes loudly when an API changes. Agents don't. They read the new response, fill the gaps with guesses, or retry until the budget is gone.
How it works
## No spec. No noise. No guessing.
1. 01
### Observe
A check calls the endpoint and turns the JSON body into a shape: types, how often each field appears and the values of fields that look categorical.
```
balance integer 20/20
phone string 20/20
status active | past_due
```
2. 02
### Compare
The baseline merges the last 20 successful checks. Only contradictions count: a missing optional field is fine, a field that was always there and is gone is not.
```
balance integer → string
phone 20/20 → 0/1
```
3. 03
### Warn, once
Fail CI, ping Slack or a webhook, explain it with Claude and tell your agents over MCP. The new shape joins the baseline, so you hear about it once.
```
exit 2 breaking
slack #api-alerts
mcp has_drifted → true
```
4. 04
### Fix
An agent finds the code that reads the API, adapts it and opens a pull request. You review the diff.
```
✓ opened acme/billing-service#41
3 files +5 -5
```
Already calling the API from a web app? Export a HAR from your browser and let Tiltmeter write the config. Tokens and cookies become `${VAR}` placeholders.`tiltmeter init --from-har session.har --host api.example.com`
What counts as drift
## Breaking or harmless, at a glance.
Every change is classified, and a removed field next to a similar new one is flagged as a probable rename. Override any severity globally or per endpoint.
ChangeExampleSeverity
`field_removed``phone` was in every response and is gone**breaking**
`field_now_optional``email` was always there and is now missing from some objects**breaking**
`type_changed``balance` went from integer to string**breaking**
`nullable_introduced``phone` can now be `null`**breaking**
`content_type_changed`the JSON body became an HTML error page**breaking**
`status_changed`200 to 503 is breaking, 404 to 200 is info, 200 to 202 is a warning**depends**
`enum_value_added``status` returned `suspended` besides `active` and `past_due`**warning**
`latency_regression`median latency over 3x the baseline and at least 250 ms slower**warning**
`field_added`a new `phone_number` field**info**
Why not just a DTO
## Your models find out in production.
Keep your DTOs. They check the fields you modeled, at the moment your code reads them. Tiltmeter checks the whole response, before your code runs into it, and tells you when to change them.
The vendor renames `phone` and sends `balance` as a string
```
class Customer(BaseModel):
name: str
phone: str
balance: int
Customer.model_validate(response)
```
```
ValidationError: 1 validation error for Customer
phone
Field required [type=missing]
```
`balance` came back as `"1200"` and Pydantic turned it into `1200` without a word. Was it cents or dollars?
- **When it notices.** A DTO fails in the request that breaks, in production. Tiltmeter notices on a schedule or in CI, before any user does.
- **What it sees.** A DTO only knows the fields you modeled. Tiltmeter sees the new `phone_number` next to the missing `phone` and calls it a probable rename.
- **What slips through.** Coercion hides type changes. Tiltmeter reports integer → string as breaking, because the format may have changed with it.
- **Who is covered.** Agents don't have DTOs; they read raw JSON. `has_drifted` gives them the check your typed code already has.
Built for APIs that change without notice
- Smaller vendors and partner APIs with no changelog you can trust
- Internal APIs owned by another team
- Undocumented endpoints behind a web app, starting from a HAR
- Anything your agents call that has no spec
Not where it earns its keep
APIs like Stripe that version every change, let you pin a version and publish a changelog. Pin the version and read the changelog: Tiltmeter adds little there.
For agents
## Agents ask before they act.
An MCP server lets Claude Code, Cursor, LangChain or any MCP client call `has_drifted` before trusting an API, and `get_schema` to see which fields to expect. Agents can only check the endpoints in your config.
> Before you rely on a third-party API, call `has_drifted` for it. If it drifted, read the summary and adapt before trusting the response.
> Text customer 42 that their invoice is overdue
● tiltmeter · has\_drifted("billing\_customers")
```
drifted true
max_severity breaking
changed phone → phone_number
checked 2 min ago
```
● The billing API changed: phone is now phone\_number. I'll read the new field before texting, instead of sending to an empty number.
`has_drifted`Did responses change at warning level or worse recently?
`get_schema`Which fields, types and enum values to expect, as JSON Schema.
`get_changes`The change history, newest first.
`list_endpoints`Which APIs are watched and how their last check went.
`check_api`Calls one API now and records the result.
`check_all`Calls every API now.
Claude CodeCursorCodexOpenCodeAny agent
```
claude mcp add tiltmeter -- uvx tiltmeter serve --config tiltmeter.yaml
```
Run it in your project folder.Copy
```
{
"mcpServers": {
"tiltmeter": {
"command": "uvx",
"args": ["tiltmeter", "serve", "--config", "tiltmeter.yaml"]
}
}
}
```
Or paste this into .cursor/mcp.json.Add to CursorCopy
```
codex mcp add tiltmeter -- uvx tiltmeter serve --config tiltmeter.yaml
```
Or add [mcp\_servers.tiltmeter] to ~/.codex/config.toml.Copy
```
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"tiltmeter": {
"type": "local",
"command": ["uvx", "tiltmeter", "serve", "--config", "tiltmeter.yaml"],
"enabled": true
}
}
}
```
Add this to opencode.json in your project.Copy
```
Set up Tiltmeter (https://github.com/tiltmeter-dev/tiltmeter) in this project so you can check whether the third-party APIs we use have changed before relying on them.
1. Find the external HTTP APIs this codebase calls that return JSON.
2. Create tiltmeter.yaml in the project root with one endpoint per API. Use ${ENV_VAR} placeholders for keys, never literal secrets. Docs: https://github.com/tiltmeter-dev/tiltmeter/blob/main/docs/configuration.md
3. Add .tiltmeter/ to .gitignore and run `uvx tiltmeter check` once to record the baselines.
4. Register the MCP server for yourself, using the command: uvx tiltmeter serve --config tiltmeter.yaml
5. Add to CLAUDE.md or AGENTS.md: "Before relying on a third-party API, call the tiltmeter has_drifted tool for it."
Show me the endpoints you chose before writing the file.
```
Paste it into any coding agent. It finds your APIs, writes the config and installs the server.Copy
Fixes, too
## From drift to pull request.
`tiltmeter fix` hands the change to an agent that finds the code reading that API, shows you the diff and, once you agree, opens the pull request. Run the built-in LangChain agent, or your own Claude Code or Codex login with no API key.
1. Drift found
2. Clean worktree
3. Agent edits
4. You approve
5. Pull request
$ tiltmeter fix 26 --repo ~/code/billing-service
✗ **billing\_customers** #26 · 200 · 13 ms BREAKING · 3 changes
Working on a new branch, tiltmeter/fix-billing-customers-26, from main at 162dadd.
agent is editing the worktree
3 files changed +5 -5
diff --git a/billing/client.py b/billing/client.py
- return f"{customer['name']} <{customer['phone']}>"
+ return f"{customer['name']} <{customer['phone\_number']}>"
...
╭─ agent ─────────────────────────────────╮
Billing customer code now reads phone\_number instead of phone, in the client, the Customer TypedDict and the test fixture.
Left for a human:
- The format of the string balance is unknown ("1200" or "12.00"). Confirm it with the billing provider.
confidence medium
╰─────────────────────────────────────────╯
Commit, push and open a pull request? [y/N]: y
✓ opened https://github.com/acme/billing-service/pull/41
What the code has to follow
- `$.data[*].phone` removed, possibly renamed to `phone_number`
- `$.data[*].balance` integer → string
New fields, status and latency changes are left out.
Worktree · tiltmeter/fix-billing-customers-26
- billing/client.py
- billing/models.py
- tests/conftest.py
- .env*blocked*
- .git*blocked*
No network. Your checkout is never touched.
Open
**Follow billing\_customers drift from check #26**
tiltmeter/fix-billing-customers-26 → mai