1- # PyAutoLens AI Assistant — Strong Lensing Wiki
1+ # PyAutoMemory wikis — shared schema + usage rules
22
3- This wiki gives a PyAutoLens AI assistant broad scientific context for strong
4- gravitational lensing. It follows Karpathy's "LLM Wiki" pattern: concise,
3+ Every sub- wiki under ` wiki/ ` gives an AI assistant broad scientific context
4+ for one domain. They follow Karpathy's "LLM Wiki" pattern: concise,
55cross-linked pages are read at query time, while canonical citation metadata
6- lives separately in ` ../bibliography/ ` .
6+ lives separately in [ ` ../bibliography/ ` ] ( ../bibliography/README.md ) . This
7+ file defines the schema once; each sub-wiki's own ` CLAUDE.md ` diverges only
8+ on scope.
79
810## Layout
911
1012```
1113PyAutoMemory/ # repo root
12- ├── lensing_wiki / # this folder — the compiled wiki (in git)
14+ ├── wiki / # all sub-wikis (in git)
1315│ ├── CLAUDE.md # this file — schema + usage rules
14- │ ├── index.md # top-level navigation
15- │ ├── log.md # append-only compilation log
16- │ ├── concepts/ # one topic per page — the science
17- │ ├── entities/ # specific surveys, lenses, collaborations, software
18- │ └── sources/ # compact claim support (one paper = one section)
19- └── bibliography/ # canonical BibTeX, aliases, citation instructions
16+ │ └── <domain>/ # one domain per sub-wiki, e.g. lensing/
17+ │ ├── CLAUDE.md # the sub-wiki's scope notes
18+ │ ├── index.md # the sub-wiki's own navigation
19+ │ ├── log.md # append-only compilation log
20+ │ ├── concepts/ # one topic per page — the science
21+ │ ├── entities/ # named things: surveys, instruments, software
22+ │ └── sources/ # compact claim support (one paper = one section)
23+ └── bibliography/ # canonical BibTeX, aliases, citation tooling
2024```
2125
2226Papers are the ground truth; wiki pages are syntheses. If they disagree, update
23- the wiki and note the change in ` log.md ` .
27+ the wiki and note the change in the sub-wiki's ` log.md ` .
2428
2529## References and citation metadata
2630
2731- ` sources/*.md ` records compact guidance about what claims a paper supports.
2832- ` ../bibliography/pyautomemory.bib ` records canonical metadata and keys.
2933- ` ../bibliography/bibkey_aliases.yaml ` maps known alternate keys to canonical keys.
3034
31- Never record local PDF paths or fabricate metadata. A canonical key is local to
32- PyAutoMemory: resolve it against a target project's ` .bib ` before patching LaTeX.
33- See [ ` ../bibliography/README.md ` ] ( ../bibliography/README.md ) for the workflow.
35+ Never record local PDF paths or fabricate metadata — source PDFs live
36+ off-repo. A canonical key is local to PyAutoMemory: resolve it against a
37+ target project's ` .bib ` before patching LaTeX. See
38+ [ ` ../bibliography/README.md ` ] ( ../bibliography/README.md ) for the workflow.
3439
3540## Page types
3641
@@ -87,8 +92,8 @@ One paragraph an assistant can quote back to a user.
8792## What it is
8893The physics / definition.
8994
90- ## Why it matters for PyAutoLens
91- How this concept shows up in lens-modeling decisions a PyAutoLens user makes .
95+ ## Why it matters
96+ How this concept shows up in the decisions the domain's software users make .
9297
9398## Key results from the literature
9499Bullet list. Each bullet ends with `([[author-year-stub]])` so the LLM can
@@ -102,7 +107,7 @@ follow the link to the per-paper section.
102107## Entity page structure
103108
104109Same idea but the headings are "What it is / Key facts / Papers / See also".
105- Use entity pages for: surveys (SLACS, BELLS, H0liCOW), specific lenses
110+ Use entity pages for: surveys (SLACS, BELLS, H0liCOW), specific objects
106111(Abell 1201, the Cosmic Horseshoe), software (PyAutoLens, lenstronomy),
107112collaborations (TDCOSMO, Space Warps).
108113
@@ -134,27 +139,17 @@ Papers covering this topic. Each paper has its own H2 section; cross-link with
134139Keep entries short: normally 2–5 support bullets and no long prose. Do not copy
135140abstracts or infer claims from filenames. Add a TODO when support is unverified.
136141
137- ## How the assistant should use this wiki
142+ ## How the assistant should use a wiki
138143
139- 1 . On a user question, first open ` index.md ` .
144+ 1 . On a user question, first open the sub-wiki's ` index.md ` .
1401452 . Follow the relevant ` concepts/ ` or ` entities/ ` page.
1411463 . Follow the source entry for claim scope and its canonical key for metadata.
1421474 . Resolve that key against downstream ` .bib ` files before changing LaTeX.
1431485 . If support or metadata is unclear, read the public paper and add a TODO
144149 rather than guessing. Log verified upgrades.
145150
146- ## Scope
151+ ## Adding a sub-wiki
147152
148- In-scope folders for the current wiki build:
149-
150- - ` Strong_Lens/ ` — primary
151- - ` Substructure/ `
152- - ` StrongLensCluster/ `
153- - ` Dark_Matter_Detection/ `
154- - ` DarkMatterModels/ `
155-
156- Other folders (` WeakLensing/ ` , ` Ellipticals/ ` , ` Deep Learning/ ` , etc.)
157- contain papers that touch lensing tangentially but are out of scope until
158- explicitly added — see ` log.md ` for the decision.
159-
160- This is the ** lensing** sub-wiki. Sibling domain wikis inherit this schema.
153+ Create ` wiki/<domain>/ ` with its own ` CLAUDE.md ` (scope notes only — this
154+ schema is inherited, not copied), ` index.md ` , ` log.md ` , and the three page
155+ folders. Give it a row in the repo-root ` index.md ` and ` README.md ` tables.
0 commit comments