carouselbot AGENTS.md

carouselbot AGENTS.md is an instructions file for Codex, OpenCode from alexgusevski/carouselbot. It costs 815 tokens per session, scanned A, original, MIT.

Repository instructions for CarouselBot, a local-first browser editor. They describe the source layout, important modules, project rules, and verification requirements.

In plain words
What is it for?
Working on the editor model, state, storage, rendering, interactions, projects, and related build or deployment tasks.
Why use it?
They help coding agents change the correct source files while avoiding generated files and unintended behavior changes.

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/alexgusevski/carouselbot/agents-md
Clone the repo
git clone --depth 1 https://github.com/alexgusevski/carouselbot

Made for: Codex, OpenCode.

Per session 815 This file is loaded in full into every session.
When invoked 815 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.00815 $0.00815
Opus 5 $0.00407 $0.00407
Sonnet 5 $0.00163 $0.00163
Haiku 4.5 $0.00081 $0.00081

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

Security

Grade A, and why

carouselbot 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 3d 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 · 57 lines

How it starts

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

Repository guidance

CarouselBot is a dependency-light, local-first browser editor. Keep changes focused and preserve existing behavior unless the task explicitly calls for a product change.

Source layout

Browser application source lives in src/. The root app.js is only the compatibility bootloader; do not add editor logic to it. dist/ is generated and must not be edited directly.

  • src/editor-model.mjs — constants and browser-independent model, color, geometry, text-wrapping, and filename helpers.
  • src/editor-state.mjs — shared editor state, selectors, selection, and state-aware geometry.
  • src/project-store.mjs — IndexedDB revision checks and cross-tab project notifications.
  • src/editor-view.mjs — markup and DOM/text painting.
  • src/slide-renderer.mjs — full-resolution canvas rendering.
  • src/layer-interactions.mjs — pointer, crop, drag, resize, rotate, and inline-text interactions. It receives stateful controller callbacks instead of importing the controller.
  • src/editor-projects.mjs — project history, persistence coordination, routing, migration, and dashboard workflows.
  • src/editor-actions.mjs — layer, text, slide, asset, upload, drop, and clipboard workflows.
  • src/editor-output.mjs — dashboard covers, slide thumbnails, PNG downloads, and sharing.
  • src/editor-ui.mjs — editor/dashboard rendering, DOM event binding, menus, inspector controls, selection, and canvas behavior.
  • src/editor.mjs — composition, initialization, global event wiring, and the stable controller facade.
  • src/agent-commands.mjs — compatibility agent command surface; it is a leaf module.
  • src/main.mjs — startup only.

The dependency direction is documented in docs/ARCHITECTURE.md. Feature controllers receive their cross-workflow dependencies from editor.mjs; they must not import one another or the facade. Use narrowly scoped callbacks when a workflow crosses an ownership boundary.

Invariants

  • Projects remain local to IndexedDB. Do not add network storage or uploads.
  • Preserve the canonical carouselbot-db, legacy slide-studio-db, projects store, project revision compare-and-swap behavior, and cross-tab notifications.
  • Export dimensions remain 1080 × 1920. Layer positions and sizes are normalized to the stage.
  • The model calls placed images overlays; the public agent protocol calls them images. Preserve that translation.
  • Preserve window.carouselBotReady, window.slideStudioReady, window.carouselBotAgent, and window.slideStudioAgent.
  • Keep the MCP protocol version and command behavior compatible with the companion package.
  • Do not change design, copy, DOM hooks, geometry, or rendering as part of an architectural cleanup.

Read the full file on GitHub · 57 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. 3d ago First seen · 57 lines · 815 tokens per session scan A 5a7eac65a90a

Subscribe to this mod's changes

carouselbot AGENTS.md is an instructions file published in the GitHub repository alexgusevski/carouselbot (23 stars, last pushed 4d ago), licensed MIT. It adds 815 tokens to every session, about $0.0041 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.