NVFlare / auto-fl-research
AGENTS.md979 starsChanged 3 months agoApache-2.0View on GitHub
Start with program.md. It is the general research-org entry point for the agent. Then read the active task profile. If the human does not specify one, use tasks/cifar10/profile.md. Use the active task's mutation_schema.yaml only when program.md or the active task profile directs you to the hard mutation bounds, or when choosing a mutation axis. If anything here conflicts with program.md, follow program.md unless a human explicitly overrides it. If a task profile conflicts with generic program.md text on task budget,…
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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- research/auto-fl-research/CLAUDE.mdCLAUDE.md
- autofl-nvflare-reportSkill
- autofl-nvflareSkill
- nvflare-autofl-reportSkill
- nvflare-autoflSkill
- nvflare-convert-huggingfaceSkill
- nvflare-convert-lightningSkill
- nvflare-convert-pytorchSkill
- nvflare-diagnose-jobSkill
- nvflare-fed-statsSkill
- nvflare-orientSkill
- nvflare-sharedSkill
- nvflare-example-skillSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Start with program.md. It is the general research-org entry point for the agent.
- Distinctive: line 23
Do not change unless explicitly requested:
- Very specific: line 43
Run the active task profile's validation command, with TASK_DIR set to the active task.
- Very specific: line 44
Run the active task profile's smoke command.
≈ “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
AGENTS.md
Entry point
Start with program.md. It is the general research-org entry point for the agent.
Then read the active task profile. If the human does not specify one, use
tasks/cifar10/profile.md.
Use the active task's mutation_schema.yaml only when program.md or the active task profile directs you to the hard mutation bounds, or when choosing a mutation axis. If anything here conflicts with program.md, follow program.md unless a human explicitly overrides it. If a task profile conflicts with generic program.md text on task budget, environment, metric, or edit surface, follow the task profile.
Mission
Improve this Auto-FL NVFlare harness without breaking the federated contract.
Files you may edit
Preferred mutation files:
- task-local
client.py - shared
tasks/shared/custom_aggregators.py - task-local
job.py - task-local
model.pyfor registered architecture variants under the active parameter cap
Do not change unless explicitly requested:
- shared
data/*or task-local data bridge files
Hard invariants
You must preserve all of the following unless a human explicitly asks for a protocol upgrade:
flare.init()while flare.is_running():input_model = flare.receive()flare.send(output_model)model.load_state_dict(input_model.params, strict=True)compute_model_diff(...)output_model.params_type == ParamsType.DIFFoutput_model.meta["NUM_STEPS_CURRENT_ROUND"]- the optional
if flare.is_evaluate():branch - the same selected
model_archmust be instantiated on server and clients for a run model_archandmax_model_paramsare fixed budget fields unless the campaign is explicitly labeled as an architecture subcampaign
Required workflow after every edit
- Run the active task profile's validation command, with
TASK_DIRset to the active task. - Run the active task profile's smoke command. For non-CIFAR tasks, pass the task-specific
SMOKE_ARGSor runbash scripts/run_iteration.sh ...with the active task budget. - Record the mutation in
results.tsv - Summarize the mutation in
templates/mutation_report.md
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.

