BeatDesign
AGENTS.md338 starsChanged 40 days agoApache-2.0View on GitHub
BeatDesign is the independent, open-source Create workspace in the broader BeatAPI ecosystem. It is not the BeatAPI website frontend, the sibling ../BeatAPI SaaS Template, or a copy of the SaaS product. BeatAPI is the built-in/default remote generation provider; the local workspace must remain useful without a BeatAPI account or API key. Preserve Home, Projects, Studio, Canvas, Editor, Assets, generation history, provider/storage configuration, and the BeatAPI image/video/analysis model catalog. Studio, Canvas, Editor, Assets, generation history, and MCP are views or control…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 1 is common, 6 are distinctive, and 10 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 7
Read docs/PRODUCT_PLAN_AND_STATUS.md before changing product scope or describing a capability as complete.
- Very specific: line 8
Read docs/ARCHITECTURE.md before changing framework, database, provider, storage, deployment, MCP, or workspace boundaries.
- Very specific: line 9
Read docs/PROVIDERS.md before changing models, provider bindings, uploads, polling, or upstream request mapping.
- Very specific: line 10
Read docs/DESIGN.md before making visual or UI decisions.
- Very specific: line 11
Read docs/RELEASE_SCOPE.md before describing the repository as release-ready, published, deployed, or verified.
- Distinctive: line 22
Do not add authentication, accounts, payments, subscriptions, credits, API-key issuing, invitations, RBAC, admin, tickets, CMS, email …
- Very specific: line 24
Do not embed a proprietary general chatbot.
- Common: line 54
Never commit API keys, provider credentials, shared storage credentials, generated user media, or local SQLite data.
- Very specific: line 63
Add user-facing message keys to both messages/en.json and messages/zh.json.
- Very specific: line 64
Do not edit src/routeTree.gen.ts manually.
- Distinctive: line 70
Keep channel submission, review, publication, ranking, and outreach status outside this repository.
- Distinctive: line 71
Use English as the default locale for reusable product screenshots.
- Very specific: line 72
Before reusing marketing copy or visuals, reconcile versioned claims against docs/PRODUCT_PLAN_AND_STATUS.md, the current README, and …
- Very specific: line 74
Follow docs/DESIGN.md and the current product UI when creating promotional visuals.
- Distinctive: line 78
After code changes, run:
- Distinctive: line 87
Run focused browser and MCP checks when changing Canvas, Editor, project persistence, provider submission, or Agent-visible behavior.
- Distinctive: line 89
Keep these states separate when reporting completion: source change, automated checks, browser validation, MCP-to-UI validation, …
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BeatDesign agent guide
BeatDesign is the independent, open-source Create workspace in the broader BeatAPI ecosystem. It is not the BeatAPI website frontend, the sibling ../BeatAPI SaaS Template, or a copy of the SaaS product. BeatAPI is the built-in/default remote generation provider; the local workspace must remain useful without a BeatAPI account or API key.
Source of truth
- Read
docs/PRODUCT_PLAN_AND_STATUS.mdbefore changing product scope or describing a capability as complete. - Read
docs/ARCHITECTURE.mdbefore changing framework, database, provider, storage, deployment, MCP, or workspace boundaries. - Read
docs/PROVIDERS.mdbefore changing models, provider bindings, uploads, polling, or upstream request mapping. - Read
docs/DESIGN.mdbefore making visual or UI decisions. Follow its typography, color, spacing, component, and interaction language unless the user explicitly approves a change. - Read
docs/RELEASE_SCOPE.mdbefore describing the repository as release-ready, published, deployed, or verified. - Roadmaps and marketing material are context, not implementation proof. Current code, tests, and the completed sections of
docs/PRODUCT_PLAN_AND_STATUS.mddefine shipped behavior.
Product boundary
Preserve Home, Projects, Studio, Canvas, Editor, Assets, generation history, provider/storage configuration, and the BeatAPI image/video/analysis model catalog.
Studio, Canvas, Editor, Assets, generation history, and MCP are views or control surfaces over the same local Project, asset, generation, and history services. Do not create separate projects or backends when switching surfaces.
Local import, project organization, Canvas work, timeline editing, preview, and MP4 export must work without an API key. Only a confirmed remote generation, analysis, or AI-redo action may require the user's provider credentials and upload the required inputs.
Do not add authentication, accounts, payments, subscriptions, credits, API-key issuing, invitations, RBAC, admin, tickets, CMS, email providers, cloud-database dependencies, hosted-workspace assumptions, or unrelated generation adapters. BeatData, BeatGTM, BeatLeads, general Agent platforms, social publishing, CRM, and other future BeatAPI product lines are outside this repository.
Do not embed a proprietary general chatbot. BeatDesign must be complete without an Agent while allowing Codex, Claude Code, Cursor, and other MCP-capable Agents to operate the same Project.
Core product model
- The product is asset-first: a generation creates an
Asset; it does not own a single UI placement. - A Canvas node references an Asset, Generation, or Timeline.
- A Timeline clip pins a concrete Asset and must not silently follow a Canvas generation's latest output.
- A Take is an alternate Asset for one clip; the original remains recoverable.
- Canvas edges describe visual organization. Generation lineage records real derivation separately.
- Generated and imported media return to project-owned local storage before they are treated as durable workspace outputs.
Architecture rules
- Browser components call typed local API helpers; they do not import the database or receive raw provider credentials.
- UI and MCP writes share the same Command Kernel, validation, revision checks, project-asset boundary, and durable persistence path.
- MCP never writes SQLite directly and never replaces an entire Canvas or Timeline document. External Agents use incremental
canvas.applyandeditor.applyoperations with stable IDs, revisions, and idempotency keys. - Canvas layout snapshots are a UI persistence exception for drag, resize, and viewport state; external Agents still use semantic Canvas operations.
- Agent changes must become visible in the browser workspace and remain inspectable, reversible where supported, and verifiable. A database revision alone is not proof of a successful user-visible operation.
- Studio, Canvas, Editor, Assets, and MCP share project, task, asset, and generation services rather than duplicating business logic.
- Preview and browser-side MP4 export use browser-native WebCodecs and Mediabunny. Do not make system FFmpeg a requirement for the core localhost UI. Node-side MCP frame extraction and Timeline rendering may use
ffmpegfromPATHorBEATDESIGN_FFMPEG; Timeline rendering also usesffprobefromPATHorBEATDESIGN_FFPROBE. These tools must fail with a clear setup error when a required binary is unavailable.
Provider and storage boundary
- BeatAPI is the built-in/default provider for remote image, video, audio, and analysis tasks. BeatDesign does not reproduce BeatAPI account, balance, billing, refund, routing, rate-limit, or API-key-issuing logic; it returns provider results and errors.
- UI and MCP use logical model IDs and capability schemas, not BeatAPI effect IDs or raw upstream fields.
- The canonical user-facing model catalog lives in
src/core/effects/effect-registry.ts. - Provider bindings live in
src/core/generation-providers/; BeatAPI request mapping lives insrc/core/adapters/beatapi-adapter.ts. - Forks may add a provider through the source-level provider/adapter extension points without changing Canvas, Editor, Assets, MCP requests, or the asset-first contract. Do not add a second database-backed model registry.
- Provider keys stay server-side. Provider and optional R2/S3-compatible storage credentials stay encrypted in local SQLite.
- File selection stays local. Upload is allowed only after generation precheck and only for inputs required by that confirmed request. BeatAPI Files is the default upload path; users may configure their own public R2/S3-compatible bucket.
- Never commit API keys, provider credentials, shared storage credentials, generated user media, or local SQLite data.
Stack and repository conventions
- TanStack Start, React 19, and TypeScript.
- TanStack Query for shared browser server-state.
- Tailwind CSS 4 and Base UI/shadcn primitives.
- Drizzle ORM with local SQLite.
- Paraglide for English and Chinese.
- Add user-facing message keys to both
messages/en.jsonandmessages/zh.json. - Do not edit
src/routeTree.gen.tsmanually. - Preserve unrelated user changes in a dirty worktree.
Local promotion workspace
/promotion-kit/is a local-only, Git-ignored workspace for reusable product copy, screenshots, editable visual templates, and verified promotion scripts. It is not a product source of truth and may be absent in a fresh clone.- Keep channel submission, review, publication, ranking, and outreach status outside this repository. The promotion kit stores reusable materials, not campaign operations.
- Use English as the default locale for reusable product screenshots. Create Chinese or Japanese variants only for a specific localized deliverable.
- Before reusing marketing copy or visuals, reconcile versioned claims against
docs/PRODUCT_PLAN_AND_STATUS.md, the current README, and current code. Never treat an older campaign file or image label as proof of current behavior. - Promotional screenshots must use non-sensitive demo media and must not expose provider keys, cookies, tokens, personal data, private filenames, task IDs, or request IDs. Record the app version, commit, locale, capture date, and verification notes in the local promotion-kit index.
- Follow
docs/DESIGN.mdand the current product UI when creating promotional visuals. Keep raw captures separate from processed exports, and do not present a concept render as a verified product screenshot.
Verification and completion language
After code changes, run:
pnpm typecheck
pnpm test
pnpm i18n:check
pnpm buildRun focused browser and MCP checks when changing Canvas, Editor, project persistence, provider submission, or Agent-visible behavior. A release check additionally requires clean installation/schema setup, MCP handshake, and local route smoke testing as defined in docs/RELEASE_SCOPE.md.
Keep these states separate when reporting completion: source change, automated checks, browser validation, MCP-to-UI validation, credentialed or paid BeatAPI end-to-end validation, commit, push/merge, GitHub Release, hosted demo, and deployment. Never infer a later state from an earlier one.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

