agentleFS
AnthropicKnown publisheranthropics/uplifting-biomolecular-modeling/opendde/stock/src/AGENTS.md

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
  1. Distinctive:

    Start by checking git status --short.

    line 8
  2. Distinctive:

    Prefer targeted tests. If GPU, network, checkpoints, databases, or heavy dependencies are unavailable, say exactly what was not validated.

    line 10
  3. Distinctive:

    Keep public interfaces compatible.

    line 11
  4. Common:

    Never commit secrets, private paths, checkpoints, databases, caches, generated outputs, or large artifacts.

    line 12
  5. Very specific:

    Run the smallest relevant test first, then broaden.

    line 46
  6. Very specific:

    Put model defaults in opendde/config/model_base.py, model names/overrides in model_registry.py, data/cache roots in data.py, and inference …

    line 54
  7. Very specific:

    Do not re-enable extra _wounresol.cif output by default.

    line 59
  8. Very specific:

    Use 4-space indentation, snake_case for functions/variables/modules, PascalCase for classes, and nearby tensor naming such as N_atom, …

    line 63
  9. Very specific:

    Use existing logging patterns such as opendde.utils.logger.get_logger.

    line 66
  10. Very specific:

    Avoid new heavy dependencies unless required and declared in pyproject.toml.

    line 67
  11. Common:

    No secrets, private paths, checkpoints, databases, generated outputs, logs, or large artifacts were introduced.

    line 82

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 Python 3.11, 3.12, and 3.13 on 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.py and tests/smoke/test_cueq_runtime.py on a CUDA machine.
  • Pre-commit uses Ruff --fix and ruff-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) and runner/batch_inference.py (pred, json, msa, mt, prep).
  • Config parsing lives in opendde/config/config.py; dotted CLI keys look like --model.N_cycle 4 and --sample_diffusion.N_step 20.
  • Put model defaults in opendde/config/model_base.py, model names/overrides in model_registry.py, data/cache roots in data.py, and inference defaults in inference_defaults.py.
  • ListValue CLI args are comma-separated, e.g. --seeds 101,102; docs/examples should use lowercase true/false for 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.cif output by default; structure saving should emit the normal prediction CIF unless explicitly requested.

Code conventions

  • Use 4-space indentation, snake_case for functions/variables/modules, PascalCase for classes, and nearby tensor naming such as N_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 debug prints 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 as proteinChain, dnaSequence, rnaSequence, ligand, ion, plus covalent_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, or torch; always preserve PyTorch fallback.
  • LAYERNORM_TYPE=torch is the safe default. fast_layernorm is optional CUDA/JIT behavior and must fail softly.

Handoff checklist

  • git diff contains 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.