ContextQuant
MCP proxy that shrinks JSON tool results for AI agents (85-90% fewer tokens), declares every cut, and gives the agent a tool to fetch the…
What XERJ indexed
Selected work

“Add MCP proxy to shrink tool results and declare cuts”. 9 files, 617 lines in src, test, the project root.
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-11-08. 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
ai-agentsbunclaudecontext-engineeringllmmcpmodel-context-protocoltoken-optimization
Example questions
- How does ContextQuant implement ai-agents?
- Where does ContextQuant handle “Add MCP proxy to shrink tool results and declare cuts”?
- Show the bun code in ContextQuant.
The prompt
Paste it into your AI agent. It clones khankaif/ContextQuant at the pinned commit and indexes it on your machine.
Search the GitHub repository khankaif/ContextQuant with XERJ (https://hub.xerj.org/corpus/khankaif--contextquant). 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/khankaif/ContextQuant ContextQuant && git -C ContextQuant checkout b0743653a836a61c76cf0bc5f987c27a990d77d2 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./ContextQuant --url http://127.0.0.1:9200 --prefix contextquant --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
Kaif KhanAI, prompts and agents corporaxobotyi--cc-foundry-javascriptxobotyi--cc-foundry-clixobotyi--cc-foundry-the-workflow-handoffrodaddy/mcp2cliTensorix/metahub-coredappros/ethora-mcp-server
Selected work and consent: the XERJ registry.