uplifting-biomolecular-modeling / src
AGENTS.md325 starsChanged 2 months agoApache-2.0View on GitHub
This file applies to the whole repository unless a deeper AGENTS.md overrides it.
- Installs packages
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,736 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
11 rules. About 2 are common, 3 are distinctive, and 6 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Start by checking git status --short.
- Distinctive: line 10
Prefer targeted tests. If GPU, network, checkpoints, databases, or heavy dependencies are unavailable, say exactly what was not validated.
- Distinctive: line 11
Keep public interfaces compatible.
- Common: line 12
Never commit secrets, private paths, checkpoints, databases, caches, generated outputs, or large artifacts.
- Very specific: line 46
Run the smallest relevant test first, then broaden.
- Very specific: line 54
Put model defaults in opendde/config/model_base.py, model names/overrides in model_registry.py, data/cache roots in data.py, and inference …
- Very specific: line 59
Do not re-enable extra _wounresol.cif output by default.
- Very specific: line 63
Use 4-space indentation, snake_case for functions/variables/modules, PascalCase for classes, and nearby tensor naming such as N_atom, …
- Very specific: line 66
Use existing logging patterns such as opendde.utils.logger.get_logger.
- Very specific: line 67
Avoid new heavy dependencies unless required and declared in pyproject.toml.
- Common: line 82
No secrets, private paths, checkpoints, databases, generated outputs, logs, or large artifacts were introduced.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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 — OpenDDE Agent Guide
This file applies to the whole repository unless a deeper AGENTS.md overrides it.
Core rules
- Start by checking
git status --short; do not overwrite user changes. - Make the smallest task-focused change. Do not refactor, rename, or format unrelated files.
- Prefer targeted tests. If GPU, network, checkpoints, databases, or heavy dependencies are unavailable, say exactly what was not validated.
- Keep public interfaces compatible. CLI flags, config keys, JSON fields, model names, output layouts, docs, and tests must change together.
- Never commit secrets, private paths, checkpoints, databases, caches, generated outputs, or large artifacts.
Repository map
opendde/: main Python package.model/: model, diffusion, pairformer, confidence, layer norm, kernel dispatch.data/: parsers, CCD/RDKit/Biotite handling, tokenizer, features, MSA/template/RNA-MSA utilities.config/: config parser, defaults, registries, dependency URLs.utils/,metrics/: shared utilities and metrics.
runner/: Click CLI and inference runner (opendde = runner.cli:opendde_cli).tests/: pytest/unittest suite;tests/smoke/is heavier and often GPU/environment dependent.docs/: user docs. Prefer these for behavior details: inference, Docker, kernels, JSON input, supported models, MSA/template pipeline.examples/: small example inputs and structures.
Environment and commands
- Python requirement:
>=3.11,<3.14; CI tests Python3.11,3.12, and3.13on Ubuntu. - CPU/dev setup:
uv venv --python 3.11
source .venv/bin/activate
uv pip install --torch-backend cpu -e .
uv pip install --group dev- Common checks:
ruff check .
pre-commit run --all-files
python -m pytest tests -q -m "not network"- Run the smallest relevant test first, then broaden. Network tests are excluded in CI with
-m "not network". - GPU/kernel changes may also need
tests/test_triton_compatibility.pyandtests/smoke/test_cueq_runtime.pyon a CUDA machine. - Pre-commit uses Ruff
--fixandruff-format; only format files relevant to the task unless asked otherwise.
CLI, config, and inference
- Public CLI commands are registered across
runner/cli.py(doctor) andrunner/batch_inference.py(pred,json,msa,mt,prep). - Config parsing lives in
opendde/config/config.py; dotted CLI keys look like--model.N_cycle 4and--sample_diffusion.N_step 20. - Put model defaults in
opendde/config/model_base.py, model names/overrides inmodel_registry.py, data/cache roots indata.py, and inference defaults ininference_defaults.py. ListValueCLI args are comma-separated, e.g.--seeds 101,102; docs/examples should use lowercasetrue/falsefor bools.- Currently supported model:
opendde_v1. - Inference assets belong under
$OPENDDE_ROOT_DIR; checkpoints are expected under$OPENDDE_ROOT_DIR/checkpoint/. - CPU-safe smoke inference should use
LAYERNORM_TYPE=torch, disable external features, and force torch triangle kernels. - Do not re-enable extra
_wounresol.cifoutput by default; structure saving should emit the normal prediction CIF unless explicitly requested.
Code conventions
- Use 4-space indentation,
snake_casefor functions/variables/modules,PascalCasefor classes, and nearby tensor naming such asN_atom,N_token,c_z. - Preserve dtype/device/autocast semantics, CPU fallbacks, and import-time soft failures for optional CUDA/GPU code.
- For tensor changes, check shape, mask, broadcast, NaN/Inf, and deterministic behavior with small tests when possible.
- Use existing logging patterns such as
opendde.utils.logger.get_logger; do not leave debugprints outside script-style code. - Avoid new heavy dependencies unless required and declared in
pyproject.toml.
Data and kernel caveats
- Input JSON details live in
docs/infer_json_format.md; top level is a job list with entities such asproteinChain,dnaSequence,rnaSequence,ligand,ion, pluscovalent_bonds. - MSA/template/RNA-MSA preprocessing may need network access, large databases, HMMER/Kalign binaries, and Docker/GPU-specific setup. Do not assume they exist locally.
- CCD/ligand/SMILES/SDF/MOL/PDB paths depend on RDKit, Biotite, Gemmi, and PDBe CCD data; cover residues, modifications, ions, ligands, and covalent-bond edge cases when changing them.
- Triangle kernels are
auto,cuequivariance, ortorch; always preserve PyTorch fallback. LAYERNORM_TYPE=torchis the safe default.fast_layernormis optional CUDA/JIT behavior and must fail softly.
Handoff checklist
git diffcontains only task-related changes.- Relevant tests/docs/examples/config/CLI help were updated together.
- Validation commands and results are listed in the final response; skipped validation has a concrete reason.
- No secrets, private paths, checkpoints, databases, generated outputs, logs, or large artifacts were introduced.
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.

