depdesk
Know which of your model calls are on a clock.
Find the deprecated and retired LLM model identifiers your code still calls, and fail the build before an OpenAI or Anthropic model retirement takes the application down with it.
Providers retire models on their schedule, not yours. The notice arrives by
email, to one person, months before anything breaks, and then it is forgotten
until a request starts failing in production. depdesk crosses the deprecation
notices you did not read with the models your code actually calls, and fails
your build while there is still time to do something about it.
Zero dependencies. Python 3.9 or newer. Anthropic and OpenAI today, and any provider you write a catalog entry for.
Try it in ten seconds
With uv, there is nothing to install:
uvx depdesk check .
No uv? One line, no sudo:
curl -LsSf https://astral.sh/uv/install.sh | sh
Or install depdesk itself, with pipx or into a virtual environment:
pipx install depdesk
# or
python3 -m venv .venv
.venv/bin/pip install depdesk
.venv/bin/depdesk check .
A plain pip install depdesk into the system Python fails on Ubuntu 24.04,
Debian and everything else that ships PEP 668,
which is most distributions now. That is the distribution protecting its own
Python, not this package being difficult, and every command above works around
it the way the distribution intends.
That is the whole setup. Point it at a repository and it reports every model
identifier it finds, crossed against the provider's published deprecation
dates. There is a deliberately broken sample in
examples/legacy-app if you want to see a failing run
before pointing it at your own code.
$ depdesk check . --fail-in 60
depdesk: 2 files scanned in .
catalog verified 2026-09-20 (2 days ago)
ALREADY RETIRED
claude-opus-4-1-20250805
provider: anthropic
retirement: 2026-08-05 (48 days ago)
announced: 2026-06-05
replacement: claude-opus-4-8
app/legacy.py:1: OLD = "claude-opus-4-1-20250805"
RETIRES SOON
gpt-5.4-cyber
provider: openai
retirement: 2026-10-01 (9 days left)
announced: 2026-09-11
replacement: gpt-5.6-cyber
app/legacy.py:2: CYBER = "gpt-5.4-cyber"
DEPRECATED PARAMETERS
temperature
behaviour: Returns a 400 error when set to a non-default value.
replacement: Omit the parameter and steer behaviour through prompting.
sdk: The Python SDK (v1.0 and later) removes temperature, top_p
and top_k, so passing them raises a TypeError.
app/legacy.py:9: temperature=0,
file also names: claude-opus-5
Summary: 1 already retired, 1 retires soon.
$ echo $?
2
Every line of that output is real: it is the tool running against a two file sample, not a mockup.
What it finds
Models on a clock. Identifiers written anywhere in the tree, including
.env files and config, matched against the provider's own retirement dates.
Each finding carries the announcement date, the retirement date, the
replacement the provider names, and the exact lines where you use it.
Deprecated parameters. Model retirement is the loud failure. The quiet one
is a parameter that starts returning 400 on newer models while your code keeps
passing it, which is what happened to temperature, top_p and top_k on
Claude Opus 4.7 and later. No changelog files that under "deprecation", and
nothing in your test suite catches it if your tests never hit the new model.
depdesk parses your Python with the standard library ast module, so it
finds the keyword argument itself, not a string that looks like one.
Endpoints and products that the provider has put on notice, matched the same way.
Where the provider's own wording is ambiguous about which models a rule covers,
depdesk says so and downgrades the finding to review instead of guessing.
Put it in a commit hook
For pre-commit, three lines in the config you already have. It checks the staged files, which is fast enough to sit in a commit hook; scanning the whole tree is CI's job.
# .pre-commit-config.yaml
repos:
- repo: https://github.com/Ort0x36/deprecation-desk
rev: v0.2.0
hooks:
- id: depdesk
Put it in CI
This is the point of the exit codes: the build starts failing while there is
still time to migrate, not the day the model dies. --fail-in is where that
line sits. Anything already retired, or retiring inside the window, fails.
Anything deprecated but further out is printed as a warning and the build
passes, so a model with five months left does not block every merge from the
day it is announced.
# .github/workflows/depdesk.yml
name: model deprecations
on:
push:
schedule:
- cron: "0 7 * * 1" # Monday morning, so notice arrives before the deadline
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with: { python-version: "3.12" }
- run: pip install depdesk
- run: depdesk check . --fail-in 60
There is also an action, if you prefer it to the two lines above:
- uses: Ort0x36/deprecation-desk@v1
with:
path: .
fail-in: "60"
# strict: "true"
# usage: usage.csv
| code | meaning |
|---|---|
| 0 | nothing fails the build. Deprecations further out than --fail-in are still printed, as warnings |
| 1 | only with --strict: there are warnings, and you asked for them to fail |
| 2 | something is already retired, retires within --fail-in, or passes a parameter the model rejects |
| 3 | the tool could not do its job |
Inside GitHub Actions every finding also becomes an annotation on the line
that uses it, visible in the pull request, and the job summary gets a table of
what fails and what only warns. That matters most for the warnings: nobody
opens the log of a green build. It turns itself on when GITHUB_ACTIONS is
set, with no configuration; --no-github turns it off.
Weight it by real traffic
Scanning code tells you what is referenced. It does not tell you what is hot.
Point --usage at an export and every finding gains a share of traffic, so you
can tell a dead constant from 40% of production.
depdesk check . --usage usage.csv
depdesk check . --usage usage.csv --usage-count-column input_tokens
ALREADY RETIRED
claude-3-5-sonnet-20241022 [3.3% of measured calls]
provider: anthropic
retirement: 2025-10-28 (329 days ago)
announced: 2025-08-13
replacement: claude-sonnet-4-6
seen in usage data but not found anywhere in the scanned tree
claude-opus-4-1-20250805 [15.3% of measured calls]
provider: anthropic
retirement: 2026-08-05 (48 days ago)
announced: 2026-06-05
replacement: claude-opus-4-8
app/legacy.py:1: OLD = "claude-opus-4-1-20250805"
That first finding is the one worth the flag: a retired model still taking traffic from code that is not in this repository at all.
For Anthropic: Claude Console, Usage, Export. The CSV has an API key
column and a model column, and depdesk sniffs them. CSV and JSON both work.
Ask what breaks later
depdesk check . --today 2027-01-01
More useful than it sounds: it answers "what breaks over the holidays" before anyone leaves.
When a finding is not a finding
Documentation, changelogs and migration notes legitimately name models that are dead. A tool you cannot silence on a line you have already judged is a tool people stop running, so there are two escapes, both deliberate:
OLD = "claude-opus-4-1-20250805" # depdesk: ignore
depdesk check . --exclude "CHANGELOG.md" --exclude "*/migrations/*"
When the fix is postponed rather than refused, give the ignore a date. The line counts again from that day, so the exception cannot quietly become permanent:
OLD = "claude-opus-4-1-20250805" # depdesk: ignore until=2026-12-01
A date that does not parse silences nothing, so a typo shows up as a finding
instead of hiding one forever. --today applies to it too.
The marker silences one line, in any file type, in whatever comment syntax that
file uses, because it is matched as text. --exclude takes a glob, matched
against the path and the file name, and repeats. Neither has a project level
config file on purpose: an ignore list nobody reads is how a tool like this
starts lying.
Commands and flags
depdesk check [PATH ...] scan a tree and report what is dying
depdesk upstream ask whether the provider pages moved
depdesk list print the catalog
flag on check |
what it does |
|---|---|
--fail-in DAYS |
how close a retirement has to be to fail the build (default 90) |
--strict |
also fail, with exit 1, on warnings: deprecations outside the window, sunsets, uncertain parameters |
--sunset-in DAYS |
also report active models with an announced earliest retirement inside this window |
--usage FILE |
weight findings by real call volume |
--usage-model-column, --usage-count-column |
override the sniffed columns |
--today YYYY-MM-DD |
ask what this repository looks like on a future date |
--locations N |
how many source lines to print per finding (default 3) |
--json |
machine readable output |
--no-github |
inside GitHub Actions, skip the annotations and the job summary |
--exclude GLOB |
skip paths matching this glob, repeatable |
--no-unknown |
stop reporting identifiers the catalog does not know |
--catalog FILE |
use your own catalog, for a provider we do not cover |
The catalog, and why you can trust it
The only thing that makes this tool worth anything is whether the dates in it
are true. So they are not hidden: depdesk/data/catalog.json
is plain JSON, every entry was transcribed from the provider's own page, and
the file records when that happened. depdesk check prints a warning when the
catalog is more than 30 days old.
depdesk upstream # did the provider pages change since then?
depdesk upstream --save # record the current state as the new baseline
upstream does not parse the page into a catalog. An earlier version hashed
the whole page and produced a different digest on three consecutive fetches of
the same unchanged content, because provider docs carry per-request markup. So
it extracts the model identifiers and the dates, compares those against the
catalog, and prints what appeared and what disappeared. A human decides what it
means. A scraper that half works would produce a catalog that looks maintained
and is not, which is the exact failure this tool exists to prevent.
upstream exits 1 when a page moved, 3 when it could not be fetched, and 0
otherwise. It prints, but does not fail on, the identifiers a page names that
the catalog does not mention: the OpenAI page alone names about twenty of
those and always will, because a deprecation page also lists models that are
not being deprecated. That is a standing difference, not an event, and a weekly
alarm that fires on it stops being read. Pass --strict if you do want those to
fail.
This repository runs upstream every Monday and
opens an issue when a provider page
moves, so drift lands in front of a person instead of in a log nobody reads.
What it does not do
Being plain about the limits, because the whole point is to be trustworthy:
- It does not know your provider's private schedule. It knows what is on the public deprecation pages, transcribed by hand.
- It only covers Anthropic and OpenAI today. Other providers are a catalog
entry away, and pull requests are welcome.
--catalogtakes your own file. - It finds identifiers written as text. A model id assembled at runtime from
string pieces will not be found by the scanner. The
--usagepath catches that case, which is part of why it exists. - It reads
.envfiles, because that is where model configuration lives. It prints only lines that matched a model identifier, but if that bothers you, scan a narrower path. - It will not edit your code. Migrating a prompt is a judgement call and this tool has no opinion about your prompts.
Contributing
Catalog out of date? A pull request editing depdesk/data/catalog.json is the
fastest path, and the diff is readable by anyone. Want a provider we do not
cover? Open an issue with a link to their public deprecation page. See
CONTRIBUTING.md.
Development
python3 -m pytest -q tests/
python3 -m depdesk check .
The test suite pins the behaviour that matters: that gpt-4-turbo does not
match inside gpt-4-turbo-preview, that an active model stays silent, that the
parameter rule needs an affected model in the same file before it fires, and
that the fingerprint survives cosmetic markup changes but not a changed date.
Licence
MIT. Built by Wendel Ortiz while running an LLM product in production.
Release files for depdesk 0.2.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 | |
|---|---|---|---|
| depdesk-0.2.0.tar.gz | 40.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| depdesk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.5 kB
Release files / depdesk-0.2.0.tar.gz
| Download URL | depdesk-0.2.0.tar.gz |
|---|---|
| Size | 40.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdf1982f20d1df38688cd21d3439eca2dfd0ee3094f0f101d940b726b62a3c72
|
|
BLAKE2b-256 checksum How to use checksums |
8b332cee01b1f1e09484dc73537bcaaa99f3b58c108b432a8becd1af7894af45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 24, 2026.
Transparency logRelease files / depdesk-0.2.0-py3-none-any.whl
| Download URL | depdesk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 33.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d73d039b28fdecfb49212a84919b2b5749454b31e4d14de5e4e728fec691b654
|
|
BLAKE2b-256 checksum How to use checksums |
4c342fc9330e642b5ccd34ca609a5a2ab3b1927b9f61063e580fe79d8e02510f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 24, 2026.
Transparency log