Masih Moafi
Masih Moafi'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.
Totals across every corpus @MasihMoafi 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 rag-mcp corpus
MasihMoafi/rag-mcp: Local hybrid-search (BM25 + vector + reranking) MCP server: ask questions of any local codebase or document folder, fully offline
- Look up how rag-mcp implements bm25, hybrid-search, local-first, with answers cited to file and line.
- Reuse a worked example: the commit “Expand answer evidence with verified neighbouring chunks” (7 files · Python).
- Answer from rag-mcp's real Python source instead of memory (AI, prompts and agents).
- Where does rag-mcp handle “Expand answer evidence with verified neighbouring chunks”?
- How does rag-mcp implement bm25?
- What does tests do in rag-mcp?
Search the GitHub repository MasihMoafi/rag-mcp with XERJ (https://hub.xerj.org/corpus/masihmoafi--rag-mcp). 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/MasihMoafi/rag-mcp rag-mcp && git -C rag-mcp checkout 16250786dd0e79c4bdcdb05d019f3eb150a44a18 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./rag-mcp --url http://127.0.0.1:9200 --prefix rag-mcp --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 masihmoafi--rag-mcp · AI, prompts and agents
Related corpora: xerj-blogposts, anthropic-cookbook, Oussama-zbir/retrieval-evaluation-lab, jovempedr0/faiss_index
AI search and retrieval with XERJ · Case study: reference coding for agents
Selected work
MasihMoafi/rag-mcp
Local hybrid-search (BM25 + vector + reranking) MCP server: ask questions of any local codebase or document folder, fully offline
The corpus is the whole repository at the pinned commit, not only the files of the selected commit.
Sign in with GitHub or Hugging Face to see more: every selected commit in full (commit date, every folder, licence review state, pin) and the pack builds of each corpus.
[](https://hub.xerj.org/contributors/MasihMoafi)
Included with the author's permission (email, 2026-10-16), 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.