PySyft
CLAUDE.md10k starsChanged 13 days agoApache-2.0View on GitHub
Guidance for Claude Code in this repository. This file is checked in and shared with the team. Put personal instructions in a CLAUDE.local.md next to this file; git ignores it. Follow these guidelines when you write code, PR descriptions or reviews. The syft-pr-review skill rates PRs against the same guidelines. @dev-guidelines/guidelines.md @dev-guidelines/language.md If keeping an import at the top of a file causes a hard circular import, ask the user whether to resolve it now or later. Open PRs with…
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about OpenMined/PySyft
- Siraj Raval“OpenAI Text Generator”YouTube · Feb 26, 2019 · 74k views
- Siraj Raval“An Introduction to The Interplanetary File System”YouTube · Oct 6, 2017 · 67k views
- Siraj Raval“Privacy in Data Science”YouTube · Dec 10, 2018 · 26k views
- Daniele Gadler“Federated Learning of a Recurrent Neural Network on Raspberry PIs”YouTube · May 12, 2019 · 3.5k views
- EuroPython Conference“PySyft: Data Science on data you are not allowed to see — Valerio Maggio”YouTube · Oct 2, 2024 · 551 views
The biggest 5 of 66 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 66
Talked about on GitHub, YouTube, Hacker News and Stack Overflow (66 times).
On GitHub · 50
- May 30, 2019Modification in readme for pysyft installation — udacity/private-ai8 reactions
- May 5, 2021Protobufs creation is slow when using nested objects compared to using bytes — protocolbuffers/protobuf3 reactions · 3 comments
- May 16, 2019PySyft Integration — tf-encrypted/tf-encrypted3 reactions · 1 comment
- Oct 18, 2021FOI: OpenMined for federated data analysis — datalad/datalad2 reactions · 1 comment
- Apr 29, 2021Add implementation of Max / Argmax — OpenMined/SyMPC2 reactions
45 more on GitHub
- Apr 18, 2020Jupyter Notebooks examples and tutorials to not work with docker-compose — OpenMined/PyGrid-deprecated---see-PySyft-2 reactions · 15 comments
- Apr 4, 2020Add Sentiment Classifier Training Usecase — OpenMined/SyferText2 reactions · 1 comment
- Oct 13, 2019Relay setup.py logic to a setup.cfg — OpenMined/PyGrid-deprecated---see-PySyft-2 reactions · 3 comments
- Jul 5, 2022ERROR: syft from git+http://github.com/OpenMined/PySyft@dev#egg=syft does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found. — OpenMined/courses1 reaction · 3 comments
- Jun 7, 2021poetry install at `PyGrid/apps/domain` does not work... — OpenMined/PyGrid-deprecated---see-PySyft-1 reaction · 3 comments
- Jul 13, 2020Enforcing type checking in SyferText — OpenMined/SyferText1 reaction · 2 comments
- Mar 27, 2020Torchscript field in Plan — OpenMined/syft-proto1 reaction
- Mar 12, 2020PyGrid integration — OpenMined/syft.js1 reaction · 1 comment
- Feb 5, 2020Migrate PyGrid from Travis to Github Actions — OpenMined/PyGrid-deprecated---see-PySyft-1 reaction
- Feb 3, 2020Allow PyGrid to serve plan operations as either a list of individual commands (syft.js) or as TorchScript (Android and iOS) — OpenMined/PyGrid-deprecated---see-PySyft-1 reaction · 1 comment
- Feb 2, 2020Add "host_federated_training" method to PyGrid — OpenMined/PyGrid-deprecated---see-PySyft-1 reaction · 7 comments
- Dec 5, 2019(WIP) Add Protobuf schemas for existing PySyft messages and types — OpenMined/syft-proto1 reaction · 17 comments
- Jul 30, 2025docker.io/openmined/syft-backend — DaoCloud/public-image-mirror0 reactions · 1 comment
- Jan 7, 2025Daily Review: `OpenMined/PySyft` — hsiangjenli/star-to-review0 reactions
- Nov 5, 2024Bump syft from 0.9.3b1 to 0.9.3b2 — Smartappli/AIMER0 reactions · 1 comment
- Nov 1, 2024Add PySyft to rejection list — YunoHost/apps0 reactions · 4 comments
- Nov 1, 2024Bump syft from 0.9.2b7 to 0.9.3b1 — Smartappli/AIMER0 reactions · 1 comment
- Oct 30, 2024Bump syft from 0.9.2b7 to 0.9.2 — Smartappli/AIMER0 reactions · 2 comments
- Oct 16, 2024Bump syft from 0.9.2b5 to 0.9.2b7 — Smartappli/AIMER0 reactions
- Oct 14, 2024Bump syft from 0.9.2b5 to 0.9.2b6 — Smartappli/AIMER0 reactions · 1 comment
- Oct 7, 2024Bump syft from 0.9.2b2 to 0.9.2b5 — Smartappli/AIMER0 reactions · 1 comment
- Oct 4, 2024Bump syft from 0.9.2b2 to 0.9.2b4 — Smartappli/AIMER0 reactions · 2 comments
- Sep 16, 2024Bump syft from 0.9.2b2 to 0.9.2b3 — Smartappli/AIMER0 reactions · 2 comments
- Sep 16, 2024Bump syft from 0.9.2b2 to 0.9.2b3 — Smartappli/AIMER20 reactions · 3 comments
- Sep 9, 2024Bump syft from 0.9.2b1 to 0.9.2b2 — Smartappli/AIMER0 reactions · 1 comment
- Sep 9, 2024Bump syft from 0.9.2b1 to 0.9.2b2 — Smartappli/AIMER20 reactions · 3 comments
- Sep 5, 2024Bump syft from 0.9.1b10 to 0.9.2b1 — Smartappli/AIMER0 reactions · 1 comment
- Sep 4, 2024Bump syft from 0.9.1b10 to 0.9.1 — Smartappli/AIMER0 reactions · 2 comments
- Sep 3, 2024Bump syft from 0.9.1b8 to 0.9.1b10 — Smartappli/AIMER0 reactions · 1 comment
- Aug 26, 2024Bump syft from 0.9.1b5 to 0.9.1b6 — Smartappli/AIMER0 reactions · 1 comment
- Aug 20, 2024Bump syft from 0.9.1b4 to 0.9.1b5 — Smartappli/AIMER0 reactions · 1 comment
- Apr 2, 2024Bump syft from 0.8.5.post1 to 0.8.5.post2 — Smartappli/AIMER0 reactions · 1 comment
- Mar 29, 2024Bump syft from 0.8.5 to 0.8.5.post1 — Smartappli/AIMER0 reactions · 1 comment
- Mar 29, 2024Added OpenMined PySyft — google/season-of-docs0 reactions
- Mar 22, 2024Bump syft from 0.8.5b9 to 0.8.6b1 — Smartappli/AIMER0 reactions · 1 comment
- Mar 21, 2024Bump syft from 0.8.5b9 to 0.8.5b10 — Smartappli/AIMER0 reactions · 2 comments
- Mar 14, 2024Bump syft from 0.8.5b5 to 0.8.5b6 — Smartappli/AIMER0 reactions · 1 comment
- Mar 14, 2024Bump syft from 0.8.5b2 to 0.8.5b4 — Smartappli/AIMER0 reactions · 1 comment
- Mar 13, 2024Bump syft from 0.8.5b1 to 0.8.5b2 — Smartappli/AIMER0 reactions · 2 comments
- Feb 19, 2024Bump syft from 0.8.4b28 to 0.8.4b30 — Smartappli/AIMER0 reactions
- Feb 16, 2024Bump syft from 0.8.4b23 to 0.8.4b28 — Smartappli/AIMER0 reactions
- Feb 15, 2024Bump syft from 0.8.4b23 to 0.8.4b27 — Smartappli/AIMER0 reactions · 1 comment
- Feb 12, 2024Bump syft from 0.8.4b21 to 0.8.4b22 — Smartappli/AIMER0 reactions
- Feb 8, 2024Bump syft from 0.8.4b19 to 0.8.4b21 — Smartappli/AIMER0 reactions
- Feb 2, 2024Bump syft from 0.8.4b15 to 0.8.4b19 — Smartappli/AIMER0 reactions
On YouTube · 7
- Feb 26, 2019OpenAI Text Generator — Siraj Raval74k views · 240 comments
- Oct 6, 2017An Introduction to The Interplanetary File System — Siraj Raval67k views · 315 comments
- Dec 10, 2018Privacy in Data Science — Siraj Raval26k views · 61 comments
- May 12, 2019Federated Learning of a Recurrent Neural Network on Raspberry PIs — Daniele Gadler3.5k views · 13 comments
- Oct 2, 2024PySyft: Data Science on data you are not allowed to see — Valerio Maggio — EuroPython Conference551 views
2 more on YouTube
- Sep 2, 2026Double-Blind AI Evals with PySyft | Full 10 Min Walkthrough — OpenMined155 views
- Apr 24, 2024Want to Learn Federated Learning? — SPARKMAN SEZAN72 views
On Hacker News · 6
- Dec 4, 2018Jupyter Notebook Tutorial – Privacy-Preserving Deep Learning in PyTorch218 points · 5 comments
- Oct 23, 2018Show HN: Encrypted Deep Learning in PyTorch37 points
- Nov 22, 2018Beginner Tutorial: Privacy Preserving, Decentralized Deep Learning in PyTorch11 points
- Feb 21, 2020Jupyter Tutorial – Privacy-Preserving Deep Learning in PyTorch – Now Translated2 points
- Nov 23, 2018PySyft Step-By-Step Tutorial2 points
1 more on Hacker News
- Oct 24, 2017OpenMined/PySyft: Encrypted Deep Learning Library2 points
On Stack Overflow · 3
- Feb 19, 2020Pysyft Federated learning, Error with Websockets1 vote
- Feb 13, 2020Pysyft Federated learning, Error with Websockets1 vote · 1 answer
- Mar 10, 2021Error Launching Blob Trigger function in Azure Functions expected str, bytes or os.PathLike object, not PosixPath0 votes · 1 answer
In this repository4 other files it gives its agents.
- open-prSkill
- syft-pr-quickfix-iterateSkill
- syft-pr-quickfixSkill
- syft-pr-reviewSkill
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Follow these guidelines when you write code, PR descriptions or reviews.
- Distinctive: line 14
If keeping an import at the top of a file causes a hard circular import, ask the user whether to resolve it now or later.
- Very specific: line 35
When you run unit tests with pytest directly, pass -n auto.
- Distinctive: line 43
File-first: All state communicated via synced files
- Very specific: line 91
Read the file that matches your task before you start.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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
CLAUDE.md
Guidance for Claude Code in this repository. This file is checked in and shared with the team. Put
personal instructions in a CLAUDE.local.md next to this file; git ignores it.
Guidelines
Follow these guidelines when you write code, PR descriptions or reviews. The syft-pr-review skill
rates PRs against the same guidelines.
@dev-guidelines/guidelines.md @dev-guidelines/language.md
If keeping an import at the top of a file causes a hard circular import, ask the user whether to resolve it now or later.
Pull requests
Open PRs with the open-pr skill. It runs pre-commit, writes a conventional-commit title, and
fills in the PR template.
Commands
uv pip install -e . # install (uses uv)
just test-unit-fast # fast unit tests; always run these first
just test-unit # all unit tests
just test-integration # integration tests (slow, real API); only run in the nightly build
uv run pytest ./tests/unit/test_sync_manager.py # one file
uv run pytest ./tests/unit/test_sync_manager.py::test_function_name # one testWhen you run unit tests with pytest directly, pass -n auto.
Architecture
Syft-client is a privacy-preserving data collaboration framework enabling secure file syncing and job execution across peer-to-peer networks. It uses a file-first communication paradigm with transport-agnostic channels (currently Google Drive Files API).
Core Design Principles
- File-first: All state communicated via synced files
- Transport-agnostic: Works with any message-delivery mechanism
- Offline-first: Full functionality when peers are offline
- Peer-first: Explicit peer authorization required
Two modes
PySyft runs in one of two modes, and a setup uses only one of them. Check which mode a task is about
before you change jobs, roles or approvals, because the flows differ. In both modes, the DOs and the
DS use SyftboxManager as the main orchestrator.
Mode 1: DO and DS
There are two roles:
- Data Scientist (DS): sees only the mock data. The DS submits a job to run on a DO's private data, and gets the results back.
- Data Owner (DO): holds the private data. The DO reviews each job, approves it, runs it on the private data on its own machine, and returns the results to the DS.
Mode 2: Enclave
An enclave is a sealed confidential-compute environment (a TEE) that runs an open-source docker
container with syft, and syncs through Google Drive like any other peer. This mode usually has three
roles: two DOs, for example one with a private benchmark and one with a private model, and a DS who
writes the analysis that brings their data together. The enclave runs the job, not a DO, and only
once every DO has approved it, so no party sees another party's data. The code is in
packages/syft-enclave; start with its docs/flow.md.
Workspace packages
The packages in packages/ are uv workspace members:
syft-job: job submission and execution (bash/Python jobs with venv isolation)syft-datasets: dataset management and sharingsyft-rds: the remote data science client, datasets and jobs on top of the sync enginesyft-permissions: the permission system for datasitessyft-perms: the user-facing permission APIsyft-bg: background services, with a TUI dashboardsyft-enclave: runs PySyft on an enclaveenclave-model-api-example: an example LLM inference API on top ofsyft-enclavesyft-restrict: verifies that JAX/Flax inference code only does math, and hides the model architecturesyft-migration: versioning and on-the-fly migration of syft objectssyft-notebook-ui: Jupyter notebook display utilities
More detail
Read the file that matches your task before you start. They are in dev-guidelines/architecture/.
sync-flow.md: how a sync pass moves changes between the DS and the DO, and how events and messages are stored. Read it when you work on sync, events or messages.peers.md: how a DS requests access and the DO approves it. Read it when you work on peers.datasets.md: how the DO creates a dataset and the DS reads it. Read it when you work on datasets.jobs.md: how a job is submitted, approved, run, and its results returned. Read it when you work on jobs.
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.

