4C
4C: A Comprehensive Multiphysics Simulation Framework
What XERJ indexed
Snapshot
Only src/mat, tests at commit 78b530a231 (2026-09-29). main is 212 commits ahead.
Selected work

“Modify material output in MAT_ConstraintMixture”. 8 files, 2,253 lines in tests, src/mat.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-16. Agents read it for how it works, not to copy it. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: approach only
Example questions
- Where does 4C handle “Modify material output in MAT_ConstraintMixture”?
- What does src/mat do in 4C?
Inside the indexed corpus
- 7,607 files, 539.1 MB in total, about 72.6 KB per file.
- The selected commit changed 8 of those files (0.1%).
- Languages by size: C++ 98.4%, CMake 1%, Python 0.4%, Wolfram Language 0.1%, Shell 0.1%.
- On GitHub since 2024-07-05, last push 2026-10-31, 35,682 commits on main.
- The pin is 212 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported LGPL-3.0 for 4C-multiphysics/4C on 2026-10-31, and the LICENSE file at commit 78b530a231 was reviewed as LGPL-3.0. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Lea Köglmeier (@lkoeglmeier) has 1 selected repository on the hub.
Using XERJ with 4C
- Index a monorepo so your agent stops reading the whole repo The pinned tree has 7,607 files.
- Search an OpenAPI spec so an agent can find endpoints The hub files it under API design and specification.
- Best MCP servers for local code search in 2026, compared
- Best grep alternative for AI coding agents (2026)
The prompt
Paste it into your AI agent. It clones 4C-multiphysics/4C at the pinned commit and indexes it on your machine.
Search the GitHub repository 4C-multiphysics/4C with XERJ (https://hub.xerj.org/corpus/4c-multiphysics--4c). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/4C-multiphysics/4C 4C && git -C 4C checkout 78b530a231c67afe70bcceaa1240ca8dd4f61b0e 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./4C --url http://127.0.0.1:9200 --prefix 4c --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: LGPL-3.0. Read it for the approach only, do not copy code.
Related
Lea KöglmeierAPI design and specification corpora
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.