opencode-x: Command for Claude Code

.opencode/command/changelog.md

changelog is a command for Claude Code, OpenCode from sdeonvacation/opencode-x. It costs 0 tokens per session (655 once invoked), scanned A, a copy of changelog, MIT.

A command that creates an upcoming changelog file from supplied, already-grouped release information. A changelog is a list of notable changes included in a software release.

In plain words
What is it for?
Use it to prepare `UPCOMING_CHANGELOG.md` entries for the Core, TUI, Desktop, SDK, and Extensions sections after checking the actual diffs.
Why use it?
It keeps release notes focused on user-visible changes and avoids relying only on commit messages, which may not accurately describe the code.

Command for Claude CodeOpenCode

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

This is sdeonvacation/opencode-x's own configuration. It tells Claude Code and OpenCode how to work on opencode-x 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 opencode-x configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sdeonvacation/opencode-x. 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/sdeonvacation/opencode-x/main/.opencode/command/changelog.md
Clone the repo
git clone --depth 1 https://github.com/sdeonvacation/opencode-x

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/sdeonvacation/opencode-x/changelog/github.svg)](https://agentmods.dev/commands/sdeonvacation/opencode-x/changelog)
Your own site
<a href="https://agentmods.dev/commands/sdeonvacation/opencode-x/changelog"><img src="https://agentmods.dev/badge/commands/sdeonvacation/opencode-x/changelog/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 changelog

Your own site · 80×15
<a href="https://agentmods.dev/commands/sdeonvacation/opencode-x/changelog"><img src="https://agentmods.dev/badge/commands/sdeonvacation/opencode-x/changelog.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 655 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 95% 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.00655
Opus 5.5 $0.00000 $0.00262
Sonnet 5.5 $0.00000 $0.00131
Haiku 4.5 $0.00000 $0.00065

Measured 1mo ago against content hash 8215209af77b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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.

Origin

This is a copy

95% identical to changelog — 5 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.

.opencode/command/changelog.md · 47 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 sections in this order: ## Core, ## TUI, ## Desktop, ## SDK, ## Extensions
  • Only include sections that have at least one notable entry
  • 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. 1mo ago First seen · 47 lines · 0 tokens per session scan A 8215209af77b

Subscribe to this mod's changes

changelog is a command published in the GitHub repository sdeonvacation/opencode-x (81 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 655 tokens. A static security scan graded it A with 0 findings. It is 95% identical to changelog, differing in 5 lines, and is treated as a copy.