amethyst: Command for Claude Code

.claude/commands/desktop-run.md

desktop-run is a command for Claude Code from vitorpamplona/amethyst. It costs 6 tokens per session (252 once invoked), scanned A, original, MIT.

A command for building and launching the Amethyst desktop application. It also provides commands for packaging the app for macOS, Windows, and Linux.

In plain words
What is it for?
Use it to start Amethyst during development, build the Quartz module it depends on, and create DMG, MSI, DEB, or RPM installers.
Why use it?
It gives developers a consistent way to run the desktop app and check build problems such as an incompatible Java version or missing desktop dependencies.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is vitorpamplona/amethyst's own configuration. It tells Claude Code how to work on amethyst 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 amethyst configures →

About the project

Amethyst is an Android client for Nostr, a social network protocol that lets people control their own social activity and connections. People use it to read and publish Nostr content, follow accounts, and exchange encrypted direct messages from Android and other supported platforms. The catalogue add-ons support workflows for developing or operating the client.

vitorpamplona/amethyst · 1,595 stars · on GitHub · amethyst.social

Reuse

Borrowing it

Nothing to install: this file belongs to vitorpamplona/amethyst. 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/vitorpamplona/amethyst/main/.claude/commands/desktop-run.md
Clone the repo
git clone --depth 1 https://github.com/vitorpamplona/amethyst

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 desktop-run

README.md
[![agentmods](https://agentmods.dev/badge/commands/vitorpamplona/amethyst/desktop-run.svg)](https://agentmods.dev/commands/vitorpamplona/amethyst/desktop-run)
Your own site
<a href="https://agentmods.dev/commands/vitorpamplona/amethyst/desktop-run"><img src="https://agentmods.dev/badge/commands/vitorpamplona/amethyst/desktop-run.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 252 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.00006 $0.00252
Opus 5 $0.00003 $0.00126
Sonnet 5 $0.00001 $0.00050
Haiku 4.5 $0.00001 $0.00025

Measured 8d ago against content hash 78440c361c51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

desktop-run 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 8d 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/desktop-run.md · 46 lines

What it actually says

Build and run the Amethyst Desktop application:

./gradlew :desktopApp:run

Troubleshooting

If the build fails, check:

  1. JDK Version: Requires JDK 21+ (jvmToolchain(21) in desktopApp/build.gradle.kts)

    java -version
    
  2. Compose Multiplatform Plugin: Verify version in gradle/libs.versions.toml

  3. Quartz Build: Ensure Quartz compiles first

    ./gradlew :quartz:build
    
  4. Desktop Dependencies: Check desktopApp/build.gradle.kts has:

    implementation(compose.desktop.currentOs)
    

Creating Distributable

# macOS
./gradlew :desktopApp:packageDmg

# Windows
./gradlew :desktopApp:packageMsi

# Linux
./gradlew :desktopApp:packageDeb   # or :desktopApp:packageRpm

Outputs will be in desktopApp/build/compose/binaries/main/

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. 8d ago First seen · 46 lines · 6 tokens per session scan A 78440c361c51

Subscribe to this mod's changes

desktop-run is a command published in the GitHub repository vitorpamplona/amethyst (1,595 stars, last pushed today), licensed MIT. It adds 6 tokens to every session and 252 once invoked, about $0.0000 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.