Skip to main content
Glama

PyPI Python GitHub Marketplace CI Index build License: MIT Glama

Python libraries rename and remove things from one release to the next, so a routine dependency update, from Dependabot, Renovate or you, can break code that used to work.

DepTime points to each line of your code an update breaks, says in which release it changed, and names what to use instead. No AI model in the loop: it runs on your machine, costs nothing, and gives the same answer every time. Your coding agent can use it too.

  • Facts, not guesses. Answers come from comparing each library's own code release by release, and they show the evidence.

  • Private and free. Open source (MIT) and runs on your machine. Your code and errors stay there.

  • Honest about gaps. When it doesn't cover a package or can't tell, it says so instead of guessing.

Status: stable (1.0). The data updates itself twice a day. Spotted a wrong answer? Report it and it becomes a test case.

Get started

You need uv.

Check an update. After updating your lockfile or requirements, run this in your project:

uvx deptime check-upgrade

It compares your pinned versions with the last commit and exits with 1 when the update breaks something. To check every update pull request, add the GitHub Action.

Give your coding agent the same answers. Add DepTime to Claude Code:

claude mcp add deptime -- uvx deptime mcp

Other AI coding tools (Cursor, Codex, VS Code, Claude Desktop and more) use the same command, uvx deptime mcp, in their MCP settings. To make sure the agent uses it, paste this short block into your project's AGENTS.md (Codex and Cursor read it).

That's it. The first time it starts, DepTime downloads its data file (about 50 MB) and keeps it up to date on its own. To keep it fully offline, set DEPTIME_OFFLINE=1.

Using Claude Code? The plugin adds a /deptime:fix-upgrade command and suggests DepTime when a version error shows up:

/plugin marketplace add cschmertz/deptime
/plugin install deptime@deptime

If your uv is the Intel version (an Intel Mac, or Intel Homebrew on an Apple-silicon Mac), the first install has to compile one dependency, which can take a few minutes, longer than most apps wait. Run uvx deptime --help once in a terminal first; after that it starts in seconds.

Related MCP server: BabelsHoard

What you can do with it

Check a dependency update before you merge it

On a pull request (from Dependabot, Renovate or a person), the GitHub Action marks each line the update breaks and fails the check only when something really breaks (setup guide):

# .github/workflows/upgrade-check.yml
on:
  pull_request:
    paths: ["**/uv.lock", "**/poetry.lock", "pyproject.toml", "**/requirements*.txt", "**/requirements/**"]
permissions:
  contents: read
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7 # pin to a commit in your own workflows
      - uses: cschmertz/deptime@v1.1.7

You can run the same check from a terminal with uvx deptime check-upgrade, or in Claude Code with /deptime:fix-upgrade, which also has Claude fix what broke.

Tried on 264 real update pull requests, it caught all 13 that broke their project and raised a false alarm on 2 (results). With /deptime:fix-upgrade, Claude fixed 86.7% of 60 broken updates it hadn't seen before, against 76.7% on its own, in about half the steps (results).

Understand an error

When an import or call into a library fails, your agent (or you, from a terminal) passes the error to DepTime and gets back what changed, in which release, and what to use instead:

In plain words:

httpx.Client.init accepted proxies up to httpx 0.27.2; it is gone from 0.28.0 onward. Deprecated in 0.26.0 ("The 'proxies' argument is now deprecated. Use 'proxy' or 'mounts' instead."). Use proxy or mounts instead, or pin httpx<=0.27.2.

{
  "symbol": "httpx.Client.__init__(proxies)",
  "issue": "param_removed",
  "installed_version": "0.28.1",
  "last_version_with": "0.27.2",
  "first_version_without": "0.28.0",
  "deprecated_in": "0.26.0",
  "replacements": [
    {"target": "proxy", "confidence": 0.8, "source": "deprecation_message"},
    {"target": "mounts", "confidence": 0.79, "source": "deprecation_message"}
  ],
  "pin_to_restore": "httpx<=0.27.2",
  "confidence": "high"
}

That's the real answer from the published data, trimmed. The full answer also quotes the warning DepTime found in httpx's own code.

Check code before it runs

Your agent can ask whether a function or argument it remembers still exists in the version you have installed, or what changed between two versions (or since a date, such as its training cutoff).

Migrating by hand? The rename maps show what the MCP SDK 2, LangChain 1, pydantic 2, openai 1 and httpx 0.28 migrations renamed or removed, and what replaces each name, from the same data.

The tools

Tool

What it's for

explain_error

An import or call into a library just failed

check_upgrade

You're updating a dependency: which lines of your code break?

check_symbols

Check names and arguments against the version you have installed

diff_versions

Everything that changed between two versions, or since a date

symbol_history

The full history of one function or class

coverage

Which libraries DepTime knows (54 fast-moving packages, mostly the AI and agent stack: list)

Every answer says how sure it is and why. The exact inputs and outputs are in the product spec.

How well it works

Every number below is a first try: the test cases and their right answers were collected before DepTime ever saw them.

How often does it…

First try

Tested on

name the right library, function and release from a real error?

87% (166 of 191)

Errors from GitHub issues and Stack Overflow

…and an AI model alone, from memory?

82% to 84% (Claude Sonnet 5.5 and Opus 5.5), 66% to 69% (Claude Haiku 5.5), 59% (DeepSeek V4.1 Flash), 19% (Qwen3.5 9B)

The same 191 errors

suggest the right replacement in its top three?

48% (41 of 85)

The same errors, where a replacement exists

wrongly flag code that still works after an update? (lower is better)

0.1% (2 of 2,047)

Real projects, checked by actually running them

find the code an update breaks?

100% (147 of 147)

The same projects

…and an AI model alone, from memory?

Breaks found / working code flagged: 91% / 0.2% (Claude Sonnet 5.5), 74% / 0.3% (Claude Haiku 5.5), 81% / 2.7% (DeepSeek V4.1 Flash), 31% / 15% (Qwen3.5 9B)

The same projects, scored so that "can't tell" counts as not flagged: DepTime then finds 96.7%

  • Checking updates is its strongest skill. It finds nearly every break and almost never cries wolf. The rows on projects are from the newest of six test sets; across all six, it found 95.9% to 100% of breaks and wrongly flagged 0.05% to 3.8% of working code.

  • It helps smaller models most. The best Claude models come close on their own; smaller and cheaper ones fall well behind.

  • Suggesting replacements is its weakest skill. It gets the right one about half the time, so it tells your agent how confident it is.

Every test set and result is in the benchmark, re-checked automatically on every change. The test sets are also published on their own, with a scorer, so any other tool or model can be measured the same way: the API-change benchmark.

What it doesn't do

  • It covers the libraries on its list, not all of PyPI. For anything else it says "not covered".

  • It reads code without running it. A few names that only appear while a library runs can come back as unknown.

  • It sees names and arguments, not behaviour. If a function keeps its name but does something different, DepTime can't tell, so keep running your tests.

  • Python only.

How it works

Twice a day, GitHub reads each new release of every covered library (without running it), compares it with the release before, and publishes the result as one file, signed so anyone can check it came from that build (how). DepTime downloads that file and answers every question on your machine, in milliseconds. More in the architecture doc.

Works with

Claude Code, Claude Desktop, Cursor, VS Code, Codex and any app that speaks MCP, on Linux, macOS and Windows, with Python 3.12 to 3.15. From a fresh install to the first answer takes about 10 seconds on Linux and Mac and 20 on Windows (client tests, first-start tests).

uvx deptime explain --installed httpx==0.28.1 < traceback.txt
uvx deptime history httpx Client.__init__
uvx deptime check httpx 0.28.1 'httpx.Client:proxies,proxy'
uvx deptime diff httpx 0.27.2 0.28.1
uvx deptime diff pydantic 2024-06-01              # everything since a date
uvx deptime check-upgrade                         # what the lockfile change breaks; exit 1 on a break
uvx deptime index status | pull

For web apps that only accept a URL, run deptime serve on any container host (a Dockerfile and fly.toml are included). See self-hosting.

Credits

Built on griffe, which reads the libraries' code.

How it differs from docs tools like Context7 and Ref: they show the docs for a version; DepTime tells you when something changed and what replaced it.

Contributing

The most helpful thing you can send is a wrong answer: each one becomes a test case. See CONTRIBUTING.md. To work on the code:

uv sync && uv run pytest

More: Product spec · Architecture · Privacy & security · Benchmark · Changelog · License (MIT)

Available Tools

6 tools
check_symbolsCheck symbols and kwargs against an installed versionA
Read-onlyIdempotent

Batch-check that symbols, and the keyword arguments you plan to pass, exist in a specific version of a package. Returns present/missing per symbol (unknown where the index can't tell, with the reason), rejected kwargs, deprecation notes, and hints. Use it to preflight code against the version you have installed: pass the symbols, or the code itself. For one symbol across all releases use symbol_history, and after an exception use explain_error.

Inputs: package (required), version (required), code, symbols. Returns: note, exact, package, results, +2 more

check_upgradeWhat a dependency update breaks in your codeA
Read-onlyIdempotent

Call this before or after updating a dependency: pass the package, the version you have, the version you are moving to, and the code that uses the package (a snippet, or several files by path). Returns each use the new version breaks, with its file and line: a removed name, a keyword no longer accepted, a newly required argument, or a call that only raises, with the release that changed it and the replacement. A break is reported only when the new version fails and the old one doesn't; deprecations are warnings, and uses DepTime can't tell about are listed apart, never as breaks. One package per call; for a whole project, deptime check-upgrade reads the version changes from its lockfiles.

Inputs: package (required), from_version (required), code, files, +1 more. Returns: base, note, breaks, checked, +8 more

coverageWhat DepTime indexesA
Read-onlyIdempotent

Lists indexed packages and version ranges. If a package is missing, DepTime cannot answer about it. Takes no arguments; call it first when unsure whether a package is covered.

Inputs: no named parameters. Returns: policy, packages, index_built_at, configured_but_not_indexed

diff_versionsBreaking changes between versionsA
Read-onlyIdempotent

Breaking changes and deprecations of a package between two versions, or since a date such as your training cutoff ('YYYY-MM-DD'). Optionally restrict to the symbols your code uses. Most severe first. Use it when upgrading, or for code written against an older release; for a single symbol use symbol_history.

Inputs: package (required), from_version (required), limit, to_version, +2 more. Returns: note, events, package, truncated, +6 more

explain_errorExplain a Python import/attribute/signature errorA
Read-onlyIdempotent

Call this when a third-party Python library raises ImportError ('cannot import name'), ModuleNotFoundError, AttributeError ('has no attribute'), or TypeError ('unexpected keyword argument' / 'missing required argument'). Returns what changed, in which release, the deprecation message, replacement candidates with evidence, and the version pin that restores the old API. Pass installed versions for an exact answer. An error DepTime can't explain returns empty findings rather than a guess; check note and not_covered.

Inputs: traceback (required), pip_freeze, min_confidence, installed_versions. Returns: note, signal, findings, suppressed, +2 more

symbol_historyVersion history of one symbolA
Read-onlyIdempotent

Version history of one public symbol, e.g. package='httpx', path='httpx.Client.init': first and last release it exists in, signature changes, deprecations, removals, and replacement candidates. Use before writing code against an API you remember from training data. A path no indexed release has is not an error: it returns ever_seen=false. For many symbols at one installed version, use check_symbols.

Inputs: path (required), package (required). Returns: note, path, events, indexed, +10 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation4/5

    The six tools split cleanly into coverage discovery, symbol history/existence, version diffing, code-aware upgrade checks, and error explanation; descriptions explicitly route overlapping cases, such as using symbol_history for one symbol and check_symbols for many at one version. Some inherent overlap remains among check_upgrade, diff_versions, and check_symbols, but the guidance is strong enough to prevent most misselection.

    Naming Consistency4/5

    All names use snake_case, and most follow a clear verb_noun or action-oriented pattern: check_upgrade, check_symbols, diff_versions, explain_error. The noun-only `coverage` and noun_noun `symbol_history` are minor deviations but remain readable and predictable.

    Tool Count5/5

    Six tools is well within a healthy range and each maps to a distinct stage of dependency compatibility work. The set does not feel bloated or thin, and no tool appears redundant.

    Completeness4/5

    The set covers package coverage, release diffs, per-symbol history, preflight symbol checks, code-aware upgrade breakage detection, and runtime error explanation, giving strong lifecycle coverage. Minor gaps include no MCP-level whole-project or lockfile upgrade scan beyond the one-package-per-call check_upgrade, and no broader package search beyond the coverage listing.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI coding agents to inspect project dependency versions, resolve version constraints, and audit Python code for deprecated or incompatible APIs using authoritative evidence and local AST analysis.
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides a local, version-exact API index for installed Python and TypeScript packages, enabling accurate lookups and static code checking that catches hallucinated or misused APIs without executing the code.
      9
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to query breaking API changes in dependencies since a model's training cutoff, retrieve project dependency change summaries, and look up model training cutoff dates.
      35 PyPI
      10
      MIT