glyphloop: Instructions file for Claude Code

CLAUDE.md

glyphloop CLAUDE.md is an instructions file for Claude Code from ideoshi/glyphloop. It costs 722 tokens per session, scanned A, original, MIT.

Projectinstructies voor Glyphloop, een programma dat herhalende ASCII-animaties maakt voor websites en ook uitvoer naar MP4, GIF, PNG en terminalspelers ondersteunt.

In plain words
What is it for?
Voor het starten van de ontwikkelomgeving, uitvoeren van tests en builds, headless renderen via de opdrachtregel en aansturen van renders via een MCP-server.
Why use it?
De instructies leggen uit welke opdrachten je gebruikt, welke bronnen zonder browser kunnen worden gerenderd en welke functies alleen in de browser-editor werken.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ideoshi/glyphloop/claude-md"><img src="https://agentmods.dev/badge/instructions/ideoshi/glyphloop/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 722 This file is loaded in full into every session.
When invoked 722 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.00722 $0.00722
Opus 5.5 $0.00289 $0.00289
Sonnet 5.5 $0.00144 $0.00144
Haiku 4.5 $0.00072 $0.00072

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

Security

Grade A, and why

glyphloop 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 · 62 lines

How it starts

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

Glyphloop

Local web app + headless CLI for loop-perfect generative ASCII animations (web embeds, MP4/GIF/PNG, terminal players). Imported video repeats one sampled pass and is seamless only when the source footage already loops.

Commands

  • npm run dev - editor UI on http://localhost:5199 (browser preview via .claude/launch.json)
  • npm test - vitest unit tests (always run before committing)
  • npm run build - typecheck + production build
  • npm run render -- --preset <file> --out <dir> - headless render; see AGENTS.md
  • npm run mcp - start the MCP server (stdio) so an agent can drive renders

Generating animations as an agent

Read AGENTS.md first - it has the preset JSON schema, per-source parameter tables, MCP tool reference, and embed integration snippets.

Headless sources (render via CLI/MCP): flowfield, waves, blobs, rain, shapes3d, expr, parametric3d. Image/video/text base layers and PNG/GIF/MP4 export are browser-editor features (canvas/codecs) and cannot render headless.

To expose the MCP server to an agent from any project, register the repo-local binary (replace the path with this repo's absolute path):

claude mcp add --scope user glyphloop -- node "/absolute/path/to/glyphloop/bin/glyphloop.js" mcp

Use the public npx glyphloop@beta render ... and npx glyphloop@beta mcp commands from any project. For development against this checkout, use npm run render -- ... and npm run mcp from inside the repo.

Architecture

Source (pure fn of t, seed, params - must be loop-periodic)
  → FieldFrame (src/core/field.ts, brightness grid)
  → AsciiMapper (src/core/mapper.ts, brightness → char + color)
  → CanvasRenderer (src/core/render.ts)
  → exporters (src/export/*)
  • src/core/state.ts - AppState, the single serializable state = preset format. Keep it import-clean: no UI or CJS-dep imports (the CLI loads it under Node ESM).
  • src/sources/ - one file per source + SOURCES registry in index.ts.
  • src/cli/preset.ts - validates presets and rejects browser-only bases/layers (image/video/text) so the headless CLI only accepts renderable input.
  • src/cli/ - preset merge/validation + render command (run via tsx).
  • src/mcp/server.ts - MCP server (list_sources, preview_frame, render_animation).
  • Loop-perfection rule: time may only enter a source via loopCoords() noise sampling or integer-cycle 2π·k·t/T phases. Tests enforce t=0 ≡ t=duration.

Read the full file on GitHub · 62 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. 2mo ago First seen · 62 lines · 722 tokens per session scan A b37bdc9540d6

Subscribe to this mod's changes

glyphloop CLAUDE.md is an instructions file published in the GitHub repository ideoshi/glyphloop (0 stars, last pushed 3mo ago), licensed MIT. It adds 722 tokens to every session, about $0.0029 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-31.

Related

glyphloop CLAUDE.md compared with instructions from other repositories

glyphloop CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
glyphloop CLAUDE.mdideoshi/glyphloopInstructions file03mo agoMITA722Claude 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,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot