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

multi-storage-client

AGENTS.md85 starsChanged 3 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). When changing one language layer, check whether the others need updating: See multi-storage-client/AGENTS.md and multi-storage-explorer/AGENTS.md for language-specific commands. For any externally visible change:

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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 33
  2. Distinctive:

    Add/update unit tests for every change (feature or bugfix).

    line 59
  3. Distinctive:

    Prefer focused tests that validate specific behavior.

    line 60
  4. Very specific:

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

    line 67
  5. Very specific:

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

    line 68
  6. Very specific:

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

    line 69
  7. Distinctive:

    Always: run tests and linting before submitting.

    line 75
  8. Very specific:

    Never: commit secrets or credentials.

    line 77

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

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

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

  • Add/update unit tests for every change (feature or bugfix).
  • 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.
  • Unit tests added/updated and passing (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.