clad

clad -- automatic differentiation for C/C++

A new way for AI to search for data
View on GitHub
427GitHub stars
2,289commits on master
224forks
v2.5latest release, 2026-09-28

C++ 59.8%, C 34.5%, Cuda 3.6%, CMake 1.4% · created 2014-02-21 · last push 2026-10-31

What XERJ indexed

Snapshot

641 files · 5.2 MB

Only benchmark, include/clad/Differentiator, lib/Differentiator, test/Analyses, test/Gradient, test/Regressions at commit 6493bba139 (2026-10-14). master is 136 commits ahead.

Selected work

Vedant Goyal
@Vedant2005goyal

“Fix adjoint shape for objects”. 8 files, 255 lines in lib/Differentiator, test, include.

Also selected on this repository: @leetcodez (1fe56cde6d60), @ShresthSamyak (6de514f46318).

Licence

The repository

NOASSERTION

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

Approach only

The author agreed by email on 2026-10-15. 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

clang-compilerdifferentiationgradientderivative-functionsllvm

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported LGPL-3.0 for vgvassilev/clad on 2026-10-31, but the LICENSE file at commit 6493bba139 was reviewed as NOASSERTION. The corpus is the pinned commit, so answers from it follow NOASSERTION.

Contributors

Vedant Goyal (@Vedant2005goyal) has 1 selected repository on the hub.

utsav (@leetcodez) was also selected on vgvassilev/clad and has 1 selected repository on the hub.

ShresthSamyak (@ShresthSamyak) was also selected on vgvassilev/clad and has 1 selected repository on the hub.

Using XERJ with clad

The prompt

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

Search the GitHub repository vgvassilev/clad with XERJ (https://hub.xerj.org/corpus/vgvassilev--clad).
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/vgvassilev/clad clad && git -C clad checkout 6493bba139dea1417efe8a05eb144c57a983a632
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./clad --url http://127.0.0.1:9200 --prefix clad --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: check the LICENSE file. Read it for the approach only, do not copy code.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.