Disease Mechanisms KB
A curated knowledge base of disease pathophysiology, with structured evidence from the literature.
Full statement: docs/disclaimer.md · rationale: Design Decisions §11
Each disorder page includes:
Related browsers:
The knowledge base is stored as structured YAML files in kb/disorders/. Each disorder has its own file (e.g., Asthma.yaml) containing:
name: Asthma
pathophysiology:
- name: Airway Inflammation
description: Chronic inflammation of the airways
biological_processes:
- preferred_term: inflammatory response
term:
id: GO:0006954
label: inflammatory response
evidence:
- reference: PMID:12345678
supports: SUPPORT
snippet: "Exact quote from the paper"
explanation: "Why this supports the claim"
phenotypes:
- name: Wheezing
frequency: FREQUENT
phenotype_term:
preferred_term: Wheezing
term:
id: HP:0030828
label: Wheezing
treatments:
- name: Bronchodilators
description: Relax airway smooth muscle
treatment_term:
preferred_term: respiratory tract agent therapy
term:
id: NCIT:C15986
label: Pharmacotherapy
Entities are linked to authoritative ontologies:
All claims must cite PubMed references with exact quotes. This prevents misinformation and enables verification.
Multiple layers of automated validation ensure data quality and prevent AI hallucinations:
# Run schema + term validation
just qc
# Validate a single file
just validate kb/disorders/Asthma.yaml
# Validate a KB entry's evidence snippets against the cited abstracts
just validate-kb-references kb/disorders/Asthma.yaml
# Check a deep-research report's citations (a different question -- see docs)
just validate-research-reference research/Asthma-deep-research-falcon.md
# Analyze compliance with recommended field coverage
just compliance-all
# Compliance with weighted scoring and threshold checks
just compliance-weighted
All evidence snippets must be exact quotes from paper abstracts, not paraphrases. The reference validator fetches abstracts from PubMed and checks that the quoted text appears verbatim. This catches:
When validation fails, either fix the snippet to match the actual abstract or remove the evidence item.
Generate a visual dashboard showing compliance metrics across all disorder files:
just gen-dashboard
This creates dashboard/index.html with:
capability_metrics.html report with aggregate coverage, evidence, ontology, mechanism, treatment, and compliance metricsnot_yet_curated.html report listinCurate Dworschak-Punetha neurodevelopmental syndrome (MONDO:0859260)
https://github.com/monarch-initiative/dismech/issues/20177
Labels: enhancement, curation, claim
Curate fetomaternal alloimmune thrombocytopenia 2 (MONDO:0980724)
https://github.com/monarch-initiative/dismech/issues/20169
Labels: curation, high_effort, claim
Thank you for your interest in contributing to the Disorder Mechanisms Knowledge Base!
A browsable version of this guide, with the same setup steps and screenshots, is at dismech.monarchinitiative.org/contributing/.
[!WARNING] This guide is aimed at real humans. Agents are welcome to read this for context, but instructions aimed at people should not be confused for instructions for agents. Agent instructions are in the usual places.
Most of this guide assumes some familiarity with running agent harnesses such as claude code or codex. Even if you are not familiar with these, you are welcome to file issues (UPDATE: see #6833 for instructions on filing issues as a non-collaborator).
This guide also assumes you are a member of the Monarch Initiative and specifically the dismech team. While we welcome contributions from anyone, if you intend to make a PR, please read the note below about forks. Issues are welcome from anyone.
If you are a subject matter expert, please give us feedback via the issue tracker! This can be about anything.
DisMech curation is currently running in heavily agent-forward mode. This may change in future.
[human authored]Assume that content aimed at humans (such as this document) may become stale. The multiple interlocking curatorial processes in dismech are inherently dynamic and complex. But fear not, you can always ask your agent to explain things.
These are all perfectly valid things to ask claude/codex at the start of your session:
And you are always welcome to ask a friendly human on Slack, or in an issue!
You should always use best-of-class models, and up to date high quality harnesses. Using less powerful models is more likely to generate lower quality content. While this will typically be caught during agentic review (which always uses high quality models), use of lower quality models can lead to wasteful back and forth. Also, this is more of a drain on your time.
Advanced users are welcome to try using alternative models and harnesses as experiments, or use them intentionally when you know how to match the level of difficulty with a task (but you should coordinate on Slack before doing this).
Every member of the dismech team is encouraged to do work that ends in a PR. You are not expected to check the results for yourself. We assume that you are acting in good faith and you are not intentionally pushing the agent to add bad content (though we welcome this as an experiment, if you coordinate first! you can see a few examples of this already, e.g. Bixonimania request).
The general philosophy is to trust the process. All PRs are reviewed by agents using rubrics that have been extensively evaluated by agents and humans in collaboration. Additionally, a battery of hard validation checks and anti-hallucination measures are applied. This is not guaranteed to be perfect, but we also believe in incremental improvement. No entry is ever considered "finished", and in fact all entries are continuously being refined.
Do not open pull requests from forks. This repository depends on automated AI
review and GitHub does not expose repository secrets to workflows triggered from
forks, so fork-based PRs cannot be reviewed; the close-fork-prs workflow closes
them automatically.
Contributors should push branches directly to origin and open PRs from those
branches. If you are a new contributor and do not yet have access, first open an
issue asking to be added to the repository. Known members of the Monarch and
biomedical informatics communities will be added promptly. Other contributors
are welcome to join a community call and introduce themselves before being
granted branch access.
The GitHub 'draft' status does not hold a PR back. Any PR that is created will be reviewed and possibly modified and advanced towards a final merge, regardless of draft status. If you do not wish this to happen then you can push changes without making a PR. However, in general you should follow the "be bold" guidelines.
Draft status does not block auto-merge either: the merge automation marks an otherwise-eligible draft as ready before merging it. To keep a PR from merging, assign it to yourself (a human assignee is a hold) or leave a "changes requested" review. See Pull Request Process.
As described above, contributions to DisMech are made by humans invoking AI agents, with other AI agents vetting the contributions.
Most contributors use Claude Code or Codex for AI-assisted curation. The instructions below explain how to install the Claude Code command-line interface (CLI). An easier option for many people who want to curate diseases in DisMech is to set