toki: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from korjwl1/toki. It costs 0 tokens per session (1,135 once invoked), scanned A, original, MIT.

A release checklist for the toki Rust project, including version checks, tests, code-quality checks, and macOS and Linux builds.

In plain words
What is it for?
Use it to prepare a new semantic-version release, build platform binaries, and verify the repository is ready for tagging.
Why use it?
It catches failed tests, warnings, uncommitted changes, duplicate tags, and release configuration problems before a version is published.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is korjwl1/toki's own configuration. It tells Claude Code how to work on toki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything toki configures →

View source ↗ korjwl1/toki
Reuse

Borrowing it

Nothing to install: this file belongs to korjwl1/toki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/korjwl1/toki/main/.claude/commands/release.md
Clone the repo
git clone --depth 1 https://github.com/korjwl1/toki

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/korjwl1/toki/release/github.svg)](https://agentmods.dev/commands/korjwl1/toki/release)
Your own site
<a href="https://agentmods.dev/commands/korjwl1/toki/release"><img src="https://agentmods.dev/badge/commands/korjwl1/toki/release/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for release

Your own site · 80×15
<a href="https://agentmods.dev/commands/korjwl1/toki/release"><img src="https://agentmods.dev/badge/commands/korjwl1/toki/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 1,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.01135
Opus 5.5 $0.00000 $0.00454
Sonnet 5.5 $0.00000 $0.00227
Haiku 4.5 $0.00000 $0.00113

Measured 2mo ago against content hash 17a4a588d662, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 · 100 lines

How it starts

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

Release a new version of toki. macOS binaries are built locally, Linux binaries are built via GitHub Actions.

Instructions

When the user runs /release, follow these steps:

1. Determine version

  • Ask the user for the version to release (e.g., 2.3.0)
  • Or if the user already provided it as an argument (e.g., /release 2.3.0), use that
  • Validate it follows semver format (MAJOR.MINOR.PATCH or MAJOR.MINOR.PATCH-prerelease)

2. Pre-flight checks

  • Run cargo test to make sure tests pass
  • Run cargo clippy --all-targets --all-features -- -D warnings. The current development branch has a warning baseline, so this strict release gate is expected to block until those warnings are resolved; do not mistake plain Clippy's exit 0 for a clean release check.
  • Check git status to ensure the working tree is clean (no uncommitted changes)
  • Check that the tag v{VERSION} doesn't already exist: git tag -l v{VERSION}
  • Confirm Cargo.toml has no local [patch."https://github.com/korjwl1/toki-sync-protocol.git"] section. A tagged release/Actions checkout has no sibling ../toki_sync_protocol, so releasing with the patch is guaranteed to fail.
  • Confirm the protocol dependency is pinned to a published tag containing every wire type the client uses. The current baseline is toki-sync-protocol v1.1.0; release toki-sync before consumers when a future protocol change adds server capabilities.

If any check fails, report the issue and stop.

3. Update version

  • Update version in Cargo.toml to the new version
  • Run cargo check to update Cargo.lock
  • Commit with message: chore: bump version to {VERSION}

4. Build macOS targets (local)

cargo build --release --target aarch64-apple-darwin
cargo build --release --target x86_64-apple-darwin

Package into tar.gz:

for target in aarch64-apple-darwin x86_64-apple-darwin; do
  tar -czf "toki-{VERSION}-${target}.tar.gz" -C "target/${target}/release" toki
done

5. Create tag, push, and upload

Read the full file on GitHub · 100 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. 2mo ago First seen · 100 lines · 0 tokens per session scan A 17a4a588d662

Subscribe to this mod's changes

release is a command published in the GitHub repository korjwl1/toki (21 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,135 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.

Related

release compared with commands from other repositories

release next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
releasekorjwl1/tokiCommand212mo agoMITA0Claude Code
create-release-note.enfitlab-ai/agent-infraCommand87yesterdayMITA8Claude Code
post-release.enfitlab-ai/agent-infraCommand87yesterdayMITA4Claude Code
release.enfitlab-ai/agent-infraCommand87yesterdayMITA5Claude Code
branchliorwn/claudetopCommand2122mo agoMITA9Claude Code
releaseGoldziher/ai-rulezCommand167yesterdayMITA4Claude Code
shipGoldziher/ai-rulezCommand167yesterdayMITA4Claude Code