[CHORE] adding agents.md - #3699
Conversation
Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>
|
I would love to have this, but I think we should think about a system to sync these between all the exporters. I don't want to hand-maintain 70+ of these across the community. |
Thanks for raising this @SuperQ How it would workEach exporter repo gets two files:
@AGENTS_EXPORTERS.md
## Project-specific guidelines
... exporter-specific content ...
Why this approach
What would need to change
The content split would be something like:
WDYT? Happy to send a PR to the sync script if this direction makes sense. |
|
Yeah, I think we should have most of these guidelines on the website, and in |
One of the things I've been testing and I can't make sure yet is, we don't have any guarantee that agents will follow external links, so pointing into the AGENTS.md will be a best effort |
|
I see a mix of things that apply only to node_exporter, apply to a few exporters, and apply to all exporters. The guidance I read about AGENTS.md is that it's best to keep it light and hyper focused on unique aspects of the project. Linking out to docs (that the agent is hopefully trained on 🤞) or providing guidance the agent can glean easily from looking at surrounding code might end up bloating token use for minimal gain. I would be happy to start with just node_exporter as we figure out what's valuable and when we get another repo or two look at doing a multi-file approach with syncing for the clear overlapping guidance. This can be captured in issues on an exporter board (working out the details on that ATM). |
|
Could we start with something that says metric names should follow Prometheus naming conventions, and things that are very specific to node exporter? I'm not really familiar with this codebase, so I can't really tell what kind of instructions only apply here 😅. |
|
Maybe the test fixtures, if it's not already documented somewhere else? I don't see this in other exporters 🤔. |
|
ah, just remembered that we could document something about the procfs dependency being responsible for parsing proc files, instead of adding this logic in the exporter |
|
Good points, thanks both. I pushed a commit that covers the two things Arthur mentioned: a link to the Prometheus naming conventions instead of restating the rules, and a note that /proc parsing should go through procfs rather than getting reimplemented in a collector. On scope, I'll go with Kyle's suggestion and keep this to node_exporter only for now. The multi-repo sync idea can wait until a couple more repos are on board and it's clearer what's actually shared versus exporter-specific. I can open a tracking issue for that once the exporter board exists. If anything here still reads as too node_exporter-specific, or not specific enough, flag it and I'll adjust. |
Signed-off-by: Nicolas Takashi <nicolas.takashi@dash0.com>
f898207 to
11e7e9f
Compare
ArthurSens
left a comment
There was a problem hiding this comment.
Not sure if this is only my experience, but I feel like a very minimal AGENTS.md file does the job very very well and it's easier to maintain on the long term.
Things like Project Shape, Project Map would need to be constantly adjusted as the codebase evolves, and current models already do a pretty good job at reading the code and understanding how it is organized. Do we really need all those sections in AGENTS.md?
From all those sections, I'd keep only Rules. But again, this is just based on personal experience and I'm not an expert in all those different LLM protocols
…inferable rules Signed-off-by: Nicolas Takashi <nicolas.takashi@dash0.com>
|
I invested into this and there's an actual study on it: Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents? (ETH Zurich, Feb 2026). It backs what you're saying. Directory listings and codebase overviews don't move task success and add roughly 20% inference cost. Their recommendation is to limit instructions to what an agent can't infer, specific tooling or custom build commands, rather than describing what the code already shows. I've applied some changes based on that, and below the justification from what I kept.
|
No description provided.