releasing

Release instructions for AdLoop, a Python package published through PyPI, the main package repository for Python. They describe version changes, Git tags, automated tests, package publishing, and GitHub Releases.

In plain words
What is it for?
Use them to bump versions, update both version declarations, create release tags, and publish approved AdLoop changes.
Why use it?
They reduce mistakes when deciding whether a change needs a patch, minor, or major version and when publishing it.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/klosk/adloop/releasing
Clone the repo
git clone --depth 1 https://github.com/kLOsk/adloop

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,222 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01222
Opus 5 $0.00000 $0.00611
Sonnet 5 $0.00000 $0.00244
Haiku 4.5 $0.00000 $0.00122

Measured yesterday against content hash 214886999edb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

releasing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/releasing.mdc · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Releasing AdLoop

How publishing works

AdLoop uses PyPI Trusted Publishing via GitHub Actions. No API tokens or secrets are stored in the repo. PyPI verifies the publish request came from this exact repo and workflow via OIDC.

  • CI (.github/workflows/ci.yml): runs tests on every push to main and every PR, across Python 3.11-3.13.
  • Release (.github/workflows/release.yml): triggered by pushing a v* tag. Builds the package, publishes to PyPI, and creates a GitHub Release.

When to release

Release after merging PRs that add features, fix bugs, or change the public tool interface. Not every merge needs a release — batch small fixes.

Release process

When the user asks to release, or after significant changes are merged:

  1. Decide the version bump following semver:

    • Patch (0.2.1): bug fixes, doc changes, internal refactors
    • Minor (0.3.0): new tools, new parameters on existing tools, new features
    • Major (1.0.0): breaking changes to tool signatures or config format
  2. Bump the version in both places (they must match):

    • pyproject.tomlversion = "X.Y.Z"
    • src/adloop/__init__.py__version__ = "X.Y.Z"
  3. Commit and tag:

    git add pyproject.toml src/adloop/__init__.py
    git commit -m "Release vX.Y.Z: <one-line headline>"
    git tag vX.Y.Z
    git push && git push --tags
    
  4. GitHub Actions handles the build and publish: tests run, package builds, publishes to PyPI, creates a GitHub Release. The auto-created release body is just a compare link — the human-written notes go on next (step 5).

  5. Write the GitHub Release notes — this is the canonical changelog. We do not maintain a CHANGELOG.md; every version's notes live on its GitHub Release page (e.g. https://github.com/kLOsk/adloop/releases/tag/v0.6.0). Draft the notes locally, then attach them once the release workflow has finished creating the release:

    gh release edit vX.Y.Z --notes-file /tmp/adloop-vX.Y.Z-notes.md
    

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 76 lines · 0 tokens per session scan A 214886999edb

Subscribe to this mod's changes

releasing is a cursor rule published in the GitHub repository kLOsk/adloop (253 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,222 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.