SuperAPIAI Directory

since-cutoff

github.com · AI coding

since-cutoff is a command-line tool and MCP server for Python projects that finds APIs in a project's pinned dependencies that changed after the coding model's training cutoff, and generates short AGENTS.md or CLAUDE.md notes to help AI assistants avoid using outdated API calls. It works by statically comparing public API differences between dependency versions, with no model calls or API keys required. Main features include scan, sync, status, and an optional model test (run). It supports CLI, MCP server, Claude Code plugin, and GitHub Action.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

since-cutoff is a tool for Python projects designed to solve the problem of coding assistants potentially using outdated APIs due to their training data cutoff. When a project's pinned dependencies release new versions after the model's training cutoff and change their public APIs, the model may still generate calls to the old version, causing errors. since-cutoff helps identify these changes through static analysis and generates notes for assistants to reference.

Main capabilities:

  • scan: reads the lock file (such as uv.lock, poetry.lock, etc.), and for each dependency, finds the latest version released at least 30 days before the model's training cutoff (by default), statically compares that version's public API with the version pinned by the project, and shows which changed APIs are used in the code, where, and the note for each API. No model calls, no API key required.
  • sync: writes the notes generated by scan into a marked block in AGENTS.md or CLAUDE.md and keeps them in sync with the lock file. Supports --check for CI, and the status command checks offline whether the notes are outdated.
  • run (optional): sends short coding tasks to the model, uses a type checker (basedpyright) to evaluate whether the model's answers are outdated, wrong, deprecated, or correct, and tests whether the notes are helpful. This command calls the model and requires an API key or usage credits.
  • MCP server: allows agents to query API changes in libraries.
  • GitHub Action and pre-commit hook: automatically check in CI whether the notes are up to date.

Usage:

  • Installation: requires Python 3.10 or higher. Install via pip: pip install since-cutoff, or run directly with uvx since-cutoff scan. The run command requires additionally installing basedpyright: pip install "since-cutoff[run]".
  • Run commands such as scan and sync in the project root. The tool automatically detects the model used by the coding agent (such as Claude Code, Codex, etc.), and you can also specify it with --model.
  • sync shows the diff and asks whether to write, use --yes to skip the prompt, and --dry-run to only show the diff.
  • Supports --json output for easy script processing.

Use cases:

  • Writing Python code with a coding assistant, where dependencies released new versions after the model's training cutoff.
  • Need to ensure AI-generated code is compatible with the current dependency versions.
  • Keep AGENTS.md or CLAUDE.md notes up to date in team collaboration.

Limitations:

  • Only supports Python; other languages are not yet supported (TypeScript is planned).
  • Can only detect signature changes in public APIs, not behavior changes or deprecations that only produce runtime warnings.
  • Does not name replacement APIs unless the library's own deprecation text states them.
  • Does not rewrite code, only provides notes.
  • Does not guarantee what the model actually remembers; this is only tested via the run command.
  • Requires network access to PyPI to obtain version information.
  • The notes block may require --force to overwrite due to manual edits.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools