agentleFS
Microsoft AzureKnown publisherAzure/gpt-rag-realtime/AGENTS.md

gpt-rag-realtime

AGENTS.md0 starsChanged 3 months agoMITView on GitHub

This repository is the voice / real-time component of GPT-RAG and is an early skeleton (no service code yet). Establish clean code best practices from the start so the service stays modular and easy to evolve as it grows. - Keep each module and file focused on a single, clear responsibility. - As code lands, separate concerns into dedicated layers (transport / session handling, backend clients/connectors, telemetry, and any real-time audio logic) instead of accumulating everything in one entrypoint. -…

  • 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.

The file

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

6 rules. About 0 are common, 4 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep each module and file focused on a single, clear responsibility.

    line 9
  2. Very specific:

    Prefer small, cohesive async functions and classes.

    line 13
  3. Distinctive:

    Use clear, intent-revealing names so the code reads without excessive comments.

    line 16
  4. Very specific:

    Read runtime settings from Azure App Configuration (label gpt-rag) and resolve secrets through Key Vault references.

    line 28
  5. Distinctive:

    Prefer typed, explicit data contracts (type hints, dataclasses, or Pydantic models) at every service boundary.

    line 31
  6. Distinctive:

    Add tests alongside logic as soon as it becomes independently testable.

    line 36

≈ “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

Engineering Standards

Clean Code and Modularity

This repository is the voice / real-time component of GPT-RAG and is an early skeleton (no service code yet). Establish clean code best practices from the start so the service stays modular and easy to evolve as it grows.

  • Keep each module and file focused on a single, clear responsibility.
  • As code lands, separate concerns into dedicated layers (transport / session handling, backend clients/connectors, telemetry, and any real-time audio logic) instead of accumulating everything in one entrypoint.
  • Prefer small, cohesive async functions and classes. Respect async correctness — do not block the event loop with synchronous I/O, which is especially important for real-time/streaming workloads.
  • Use clear, intent-revealing names so the code reads without excessive comments. Comment only non-obvious decisions.
  • Reuse shared helpers and connectors before adding new ones. Avoid duplication and speculative abstractions; extract only when code is genuinely repeated or a file is mixing concerns.

Align with the Other GPT-RAG Services

This service is deployed as an Azure Container App alongside the rest of the accelerator. Follow the same conventions used by gpt-rag-orchestrator, gpt-rag-ui, gpt-rag-ingestion, and gpt-rag-mcp:

  • Read runtime settings from Azure App Configuration (label gpt-rag) and resolve secrets through Key Vault references. Never hardcode endpoints, deployment names, or feature flags in code.
  • Prefer typed, explicit data contracts (type hints, dataclasses, or Pydantic models) at every service boundary.
  • Surface errors clearly and consistently through a logger. Do not swallow exceptions or add silent fallbacks that hide a broken state. Never use print for diagnostics.
  • Add tests alongside logic as soon as it becomes independently testable.

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.