FARM - Filesystem As Remote Memory
为 AI Agent 设计的持久化记忆系统。让 Agent 能够跨会话记住重要信息,并通过语义搜索快速检索。
核心功能
- 记忆存储: 保存对话摘要、用户偏好、学习到的知识
- 多模式搜索: 支持语义搜索、全文搜索、混合搜索
- 多接口: MCP Server (Claude)、REST API、CLI
技术栈
- 向量搜索: DuckDB + VSS 扩展 (HNSW 索引)
- Embedding:
BAAI/bge-small-zh-v1.5(中文优化) - 全文搜索: 关键词匹配
快速开始
# 安装
pip install farm-memory
# 或
uv add farm-memory
# 初始化存储
farm init
# 添加记忆
farm add "用户偏好 Vue 框架" --tag preference
# 搜索记忆
farm search "前端框架" --mode semantic
farm search "Vue" --mode text
farm search "前端" --mode hybrid
# 启动 API 服务
farm serve
Claude 集成
添加到 Claude 配置 (~/.claude.json):
{
"mcpServers": {
"farm": {
"command": "uvx",
"args": ["farm-memory", "mcp"]
}
}
}
文档
License
MIT
Metadata
Release files for farm-memory 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| farm_memory-0.1.2.tar.gz | 177.6 kB | With provenance | Details for farm_memory-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| farm_memory-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for farm_memory-0.1.2-py3-none-any.whl |
Total release size: 194.7 kB
Release files / farm_memory-0.1.2.tar.gz
| Download URL | farm_memory-0.1.2.tar.gz |
|---|---|
| Size | 177.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c267e8cc20c180154f0a6f16bc75ce27a33d32c316da2895c70fa1ae2ff48eed
|
|
BLAKE2b-256 checksum How to use checksums |
32e177b1c43ee0dac1f485b3bfee1f8db4b73b117369bf8135c4a0caf47ccae8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 17, 2026.
Transparency logRelease files / farm_memory-0.1.2-py3-none-any.whl
| Download URL | farm_memory-0.1.2-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
468ca98a36a62b206fba629275396c56c463eb770b369dea30e40ade8c273411
|
|
BLAKE2b-256 checksum How to use checksums |
4dd80d57d4b6a56838b782ca38d5345328f8f83c446d70615c9d07b03aeccf5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 17, 2026.
Transparency logSecurity for farm-memory 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for farm_memory-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.