liquid-glass-carousel AGENTS.md

liquid-glass-carousel AGENTS.md is an instructions file for Codex, OpenCode from Yousuf-developer/liquid-glass-carousel. It costs 1,246 tokens per session, scanned A, original, MIT.

Project-specific instructions for an AI coding assistant working on a WebGL carousel built with Three.js, GSAP, React, and Next.js. They document the project structure and rules that keep the rendering engine separate from the user interface.

In plain words
What is it for?
Use them when modifying the carousel, reading its architecture, changing animations or WebGL behavior, or checking the rules for mobile handling and file responsibilities.
Why use it?
They prevent the assistant from applying outdated Next.js practices or changing code in ways that break the carousel’s architecture. They also identify which files own configuration, rendering, and interface behavior.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/yousuf-developer/liquid-glass-carousel/agents-md
Clone the repo
git clone --depth 1 https://github.com/Yousuf-developer/liquid-glass-carousel

Made for: Codex, 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 liquid-glass-carousel AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yousuf-developer/liquid-glass-carousel/agents-md.svg)](https://agentmods.dev/instructions/yousuf-developer/liquid-glass-carousel/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/yousuf-developer/liquid-glass-carousel/agents-md"><img src="https://agentmods.dev/badge/instructions/yousuf-developer/liquid-glass-carousel/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,246 This file is loaded in full into every session.
When invoked 1,246 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01246 $0.01246
Opus 5 $0.00623 $0.00623
Sonnet 5 $0.00249 $0.00249
Haiku 4.5 $0.00125 $0.00125

Measured 5d ago against content hash 70255c72bc96, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

liquid-glass-carousel AGENTS.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 5d 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.

AGENTS.md · 50 lines

How it starts

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

This is NOT the Next.js you know

This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ before writing any code. Heed deprecation notices.

Project notes for AI assistants

WebGL portfolio carousel: three.js + GSAP core with a thin React/Next.js wrapper. Human docs: README.md (overview) and HOW-IT-WORKS.md (architecture walkthrough) — read the latter before changing engine behavior.

File map

File Owns
lib/carousel/config.js PROJECTS image list + all tunables (CONFIG, INTERACT, LENS, FOCUS, ENTRY, UI_ANIM). Data only, no logic.
lib/carousel/engine.js Everything on the canvas: renderer, infinite row, scroll, lens shader (inline GLSL), focus mode, entry animation, render loop. Framework-free — no React imports, ever.
lib/carousel/gui.js lil-gui dev panel (hidden by default). Mutates the config objects live.
Components/CarouselSection.jsx React overlay only: heading, counter, "View" cursor label, Close button, viewport gate (<1025px shows a black screen and never boots WebGL).
app/page.js Just renders <CarouselSection />.

Routing common requests: add/change images → config.js PROJECTS. Scroll feel / snap / panel size → config.js CONFIG. Drag + click-vs-drag thresholds → config.js INTERACT. Lens look → config.js LENS (uniforms mirror it 1:1). Entry/focus choreography → ENTRY / FOCUS. Overlay text or breakpoint → CarouselSection.jsx. Motion/render behavior → engine.js.

Architecture invariants — do not break these

  • The engine talks to React only via callbacks (onActiveChange, onFocusChange, onEntryDone, onModeChange) and the returned handle (closeFocus, replayEntry, refreshLayout, setInteraction, destroy). Don't import React into the engine or reach into engine internals from the component.
  • GSAP animates plain numbers, never meshes. Timelines tween values in drop[], pEntry[], growArr[], focusScale, focusState.lensFx; layout() reads them each frame and derives final mesh transforms. Keep new animations in this pattern or motion will fight itself.
  • One easing system. Scroll motion is a single lerp (scroll += (target - scroll) * ease), where ease picks between EASE / SNAP_EASE / TOUCH_EASE per frame. Wheel, drag, momentum and the settle-snap all move target only — nothing may move scroll directly or add a second tween on it. (History: layered easing/snap systems here caused jumpy scrolling and were rebuilt twice.)
  • The settle-snap triggers on idle time (SNAP_IDLE_MS since the last input), not on remaining distance or velocity. Distance/velocity gating fired at different moments for fast flicks vs slow scrolls and felt inconsistent — don't reintroduce it.
  • Cursor state has one owner. All cursor writes go through updateCursor() (deduped, runs every frame via refreshHover). It reads hoverPanel (raw geometry); the trailing label reads overPanel, which adds its own gates. Never set el.style.cursor directly.
  • A drag must not open focus. onPointerUp sets suppressClick past CLICK_SLOP (TOUCH_CLICK_SLOP for touch) and onClick consumes it. Keep that handshake intact when touching either handler.
  • The FBO is sized in device pixels (W * dpr), including in onResize. Sizing it in CSS pixels makes everything blurry on retina.
  • Textures need mipmaps + anisotropy (set in the load callback). Panels render ~80px tall during entry; plain linear filtering looks mushy.
  • 1 world unit = 1 px (orthographic camera). All layout math assumes this.
  • Input gating: wheel/click are ignored while focusState.active || entryActive || entrySettled. focusState.active stays true until the close timeline finishes, even though onFocusChange(false) fires at close start (so the overlay UI syncs with the returning cards). Preserve that ordering.
  • Panel indices can be any integercenterForIndex/nearestIndex use an unbounded index (source = idx mod N, loop = floor(idx / N)) so the row can target the nearest copy of a panel across the infinite wrap. Don't clamp them to 0..N-1.

Read the full file on GitHub · 50 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. 5d ago First seen · 50 lines · 1,246 tokens per session scan A 70255c72bc96

Subscribe to this mod's changes

liquid-glass-carousel AGENTS.md is an instructions file published in the GitHub repository Yousuf-developer/liquid-glass-carousel (144 stars, last pushed 24d ago), licensed MIT. It adds 1,246 tokens to every session, about $0.0062 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.