release

A release command that prepares a new software version by updating the version and changelog, creating a Git tag, pushing changes, and creating a GitHub release.

In plain words
What is it for?
Use it to publish a new semantic version such as 0.9.0 from main, using recent commits and merged pull requests to help build the changelog.
Why use it?
It checks the requested version and repository state before carrying out the release steps, reducing missed checks and manual release work.

Command for Claude Code

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 commands/kayba-ai/agentic-context-engine/release
Clone the repo
git clone --depth 1 https://github.com/kayba-ai/agentic-context-engine

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 971 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.00971
Opus 5 $0.00000 $0.00485
Sonnet 5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

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

Security

Grade A, and why

release 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.

.claude/commands/release.md · 76 lines

What it actually says

Release a new version: bump version, update changelog, tag, push, and create a GitHub release.

Arguments: $ARGUMENTS — the new version number (e.g. 0.9.0). Required.

Steps:

  1. Validate inputs

    • If $ARGUMENTS is empty, abort: "Usage: /release (e.g. /release 0.9.0)"
    • Strip leading v if present (e.g. v0.9.00.9.0)
    • Validate format matches X.Y.Z (semver)
  2. Validate branch state

    • Must be on main: git branch --show-current
    • If not on main, abort: "Switch to main first."
    • Pull latest: git pull origin main
    • Working tree must be clean: git status --porcelain
  3. Check version isn't already used

    • Read current version from pyproject.toml (line with version = "...")
    • If new version equals current version, abort: "Version is already set."
    • Check tag doesn't exist: git tag -l v<version>
    • If tag exists, abort: "Tag v already exists."
  4. Build changelog entry from git history

    • Find the latest tag: git describe --tags --abbrev=0
    • Get commits since that tag: git log <last-tag>..HEAD --format='%s'
    • Get merged PRs since that tag: gh pr list --state merged --base main --search "merged:>=$(git log -1 --format=%ci <last-tag> | cut -d' ' -f1)" --json title,number --limit 50
    • From the commits/PRs, compose a changelog section with only ### Added items — user-facing features. Skip fixes, refactors, chores, docs-only changes, and CI changes.
    • Format:
      ## [X.Y.Z] - YYYY-MM-DD
      
      ### Added
      - **Feature name** — short description
      - **Feature name** — short description
      
    • Also prepare a compare link for the bottom of CHANGELOG.md: [X.Y.Z]: https://github.com/Kayba-ai/agentic-context-engine/compare/v<prev>...vX.Y.Z
  5. Present draft to user

    • Show: new version, changelog entry, and the release note (same as changelog "Added" bullets)
    • Ask: "Create this release?" with options: Yes, Edit (let me revise), Cancel
  6. On approval — apply changes

    • Update pyproject.toml: replace version = "<old>" with version = "<new>"
    • Insert the changelog entry in CHANGELOG.md after line 7 (before the previous release)
    • Add the compare link at the bottom of CHANGELOG.md
    • Stage files: git add pyproject.toml CHANGELOG.md
    • Commit: git commit -m "chore(release): bump version to <version>"
  7. Tag and push

    • git tag v<version>
    • git push origin main --tags
  8. Create GitHub release

    • Title: v<version>
    • Notes: only the "Added" bullets from the changelog entry — short and clean, no preamble
    • Append: **Full Changelog**: https://github.com/kayba-ai/agentic-context-engine/compare/v<prev>...v<version>
    • Run: gh release create v<version> --title "v<version>" --notes "<notes>"
    • This triggers .github/workflows/publish.yml → PyPI publish
  9. Report summary

    Released v<version>
    - Commit: <short-hash>
    - Tag: v<version>
    - Release: <github-release-url>
    - PyPI: publishing via workflow (check Actions tab)
    

Error handling:

  • If gh is not installed: "GitHub CLI (gh) is required. Install it: https://cli.github.com"
  • If not authenticated: "Run gh auth login first."
  • If push fails: report error, keep local commit (user can retry)
  • If gh release create fails: show the error, suggest manual creation
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 cdedb9ca7b0c

Subscribe to this mod's changes

release is a command published in the GitHub repository kayba-ai/agentic-context-engine (2,560 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 971 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.