opencode: Command for Claude Code

.opencode/command/changelog.md

changelog is a command for Claude Code, OpenCode from anomalyco/opencode. It costs 0 tokens per session (698 once invoked), scanned A, original, MIT.

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

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

About the project

OpenCode is an open-source AI coding agent that helps developers work on software projects. It includes agents for full-access development, read-only exploration and planning, plus a general subagent for complex searches and multistep tasks; the catalogue add-ons extend its workflows.

anomalyco/opencode · 204,765 stars · on GitHub · opencode.ai

Reuse

Borrowing it

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

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/anomalyco/opencode/changelog.svg)](https://agentmods.dev/commands/anomalyco/opencode/changelog)
Your own site
<a href="https://agentmods.dev/commands/anomalyco/opencode/changelog"><img src="https://agentmods.dev/badge/commands/anomalyco/opencode/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. Scan, not verified.
Origin unknown 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.00698
Opus 5 $0.00000 $0.00349
Sonnet 5 $0.00000 $0.00140
Haiku 4.5 $0.00000 $0.00070

Measured today against content hash e299dd8ca291, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 today.

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.

.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. today 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 anomalyco/opencode (204,765 stars, last pushed today), 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.