[2026-04-03 Fri]
This tutorial walks through the complete crucible workflow: ingesting a source, distilling it into wiki articles, searching and navigating the knowledge base, and maintaining it over time.
Make sure crucible is installed and initialized:
cd /path/to/your/crucible
pip install -e .
crucible init --root .
crucible installFor semantic search, also set up ollama:
ollama pull nomic-embed-textcrucible ingest paper.pdfThis copies the PDF to .crucible/sources/external/pdfs/, extracts text
(via pdftotext or pandoc), adds an entry to .crucible/references.bib and registers it in the
database. The output shows the source ID, its cite key, the stored path
and how many characters of text were extracted.
If the paper's DOI appears near the start of its text, or you give it
with --doi, crucible fetches the full
BibTeX entry from doi.org. A DOI found in the text is used only when the
fetched title matches the file: for a PDF, the title must appear near
the start of the text, so a thesis or report that cites a paper there is
not filed as that paper. Slide decks and Word documents are never
matched to a DOI in their text. You can also supply your own entry with
--bibtex @paper.bib. The entry's file field records where the PDF is stored,
which is how a fresh clone ties the entry back to the file.
Use pandoc to convert HTML to org-mode, then pipe into crucible:
curl -sL "https://example.com/article" \
| pandoc -f html -t org --wrap=none \
| crucible ingest - -t "Article Title" --type web --url "https://example.com/article"crucible ingest lab-notes-2026-04-03.org --type notebook --date 2026-04-03Notebook entries are stored in .crucible/sources/notebooks/ and are not
gitignored (they are your own work).
crucible ingest "papers/*.pdf"
crucible ingest "notebooks/**/*.org" --type notebookAfter ingesting, check what needs distilling:
crucible undigestedThis is where Claude does the heavy lifting. In a Claude Code session:
You: I just ingested smith2024.pdf. Distill it into the crucible.
Claude: [reads the source, checks existing concepts, proposes a plan]
- Summary article: "Smith 2024: CO Oxidation Kinetics on Pt"
- New concept: "turnover frequency"
- Update existing: "activation-energy.org" with new data point
- Cross-links: to arrhenius-equation.org, catalyst-screening.org
You: Looks good, go ahead.
Claude: [writes org files, runs crucible sync and crucible embed]
The distillation follows a two-step process:
crucible search "activation energy"Uses FTS5 with porter stemming. Finds exact keyword matches.
crucible search "how does temperature affect reaction rate" --mode semanticUses vector embeddings to find conceptually related content, even
without keyword overlap. Requires crucible embed to have been run.
crucible search "catalyst design principles"When embeddings exist, the default auto
mode uses hybrid search: both FTS and semantic results are combined
using Reciprocal Rank Fusion. Articles found by both methods rank
highest.
crucible search "neural networks" --allThe --all flag searches your local
crucible and every other crucible in the global registry. Works with all
search modes (FTS, semantic, hybrid).
crucible search "barrier height" --tag dft
crucible search "barrier height" --tag dft --tag zeolite --type method--tag keeps only the articles whose
#+FILETAGS: include the tag, and --type only articles of that type. The filters
are applied before the result limit, so -n 5 still gives you five results, all of them
tagged. Several --tag options must all
match; several --type options allow any of
them. When the crucible has a taxonomy (see [[*Organizing Tags into a
Hierarchy]]), a tag also matches the narrower tags under it.
crucible concepts # list all topics
crucible concept thermodynamics # articles on a topicTags are flat by default: an article tagged dft knows nothing about electronic structure
methods in general. A taxonomy groups tags under broader ones, so that
searching for the broad tag finds everything beneath it. It lives in
.crucible/taxonomy.org and uses org-mode's
own group tag syntax, so Emacs reads the same hierarchy in tag searches
and the agenda. For a catalysis wiki it might look like this:
#+TITLE: Taxonomy
#+TAGS: [ methods : electronic_structure molecular_dynamics microkinetics ]
#+TAGS: [ electronic_structure : dft coupled_cluster ]
#+TAGS: [ materials : porous metals oxides ]
#+TAGS: [ porous : zeolite mof ]
#+TAGS: [ catalysts : zeolite metals ]Each [ parent : children ] group makes
the children narrower tags of the parent. A child that is itself a group
(electronic_structure here) nests the
hierarchy another level, and a tag may sit under more than one parent:
zeolite is both a porous material and a
catalyst. Org's { parent : children } form
works too. Regular expression members such as {P@.+} are skipped with a warning, as are
cycles.
Run crucible sync after editing the
file. Then searching for a broad tag finds the articles tagged with any
tag under it:
crucible search "barrier" --tag electronic_structure # dft and coupled_cluster articles
crucible search "barrier" --tag methods --exact # only articles tagged methods itself
crucible concepts --treecrucible concepts --tree prints the
hierarchy with each tag's article count rolled up from the tags beneath
it, then lists the tags your articles use that the taxonomy does not
mention yet, which are the candidates for placing next:
methods (14 articles)
electronic_structure (11 articles)
dft (9 articles)
coupled_cluster (2 articles)
molecular_dynamics (3 articles)
microkinetics (0 articles)
materials (8 articles)
...
Not in the taxonomy:
enzymes (2 articles)
The taxonomy is committed with the wiki, so a clone gets it too. With
--all, each crucible expands tags with its
own taxonomy.
crucible backlinks wiki/concepts/activation-energy.org # what points here
crucible sources wiki/concepts/activation-energy.org # primary sources
crucible related wiki/concepts/activation-energy.org # implied connectionsThe related command computes
relationships on the fly from shared concepts, shared sources, temporal
proximity, and explicit links.
crucible history wiki/comparisons/synthesis-article.orgShows what articles the synthesis was derived from (upstream) and what has been derived from it (downstream).
During a conversation where Claude has been reading and synthesizing from the wiki, you can say:
You: Capture this as a new article.
Claude writes an org file with a :DERIVED_FROM: property listing the wiki
articles it read. After crucible sync, the
derivation chain is recorded in the database.
crucible lintReports broken links, orphan articles, missing properties and
unreadable dates, undigested sources, source keys that match no source
or more than one, duplicate cite keys in the sources or in references.bib, and wiki files not in the
database. See the command reference for the full list.
crucible suggestAnalyzes the wiki graph (including semantic similarity when embeddings exist) to recommend:
crucible indexRebuilds wiki/index.org with all
articles organized by type and concept. crucible sync does this too, along with wiki/MANIFEST.md.
crucible publishExports the wiki as a browsable HTML site via scimax publish.
When you revisit a source and want to add to its distillation (because you now have more context, or noticed a connection you missed):
You: Reread sources/external/pdfs/smith2024.pdf. I think there's a
connection to our work on catalyst screening that we missed.
Update the summary and add any new concepts.
Claude: [reads the source again, reads existing summary, reads
catalyst-screening.org, identifies the gap]
- Update: summaries/smith2024.org with new section on screening
- New cross-link: to wiki/concepts/catalyst-screening.org
- Update: SOURCE_KEYS on catalyst-screening.org to include smith2024
You: Do it.
Claude: [updates the files, runs sync and embed]
The key point: you do not need a special command. You just tell Claude what to look at again and what connection to make. Claude updates the existing articles rather than creating duplicates.
Every crucible on the machine is listed in the global registry (~/.crucible/registry.json). crucible init and crucible sync add the current project, and you
can register others by hand:
# Register another crucible
crucible registry add lab-shared /path/to/lab/crucible
crucible registry list
# Search across all
crucible search "topic" --all
crucible concepts --all
# Remove an entry, or drop entries whose crucible is gone
crucible registry remove lab-shared
crucible registry cleanOther crucibles are queried via separate database connections. Your data stays local, their data stays in their crucible. No writes cross boundaries.
A crucible kept in a git repository (yours on another machine, or a colleague's) can be cloned and registered in one step, and updated later. The discopt repository commits its crucible (about 67 articles on discrete and global optimization), so it makes a working example:
crucible clone https://github.com/jkitchin/discopt.git
crucible search "branch and bound" --all # results marked [discopt]
crucible pull discopt # fast-forward from upstream and sync
crucible pull --all # every crucible made by clone
crucible registry list # shows each entry's origindiscopt is a full code repository, so the clone brings its code along with the wiki (about 140 MB). A crucible meant mainly for sharing can live in a repository of its own.
The registry records each crucible's origin: the git remote it came
from, or one given with crucible registry add --origin. If search --all cannot search a registered
crucible, it says so on stderr.
To fold one crucible into another instead, use crucible merge:
crucible merge lab-shared --dry-run # preview
crucible merge lab-sharedThis copies the other crucible's sources, articles and bibliography
entries into this one and syncs. It refuses a crucible whose sources or
bibliography entries repeat a cite key; run crucible lint there and fix them first.