higher-kinded-j
Higher-kinded types, monads and composable effects for Java 25: the Effect Path API for railway-style error handling, advanced optics (lens/prism/traversal) with code generation for records and sealed types, compile-time DTO mapping that reports every bad field, and Spring Boot integration
What XERJ indexed
Snapshot
Only .claude/skills/book-authoring/reference, .claude/skills/hkj-optics, hkj-annotations/src/main/java/org/higherkindedj/optics/annotations, hkj-book/src/glossary, hkj-book/src/optics, hkj-book/src/release-history, hkj-book/src/tutorials/optics, hkj-book/theme, hkj-examples/src/main/java/org/higherkinded at commit ac422824b7 (2026-10-22). main is 95 commits ahead.
Selected work

“Give a field a navigator wherever its Focus method focuses on a record”. 36 files, 1,259 lines in hkj-processor, hkj-examples, hkj-annotations.
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-23. Same terms as the repository. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution
higher-kinded-typesjavahigher-kinded-jeffectsfunctional-programmingjava25opticsannotation-processor
Example questions
- How does higher-kinded-j implement higher-kinded-types?
- Where does higher-kinded-j handle “Give a field a navigator wherever its Focus method focuses on a record”?
- What does hkj-processor do in higher-kinded-j?
Inside the indexed corpus
- 3,732 files, 39.5 MB in total, about 10.8 KB per file.
- The selected commit changed 36 of those files (1.0%).
- Languages by size: Java 99.2%, Python 0.4%, CSS 0.2%, JavaScript 0.1%, Handlebars 0.1%.
- On GitHub since 2025-04-04, last push 2026-10-31, 777 commits on main.
- The pin is 95 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported MIT for higher-kinded-j/higher-kinded-j on 2026-10-31, and the LICENSE file at commit ac422824b7 was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Magnus Smith (@MagnusSmith) has 1 selected repository on the hub.
Using XERJ with higher-kinded-j
- Index a monorepo so your agent stops reading the whole repo The pinned tree has 3,732 files.
- Search an OpenAPI spec so an agent can find endpoints The hub files it under API design and specification.
- Ask questions about a GitHub repo without cloning it
- Index a reference library for a coding agent
The prompt
Paste it into your AI agent. It clones higher-kinded-j/higher-kinded-j at the pinned commit and indexes it on your machine.
Search the GitHub repository higher-kinded-j/higher-kinded-j with XERJ (https://hub.xerj.org/corpus/higher-kinded-j--higher-kinded-j). 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/higher-kinded-j/higher-kinded-j higher-kinded-j && git -C higher-kinded-j checkout ac422824b77ef4b0362e78163a81cb35b959cc41 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./higher-kinded-j --url http://127.0.0.1:9200 --prefix higher-kinded-j --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: MIT. Keep the copyright notice and credit the authors.
Related
Magnus SmithAPI design and specification corporakeywhizaeronhivemq-mqtt-clienteschizoid/telescopeteaql/teaql-javaMouhand-Kaddo/smallwright
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.