sprites-ex: Instructions file for Claude Code

CLAUDE.md

sprites-ex CLAUDE.md is an instructions file for Claude Code from superfly/sprites-ex. It costs 504 tokens per session, scanned A, original, MIT.

Project instructions for working on Sprites Elixir SDK, a library for running commands in remote code containers through the Sprites platform. They document setup, commands, tests, formatting, and project structure.

In plain words
What is it for?
Use them when developing or maintaining the SDK, its test command-line program, or its integration tests.
Why use it?
They give a coding agent the project-specific commands and conventions needed to build, test, format, and document the code correctly.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to superfly/sprites-ex. 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/superfly/sprites-ex/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/superfly/sprites-ex

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 sprites-ex CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/superfly/sprites-ex/claude-md/github.svg)](https://agentmods.dev/instructions/superfly/sprites-ex/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/superfly/sprites-ex/claude-md"><img src="https://agentmods.dev/badge/instructions/superfly/sprites-ex/claude-md/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 sprites-ex CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/superfly/sprites-ex/claude-md"><img src="https://agentmods.dev/badge/instructions/superfly/sprites-ex/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 504 This file is loaded in full into every session.
When invoked 504 The same file — it is already loaded in full.
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.00504 $0.00504
Opus 5.5 $0.00202 $0.00202
Sonnet 5.5 $0.00101 $0.00101
Haiku 4.5 $0.00050 $0.00050

Measured 2mo ago against content hash 8daa33f8feed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sprites-ex CLAUDE.md 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 2mo 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.md · 92 lines

What it actually says

Sprites Elixir SDK

An Elixir SDK for the Sprites code container runtime - a remote code execution platform for interactive development.

Quick Reference

Common Commands

# Install dependencies
mix deps.get

# Compile
mix compile

# Run tests
mix test

# Format code (REQUIRED before committing)
mix format

# Generate docs
mix docs

Test CLI

cd test_cli
mix deps.get
mix escript.build

# Usage
export SPRITES_TOKEN=your-token
./test-cli create my-sprite
./test-cli -sprite my-sprite -output stdout echo hello
./test-cli destroy my-sprite

Integration Tests (with Go test harness)

export SPRITES_TEST_TOKEN=your-token
export SDK_TEST_COMMAND=/path/to/sprites-ex/test_cli/test-cli
# Run from the Go SDK directory
go test -v

Project Structure

lib/sprites/
├── sprites.ex      # Main public API (entry point)
├── client.ex       # HTTP client for REST API (uses Req)
├── sprite.ex       # Sprite instance representation
├── command.ex      # Command execution via WebSocket (GenServer, uses gun)
├── protocol.ex     # Binary protocol codec for WebSocket messages
├── stream.ex       # Lazy Stream interface for command output
└── errors.ex       # Custom exceptions (APIError, CommandError, etc.)

Key Dependencies

  • req - HTTP client for REST API calls
  • gun - Erlang WebSocket/HTTP client for command execution
  • jason - JSON encoding/decoding

Environment Variables

  • SPRITES_TOKEN - Authentication token for Sprites API
  • SPRITES_TEST_TOKEN - Authentication token for testing

Version Requirements

  • Elixir: 1.18.4-otp-27
  • Erlang: 27.0.1

(See .tool-versions for asdf configuration)

API Defaults

  • Base URL: https://api.sprites.dev
  • HTTP timeout: 30 seconds
  • Create sprite timeout: 120 seconds
  • WebSocket upgrade timeout: 10 seconds

Code Style

  • Always run mix format before committing
  • All public functions should have @doc and @spec
  • Follow standard Elixir conventions
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. 2mo ago First seen · 92 lines · 504 tokens per session scan A 8daa33f8feed

Subscribe to this mod's changes

sprites-ex CLAUDE.md is an instructions file published in the GitHub repository superfly/sprites-ex (25 stars, last pushed 4d ago), licensed MIT. It adds 504 tokens to every session, about $0.0020 per session on Opus 5.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.

Related

sprites-ex CLAUDE.md compared with instructions from other repositories

sprites-ex CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sprites-ex CLAUDE.mdsuperfly/sprites-exInstructions file254d agoMITA504Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode