release-terminal

release-terminal is a command for Claude Code from binsarjr/termul. It costs 25 tokens per session (1,344 once invoked), scanned A, original, Apache-2.0.

A command for publishing a new Termul software release. It checks the repository, chooses a version number, updates the application configuration, builds the release, tags it, and publishes it.

In plain words
What is it for?
Use it to prepare patch, minor, major, or explicitly numbered releases from commits in the repository.
Why use it?
It keeps the version in the application configuration, Git commit, and release tag aligned. It also stops when a required check or build step fails.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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/binsarjr/termul/release-terminal
Clone the repo
git clone --depth 1 https://github.com/binsarjr/termul

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for release-terminal

README.md
[![agentmods](https://agentmods.dev/badge/commands/binsarjr/termul/release-terminal.svg)](https://agentmods.dev/commands/binsarjr/termul/release-terminal)
Your own site
<a href="https://agentmods.dev/commands/binsarjr/termul/release-terminal"><img src="https://agentmods.dev/badge/commands/binsarjr/termul/release-terminal.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,344 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00025 $0.01344
Opus 5 $0.00013 $0.00672
Sonnet 5 $0.00005 $0.00269
Haiku 4.5 $0.00003 $0.00134

Measured 5d ago against content hash c9787bdefef2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

release-terminal scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(git:*), Bash(gh:*), Bash(curl:*), Bash(python3:*), Read, Edit, Write
.claude/commands/release-terminal.md · 78 lines

How it starts

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

You are cutting a new release of Termul (binsarjr/termul). Work through the steps in order. If any step fails, stop and report — never continue past a failure, and never publish a broken build.

Key fact that drives everything: Tauri reads the released version from src-tauri/tauri.conf.json (version), not from the git tag. So the version file must be bumped and committed before tagging, and the tag must point at that bump commit.

0. Preflight

  • gh auth status must be authed; abort if not.
  • git fetch origin main --tags.
  • Last tag: git describe --tags --abbrev=0 origin/main (e.g. v0.1.0). If there are no tags, treat the previous version as 0.0.0.
  • Commits since: git log <lasttag>..origin/main --oneline. If empty → stop: "Nothing to release; no commits since ."

1. Decide the new version ← the one confirmation gate

  • Current version = last tag without the v.
  • If $ARGUMENTS is given: patch/minor/major → apply that bump; an explicit X.Y.Z → use it verbatim.
  • Otherwise auto-detect from the conventional commits since the last tag:
    • feat!: / fix!: / a BREAKING CHANGE: footer → major
    • else any feat:minor
    • else (fix:, chore:, refactor:, …) → patch
  • Compute the new version and tag vX.Y.Z.
  • Show the user: the commit list, the detected bump type, and current → new. Wait for an explicit "yes" before continuing. This is the only interactive gate.

2–3. Bump + commit + tag (in a throwaway worktree, so other working trees are untouched)

Run all git mutations through a temporary worktree off the freshly-fetched origin/main — never touch the user's main checkout (another agent may be working there):

git worktree add /tmp/termul-release origin/main --detach

In /tmp/termul-release:

  • Edit src-tauri/tauri.conf.json → set "version" to the new version.
  • Edit package.json → set "version" to the new version.
  • Do not touch src-tauri/Cargo.toml or Cargo.locktauri.conf.json is the source of truth for the released version, and leaving Cargo.* unchanged keeps the --locked CI green.
  • Commit and push the bump to main, then tag that commit and push the tag:
git -C /tmp/termul-release commit -am "chore(release): vX.Y.Z"
git -C /tmp/termul-release push origin HEAD:main
git -C /tmp/termul-release tag vX.Y.Z
git -C /tmp/termul-release push origin vX.Y.Z       # ← triggers the Release workflow
git worktree remove /tmp/termul-release --force

(Substitute the real version. The tag now points at the bump commit, so the build produces correctly-versioned artifacts.)

Read the full file on GitHub · 78 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. 5d ago First seen · 78 lines · 25 tokens per session scan A c9787bdefef2

Subscribe to this mod's changes

release-terminal is a command published in the GitHub repository binsarjr/termul (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 25 tokens to every session and 1,344 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.