# since-cutoff

Adopt this skill: https://proskills.md/skills/other/mohammadhijjawi97-since-cutoff-skills-since-cutoff

Page: https://proskills.md/skills/other/mohammadhijjawi97-since-cutoff-skills-since-cutoff
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/since-cutoff/SKILL.md
size: 10687
sha: c71e17c015e140d3c9dc87a966fd09c2117996ef
upstream: https://github.com/mohammadhijjawi97/since-cutoff/blob/main/skills/since-cutoff/SKILL.md

````text
---
name: since-cutoff
description: Find which dependency APIs this project's Python code uses changed after the model's training cutoff (no model calls), write short AGENTS.md or CLAUDE.md notes from the API diff, each with its source, and keep them in step with the lockfile; optionally measure which of the changes the model gets wrong. Use when the user asks whether the model knows their library versions, when code keeps failing on renamed or removed library APIs, or after upgrading dependencies. Trigger with requests such as "does the model know my openai version", "scan my dependencies for API changes" or "check whether the library notes are up to date".
license: MIT
compatibility: Needs since-cutoff on PATH, or uv or pipx to run it, and network access to PyPI. The run command also needs model access (the claude CLI or a provider API key) and the basedpyright type checker (pip install "since-cutoff[run]", or uvx --with basedpyright since-cutoff run); scan, sync and status make no model calls, and status works offline.
allowed-tools: Bash(since-cutoff scan:*), Bash(since-cutoff sync:*), Bash(since-cutoff status:*), Bash(since-cutoff run:*), Bash(since-cutoff models:*), Bash(since-cutoff unapply:*), Bash(uvx since-cutoff:*), Bash(uvx --with basedpyright since-cutoff:*), Bash(pipx run since-cutoff:*), Read
metadata:
  author: Mohammad Hijjawi
  version: "0.5.0"
---

# since-cutoff

`since-cutoff` is a command-line tool that finds the APIs a project's dependencies changed after
the model's training cutoff and writes notes about them, each with its source. Run the tool and
report what it prints.

## Overview

- `since-cutoff scan` compares, for each dependency, the public API of the latest release
  published at least 30 days before the model's training cutoff (`--cutoff-margin`; 0 compares
  from the cutoff itself) with the version the project pins (a static diff, no model calls), and
  lists the changed APIs the code uses.
- `since-cutoff sync` writes notes from that diff into a marked block in AGENTS.md or CLAUDE.md
  and keeps them in step with the lockfile; `since-cutoff status` checks the block offline, and
  `since-cutoff unapply` removes it.
- `since-cutoff run` is optional. It does the measuring itself by calling a fresh copy of the
  model with no tools and no project context, so **do not answer the probe tasks yourself and
  do not guess results**.

## Prerequisites

- A Python project with its dependencies in `pyproject.toml`, `requirements.txt` or a lockfile.
- since-cutoff on PATH, or uv or pipx to run it (`uvx since-cutoff`, `pipx run since-cutoff`).
- Network access to PyPI; `status` works offline.
- For `run` only: model access, through the `claude` CLI for Claude Code models or the
  provider's API key for other models, and the basedpyright type checker: `pip install
  "since-cutoff[run]"`, or run it as `uvx --with basedpyright since-cutoff run`. Without it,
  `run` stops at once and says so. `scan`, `sync` and `status` make no model calls.

## Instructions

1. Work from the project root (the directory with `pyproject.toml`, `requirements.txt` or a lockfile).
2. Pick the command. Use the arguments the user gave, if any (`scan`, `sync`, `status` or `run`,
   with flags such as `--apply`, `--quick` or `--model`); otherwise:
   - quick look, no model calls: `since-cutoff scan` (then offer `sync`, step 7)
   - full measurement, with notes a model writes and keeps only when their example
     type-checks: `since-cutoff run --quick`
3. Name the model. Without `--model`, the tool tests the model your coding agent is set up with
   (`SINCE_CUTOFF_MODEL`; inside Claude Code, only Claude Code's settings; elsewhere the Claude
   Code, Codex, Gemini CLI, OpenCode and Aider settings, the project's before the user's) and
   says where it read it ("model from ..."). If that is not the model you are, or it warns that
   no model setting was found, add `--model PROVIDER:MODEL` for the model you are (for example
   `--model openai:gpt-5.4`, or `--model claude-code:MODEL` for a model picked with `/model`).
   `run` calls Claude Code models through the `claude` CLI and other models through their
   provider's API key.
4. Before `run`, tell the user that it sends prompts (package names, versions, public API
   signatures and generated tasks, never their source code) to the model provider they choose,
   uses their API credits or Claude Code usage, and can take 5-20 minutes. Wait for a yes.
   `scan` needs no confirmation.
5. Run it. If `since-cutoff` is not installed, use `uvx since-cutoff` with the same arguments
   (or use `pipx run since-cutoff`); for `run`, `uvx --with basedpyright since-cutoff run`,
   which adds the type checker. Start `run` in the background or with a long timeout, not a
   2-minute foreground call. Everything is cached, so re-running after an interruption resumes
   quickly.
6. Summarise the result card: the model and its training cutoff, how many dependencies changed
   after the cutoff, what was stale, and the held-out before/after numbers. Quote each interval
   with the number it belongs to: the bootstrap CI goes with the difference of the task-level
   rates, the other CI with "changes fixed: X of Y". If the run compared baseline notes
   (`--compare`), give each block's "changes fixed" with its CI, and call one block better
   only when report.md's head-to-head sign test for it has a small p-value.
7. Only write notes into the user's files if they asked for it. After `scan`, run
   `since-cutoff sync --dry-run`, show the user the diff it prints, and only when they agree run
   `since-cutoff sync --yes`: it writes the notes from the API diff into a marked block in
   AGENTS.md (or CLAUDE.md if that is the file the project uses) and, run again later, keeps
   them in step with the lockfile. When `scan` suggests `sync --scope imported` (the code uses
   none of the changed APIs yet), add it to both commands. When the user asks for the
   configuration the benchmark measured, use `--profile evaluated`; for the shortest block
   (the changed packages and their versions, no change lines), `--header-only`. After `run`, `--apply` writes that
   run's notes in place of the whole block; `since-cutoff sync` then adds the notes from the
   diff for the other changed APIs the code uses, keeping the run's `[type-checked]` ones.
   `since-cutoff unapply` removes the block again. `since-cutoff status` says, without the
   network, whether the notes still match the lockfile; from since-cutoff 0.4.0 the Claude Code
   plugin runs it when a session starts (the first time, uvx downloads since-cutoff).

## Output

- The terminal: the model, its training cutoff and where the tool read the model, the
  dependencies that changed since the release each is compared from, and the changed APIs the
  code uses, each with its note. `run` adds the result card of step 6.
- `.since-cutoff/report.md`: the full report. Read it when the user wants details.
- The notes block in AGENTS.md or CLAUDE.md, written only by `sync --yes` or `run --apply`. The
  notes in it are API reference facts about the versions the project pins: what was removed,
  renamed or deprecated after the release they compare from (the latest one published at least
  30 days before your training cutoff), each tagged with what was checked, for example `[diff]`
  (a static comparison of the two releases' public APIs),
  `[diff + library]` (the library's own deprecation text names the replacement),
  `[diff + move checked]`, `[diff + metadata]` (the two releases' Requires-Dist: the package
  requires another library, such as `httpx2` instead of `httpx`, and its API takes that
  library's types), `[diff; probable rename]` (a guess, labelled as one) or
  `[type-checked]` (written during `run`; its example passed the type check). Check them when
  you write code that uses those libraries, and claim no more than the tag says.

## Error Handling

- No lockfile or pinned versions found: tell the user which file the tool asked for; do not
  invent versions.
- A model or login error during `run`: report the message and offer `scan`, which makes no
  model calls.
- `sync` exits with code 4: the block was edited by hand. Tell the user, and pass `--force`
  only if they say so.
- `sync` without `--yes` asks on the terminal; with no terminal to ask in it writes nothing and
  exits with code 3. Show the `--dry-run` diff and use `--yes` once the user agrees.
- `status` exits with code 3 when the notes are out of date: offer `sync` as in step 7.
- `run` was interrupted: run the same command again; it resumes from the cache.

## Examples

**Example 1: "Does the model know the library versions this project pins?"**

```bash
since-cutoff scan
```

Summarise what it lists. If the user wants notes, show the diff and write once they agree:

```bash
since-cutoff sync --dry-run
since-cutoff sync --yes
```

**Example 2: "Measure which of these changes you get wrong, and add the notes."**

Tell the user what `run` sends, what it costs and how long it takes (step 4). After a yes, start
it in the background (with `--model` if step 3 calls for it), then show the notes `sync` would
add for the other changed APIs:

```bash
since-cutoff run --quick --apply
since-cutoff sync --dry-run
```

**Example 3: "I upgraded openai. Are the notes in AGENTS.md still right?"**

```bash
since-cutoff status
```

If the notes are out of date, show the diff of `since-cutoff sync --dry-run` and run
`since-cutoff sync --yes` once the user agrees; to remove them, `since-cutoff unapply`.

## Quick lookups without a run

If the since-cutoff MCP server is connected (the Claude Code plugin starts it), its tools answer
from a static diff, with no model calls: `api_changes` (one package, optionally one `symbol`),
`project_changes` (every dependency of the project) and `model_cutoff`. Pass your own model id
as `model`. Use them before writing code against a dependency that may be newer than your
training data; use the CLI above when the user wants the model measured or notes written.

## Resources

- [since-cutoff on GitHub](https://github.com/MohammadHijjawi97/since-cutoff): the README, with
  every command, flag and exit code, and what each note tag means.
- [How it works](https://github.com/MohammadHijjawi97/since-cutoff/blob/main/docs/how-it-works.md):
  the diff, the notes and the measurement in detail.
- [Privacy](https://github.com/MohammadHijjawi97/since-cutoff/blob/main/PRIVACY.md): what `run`
  sends to the model provider, and what stays on the machine.
- [Changelog](https://github.com/MohammadHijjawi97/since-cutoff/blob/main/CHANGELOG.md): what
  changed in each release.
````

## File: README.md
upstream: https://github.com/mohammadhijjawi97/since-cutoff/blob/main/README.md

````text
<p align="center"><picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/MohammadHijjawi97/since-cutoff/main/docs/img/logo-dark.svg">
  <img src="https://raw.githubusercontent.com/MohammadHijjawi97/since-cutoff/main/docs/img/logo.svg" width="72" height="72" alt="since-cutoff logo">
</picture></p>

<h1 align="center">since-cutoff</h1>

<!-- mcp-name: io.github.MohammadHijjawi97/since-cutoff -->

**Your coding assistant's training data stops before your dependencies' latest releases, so it
can write calls your pinned versions no longer accept. since-cutoff shows where your code uses an
API that changed after the model's training cutoff, and writes the short notes your assistant
needs to avoid the old form.**

since-cutoff is a command-line tool and MCP server for Python projects. `scan` reads your
lockfile, takes each dependency's latest release published at least 30 days before your coding
model's training cutoff (by default), compares that release's public API with the version you pin, statically, and shows which
of the changed APIs your code uses, where, with a note for each. `sync` writes the notes into
AGENTS.md or CLAUDE.md and keeps them in step with the lockfile; `status`, pre-commit hooks and a
GitHub Action tell you when they fall behind. `run`, optional, measures which of the changes your
model actually gets wrong and whether the notes help. Only `run` calls a model.

[![PyPI](https://img.shields.io/pypi/v/since-cutoff)](https://pypi.org/project/since-cutoff/)
![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue)
[![CI](https://github.com/MohammadHijjawi97/since-cutoff/actions/workflows/ci.yml/badge.svg)](https://github.com/MohammadHijjawi97/since-cutoff/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://github.com/MohammadHijjawi97/since-cutoff/blob/main/LICENSE)
![Status: beta](https://img.shields.io/badge/status-beta-orange)
[![since-cutoff MCP server on Glama](https://glama.ai/mcp/servers/MohammadHijjawi97/since-cutoff/badges/score.svg)](https://glama.ai/mcp/servers/MohammadHijjawi97/since-cutoff)

**English** | [简体中文](https://github.com/MohammadHijjawi97/since-cutoff/blob/main/README.zh-CN.md) | [Español](https://github.com/MohammadHijjawi97/since-cutoff/blob/main/README.es.md) | [Français](https://github.com/MohammadHijjawi97/since-cutoff/blob/main/README.fr.md)

## Install

Python 3.10 or later, on Linux, macOS or Windows.

```bash
pipx install since-cutoff    # or: pip install since-cutoff
```

Or run it without installing: `uvx since-cutoff scan` downloads the current release and runs it
(`uvx since-cutoff@latest scan` picks up new releases instead of the first one uv cached).

`run` type-checks the model's answers with
[basedpyright](https://github.com/DetachHead/basedpyright), an extra of 180 MB that the other
commands never use: `pip install "since-cutoff[run]"` (or `pipx install "since-cutoff[run]"`)
installs it, and `uvx --with basedpyright since-cutoff run` adds it to a run without installing;
without it, `run` stops at once and says so.

Run it from your project root. It reads `uv.lock`, `poetry.lock`, `pdm.lock`, `pylock.toml`,
`Pipfile.lock`, `requirements*.txt`, `pyproject.toml`, `Pipfile`, the `pip:` block of a conda
`environment.yml` or a `.venv` (not `setup.py` or `setup.cfg`). Without `--model` it uses the
model your coding agent is set up with, from the Claude Code, Codex, Gemini CLI, OpenCode or
Aider settings; for any other model, pass `--model` (see
[Choosing the model](https://github.com/MohammadHijjawi97/since-cutoff#choosing-the-model)).
`scan`, `sync` and `status` call no model and need no API key; `run` sends prompts to the model
provider and uses your API credits or Claude Code usage.

Inside a coding agent, a skill runs these commands for you: see
[In Claude Code](https://github.com/MohammadHijjawi97/since-cutoff#in-claude-code) and
[In other coding agents](https://github.com/MohammadHijjawi97/since-cutoff#in-other-coding-agents).
The [MCP server](https://github.com/MohammadHijjawi97/since-cutoff#use-it-from-any-agent-mcp)
gives any agent the same diff.

## Quick start

The [sample project](https://github.com/MohammadHijjawi97/since-cutoff/tree/main/examples/agent-app)
calls `client.messages.create` and pins anthropic 1.8.0. The latest anthropic release at Claude
Sonnet 4.5's training cutoff was 0.60.0, whose `create` still took `temperature`; 1.8.0 raises
`TypeError` for it. What `scan` prints, trimmed to the anthropic part (it compares from
0.56.0, the latest release 30 days before the cutoff: models know the weeks before their
cutoff least):

```console
$ uvx since-cutoff scan --model anthropic:claude-sonnet-4-5
Your code uses 2 APIs that changed after 2025-07-01, 30 days before claude-sonnet-4-5's training
  cutoff (2025-07-31)

huggingface-hub 0.33.1 -> 2.0.0 (0.33.1 was the latest release 30 days before the cutoff;
  pyproject.toml pins 2.0.0)
  ...

anthropic 0.56.0 -> 1.8.0 (0.56.0 was the latest release 30 days before the cutoff; pyproject.toml
  pins 1.8.0)
  Messages.create: temperature, top_k and top_p were removed                          uses this API
    app/main.py   calls create
    Note: `Messages.create()` no longer accepts `temperature`, `top_k` or `top_p` as keyword
          arguments. If the API still needs them, pass them through its `extra_body` argument.
          [diff]

2 notes ready: `since-cutoff sync` writes them to AGENTS.md and keeps them in step with
  pyproject.toml.
```

The call in `app/main.py` passes none of these parameters, so it is marked "uses this API", not
"old form": it works today, but an assistant writing for 0.60.0 could add `temperature=0.2` when
it edits the call. The note is what `since-cutoff sync` writes into AGENTS.md so that it does
not; its tag, `[diff]`, says what the note rests on: a static comparison of the two releases'
public APIs. The parameters left the signature, which is not the same as the API dropping the
field, so where the pinned method has an `extra_body` argument the note says so instead of
telling the assistant to drop the field.

`since-cutoff sync` then writes the two notes. It prints the block as a diff and asks
`Write this to AGENTS.md? [y/N]` (`--yes` writes without asking; `--dry-run` only shows the
diff). For the sample project, the block ends with:

```markdown
**anthropic 1.8.0** (compared from 0.56.0)
- `Messages.create()` no longer accepts `temperature`, `top_k` or `top_p` as keyword arguments. If the API still needs them, pass them through its `extra_body` argument. [diff]

**huggingface-hub 2.0.0** (compared from 0.33.1)
- `huggingface_hub.hf_hub_download()` no longer accepts `proxies`, `force_filename`, `local_dir_use_symlinks` or `resume_download`; do not pass them. huggingface-hub's deprecation text says there is no replacement for `force_filename`, `local_dir_use_symlinks` or `resume_download`. For `proxies`, see https://github.com/huggingface/huggingface_hub/releases for the changes since 0.33.1. [diff]
<!-- since-cutoff:end -->
```

Above the bullets are the start marker, a meta line (the model, its cutoff, where the versions
come from, a hash of the dependencies and a hash of the block's own text, so that a hand edit
shows) and a header that names the model, the cutoff and the file the versions come from, says
what the tags mean and that no library code was run. The whole block is about 410 tokens. Text
outside the block keeps its bytes, and `since-cutoff unapply` removes the block. After an
upgrade, run `sync` again; `sync --check` in CI and `status` offline tell you when the notes
fall behind ([Keep the notes current](https://github.com/MohammadHijjawi97/since-cutoff#keep-the-notes-current-sync-and-status)).

**Try it on your project.** No API key, no model call. In the project root:

```bash
uvx since-cutoff scan
```

It detects your coding model (or pass `--model`), reads your lockfile, takes each dependency
````
