zhr

zhr

Corpus Hub contributor since 2026-11-02

zhr's work was selected for the XERJ Corpus Hub, the open reference memory AI coding agents search before they write code. When an agent meets the same problem, it gets this implementation back as a worked example, with the author and the repository attached.

5corpora
1selected commit
16files
736lines
★ 6GitHub stars on repos

Totals across every corpus @attnstack appears in; a commit selected for two corpora counts once. Files and lines count the selected commits; each corpus indexes the whole repository at its pinned commit.

What an agent can do with the tokencut corpus

attnstack/tokencut: A local proxy that shrinks LLM prompts before they hit the model. OpenAI-compatible, JSON stays valid JSON, one Go binary, zero deps

Example questions
Paste it into your AI agent. It clones the repo at the pinned commit and indexes it on your machine.
Search the GitHub repository attnstack/tokencut with XERJ (https://hub.xerj.org/corpus/attnstack--tokencut).
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/attnstack/tokencut tokencut && git -C tokencut checkout d5d22305018639895b6621d3d08814f5cf29171e
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./tokencut --url http://127.0.0.1:9200 --prefix tokencut --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.

corpus attnstack--tokencut · AI, prompts and agents
Related corpora: prompt-engineering-guide, promptify, headroomlabs-ai/headroom, matiasinsaurralde/rimeno
AI search and retrieval with XERJ · Case study: reference coding for agents

Selected work

GitHub ★ 2

attnstack/tokencut

The corpus is the whole repository at the pinned commit, not only the files of the selected commit.

live on the hub · licence clearedcorpus attnstack--tokencutAIMITagentapi-proxycompressioncontext-compressiongolangllm agreed 2026-11-06
GitHub ★ 1

attnstack/codegraph

The corpus is the whole repository at the pinned commit, not only the files of the selected commit.

live on the hub · licence clearedcorpus attnstack--codegraphAPIMITclicode-analysiscode-searchdeveloper-toolsimpact-analysisknowledge-graph agreed 2026-11-06
GitHub ★ 1

attnstack/docforge

62de89c5e8 benchmark: 真实公文集 v0.1-rc + OCR Windows 原生验证 + 真实数据驱动的引擎改进
selected commit: 16 files · 736 lines · Python · benchmark, docforge, tests

The corpus is the whole repository at the pinned commit, not only the files of the selected commit.

live on the hub · licence clearedcorpus attnstack--docforgeAIMITbenchmarkchinese-nlpdocument-parsingllmocrpaddleocr agreed 2026-11-02
GitHub ★ 1

attnstack/omni-route

The corpus is the whole repository at the pinned commit, not only the files of the selected commit.

live on the hub · licence clearedcorpus attnstack--omni-routeAIMITanthropiccascadingcost-optimizationgollmllm-gateway agreed 2026-11-06
GitHub ★ 1

attnstack/zh-skills

The corpus is the whole repository at the pinned commit, not only the files of the selected commit.

live on the hub · licence clearedcorpus attnstack--zh-skillsAIMITagent-skillsai-agentsbm25chinese-nlpclaude-codecli agreed 2026-11-06
XERJ Corpus Hub contributor badge
[![XERJ Corpus Hub contributor](https://hub.xerj.org/contributors/attnstack/badge.svg)](https://hub.xerj.org/contributors/attnstack)

Included with the author's permission (email, 2026-11-02), under each repository's own licence, with attribution. Own more repositories? Sign in with GitHub and add them. Want something removed? Reply to the email, withdraw it on /add, or open an issue on xerj-org/xerj.