hexgate
AGENTS.md25 starsChanged 5 months agoMITView on GitHub
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,266 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 repository9 other files it gives its agents.
- hexgate/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hexgate/CLAUDE.mdCLAUDE.md
- film-demoSkill
- integration-testsSkill
- pr-descriptionSkill
- run-platformSkill
- write-adrSkill
- write-policySkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Very specific: line 9
After you make changes across multiple packages, run: make check-all # all packages
- Distinctive: line 22
NEVER fabricate code examples, config snippets, or file contents.
- Distinctive: line 23
Verify third-party or config behavior against actual files in this repo before generating code.
- Very specific: line 28
Envs: All prefixed with HEXGATE_.
≈ “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
Hexgate — Agent Instructions
Tech Stack
- Python ≥ 3.13 (
uv), FastAPI (platform/api/), ClickHouse (Docker), Redpanda (Docker, Kafka-protocol-compatible; dev broker inplatform/docker-compose.yml, deployed as the OTLP span buffer inplatform/docker-compose.deploy.yml) - React, Vite, pnpm (
platform/dashboard/) - Ruff (Python). WASM via
wasmtime.
Cross-package
After you make changes across multiple packages, run: make check-all # all packages
Repo Layout
hexgate/ # SDK source platform/api/ # FastAPI control plane (separate uv project) platform/api/tests/ # API tests platform/collector/ # OTLP ingestion Collector (Go) platform/mcp/ # MCP server (FastMCP, own uv project; never imports hexgate_api) platform/assistant/ # Policy assistant service (Starlette, own uv project) platform/dashboard/ # React/Vite frontend tests/ # hexgate package tests (agents, cli, security, tracing, streaming…)
AI Constraints (CRITICAL)
- NEVER fabricate code examples, config snippets, or file contents. If unknown, read the file first.
- Verify third-party or config behavior against actual files in this repo before generating code.
Rules & Constants
- Branches:
{initials}/{type}/{short_description}(e.g.,vl/feat/web_search) - Commits:
type(scope): description(lowercase, imperative, no period). Scopes:platform-api,platform-scripts,dashboard,sdk,cli,clickhouse,redpanda,collector,evals,mcp,demo,assistant. Types:feat,fix,docs,build,refactor,test. - Envs: All prefixed with
HEXGATE_. Never commit private keys.
Agent Instruction Files
- These files follow AGENTS.md. A nested one adds to this file rather than replacing it: Claude loads
platform/api/AGENTS.mdon top of this one once it reads a file underplatform/api/. - There is no precedence rule between them — if two rules contradict, Claude may pick either — so keep them from disagreeing rather than relying on the nearer file to win.
- Each
AGENTS.mdhas aCLAUDE.mdbeside it holding one line,@AGENTS.md. Claude Code stops reading everyAGENTS.mdin a repo as soon as anyCLAUDE.mdexists at or above the working directory, so the pointers are what keep the nested files loading. Put Claude-specific notes under the import, not inAGENTS.md. - Repo skills live in
.claude/skills/. That path is Claude-specific and deliberate: nothing under.agents/is read.
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.

