Foundry
A Markdown-first CMS written in Go with themes, plugins, and an integrated admin UI
What XERJ indexed
Snapshot
Only docs/themes, internal/admin/service, internal/admin/types, internal/admin/ui, internal/commands/theme, internal/renderer, internal/server, internal/theme, themes/admin-themes/default/assets/admin/views at commit 59badff8e8 (2026-09-29). main is 16 commits ahead.
Selected work

“make security validation remediation actionable”. 15 files, 1,659 lines in internal/theme, internal/commands, internal/admin.
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-13. 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
cmscontent-management-systemmarkdownwordpress
Example questions
- How does Foundry implement cms?
- Where does Foundry handle “make security validation remediation actionable”?
- What does internal/theme do in Foundry?
Inside the indexed corpus
- 638 files, 18.2 MB in total, about 29.2 KB per file.
- The selected commit changed 15 of those files (2.4%).
- Languages by size: Go 68%, JavaScript 21%, HTML 5.6%, CSS 5.1%, Dockerfile 0.1%.
- On GitHub since 2026-03-06, last push 2026-10-21, 248 commits on main.
- The pin is 16 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported AGPL-3.0 for sphireinc/Foundry on 2026-10-31, and the LICENSE file at commit 59badff8e8 was reviewed as AGPL-3.0. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Juan Sanchez (@nsa-yoda) has 1 selected repository on the hub.
Using XERJ with Foundry
- Ask questions about a GitHub repo without cloning it
- Index a reference library for a coding agent
- ripgrep vs a code index for coding agents: 30 tasks
- Best MCP servers for local code search in 2026, compared
The prompt
Paste it into your AI agent. It clones sphireinc/Foundry at the pinned commit and indexes it on your machine.
Search the GitHub repository sphireinc/Foundry with XERJ (https://hub.xerj.org/corpus/sphireinc--foundry). 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/sphireinc/Foundry Foundry && git -C Foundry checkout 59badff8e8753f5556f69f244a55c0bf076cd7bc 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./Foundry --url http://127.0.0.1:9200 --prefix foundry --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: AGPL-3.0. Read it for the approach only, do not copy code.
Related
Juan SanchezWriting and copy corporaapi-blueprinttexioozark-wayfinderadammuizweb/jyavanidarksns/beamfklavyenet/webblocks-cms
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.