gpt-rag-realtime
AGENTS.md0 starsChanged 6 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 code style.
Of the AGENTS.md files we read, the 33,398 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
- Distinctive: line 9
Keep each module and file focused on a single, clear responsibility.
- Very specific: line 13
Prefer small, cohesive async functions and classes.
- Distinctive: line 16
Use clear, intent-revealing names so the code reads without excessive comments.
- Very specific: line 28
Read runtime settings from Azure App Configuration (label gpt-rag) and resolve secrets through Key Vault references.
- Distinctive: line 31
Prefer typed, explicit data contracts (type hints, dataclasses, or Pydantic models) at every service boundary.
- Distinctive: line 36
Add tests alongside logic as soon as it becomes independently testable.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
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
asyncfunctions 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
printfor diagnostics. - Add tests alongside logic as soon as it becomes independently testable.
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.

