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…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 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 repository10 other files it gives its agents.
- multi-storage-client/AGENTS.mdAGENTS.md
- multi-storage-explorer/AGENTS.mdAGENTS.md
- capture-learningSkill
- cloud-storage-setupSkill
- fix-cveSkill
- generate-specSkill
- generate-test-planSkill
- prepare-mrSkill
- release-automationSkill
- researchSkill
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
- Distinctive: line 43
When changing one language layer, check whether the others need updating:
- Distinctive: line 69
Check existing test coverage before adding tests.
- Distinctive: line 70
Add or update tests only for behavior or edge cases that existing tests do not cover.
- Distinctive: line 71
Prefer focused tests that validate specific behavior.
- Very specific: line 78
Update multi-storage-client-docs/src/user_guide/*.rst for new behavior, APIs, or examples.
- Very specific: line 79
Update multi-storage-client-docs/src/references/*.rst if API signatures change.
- Very specific: line 80
Update multi-storage-client-docs/examples/quickstart.ipynb when SDK usage patterns change.
- Distinctive: line 86
Always: run tests and linting before submitting.
- Very specific: line 88
Never: commit secrets or credentials.
≈ “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.
Files
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 configurationArchitecture
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_rustmodule. Rust exposes functions via#[pyfunction]and#[pyclass]. Type hints live inmulti-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 schema | All 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
| Task | Command |
| Build everything | just 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/*.rstfor new behavior, APIs, or examples. - Update
multi-storage-client-docs/src/references/*.rstif API signatures change. - Update
multi-storage-client-docs/examples/quickstart.ipynbwhen SDK usage patterns change. - Rebuild with
just multi-storage-client-docs/buildand 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,
.pyistub 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 buildsucceeds.- Final summary posted.
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.

