gmc64: Instructions file for Claude Code

CLAUDE.md

gmc64 CLAUDE.md is an instructions file for Claude Code from needlestack/gmc64. It costs 12,241 tokens per session, scanned A, original, MIT.

An engineering reference for GMC64, a browser-based recreation of the 1985 Commodore 64 GameMaker program for building and editing C64-style games.

In plain words
What is it for?
Use it when working on the editor, sprite and scene tools, music, game movement, or PRG, SPR, SND, SNG, and PIC files stored on D64 disk images.
Why use it?
It gives developers the project’s file formats, coordinate rules, architecture, and other details needed to change the recreation without breaking compatibility with original GameMaker files.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 gmc64 CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/needlestack/gmc64/claude-md"><img src="https://agentmods.dev/badge/instructions/needlestack/gmc64/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12,241 This file is loaded in full into every session.
When invoked 12,241 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.12241 $0.12241
Opus 5.5 $0.04896 $0.04896
Sonnet 5.5 $0.02448 $0.02448
Haiku 4.5 $0.01224 $0.01224

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

Security

Grade A, and why

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

CLAUDE.md · 966 lines

How it starts

The opening of the file, as written. The whole thing — 966 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GMC64 Technical Documentation

A faithful, modern recreation of Garry Kitchen's GameMaker (Activision, 1985).

gmc64 lets you build, run, and edit C64-style games in the browser, with original-format .PRG, .SPR, .SND, .SNG, and .PIC files stored on D64 disk images. Files round-trip cleanly with the original 1985 GameMaker disk running on real C64 hardware.

This document is the internal engineering reference — architecture, file formats, gotchas, and recipes for working in the codebase. Reader-facing overview lives in README.md.

Quick Reference

Item Value
Music tempo gmMusic.BASE_BPM = 140 (tempo 80 = 140 BPM)
Screen resolution 320×200 native, CSS scales to display
Coordinate system GM fat pixels: X 12-171, Y 50-249 → 320×200: (x-12)*2, y-50
Movement formula X: speed / 46, Y: speed / 31.5 at 60fps (C64 pixels aren't square)
Animation formula frame_skip = 32 - animSpeed
File separator / not . (PETSCII): PLAYER/SPR not PLAYER.SPR

Project Structure

├── program-editor.html          Program editor/runner (AST-based VM)
├── sprite-maker.html    Sprite editor
├── scene-maker.html     Scene editor
├── sound-maker.html     Sound effect editor
├── music-maker.html     Music editor
├── js/
│   ├── gmRuntime.js     VM execution, sprites, collision
│   ├── gmParser.js      Bytecode → AST parsing
│   ├── gmSprite.js      Sprite parsing/rendering
│   ├── gmScene.js       Scene parsing (indexed pixel buffer)
│   ├── gmSound.js       Sound effects (Web Audio + SID emulation)
│   ├── gmMusic.js       Music playback (3-channel)
│   ├── gmDisk.js        D64 disk + localStorage persistence
│   ├── gmEditor.js      Instruction editor UI
│   ├── gmOpcodes.js     Opcode definitions
│   ├── gmCharset.js     C64 font rendering
│   ├── gmTools.js       Shared utilities
│   ├── d64lib.js        Pure D64/1541 disk parsing
│   ├── c64lib.js        C64 palette, PETSCII decoding
│   ├── c64Screen.js     320×200 canvas wrapper
│   ├── gif.js           GIF library (jnordberg/gif.js)
│   └── gifWorkerBlob.js GIF worker as inline blob (avoids file:// security restrictions)
├── css/
│   └── gm-ui.css        Master stylesheet (C64 colors, fonts, components)
├── tests/
│   ├── *.test.js        Vitest test files
│   ├── generate-golden-*.js  Golden file generators
│   ├── golden/          Golden snapshot files (JSON)
│   └── disks/           Test D64 disk images
├── tools/
│   ├── screenshot.js    Puppeteer screenshot utility
│   └── hex-viewer.html  Hex dump viewer
└── docs/
    ├── TODO.md          Future improvements
    └── references/      Reference materials

Read the full file on GitHub · 966 lines

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 Changed · +47 lines · +1,121 tokens per session 42aaa234270e
  2. 2mo ago First seen · 919 lines · 11,120 tokens per session scan A be75fd0f7e7d

Subscribe to this mod's changes

gmc64 CLAUDE.md is an instructions file published in the GitHub repository needlestack/gmc64 (11 stars, last pushed 1mo ago), licensed MIT. It adds 12,241 tokens to every session, about $0.0490 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

gmc64 CLAUDE.md compared with instructions from other repositories

gmc64 CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gmc64 CLAUDE.mdneedlestack/gmc64Instructions file111mo agoMITA12,241Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot