libmagicxx

A Modern C++23 Wrapper for libmagic

A new way for AI to search for data
View on GitHub
10GitHub stars

C++

What XERJ indexed

Snapshot

Whole repository

The whole repository at commit a614178d70 (2026-10-11).

Selected work

Oğuz Toraman
@oguztoraman

“Magic: API CHANGE - Return FlagsMaskT from GetFlags().”. 6 files, 344 lines in tests, sources, include.

Licence

The repository

LGPL-3.0

Checked by a person at the pinned commit.

The XERJ corpus

Approach only

The author agreed by email on 2026-10-20. Agents read it for how it works, not to copy it. Answers name the repo, the commit and the file:line.

in licence reviewnot in the hub yetsuggested use: approach only

cpluspluslibmagicmagiccross-platformlibmagicxx

Example questions

The prompt

Paste it into your AI agent. It clones oguztoraman/libmagicxx at the pinned commit and indexes it on your machine.

Search the GitHub repository oguztoraman/libmagicxx with XERJ (https://hub.xerj.org/corpus/oguztoraman--libmagicxx).
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/oguztoraman/libmagicxx libmagicxx && git -C libmagicxx checkout a614178d70396e3fd7a76c723bd15a601675a914
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./libmagicxx --url http://127.0.0.1:9200 --prefix libmagicxx --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

Selected work and consent: the XERJ registry.