changelog

changelog is a command for Claude Code, OpenCode from kylepelham/Drift. It costs 0 tokens per session (698 once invoked), scanned A, a copy of changelog, MIT.

A command procedure for creating an upcoming changelog from supplied release data. A changelog is a structured summary of notable fixes and improvements in a software release.

In plain words
What is it for?
Use it to inspect the actual diffs for supplied commits, group entries into release sections, and write bug fixes and improvements to the upcoming changelog.
Why use it?
It avoids relying on misleading commit messages, stale file contents, or an independently assembled list of commits when preparing release notes.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: model in frontmatter; mentions OpenCode.

Good fit Use it to inspect the actual diffs for supplied commits, group entries into release sections, and write bug fixes and improvements to the upcoming changelog.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kylepelham/drift/changelog
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.

Clone the repo
git clone --depth 1 https://github.com/kylepelham/Drift

Made for: Claude Code, OpenCode.

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 changelog

README.md
[![agentmods](https://agentmods.dev/badge/commands/kylepelham/drift/changelog.svg)](https://agentmods.dev/commands/kylepelham/drift/changelog)
Your own site
<a href="https://agentmods.dev/commands/kylepelham/drift/changelog"><img src="https://agentmods.dev/badge/commands/kylepelham/drift/changelog.svg" alt="Measured on agentmods" 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 698 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 100% copy Near-identical to another mod 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.00698
Opus 5 $0.00000 $0.00349
Sonnet 5 $0.00000 $0.00140
Haiku 4.5 $0.00000 $0.00070

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

Security

Grade A, and why

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

Origin

This is a copy

100% identical to changelog — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

engine/upstream/.opencode/command/changelog.md · 50 lines

What it actually says

Create UPCOMING_CHANGELOG.md from the structured changelog input below. If UPCOMING_CHANGELOG.md already exists, ignore its current contents completely. Do not preserve, merge, or reuse text from the existing file.

The input already contains the exact commit range since the last non-draft release. The commits are already filtered to the release-relevant packages and grouped into the release sections. Do not fetch GitHub releases, PRs, or build your own commit list. The input may also include a ## Community Contributors Input section.

Before writing any entry you keep, inspect the real diff with git show --stat --format='' <hash> or git show --format='' <hash> so you can understand the actual code changes and not just the commit message (they may be misleading). Do not use git log or author metadata when deciding attribution.

Rules:

  • Write the final file with release sections in this order: ## Core, ## TUI, ## Desktop, ## SDK, ## Extensions
  • Only include sections that have at least one notable entry
  • Within each release section, keep bug fixes grouped under ### Bugfixes
  • Keep other notable entries under ### Improvements when a section has bug fixes too
  • Omit empty subsections
  • Keep one bullet per commit you keep
  • Skip commits that are entirely internal, CI, tests, refactors, or otherwise not user-facing
  • Start each bullet with a capital letter
  • Prefer what changed for users over what code changed internally
  • Do not copy raw commit prefixes like fix: or feat: or trailing PR numbers like (#123)
  • Community attribution is deterministic: only preserve an existing (@username) suffix from the changelog input
  • If an input bullet has no (@username) suffix, do not add one
  • Never add a new (@username) suffix from git show, commit authors, names, or email addresses
  • If no notable entries remain and there is no contributor block, write exactly No notable changes.
  • If no notable entries remain but there is a contributor block, omit all release sections and return only the contributor block
  • If the input contains ## Community Contributors Input, append the block below that heading to the end of the final file verbatim
  • Do not add, remove, rewrite, or reorder contributor names or commit titles in that block
  • Do not derive the thank-you section from the main summary bullets
  • Do not include the heading ## Community Contributors Input in the final file
  • Focus on writing the least words to get your point across - users will skim read the changelog, so we should be precise

Importantly, the changelog is for users (who are at least slightly technical), they may use the TUI, Desktop, SDK, Plugins and so forth. Be thorough in understanding flow on effects may not be immediately apparent. e.g. a package upgrade looks internal but may patch a bug. Or a refactor may also stabilise some race condition that fixes bugs for users. The PR title/body + commit message will give you the authors context, usually containing the outcome not just technical detail

<changelog_input>

!bun script/raw-changelog.ts $ARGUMENTS

</changelog_input>

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 · 50 lines · 0 tokens per session scan A e299dd8ca291

Subscribe to this mod's changes

changelog is a command published in the GitHub repository kylepelham/Drift (20 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 698 tokens. A static security scan graded it A with 0 findings. It is 100% identical to changelog, differing in 0 lines, and is treated as a copy.