AgentMemory

Self-hosted memory service for AI agents that work in teams, written in Rust: layered L0→L3 memory, async LLM distillation, hybrid BM25 + vector recall, and department/team/member isolation. SQLite or Postgres, any OpenAI-compatible LLM

A new way for AI to search for data
View on GitHub
39GitHub stars
74commits on main
14forks
v0.5.1latest release, 2026-10-28

Rust 80.4%, TypeScript 16.4%, Shell 2.4%, Python 0.3% · created 2026-10-18 · last push 2026-10-28

What XERJ indexed

Snapshot

Whole repository

The whole repository at commit 9fc15364c4 (2026-10-19). main is 64 commits ahead.

Selected work

William Chang
@hsuanshao

“migrate an install from SQLite to PostgreSQL”. 9 files, 1,482 lines in crates/memory-infrastructure, the project root, crates/memory-server.

Licence

The repository

NONE

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

The XERJ corpus

NONE, with credit

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

aiai-agent-memorydockerpostgresqlrustsqliteclaude-codeclaude-code-plugin

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub did not match the LICENSE file of hsuanshao/AgentMemory to a standard licence on 2026-10-29 (NOASSERTION). At commit 9fc15364c4 it was reviewed as NONE, and that is the licence the corpus uses.

Contributors

William Chang (@hsuanshao) has 4 selected repositories on the hub.

Their other repository pages: hsuanshao/protoc-gen-gofilter, hsuanshao/golibs, hsuanshao/ctx.

Using XERJ with AgentMemory

The prompt

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

Search the GitHub repository hsuanshao/AgentMemory with XERJ (https://hub.xerj.org/corpus/hsuanshao--agentmemory).
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/hsuanshao/AgentMemory AgentMemory && git -C AgentMemory checkout 9fc15364c461b3856738e05ba8a171f3b720ad1e
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./AgentMemory --url http://127.0.0.1:9200 --prefix agentmemory --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. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-29. Selected work and consent: the XERJ registry.