release

A release command for publishing a new version of every package in a code project to npm, the package registry commonly used by JavaScript and TypeScript projects.

In plain words
What is it for?
Use it when releasing bug fixes, new features, or breaking changes across multiple npm packages.
Why use it?
It organizes checks, version selection, changelog updates, commits, tags, builds, and publishing so release steps are not missed.

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/gillkyle/agent-tail/release
Clone the repo
git clone --depth 1 https://github.com/gillkyle/agent-tail

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 618 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.00618
Opus 5 $0.00000 $0.00309
Sonnet 5 $0.00000 $0.00124
Haiku 4.5 $0.00000 $0.00062

Measured 3d ago against content hash 8cf1a5ec6ee6, 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 3d ago.

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 · 59 lines

How it starts

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

Release

Publish a new version of all packages to npm.

Steps

  1. Pre-flight checks — Run these in parallel:

    • pnpm run test — all tests must pass
    • pnpm run typecheck — no type errors
    • pnpm run build — all packages build cleanly
    • git status — check for uncommitted changes
  2. Determine version bump — Ask the user which bump type to apply:

    • pnpm version:patch (0.x.Y → 0.x.Y+1) — bug fixes
    • pnpm version:minor (0.X.y → 0.X+1.0) — new features
    • pnpm version:major (X.y.z → X+1.0.0) — breaking changes

    If the user already specified a version bump type, use that directly without asking.

  3. Update the changelog — Add a new entry to docs/src/app/changelog/page.tsx in the releases array. Follow the existing format:

    {
      version: "<new version>",
      date: "<Month Year>",
      changes: [
        { type: "added" | "fixed" | "improved" | "removed", text: <>Description</> },
      ],
    },
    

    Ask the user what changes to include if not obvious from recent commits.

  4. Commit and tag — Stage all changes and create a version commit and tag:

    git add -A
    git commit -m "v<new version>"
    git tag v<new version>
    
  5. Build — Run pnpm -r run build to generate fresh dist files.

  6. Prompt user to publish — Display this command for the user to run manually (requires their OTP from authenticator):

    pnpm -r publish --access public --no-git-checks --otp=<OTP>
    

    Do NOT run the publish command yourself. The user must run it with their OTP code.

  7. After publish — Remind the user to push the commit and tag:

    git push && git push --tags
    

Important Notes

  • All four packages (agent-tail-core, vite-plugin-agent-tail, next-plugin-agent-tail, agent-tail) share the same version number.
  • Always use pnpm publish, never npm publish — pnpm resolves workspace:^ dependencies at publish time.
  • npm 2FA is enabled, so every publish requires an --otp code.
  • The --no-git-checks flag is needed because the build step generates dist files that make the working tree dirty.
  • Core must be published first since other packages depend on it. The pnpm -r publish command handles this via the workspace dependency graph.

Read the full file on GitHub · 59 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. 3d ago First seen · 59 lines · 0 tokens per session scan A 8cf1a5ec6ee6

Subscribe to this mod's changes

release is a command published in the GitHub repository gillkyle/agent-tail (91 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 618 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.