posthog-foss / proto
AGENTS.md721 starsChanged 56 days agoMITView on GitHub
When you add or modify an RPC or message type in personhog/ protos, you must update all downstream consumers before considering the change complete: Then update: Then update: No codegen step needed (tonic regenerates on cargo build), but you must: When you add or modify an RPC or message type in ingestion/ protos, regenerate the Node.js stubs and commit them (CI rejects stale stubs): Rust bindings (rust/ingestion-worker-proto) regenerate on cargo build.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- PostHog/posthogword for word, first seen Oct 4, 2026
Other versions1 project uses a version of this.
Word for word · 1
- PostHog/posthog★ 40k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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 repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- common/AGENTS.mdAGENTS.md
- rust/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- common/CLAUDE.mdCLAUDE.md
- proto/CLAUDE.mdCLAUDE.md
- rust/CLAUDE.mdCLAUDE.md
- .cursor/rules/django-python.mdcCursor rule
- .cursor/rules/react-typescript.mdcCursor rule
- .cursor/rules/rust.mdcCursor rule
- adding-activity-loggingSkill
- adding-api-scopesSkill
- adding-inbound-webhooksSkill
- adding-inbox-sourcesSkill
- adding-ingestion-warningsSkill
- adding-mcp-store-serversSkill
- adding-personhog-rpcSkill
- adding-product-alertingSkill
- adding-project-secret-api-key-authSkill
- adopting-generated-api-typesSkill
- analyzing-experiment-precompute-canarySkill
- analyzing-experiment-query-performanceSkill
- analyzing-insights-across-teamsSkill
- announcing-behavior-changesSkill
- auditing-llm-gateway-paritySkill
- auditing-warehouse-source-coverageSkill
- authenticating-to-clickhouseSkill
- authoring-ci-workflowsSkill
- autoresolving-pr-conflictsSkill
- building-product-empty-statesSkill
- clickhouse-migrationsSkill
- debugging-ci-failuresSkill
- debugging-local-replaySkill
- debugging-local-task-agent-runsSkill
- debugging-mcp-analyticsSkill
- debugging-signals-pipelineSkill
- debugging-table-access-deniedSkill
- depot-ciSkill
- depot-container-buildsSkill
- depot-github-runnersSkill
- developing-subscriptionsSkill
- django-migrationsSkill
- django-startup-timeSkill
- documenting-warehouse-sourcesSkill
- editing-agents-mdSkill
- establishing-code-ownershipSkill
- extending-hobby-smoke-testsSkill
- extending-personhog-test-harnessSkill
- finding-llm-gateway-migration-candidatesSkill
- fixing-flaky-testsSkill
- gating-production-deploysSkill
- gating-sensitive-actionsSkill
- generating-clickhouse-query-performance-reportsSkill
- hogliSkill
- implementing-mcp-toolsSkill
- implementing-mcp-ui-appsSkill
- implementing-warehouse-sourcesSkill
- improving-drf-endpointsSkill
- improving-mcp-toolsSkill
- ingestion-pipeline-doctor-nodejsSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
When you add or modify an RPC or message type in personhog/ protos, you must update all downstream consumers before considering the change …
- Very specific: line 31
No codegen step needed (tonic regenerates on cargo build), but you must:
- Very specific: line 34
Add the method name to KNOWN_METHODS in rust/personhog-router/src/proxy.rs (the router forwards raw bytes.
- Very specific: line 35
Add tests (see Rust test conventions in rust/personhog-replica/AGENTS.md)
- Very specific: line 39
When you add or modify an RPC or message type in ingestion/ protos, regenerate the Node.js stubs and commit them (CI rejects stale stubs):
≈ “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.
Files
Proto definitions
Adding or modifying RPCs
When you add or modify an RPC or message type in personhog/ protos, you must update all downstream consumers before considering the change complete:
1. Python generated stubs
bin/generate_personhog_proto.shThen update:
posthog/personhog_client/proto/__init__.py— add/remove re-exports for any new/removed message typesposthog/personhog_client/client.py— add/remove wrapper methods for any new/removed RPCsposthog/personhog_client/fake_client.py— implement the new method for test use
2. Node.js generated stubs
cd nodejs && pnpm run generate:personhog-protoThen update:
nodejs/src/common/personhog/client.test.ts— add a default stub to theSERVICE_DEFAULTSobject for any new RPC
3. Rust
No codegen step needed (tonic regenerates on cargo build), but you must:
- Implement the RPC in
rust/personhog-replica/(storage layer + service handler) - Add the method name to
KNOWN_METHODSinrust/personhog-router/src/proxy.rs(the router forwards raw bytes; leader-routed methods are matched by name there) - Add tests (see Rust test conventions in
rust/personhog-replica/AGENTS.md)
Ingestion worker protos
When you add or modify an RPC or message type in ingestion/ protos, regenerate the Node.js stubs and commit them (CI rejects stale stubs):
cd nodejs && pnpm run generate:ingestion-worker-protoRust bindings (rust/ingestion-worker-proto) regenerate on cargo build.
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.

