agentleFS
NVIDIAKnown publisherNVIDIA/multi-storage-client/AGENTS.md

multi-storage-client

AGENTS.md96 starsChanged 8 months agoApache-2.0View on GitHub

This file describes the project for any coding agent. Sub-projects (multi-storage-client and multi-storage-explorer) have their own AGENTS.md with language-specific details. Before starting any task, read agent-learnings.md — it contains accumulated mistakes and corrections from past sessions. Follow every entry. Multi-language project: Python (core) + Rust (performance). The independent multi-storage-client-rust package has its own Cargo.lock and Rust toolchain. It reuses the root Nix environment and is not part of the Python accelerator dependency graph. Run its recipes with just multi-storage-client-rust/build, just…

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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:

    When changing one language layer, check whether the others need updating:

    line 43
  2. Distinctive:

    Check existing test coverage before adding tests.

    line 69
  3. Distinctive:

    Add or update tests only for behavior or edge cases that existing tests do not cover.

    line 70
  4. Distinctive:

    Prefer focused tests that validate specific behavior.

    line 71
  5. Very specific:

    Update multi-storage-client-docs/src/user_guide/*.rst for new behavior, APIs, or examples.

    line 78
  6. Very specific:

    Update multi-storage-client-docs/src/references/*.rst if API signatures change.

    line 79
  7. Very specific:

    Update multi-storage-client-docs/examples/quickstart.ipynb when SDK usage patterns change.

    line 80
  8. Distinctive:

    Always: run tests and linting before submitting.

    line 86
  9. Very specific:

    Never: commit secrets or credentials.

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

Multi-Storage-Client — Agent Guide

This file describes the project for any coding agent. Sub-projects (multi-storage-client and multi-storage-explorer) have their own AGENTS.md with language-specific details.

Before starting any task, read agent-learnings.md — it contains accumulated mistakes and corrections from past sessions. Follow every entry.

Repository Structure

multi-storage-client/          Python + Rust library (core)
  src/multistorageclient/        Python core library
  rust/                          Rust performance layer (maturin + PyO3)
  tests/                         Test suite (unit, integration, e2e)
  pyproject.toml                 Python project config (maturin build backend)
multi-storage-client-rust/     Native Rust library and benchmark (POSIX/S3)
  src/                          Provider-neutral client and adapters
  tests/                        Rust unit, HTTP and emulator tests
multi-storage-explorer/        Explorer web UI
multi-storage-client-docs/     Sphinx documentation
  src/                           Doc source (rst files)
  examples/                      Usage examples and quickstart notebooks
nix/                           Nix build configuration

Architecture

Multi-language project: Python (core) + Rust (performance).

  • Storage abstraction layer — unified API across AWS S3, GCS, Azure Blob, OCI Object Storage, and local filesystem.
  • Python ↔ Rust bindings — via maturin/PyO3. Python calls Rust through the multistorageclient_rust module. Rust exposes functions via #[pyfunction] and #[pyclass]. Type hints live in multi-storage-client/src/multistorageclient_rust/multistorageclient_rust.pyi.
  • Credential management — supports multiple auth methods per cloud provider.
  • Error handling — translates provider-specific errors to unified exceptions.

The independent multi-storage-client-rust package has its own Cargo.lock and Rust toolchain. It reuses the root Nix environment and is not part of the Python accelerator dependency graph. Run its recipes with just multi-storage-client-rust/build, just multi-storage-client-rust/run-integration-tests, just multi-storage-client-rust/run-e2e-tests, and just multi-storage-client-rust/run-benchmarks from the repository root.

Cross-Language Sync Points

When changing one language layer, check whether the others need updating:

Change in…Also update…
Rust function signatures (multi-storage-client/rust/src/).pyi stub (multi-storage-client/src/multistorageclient_rust/multistorageclient_rust.pyi)
Rust types (multi-storage-client/rust/src/types.rs)Python type wrappers, .pyi stub
Python storage providers
Config schemaAll layers (Python config parsing, Rust config)

Conventions

  • Plan first — before editing, list files to change, testing plan, and doc updates.
  • Work from repo root — all shell commands assume cwd = repository root.
  • Minimal comments — do not add comments unless absolutely required for clarity or safety. Do not remove existing correct comments.
  • Backward compatibility — maintain unless explicitly versioning a breaking change.

Commands

TaskCommand
Build everythingjust build

See multi-storage-client/AGENTS.md and multi-storage-explorer/AGENTS.md for language-specific commands.

Testing Policy

  • Check existing test coverage before adding tests. When existing tests cover the behavior being modified, run those tests and do not introduce additional unit tests.
  • Add or update tests only for behavior or edge cases that existing tests do not cover; extend existing shared test suites where appropriate.
  • Prefer focused tests that validate specific behavior.
  • Integration tests are complex to run — flag when needed, run manually.

Documentation Requirements

For any externally visible change:

  • Update multi-storage-client-docs/src/user_guide/*.rst for new behavior, APIs, or examples.
  • Update multi-storage-client-docs/src/references/*.rst if API signatures change.
  • Update multi-storage-client-docs/examples/quickstart.ipynb when SDK usage patterns change.
  • Rebuild with just multi-storage-client-docs/build and verify.
  • Include docstrings in Python code (Sphinx autodoc extracts them).

Boundaries

  • Always: run tests and linting before submitting; check cross-language sync points table above when changing any layer.
  • Ask first: changes that affect the public Python API surface, config schema (impacts all three languages), or CI/CD pipelines.
  • Never: commit secrets or credentials; force-push to main; remove or edit existing entries in agent-learnings.md.

PR Checklist

  • Plan posted and agreed.
  • Changes implemented with minimal comments.
  • If Rust signatures changed, .pyi stub updated.
  • Relevant existing tests passing; tests added/updated only for uncovered behavior (Python, Rust as applicable).
  • Integration tests added/updated (documented if not run).
  • Docs and examples updated.
  • just build succeeds.
  • Final summary posted.

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.