Polyhistor // Global Knowledge Terminal - an offline, cross-disciplinary reference service for law, police, military, art, medicine, technology, culture, science, agentic systems and the academy.
Polyhistor is an offline-first general, cross-disciplinary knowledge service. The design language is institutional: navy, gold, ivory, crimson and slate; stable record IDs; provenance; classification; source registries; and explicit limits.
It is an offline-first reference terminal covering:
The registry ships 54 structured domains, 18 flagship dossiers, 565 glossary terms, 170 notable figures, 49 reference articles, a 117-event world timeline, a 62-country almanac, 60 sources, and 163,000+ corpus records from the medical, legal, scientific, psychological, biological, chemical, religious and intelligence corpora.
cd BDCS/polyhistor python3 -m pip install . polyhistor polyhistor dashboard polyhistor --help polyhistor domains polyhistor law polyhistor brief medicine polyhistor topic "rule of law" polyhistor article rule-of-law polyhistor agent police From source without installing:
PYTHONPATH=src python3 -m polyhistor Requirements: Python 3.8+, standard library only. No network, API key or database is required.
domains [filter] list the 54-domain registry domain full domain dossier topic [deep] federated search across all curated knowledge open open any result row by its displayed ID article read an article; falls back to a matching record glossary [query] cross-domain vocabulary people [query] notable figures and contributions timeline [query] world knowledge timeline atlas [section] [query] countries, UN system, treaties, standards, units, constants graph related records around a concept random [domain] sample a record quiz [domain] knowledge check Workspace brief structured 11-section research brief agent [domain] specialist agent specification team [domain] multi-specialist team corpus [dataset] search the large reference corpora sources [query] source registry cite [style] citation guidance (apa, mla, chicago, iso690, bibtex) export [file] write a brief, article, glossary or domain to disk Technical instruments Polyhistor keeps a separate generative instrument layer. Reference records stay deterministic; these commands are explicitly generative and timestamped. The 40,000-phrase diction is generated from the Polyhistor knowledge registry.
nano | n1 | morn knowledge diction + script-character bursts charset [name] none | latin | russian | japanese | korean | chinese nanochars show or hide the word component kata | hangu | chi | ans | ruh script-specific bursts ghostwrite [n] instant ghostwriting -> ghost.txt ghostwrite stream continuous ghostwriting until Ctrl-C tag [n] | atag [n] tagged signal bursts souls [n] | message [n] terminal signal lines zuz | monitor [n] [delay] live monitor -> monitor-logs.txt am [n] [delay] live academic monitor tmonitor | stmonitor timed / academic timed monitors oscillator [n] | burner [n] signal instruments threads [n] | cburner/jburner/tburner additional instruments frames [name] [n] timestamped technical frames diction [query] sample the Polyhistor knowledge lexicon tsearch | asearch | msearch deep and corpus searches secure [length] cryptographically secure string type-text | fuzz | alerts record [on|off|status|file ] full transcript -> polyhistor-logs.txt jot [on|off|status|note ] note transcript -> JOT.txt status current instrument state Rebuild the diction from the registry:
python3 tools/build_diction.py --write One-shot recording without entering the shell:
polyhistor --record --log-file session.txt law polyhistor --record --log-file session.txt ghostwrite 20 ghostwrite appends to ghost.txt. record and jot append to their configured files; record file and jot file change the destination. monitor is a live instrument: each line uses one diction entry, prints until Ctrl-C (or for n lines) and appends to monitor-logs.txt. burner appends to burn-logs.txt.
The diction is a 40,000-entry lexicon generated from the domain registry, glossary, articles, timeline, almanac, people and sources. It is rebuilt with:
polyhistor diction polyhistor diction evidence polyhistor diction search protocol ``` The charset and file paths persist in `~/.config/polyhistor/technica.json`; recording state itself is per-session. ### System dashboard daily knowledge dashboard redraw | resize re-render the current view at the current width width [n|auto|refresh] show or set responsive width (32-140) stats corpus and registry statistics handle set session operator handle theme [institutional|mono|amber] color | no_color meta installed package metadata (name, version, author) about | version | help | exit
Direct domain names are also commands: ```bash polyhistor law polyhistor police polyhistor military polyhistor art polyhistor medicine polyhistor technology polyhistor science polyhistor culture polyhistor academic polyhistor encyclopedia polyhistor agentic Design system POLYHISTOR uses a public-service document language:
polyhistor[public]://LAW › and the palette marker is available in the session status line.
src/polyhistor/ ├── app.py command surface and interactive terminal ├── theme.py institutional design system ├── knowledge.py search, retrieval, briefs, graph, quiz ├── agent.py deterministic specialist-agent specifications ├── data_loader.py lazy corpus registry and search ├── technica.py generative technical instruments ├── content/ │ ├── domains.py 18 flagship domain dossiers │ ├── domains_applied.py 36 adjacent and applied disciplines │ ├── timeline.py 117 cross-domain turning points │ ├── encyclopedia.py 49 curated reference articles │ ├── almanac.py countries, UN system, treaties, standards, units, constants │ ├── sources.py source registry and citation styles │ └── __init__.py registry, aliases, term index, statistics └── data/ large JSON corpora + generated diction The curated registry is deliberately structured. Every domain exposes the same fields: scope, principles, methods, institutions, standards, careers, ethics, sources and vocabulary. This makes comparison across law, medicine, engineering and the humanities possible without flattening their differences.
The large corpora are loaded lazily. topic deep and corpus reach the 163,000+ records, including the Polyhistor knowledge lexicon and English word list used by the technical instruments; ordinary reference commands stay fast and deterministic.
POLYHISTOR agents are role specifications, not deployed autonomous systems. Each dossier defines:
Core constraints include least authority, human-in-the-loop for irreversible action, documented provenance, privacy by design, and no delegation of ethical judgement to automation.
polyhistor agent law # stable dossier for the current handle polyhistor agent law analyst # same domain, different handle polyhistor agent reroll law # new changeup, prints its changeup key polyhistor agent seed 12345 law # reproducible changeup polyhistor team medicine # stable specialist team polyhistor team reroll medicine 3 # new team changeup The dossier shows both the derived seed and the changeup key. A reroll is still deterministic once its changeup key is reused, so a useful team can be reconstructed later.
tools/build_corpus.py validate corpora and write data/manifest.json tools/build_diction.py regenerate the 40,000-entry POLYHISTOR knowledge diction Data and editorial policy POLYHISTOR is an editorial navigation aid. It summarises established knowledge and points to authoritative sources; it is not a substitute for primary sources, professional advice, or the law of a particular jurisdiction.
The shipped corpora include public-domain religious texts, medical and legal glossaries, scientific and psychological references, hospital records and an intelligence-operations handbook. They are retained as searchable reference material and are clearly labelled by domain and kind.
python3 -m pip install --upgrade build twine python3 -m build twine check dist/* python3 tools/build_corpus.py python3 -m pytest Install the wheel in a clean environment:
python3 -m pip install dist/polyhistor-1.0-py3-none-any.whl polyhistor --version polyhistor stats polyhistor brief law polyhistor topic "climate change" polyhistor agent technology Entry points:
polyhistor -> polyhistor.app:main Principle Polyhistor is built around provenance, correction, accessibility and explicit limits. Knowledge is a public infrastructure.
knowledge reference encyclopedia law police military art medicine technology science culture agentic ai academic research terminal offline global
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.




