release

An end-to-end workflow for delivering a feature from verification through documentation, merging, and tagging. A feature branch is a separate line of development that can be reviewed before it is merged into the main branch.

In plain words
What is it for?
Use it to prepare and release a feature branch. It runs available verification gates, handles unfinished feature changes, and performs the release steps while keeping publishing manual.
Why use it?
It organizes release work around existing quality checks and a clear confirmation point before history-changing actions. It prevents the main branch from being released directly.

Command

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/hamr0/liteagents/release
Clone the repo
git clone --depth 1 https://github.com/hamr0/liteagents
Per session 21 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,285 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.00021 $0.01285
Opus 5 $0.00010 $0.00642
Sonnet 5 $0.00004 $0.00257
Haiku 4.5 $0.00002 $0.00128

Measured 2d ago against content hash 58070ae37e54, 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 2d 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.

packages/ampcode/commands/release.md · 91 lines

How it starts

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

End-to-end feature-delivery orchestrator. It does not re-implement checks — it runs your existing gates (/ship, /security, /diff-review) under /verify-done discipline, then performs the release actions. Two halves split by a hard gate: everything before the gate is safe and read-only; everything after rewrites history and is confirmed step by step.

A feature branch is required — main is only the merge target. $ARGUMENTS names the branch to release. Omit it only if you are already on a feature branch. If you are on main with nothing named, a branch is created for you — but you should be releasing a deliberately-named feature branch.

Phase 0 — Preflight (resolve a feature branch — never main)

  • Resolve the release branch — whatever gets merged into main:
    • $ARGUMENTS given → git switch to it (create it if it does not exist).
    • else not on main → release the current branch.
    • else on main with no arg → create feat/<slug> (named for the change) and carry your working changes onto it. Never release main.
  • Land the feature on the branch — if the working tree still has uncommitted feature changes, commit them now; the gates must review a real diff, not a dirty tree.
  • git fetch origin; the release diff is origin/main...HEAD (now guaranteed to be the resolved branch). If it is empty, stop — nothing to release.
  • Print a one-line plan: branch · commit count · files changed.

Phase 1 — VERIFY (delegate; no hand-waving)

First, load the real checklists. Locate and read the sibling command definitions so you apply their exact checks, not an approximation — glob your installed commands/skills for ship.md, security.md, diff-review.md, and verify-done (a skill or command). If one cannot be found, run that check from its name and flag that its full checklist was unavailable — never pretend it passed.

Then run each gate and capture fresh evidence — the exact command, its exit code, and the result. Per /verify-done: a check you did not actually run is a FAIL, never an assumed pass.

  • /ship — pre-deploy gate (tests, lint, build, secrets, authz, rate limit, data scope, migrations, docs-sync).
  • /security — on the changed files.
  • /diff-review — on origin/main...HEAD.

Read the full file on GitHub · 91 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. 2d ago First seen · 91 lines · 21 tokens per session scan A 58070ae37e54

Subscribe to this mod's changes

release is a command published in the GitHub repository hamr0/liteagents (22 stars, last pushed 3d ago), licensed Apache-2.0. It adds 21 tokens to every session and 1,285 once invoked, about $0.0001 per session on Opus 5. 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.