openmed
AGENTS.md5.4k starsChanged 4 months agoApache-2.0View on GitHub
Core Python package code lives in openmed/. Keep existing privacy and registry code in openmed/core/; add genuinely new capability in top-level packages already present or planned: clinical/, eval/, multimodal/, structured/, risk/, and interop/. Backend adapters live in mlx/, coreml/, and torch/; the REST surface is in service/; Swift code and demos are in swift/. Tests are under tests/unit, tests/integration, and tests/fixtures; docs are in docs/; examples are in examples/; release and maintenance scripts are in scripts/. Use the checked-in tooling…
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about maziyarpanahi/openmed
- @yug1224.com“医療テキストの解析や個人情報の匿名化を端末内で完結できるヘルスケアAIツールっぽい 機密データを扱う医療関連の開発現場でかなり使えそう yug1224 starred maziyarpanahi/openmed…”Bluesky · Jun 11, 2026 · 3 likes
- @qdrddr.bsky.social“Local #PII #HIPAA data #anonymizer based on #OpenMed and runs on #Nvidia and Apple #MLX - entirely …”Bluesky · Jul 10, 2026 · 2 likes
- @technews4869.bsky.social“github.com/maziyarpanahi/o... GitHub - maziyarpanahi/openmed: Local-first healthcare AI: clinical NER & …”Bluesky · Jun 22, 2026 · 1 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド maziyarpanahi/openmed デバイス上で完結して動作するヘルスケアAIの提供を目的としています。 …”Bluesky · Jun 11, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.maziyarpanahi.openmed: init at 2.5.0”GitHub · Sep 29, 2026
The biggest 5 of 33 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 33
Talked about on GitHub and Bluesky (33 times).
On GitHub · 28
- Sep 29, 2026agent-skills.github.maziyarpanahi.openmed: init at 2.5.0 — sudosubin/agents.nix0 reactions
- Sep 22, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.5.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Sep 8, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.3.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Sep 1, 2026chore(deps): update openmed requirement from <2,>=1.9.1 to >=1.9.1,<3 — seiba-ai/seiba-risk-scanner0 reactions
- Aug 29, 2026[Argus] CVE-2026-47117: OpenMed 1.5.2 미만 버전의 PII 모델 로딩을 통한 원격 코드 실행 — LEEKIYOON-SEC/Argus-DEV0 reactions
23 more on GitHub
- Aug 25, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.2.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Aug 18, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.1.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Aug 4, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.0.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 30, 2026Bump openmed from 0.6.4 to 1.5.2 — Liberate-Labs/openmed_modal_hosting0 reactions
- Jul 21, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.9.1 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 14, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.9.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 14, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.8.1 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 11, 2026cron: curadoria 11/07/2026 - DynamiCare, PhysAssistBench, OpenMed, MedAgentGym, AIME 2026 — fabianofilho/awesome-medical-ai0 reactions
- Jul 7, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.7.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jun 23, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.6.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jun 19, 2026Add affected range to GHSA-m3v4-v5gx-7wf5 (openmed) — github/advisory-database0 reactions · 1 comment
- Jun 13, 2026feat: add openmed template — Phala-Network/phala-cloud0 reactions · 1 comment
- Jun 12, 2026Add OpenMed to healthcare AI section — alvinreal/awesome-opensource-ai0 reactions
- Jun 9, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.5.5 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jun 9, 2026Healthcare Vitals Toolkit — OpenMed Integration Proposal — nvdigitalsolutions/mcp-ai-wpoos0 reactions
- Jun 9, 2026[jules] Port OpenMed quality gates: quality_gates.dart (threshold config) — iberi22/OrionHealth0 reactions · 3 comments
- Jun 9, 2026[jules] Port OpenMed locale validators: i18n_validators.dart (CPF, DNI, CURP) — iberi22/OrionHealth0 reactions · 3 comments
- Jun 8, 2026[jules] Expand PromptScrubber with PiiDetector integration — iberi22/OrionHealth0 reactions · 3 comments
- Jun 8, 2026[jules] Port OpenMed text processor to Dart: text_processor.dart — iberi22/OrionHealth0 reactions · 3 comments
- Jun 8, 2026[jules] Port OpenMed PII detector to Dart: pii_detector.dart (30+ patterns) — iberi22/OrionHealth0 reactions · 2 comments
- Jun 8, 2026[jules] Port OpenMed EntitySpan to Dart: pii_entity.dart — iberi22/OrionHealth0 reactions · 2 comments
- Jun 8, 2026[jules] Port OpenMed labels.py to Dart: pii_labels.dart — iberi22/OrionHealth0 reactions · 2 comments
- May 29, 2026build(deps): update openmed requirement from >=1.4.0 to >=1.5.2 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
On Bluesky · 5
- Jun 11, 2026医療テキストの解析や個人情報の匿名化を端末内で完結できるヘルスケアAIツールっぽい 機密データを扱う医療関連の開発現場でかなり使えそう yug1224 starred maziyarpanahi/openmed… — @yug1224.com3 likes and reposts
- Jul 10, 2026Local #PII #HIPAA data #anonymizer based on #OpenMed and runs on #Nvidia and Apple #MLX - entirely #offline. #OpenSource Apache 2.0… — @qdrddr.bsky.social2 likes and reposts
- Jun 22, 2026github.com/maziyarpanahi/o... GitHub - maziyarpanahi/openmed: Local-first healthcare AI: clinical NER & HIPAA PII de-identific... — @technews4869.bsky.social1 likes and repost
- Jun 11, 2026今日のGitHubトレンド maziyarpanahi/openmed デバイス上で完結して動作するヘルスケアAIの提供を目的としています。 クラウドにデータを送らずに、臨床テキストからのエンティティ抽出や個人情報の匿名化をローカル環境で実現します。… — @dailygithubtrends.bsky.social1 likes and repost
- Jul 16, 2026Did you have a look to OpenMed ? It gives a similar toolkit unified in a python / Swift API specialised in health use cases.… — @aminesaboni.bsky.social0 likes and reposts · 2 replies
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,773 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 repository74 other files it gives its agents.
- annotating-variantsSkill
- ask-openmedSkill
- assembling-fhir-bundlesSkill
- auditing-deidentification-runsSkill
- auditing-deid-leakageSkill
- auditing-part11-trailsSkill
- auditing-safe-harbor-checklistSkill
- auditing-subgroup-fairnessSkill
- authoring-model-cardsSkill
- batch-processing-clinical-textSkill
- benchmarking-clinical-nerSkill
- benchmark-pii-recallSkill
- bridging-presidio-and-spacySkill
- building-gold-corpusSkill
- building-patient-timelinesSkill
- building-with-openmedSkill
- checking-hipaa-complianceSkill
- choosing-openmed-modelsSkill
- coding-hcc-risk-adjustmentSkill
- coding-icd10Skill
- computing-ecqmsSkill
- configuring-privacy-policiesSkill
- defining-cohort-phenotypesSkill
- deidentify-a-datasetSkill
- deidentifying-clinical-textSkill
- deidentifying-multilingual-textSkill
- deploying-openmed-mcpSkill
- detecting-pv-signalsSkill
- enforcing-nophi-loggingSkill
- etl-to-omop-cdmSkill
- evaluating-with-leakage-gatesSkill
- exporting-bulk-fhirSkill
- exporting-to-fhirSkill
- extract-clinical-entities-to-fhirSkill
- extracting-clinical-entitiesSkill
- extracting-dicom-metadataSkill
- extracting-lab-tablesSkill
- extracting-pii-entitiesSkill
- extracting-sdohSkill
- fetching-fhir-resourcesSkill
- gating-deid-leakageSkill
- generating-synthea-dataSkill
- generating-synthetic-surrogatesSkill
- ingesting-clinical-documentsSkill
- linking-umls-conceptsSkill
- loading-openmed-modelsSkill
- mapping-loincSkill
- mapping-to-snomedSkill
- mining-pubmed-literatureSkill
- normalizing-rxnormSkill
- parsing-ccda-documentsSkill
- parsing-hl7v2-messagesSkill
- parsing-lab-valuesSkill
- parsing-trial-eligibilitySkill
- pick-a-pii-modelSkill
- pseudonymizing-for-gdprSkill
- querying-openfda-labelsSkill
- querying-terminology-serviceSkill
- reconciling-problem-listsSkill
- reidentifying-textSkill
- The first 60 shown.
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
- Distinctive: line 19
Use the checked-in tooling as the single source of truth.
- Very specific: line 25
Keep .editorconfig, Ruff, pre-commit, Swift format scripts, Make targets, documentation, and CI in sync when changing lint policy.
- Very specific: line 29
Use Python 3.10+, 4-space indentation, and 88-character lines.
- Very specific: line 42
Before changing that workflow, read docs/release/trusted-publishing.md and run tests/unit/test_publish_workflow_version.py plus …
- Very specific: line 53
If pypa/gh-action-pypi-publish runs without a non-empty password, it falls back to Trusted Publishing and fails with invalid-publisher when …
- Distinctive: line 69
Do not start review on a stale branch when a repo-wide lint or formatting baseline has landed.
- Distinctive: line 71
After the branch is updated, run the canonical formatter on that branch and commit only files that belong to the PR's actual scope.
- Distinctive: line 75
Before approving or merging another contributor's PR, verify that its branch is current enough for CI, the relevant lint commands pass, and …
- Distinctive: line 79
Do not add untracked files to git unless the user explicitly asks for those files to be tracked.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Repository Guidelines
Project Structure & Module Organization
Core Python package code lives in openmed/. Keep existing privacy and registry code in openmed/core/; add genuinely new capability in top-level packages already present or planned: clinical/, eval/, multimodal/, structured/, risk/, and interop/. Backend adapters live in mlx/, coreml/, and torch/; the REST surface is in service/; Swift code and demos are in swift/. Tests are under tests/unit, tests/integration, and tests/fixtures; docs are in docs/; examples are in examples/; release and maintenance scripts are in scripts/.
Build, Test, and Development Commands
uv pip install -e ".[dev]": install editable package with test and lint dependencies.uv pip install -e ".[dev,hf]": add Hugging Face dependencies for model-related work..venv/bin/python -m pytest tests/ -q: run the full test suite before preparing a PR.pytest --cov=openmed --cov-report=term-missing: run local coverage.make build: build wheel and sdist viapython3 -m build.make docs-serve/make docs-build: preview or strictly build MkDocs.cd swift/OpenMedKit && swift test: run Swift package tests.
Linting and Formatting
Use the checked-in tooling as the single source of truth. Do not apply ad hoc editor formatting or alternate lint configurations.
Python linting and formatting are owned by Ruff through pyproject.toml, .pre-commit-config.yaml, and the CI lint job. Before opening a Python-touching PR, run make format, make lint, and make format-check. Use pre-commit run --all-files for broad validation, or pre-commit run --files <paths> when validating a tightly scoped change.
Swift package formatting is separate from Python. OpenMedKit Swift code uses Apple swift-format through .swift-format, scripts/format_swift.sh, scripts/lint_swift.sh, and the Swift package CI workflow. Before opening a PR that touches Package.swift or swift/OpenMedKit, run make format-swift and make lint-swift.
Keep .editorconfig, Ruff, pre-commit, Swift format scripts, Make targets, documentation, and CI in sync when changing lint policy. A lint policy change should explain the local command, the CI gate, and the expected developer workflow.
Coding Style & Architecture Rules
Use Python 3.10+, 4-space indentation, and 88-character lines. Prefer snake_case for functions and modules, PascalCase for classes, and UPPER_SNAKE_CASE for constants. Public APIs need Google-style docstrings.
Preserve local-first defaults: no mandatory network calls after model download, no telemetry by default, no raw PHI in logs, caches, temp files, or audit artifacts. Audit reports should use offsets, hashes, provenance, and risk scores rather than plaintext identifiers. Core dependencies must remain permissive-license compatible; GPL, source-available, proprietary, DUA-gated data, UMLS, SNOMED CT, CPT, MIMIC, i2b2, and n2c2 assets must not be bundled. Put restricted integrations behind optional user-supplied keys or out-of-process bridges.
Testing and Release Gates
Pytest discovers test_*.py and *_test.py. Mark external or end-to-end cases with @pytest.mark.integration; mark expensive checks with @pytest.mark.slow. Keep bundled tests offline-friendly through mocks or synthetic fixtures.
For privacy, aggregate F1 is not enough. Add tests or fixtures for direct-identifier recall, critical leakage, span integrity, deterministic safety sweeps, date shifting, surrogate consistency, multilingual IDs, and quantized-model recall deltas when touching those paths. Committed golden data must be synthetic; DUA datasets are eval-only and never committed.
PyPI Release Publishing Guardrails
The openmed PyPI release is tag-driven through .github/workflows/publish.yml.
Before changing that workflow, read docs/release/trusted-publishing.md and
run tests/unit/test_publish_workflow_version.py plus
tests/unit/release/test_provenance_workflow.py.
The PYPI_API_TOKEN secret is scoped to the GitHub pypi environment. Do not
remove the publish job's environment: pypi block unless the secret is moved
and the release tests/docs are updated in the same change. Do not switch back
to tokenless Trusted Publishing unless the PyPI openmed project is already
configured with a matching trusted publisher for owner maziyarpanahi,
repository openmed, workflow publish.yml, and environment pypi.
If pypa/gh-action-pypi-publish runs without a non-empty password, it falls
back to Trusted Publishing and fails with invalid-publisher when the PyPI
publisher is missing. Treat that as a release-blocking configuration regression,
not as a transient PyPI outage. GitHub OIDC/SLSA attestation outages are
separate: the release workflow may make provenance evidence best-effort, but
package build, version checks, twine check, artifact upload, and PyPI publish
must still pass before a release is considered done.
Commit & Pull Request Guidelines
Recent history uses concise imperative commits, often with prefixes such as fix:. Keep commits and PRs focused on the requested change. Use the repo-owner Git identity. Do not include assistant/tool/vendor names, co-author trailers, generation footers, or worker attribution in issue text, branch names, commit messages, PR titles, PR bodies, or labels. In particular, never use codex or claude in branch names, PR titles, PR bodies, issue titles, issue bodies, labels, or other repository metadata. Do not assign issues or PRs unless explicitly asked.
Pull requests should follow .github/PULL_REQUEST_TEMPLATE.md: description, change type, tests run, docs or changelog updates when applicable, dependency justification, linked issue, and screenshots or example output for UI/docs changes.
Reviewing Existing PRs After Lint Changes
Do not start review on a stale branch when a repo-wide lint or formatting baseline has landed. First require the branch to update from latest master by rebasing or merging master into the PR branch.
After the branch is updated, run the canonical formatter on that branch and commit only files that belong to the PR's actual scope. Do not run broad formatting on a stale branch before updating from master; that creates avoidable churn and makes review harder.
Expect overlapping PRs to need small formatting follow-up commits only for files they already touch. They should not gain the full baseline diff. If updating a PR produces unrelated formatting-only changes outside its scope, stop and ask before reviewing or committing those changes.
Before approving or merging another contributor's PR, verify that its branch is current enough for CI, the relevant lint commands pass, and the diff does not contain unrelated formatting churn.
Tracked Files and Commit Safety
Do not add untracked files to git unless the user explicitly asks for those files to be tracked. Never force-add or commit ignored files or ignored directories. Stage only files that are already tracked or files the user has explicitly approved for tracking.
When a file is untracked, ignored, private-looking, generated, or outside the requested scope, leave it alone. If there is any doubt about whether a file should be staged, committed, pushed, or included in a pull request, stop and ask the user before taking the git action.
OpenMedKit and Multimodal Work
Swift and Python surfaces should evolve together unless a plan explicitly scopes a feature to one platform. OpenMedKit priorities are on-device document intake, OCR, PII redaction, structured extraction, task packs, model catalog/download/cache UX, and later pose, audio, speech, and sensor pipelines. Any borderline or medical-device-style feature must surface disclaimers and must not auto-trigger clinical decisions. Apple Foundation Models paths must stay on-device only; reject any cloud fallback for PHI workflows.
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.

