agentleFS
OpenAIKnown publisheropenai/realtime-voice-component/demo/AGENTS.md

realtime-voice-component / demo

AGENTS.md887 starsChanged 8 months agoApache-2.0View on GitHub

This demo/ app is organized as a small set of canonical examples for the package, not as a general-purpose sandbox. Run these when you change the demo app:

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep demo-specific tools and controller logic inside the matching demo folder.

    line 34
  2. Very specific:

    Keep cross-demo behaviors in src/demos/shared/, especially the shared session wiring and change_demo tool.

    line 35
  3. Very specific:

    Keep the overview page snippets aligned with the current public package API.

    line 36
  4. Distinctive:

    If wake-word behavior changes, treat it as shared demo behavior unless the change is truly route-specific.

    line 37
  5. Distinctive:

    Keep the package story simple: app-owned tools first, wake word second.

    line 39
  6. Very specific:

    When changing a demo's visible fields or tool contract, update the route UI, the demo tools/controller, and test/demoApp.test.tsx together.

    line 40
  7. Distinctive:

    Run these when you change the demo app:

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Demo App Instructions

This demo/ app is organized as a small set of canonical examples for the package, not as a general-purpose sandbox.

Purpose

  • / is the overview page. It explains what realtime-voice-component is for, how tools fit into the integration model, and which demos to study next.
  • /demo/theme is the smallest example. It demonstrates a tiny tool surface with one visible UI action plus an optional message tool.
  • /demo/form is the structured example. It demonstrates one-field-at-a-time updates, post-tool follow-ups, and explicit submission.

Folder Layout

  • src/demos/shared/
    • shared card/shell primitives
    • shared toast/message tool
    • shared wake-word hook
    • shared session/controller wiring for cross-demo handoff
  • src/demos/overview/
    • overview route only
  • src/demos/theme/
    • index.tsx for page UI
    • controller.ts for controller wiring
    • tools.ts for theme-specific tools
    • config.ts for prompt/config constants
  • src/demos/form/
    • index.tsx for page UI
    • controller.ts for controller wiring
    • tools.ts for form-specific tools
    • config.ts for prompt/config constants

Editing Rules

  • Reuse the shared demo card system and demo.css. Do not introduce a second visual language for one route.
  • Keep demo-specific tools and controller logic inside the matching demo folder.
  • Keep cross-demo behaviors in src/demos/shared/, especially the shared session wiring and change_demo tool.
  • Keep the overview page snippets aligned with the current public package API. If tool or controller APIs change, update /, README.md, and the relevant examples together.
  • If wake-word behavior changes, treat it as shared demo behavior unless the change is truly route-specific.
  • Switching between interactive demos should reset the Realtime session, then reconnect and resend the visible state for the newly active demo if the widget was already live.
  • Keep the package story simple: app-owned tools first, wake word second.
  • When changing a demo's visible fields or tool contract, update the route UI, the demo tools/controller, and test/demoApp.test.tsx together.

Validation

Run these when you change the demo app:

  • corepack pnpm demo:typecheck
  • corepack pnpm test
  • corepack pnpm demo:build

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.