[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110925":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":12,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},110925,"plsi","Insilico-org\u002Fplsi","Insilico-org","Personal Longevity Superintelligence: a multi-agent health toolbelt for Grok Bot",null,"Python",94,30,1,3,0,8,51.47,"MIT License",false,"main",[],"2026-11-20 12:59:47","2026-11-22 11:49:09","# PLSI: Personal Longevity State Interface\n\nPLSI turns any health record into a deidentified, code-normalized event log, projects it through versioned **State Maps** into a hashed state document, and lets Grok Bot propose screened actions with **explicit, scored next-state predictions**, including aging clocks.\n\nThis repo supplies:\n\n- State Map contracts (`contracts\u002F*.schema.json`, `maps\u002F*.yaml`)\n- a deterministic CLI toolbelt (`plsi`, JSON in, one JSON envelope out)\n- the bots' skills (`skills\u002F`), a first-run file (`plsi.md`) and a versioned persona (`persona.md`)\n- the handoff protocol between the bots (`contracts\u002FHandoff.schema.json`, `plsi handoff check`)\n- trusted references (`mothership\u002Freferences\u002F\u003Ckind>.yaml`, indexed by id; `plsi refs list [--kind]`)\n- opt-in sharing with the Longevity Mothership, Insilico's longevity research initiative (`plsi mothership`,\n  `mothership\u002Fconsent.md`): a weekly pseudonymous (not anonymous) package of coded fields only (codes, numbers,\n  units, months, years; no free text, no value computed from age; the person only as sex, age band and ethnicity\n  group), gate-checked, posted to Insilico's relay only after the user joins; research notes by the user's own Grok\n  email; for invited physicians and researchers, the data catalog, releases and the findings ledger\n- usage reports for the PLSI team (`plsi feedback`), sent only on the user's approval from their own Grok email\n- autoresearch (`\u003CPLSI_HOME>\u002Fresearch\u002F`, `plsi research`): one folder per topic with questions, hypotheses and\n  findings as linked Markdown (an Obsidian vault), research projects that group topics and notes, and an optional\n  daily run on the share of the weekly usage the user sets; code computes every verdict\n- target discovery for researchers (`\u003CPLSI_HOME>\u002Ftargets\u002F\u003Cgene>\u002F`, `plsi targets`): dossiers from free sources and\n  an assessment refused unless every claim is sourced\n- local state storage (`instances\u002F\u003Cname>\u002F`)\n\n## Disclaimer\n\nLongevity Grok is AI software for personal longevity research and education. It does not provide medical care, does\nnot diagnose, treat or prescribe, and does not replace your clinician. Outputs are generated automatically, are not\nreviewed by any clinician, scientist or team member before you see them, and may be wrong. Automated checks do not\nremove that risk, and no health or longevity outcome is promised. Individual academic affiliations are shown for\nidentification and do not imply institutional endorsement. Talk to your clinician before starting, stopping or\nchanging any medication, supplement or health routine, and do not delay care because of an output. In an emergency,\ncontact local emergency services.\n\nBy installing, you agree to the [Terms of Service](legal\u002FTERMS.md); see also the [Privacy Policy](legal\u002FPRIVACY.md)\nand the [Disclaimer](legal\u002FDISCLAIMER.md). xAI processes the information in your Grok Bot account under its own\nterms and privacy policy, and services you connect may also receive information. Insilico receives information from\nthat account only through contributions or emails you choose to send.\n\n## The team\n\nOn Grok Bot, PLSI is a team of Bots with separate chats, memories and contexts; the roster, each bot's skills and\ncommands and the handoff format are `skills\u002Fshared\u002Fteam` (every bot reads it); the bots' profiles, the team rules and\nthe flows are `skills\u002Fshared\u002Fhub` (the hubs only).\n\n- **Hubs** are the bots the user talks to, each in its own chat about its own use case: PLSI · Health Orchestrator\n  (own health and family), PLSI · Research Orchestrator (research topics, projects, daily research), PLSI · Clinic\n  Orchestrator (a longevity physician's panel) and, in the section **Ward**, one Ward bot per roster patient, pinned\n  to that patient's instance. The role (`plsi role set`) picks the primary hub, which runs setup (`plsi.md`) and\n  creates the others. Work outside a hub's use case goes hub to hub.\n- **Workers** are shared by every hub and reply only to the hub that sent the request: the core team (Data\n  Processor, Health Consultant, Nostradamus, Challenger, Reviewer, Data Controller, Memory Hole, Visualizer) and the\n  specialists the user picks, in the sidebar section **PLSI Workers**; a physician also gets **PLSI Clinic** and a\n  researcher **PLSI Lab**.\n- **Session rooms** (`skills\u002Fshared\u002Fsessions`): a task that needs several workers at once gets a group chat of the\n  hub and up to 5 workers in **PLSI Sessions**; cards, approvals and recording stay in the hub's chat.\n- **The shared team file** `\u003CPLSI_HOME>\u002Fteam.json` (`plsi team`): the bots, the primary hub, own health, the Terms\n  accepted, the PLSI version; every hub reads the same.\n\n```\n                                   user \u002F physician\n              (1:1 chats, question cards, approvals, routines)\n        |                  |                   |                   |\n  Health Orch.      Research Orch.       Clinic Orch.        Ward · \u003Clabel>\n  own health,       topics, projects,    panel, intake,      one patient,\n  family            daily research       roster, Ward        pinned instance\n        |                  |                   |                   |\n        +------------------+---------+---------+-------------------+\n                                     |  hubs: conduct threads, batch questions, urgent care\n                                     |  every handoff: Handoff JSON; cited states must be current\n                                     |  request\u002Fanswer out, result\u002Fquestion back; hub to hub too\n   +---------------------------------+----------------------------------+\n   | PLSI Workers (shared by every hub)                                 |\n   | core: Data Processor, Health Consultant, Nostradamus, Challenger,  |\n   |       Reviewer, Data Controller, Memory Hole, Visualizer           |\n   | specialists (opt-in): Wearables, Nutritionist, Coach, Sleep,       |\n   |       Biohacker, Explorer, Navigator, Trial Scout, Pharma Analyst, |\n   |       Engineer, Writer                                             |\n   +--------------------------------------------------------------------+\n   | PLSI Clinic (physician): Panel, Visit Prep, Clinical Evidence,     |\n   |       Liaison                                                      |\n   | PLSI Lab (researcher): Target Hunter, Landscape, Cohort Analyst,   |\n   |       Grant Writer                                                 |\n   +--------------------------------------------------------------------+\n   | PLSI Sessions: one room per task, a hub and up to 5 workers        |\n   +--------------------------------------------------------------------+\n   Life: ingest ---> Map: project \u002F state show ---> Policy: screen, plan gates, score (referee)\n          ^                                                     |\n          +----------------- new measurements \u003C-----------------+\n```\n\nThe bots do the judgment; `plsi` does what an agent should not: calculators (clocks, risk equations, unit\nconversion, survival curves from the bundled UN WPP 2024 life tables, CC BY 3.0 IGO), connectors (Hevy, PubMed, ClinicalTrials.gov, openFDA, RxNav, Open Targets, MyGene.info,\nPharos, RCSB PDB, AlphaFold, ChEMBL, UniProt, Open Genes, oracles), the append-only log, the code gates and the\nscorer. The Map is the protocol between the bots: Data Processor records and projects state documents, the other\nbots cite them by hash. Every plan goes to Challenger before the user sees it; anything leaving the computer passes\nthe code gate, then Data Controller; predictions are scored by `plsi score`, never by the bot that made them. One\ninstance per person (`plsi init --relation self|family|other|sample`); every handoff names one.\n\n## Packages\n\n| Package | Role |\n|---|---|\n| [`plsi.life`](src\u002Fplsi\u002Flife\u002FREADME.md) | Life layer: intake (FHIR, canonical CSV, methylation, Grok-extracted JSON), deidentification, LOINC\u002FRxNorm\u002FUCUM normalization, the append-only event log |\n| [`plsi.map`](src\u002Fplsi\u002Fmap\u002FREADME.md) | Map layer: registry, selector, mapper (projection, units), storyline; calculators (convert, derive, range, course, survival) and clocks (native blood PhenoAge, map formulas, biolearn); state documents |\n| [`plsi.policy`](src\u002Fplsi\u002Fpolicy\u002FREADME.md) | Policy layer: evidence search and verification, blocking screening, plan gates, scoring and calibration, oracles |\n| [`plsi.research`](src\u002Fplsi\u002Fresearch\u002FREADME.md) | autoresearch: topics, projects, the move loop, verdicts, frontier, budget ledger, research notes |\n| [`plsi.targets`](src\u002Fplsi\u002Ftargets\u002FREADME.md) | target discovery: dossiers from free sources, assessments, hallmarks, trials, briefs |\n| [`plsi.mothership`](src\u002Fplsi\u002Fmothership\u002FREADME.md) | the Longevity Mothership: consent and enrollment, packages, notes, the egress gate, the relay, professional access |\n| [`plsi.clinic`](src\u002Fplsi\u002Fclinic\u002FREADME.md) | the physician's clinic: patient Drive folders, sync, publishing, the panel dashboard |\n| `plsi.vocab` | every enum |\n| `plsi` (top-level modules) | the CLI and command table (`cli`, `commands`, `cmdspec`), the team and role, reports, export, feedback, references, keys, HTTP (`net`), extensions |\n\nRules: `plsi.policy` never imports `plsi.life` and reads the world only through `plsi.map`; `plsi.life` never imports `plsi.map` or `plsi.policy`. The three layers keep a fully local deployment possible.\n\nCommands: `plsi --help` and `plsi \u003Ccommand> --help`; the table is `src\u002Fplsi\u002Fcommands.py` plus the `commands.py`\nof `research\u002F`, `targets\u002F` and `mothership\u002F`.\n\n## Extending PLSI\n\nGrok can grow what PLSI does without changing the core. Use the lowest tier that closes the gap:\n\n| Tier | Adds | How | Skill |\n|---|---|---|---|\n| Map | a new area: coordinates, codes, units | user map YAML, `plsi maps validate` \u002F `install` | processor\u002Fadd-map |\n| Formula | a score, ratio or equation | `derive: {engine: expr, formula: ...}` in a map; a safe evaluator, never `eval` | processor\u002Fadd-score |\n| Extension | an input format (`importer`), a non-formula computation (`deriver`), an evidence source (`evidence_source`) | a tested package installed with `plsi ext install`, versioned under `\u003CPLSI_HOME>\u002Fextensions\u002F` | engineer\u002Fextend |\n\nExtensions add and never replace. They are full-trust code, installed only with the user's explicit approval naming\nthe source; `install` runs the package's own tests with a minimal environment (no keys) and refuses imports outside\nits layer or any patching of `plsi`, guard rails rather than a sandbox. Values they derive record\n`extension:\u003Cid>@\u003Cversion>` in provenance.\n\n## Deidentification profile `plsi-limited-v1`\n\n- The subject keeps only birth year (age 90 or over: `age_group: \"90+\"`, no birth year) and sex.\n- Event dates are kept, so this is a limited data set, not HIPAA Safe Harbor.\n- Observation origin keeps `file_sha256` and page, never a path or filename.\n- FHIR import keeps codes, values, effective times, clinical status, components, dose text and the structured dose (doseQuantity); it drops identifiers, subject, performer, notes, narrative, contained resources, extensions and attachments.\n- Patient name parts, identifier values, telecom and address are held in memory only; any observation whose text contains one is rejected with `IDENTIFIER_IN_TEXT`.\n- CSV columns outside the canonical format are dropped and reported by name; methylation sample names are not stored.\n\n## Consent\n\nPLSI collects consent on its question cards (`persona.md`, Consent, batched); standing approvals replace a card until revoked. Joining the Longevity Mothership records the version of `mothership\u002Fconsent.md` the user saw (`plsi mothership join --consent-version`), and `plsi mothership pack` refuses with `CONSENT_OUTDATED` once that text changes. Outbound oracle text is built in code from the saved state document only (values, item codes and months; never\n`personal_context`) and every text sent to an oracle is kept in `egress\u002Foracles.jsonl` (the instance's, or PLSI_HOME's).\n\n**Longevity Mothership wire.** PLSI, the relay (`plsi refs show longevity_mothership`) and the Mother (Insilico's Grok\nBot with its own toolbelt and storage) share one contract, kept with the relay and the Mother in\n[`plsi-mothership`](https:\u002F\u002Fgithub.com\u002FInsilico-org\u002Fplsi-mothership). Contributions carry a pseudonym made on the\nuser's computer (the hash of a local secret, which also proves deletion requests), never the install code; the relay\nforwards bodies without the install code and keeps no IP logs; professional tokens come from a one-time emailed invite\nafter a steward's review and carry scopes. Message kinds: contribution, withdrawal, research note, registry update,\npreregistration and finding, each gate-checked on both sides. Research notes never take the relay: they go by email to\nthe Mother's `+research` address (`plsi refs show longevity_mothership_research`), signed by the sender's address, and\nthe Mother replies there with a receipt and, after review, the decision.\n\n## Differentiators\n\nThe State Map vocabulary: State Map; registry, selector, mapper, storyline; correspondence types terminology | expert | statistical | mechanistic | validated | unmapped; claim ladder designed | instantiated | exercised.\n\n| | Differentiator | Claim level |\n|---|---|---|\n| a | Scored next-state predictions (interval, basis, horizon) with calibration and misses reported | exercised |\n| b | Aging clocks as first-class coordinates and prediction targets (native blood PhenoAge; every biolearn methylation clock through one adapter) | exercised (PhenoAge), instantiated (biolearn) |\n| c | Any-modality intake via Grok extraction into code-normalized observations; maps are data the bot can author and validate | instantiated |\n| d | Live evidence collection with verification of every cited identifier | instantiated |\n| e | Proactive blocking screening of every action | exercised |\n| f | A personal companion inside Grok Bot, run as hubs (Health, Research and Clinic orchestrators, one Ward bot per patient) with a shared core team and opt-in specialists in separate contexts, a conducted hubs-and-spokes protocol (one card per decision) with session rooms for multi-worker tasks, an adversarial plan check and an egress check | designed |\n\n## Quickstart\n\n```bash\npython -m venv .venv && . .venv\u002Fbin\u002Factivate      # Windows: .venv\\Scripts\\activate\npython -m pip install -e \".[dev]\"                  # add ,clocks for methylation clocks\nplsi doctor\nplsi init --instance me --birth-year 1970 --sex F\nplsi ingest --instance me --csv labs.csv --dry-run\nplsi ingest --instance me --csv labs.csv\nplsi maps select --instance me\nplsi project --instance me --map blood_phenoage\nplsi report --instance me --map blood_phenoage\n```\n\nCanonical CSV header: `effective_at,text,value,unit[,code_system,code,specimen,kind,fasting]`. Units may be written as\nlabs print them (`mg\u002Fdl`, `µmol\u002Fl`, `×10⁹\u002FL`, `kg\u002Fm²`): `plsi.life.normalize.normalize_unit` gives their UCUM spelling, and\na map converts only through its own sourced factors (a scale, or a scale and an offset) or a generic metric prefix\nscale. Grok Bot users start with `plsi.md` instead.\n\nOptional keys go in a gitignored `.env` (copy `.env.example`); the process environment overrides it. `plsi keys status` reports booleans only. A secret the user already has under another name is used through `plsi keys map --name \u003CVAR> --from \u003Ctheir name>` (`plsi keys scan` lists the names); only the names are stored.\n\n## Layout\n\n```\nplsi.md  persona.md  AGENTS.md      Grok first-run file, persona, contributor rules\ncontracts\u002F*.schema.json             generated by `plsi contracts export`\nmaps\u002F*.yaml                         shipped State Maps\nmothership\u002Freferences\u002F\u003Ckind>.yaml   trusted references by id; API base URLs; the Mothership address (contact)\nmothership\u002Fconsent.md               what joining the Longevity Mothership means (versioned)\nmigration\u002Fv\u003CX.Y.Z>.md               moving an earlier install to a version, one `# PLSI vA -> vB` section each (plsi.md step 2)\nlegal\u002F                              Terms of Service, Privacy Policy and Disclaimer (plsi.md steps 0 and 1)\nskills\u002F\u003Crole>\u002F\u003Cskill>\u002FSKILL.md      one folder per bot: orchestrator\u002F (Health, and the hub skills every hub shares),\n                                    lab\u002F (Research), clinic\u002F (Clinic), ward\u002F (each Ward bot), the workers' folders,\n                                    shared\u002F (team, hub, sessions, l-llm, research-graph)\nsrc\u002Fplsi\u002F                           the toolbelt (Packages above)\nteam.json                           the team every hub shares (`plsi team`; under PLSI_HOME)\ninstances\u002F\u003Cname>\u002F                   subject.json, events.jsonl, maps\u002Fuser\u002F, states\u002F, reports\u002F, exports\u002F, artifacts\u002F, mothership\u002F\n                                    (gitignored; under PLSI_HOME when set)\nresearch\u002Fprojects\u002F\u003Cid>\u002F             one research project: project.md, notes\u002F, data\u002F and topics\u002F\u003Ctopic>\u002F (topic.md,\n                                    log.jsonl, questions\u002F hypotheses\u002F findings\u002F); day.json beside projects\u002F\n                                    (under PLSI_HOME)\ntargets\u002F\u003Cgene>\u002Fdossier.json         one target dossier: facts gathered from the free sources, and the bot's\n                                    assessment once it passes the refusals (under PLSI_HOME)\n```\n\nContributor and agent rules: [AGENTS.md](AGENTS.md).\n","PLSI（Personal Longevity State Interface）是一个面向个人健康长寿研究的多智能体工具集，将结构化或非结构化健康记录转化为去标识化、标准化编码的事件日志，并通过版本化状态映射（State Maps）生成可哈希比对的状态文档。核心功能包括：基于明确评分的下一状态预测（含表观衰老时钟）、可信参考文献索引、本地自主研究管理（Obsidian风格知识库）、靶点证据核查（全溯源要求），以及可选的伪匿名化数据共享至Longevity Mothership科研计划。适用于有基础健康数据（如检验报告、用药记录、穿戴设备指标）的个人开展系统性长寿自我研究与假说验证，需配合Grok Bot使用，不替代临床诊疗。",2,"2026-11-24 04:39:58","CREATED_QUERY"]