# agent-memory-client - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 agent-memory-client 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0002` supported 0.86

## 它能做什么

- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`AGENTS.md`, `README.md` Claim：`clm_0001` supported 0.86

## 怎么开始

- `pip install uv` 证据：`README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86
- `pip install agent-memory-client` 证据：`README.md` Claim：`clm_0004` supported 0.86, `clm_0005` supported 0.86
- `pip install agent-memory-client langchain-core` 证据：`README.md` Claim：`clm_0005` supported 0.86
- `pip install uv               # Install uv (once)` 证据：`AGENTS.md` Claim：`clm_0006` supported 0.86

## 继续前判断卡

- **当前建议**：需要管理员/安全审批
- **为什么**：继续前可能涉及密钥、账号、外部服务或敏感上下文，建议先经过管理员或安全审批。

### 30 秒判断

- **现在怎么做**：需要管理员/安全审批
- **最小安全下一步**：先跑 Prompt Preview；若涉及凭证或企业环境，先审批再试装
- **先别相信**：角色质量和任务匹配不能直接相信。
- **继续会触碰**：角色选择偏差、命令执行、宿主 AI 配置

### 现在可以相信

- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`AGENTS.md`, `README.md` Claim：`clm_0001` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86

### 现在还不能相信

- **角色质量和任务匹配不能直接相信。**（unverified）：角色库证明有很多角色，不证明每个角色都适合你的具体任务，也不证明角色能产生高质量结果。
- **不能把角色文案当成真实执行能力。**（unverified）：安装前只能判断角色描述和任务画像是否匹配，不能证明它能在宿主 AI 里完成任务。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`AGENTS.md`, `CLAUDE.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。

### 继续会触碰什么

- **角色选择偏差**：用户对任务应该由哪个专家角色处理的判断。 原因：选错角色会让 AI 从错误专业视角回答，浪费时间或误导决策。
- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`AGENTS.md`, `README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`, `CLAUDE.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`AGENTS.md`, `README.md`
- **环境变量 / API Key**：项目入口文档明确出现 API key、token、secret 或账号凭证配置。 原因：如果真实安装需要凭证，应先使用测试凭证并经过权限/合规判断。 证据：`.devcontainer/start-services.sh`, `AGENTS.md`, `README.md`, `docs/agent-examples.md` 等
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：先用交互式试用验证任务画像和角色匹配，不要先导入整套角色库。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **不要使用真实生产凭证**：环境变量/API key 一旦进入宿主或工具链，可能产生账号和合规风险。（适用：出现 API、TOKEN、KEY、SECRET 等环境线索时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **保留原始角色选择记录**：如果输出偏题，可以回到任务画像阶段重新选择角色，而不是继续沿着错误角色推进。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **准备撤销测试 API key 或 token**：测试凭证泄露或误用时，可以快速止损。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0007` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`AGENTS.md`, `README.md` Claim：`clm_0008` supported 0.86
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`AGENTS.md`, `README.md` Claim：`clm_0001` supported 0.86

### 上下文规模

- 文件总数：233
- 重要文件覆盖：40/233
- 证据索引条目：80
- 角色 / Skill 条目：47

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 agent-memory-client 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 agent-memory-client 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 agent-memory-client 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```


## 角色 / Skill 索引

- 共索引 47 个角色 / Skill / 项目文档条目。

- **Redis Agent Memory Server Documentation**（project_doc）：Redis Agent Memory Server Documentation 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/README.md`
- **CLAUDE.md - Redis Agent Memory Server Project Context**（project_doc）：CLAUDE.md - Redis Agent Memory Server Project Context 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`AGENTS.md`
- **CLAUDE.md - Redis Agent Memory Server Project Context**（project_doc）：CLAUDE.md - Redis Agent Memory Server Project Context 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CLAUDE.md`
- **Redis Agent Memory Server**（project_doc）：Documentation https://redis.github.io/agent-memory-server/ • GitHub https://github.com/redis/agent-memory-server • Docker https://hub.docker.com/r/redislabs/agent-memory-server 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **Agent Memory Client**（project_doc）：A Python client library for the Agent Memory Server https://github.com/redis-developer/agent-memory-server REST API, providing comprehensive memory management capabilities for AI agents and applications. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`agent-memory-client/README.md`
- **Examples**（project_doc）：This directory contains example implementations showing how to use the Agent Memory Server with the agent memory client SDK. Examples use LangChain's modern create agent API LangGraph-based for agent orchestration. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`examples/README.md`
- **Manual OAuth QA Testing Guide**（project_doc）：This folder contains everything needed to manually test Auth0 authentication with the Redis Memory Server on any machine. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`manual_oauth_qa/README.md`
- **Agent Memory Workbench**（project_doc）：A browser-based demo UI for the Redis Agent Memory Server ../README.md . It provides two interactive views — a Memory Explorer for browsing and managing long-term memories, and a Chat interface that demonstrates memory-augmented conversations using OpenAI. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`workbench/README.md`
- **Agent Memory Client JavaScript/TypeScript**（project_doc）：Agent Memory Client JavaScript/TypeScript 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`agent-memory-client/agent-memory-client-js/README.md`
- **Advanced Memory Vector Database Configuration**（project_doc）：Advanced Memory Vector Database Configuration 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/advanced-memory-vector-db.md`
- **Advanced Topics**（project_doc）：Optimize memory search, tune ranking algorithms, and configure advanced memory vector database features. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/advanced-topics-index.md`
- **Agent Examples**（project_doc）：This section provides comprehensive working examples that demonstrate real-world usage patterns of the Redis Agent Memory Server. Each example showcases different aspects of memory management, from basic conversation storage to advanced memory editing workflows. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/agent-examples.md`
- **API Reference**（project_doc）：Complete reference documentation for all Redis Agent Memory Server interfaces and client SDKs. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api-reference-index.md`
- **REST API Reference**（project_doc）：This documentation is auto-generated from the OpenAPI specification. For interactive docs, run the server and visit /docs . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api.md`
- **Authentication**（project_doc）：The Redis Agent Memory Server supports multiple authentication modes for secure API access. All API endpoints except /v1/health , /docs , and /openapi.json require valid authentication unless disabled for development. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/authentication.md`
- **AWS Bedrock Models**（project_doc）：The Redis Agent Memory Server supports Amazon Bedrock https://aws.amazon.com/bedrock/ for both embedding models and LLM generation models . This allows you to use AWS-native AI models while keeping your data within the AWS ecosystem. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/aws-bedrock.md`
- **Command Line Interface**（project_doc）：The agent-memory-server provides a command-line interface CLI for managing the server and related tasks. You can access the CLI using the agent-memory command assuming the package is installed in a way that makes the script available in your PATH, e.g., via pip install ... . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/cli.md`
- **Configuration**（project_doc）：The Redis Agent Memory Server can be configured via environment variables or YAML configuration files. All settings have sensible defaults for development, but you'll want to customize them for production. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/configuration.md`
- **Contextual Grounding**（project_doc）：Contextual grounding is an advanced feature that ensures extracted memories contain complete, unambiguous information by resolving pronouns, temporal references, and other contextual elements within the full conversation history. This eliminates confusion from vague references like "he," "yesterday," or "that place" in stored memories. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/contextual-grounding.md`
- **Custom Memory Vector Databases**（project_doc）：The Agent Memory Server uses a flexible factory system that allows you to plug in custom memory vector database implementations. By default, the server uses Redis for vector indexing and search over long term memories, but you can override this by providing your own factory function. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/custom-memory-vector-db.md`
- **Developer Guide**（project_doc）：Learn how to integrate memory into your AI applications. This guide covers integration patterns, memory types, extraction strategies, and memory lifecycle management. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/developer-guide-index.md`
- **Development**（project_doc）：Start by creating a virtual environment and installing dependencies with uv: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/development.md`
- **Embedding Providers**（project_doc）：The Redis Agent Memory Server uses LiteLLM for embeddings, enabling support for many embedding providers out of the box. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/embedding-providers.md`
- **Getting Started**（project_doc）：Get up and running with Redis Agent Memory Server. Whether you want a quick 5-minute setup or a comprehensive installation guide, start here. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/getting-started-index.md`
- **Getting Started**（project_doc）：First, you'll need to download this repository. After you've downloaded it, you can install and run the servers. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/getting-started.md`
- **Redis Agent Memory Server**（project_doc）：Give your AI agents persistent memory and context that gets smarter over time. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/index.md`
- **Java SDK**（project_doc）：The Java SDK agent-memory-client-java provides a type-safe client for integrating memory capabilities into JVM-based applications. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/java-sdk.md`
- **LangChain Integration**（project_doc）：The Python SDK agent-memory-client provides a LangChain integration that helps you use the memory server with LangChain applications. This integration automatically converts memory operations into LangChain-compatible tools. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/langchain-integration.md`
- **LLM Providers**（project_doc）：The Redis Agent Memory Server uses LiteLLM https://docs.litellm.ai/ as a unified interface for all LLM operations. This enables support for 100+ LLM providers without code changes—just configure environment variables. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/llm-providers.md`
- **Long-term Memory**（project_doc）：Long-term memory is persistent , cross-session storage designed for knowledge that should be retained and searchable across all interactions. It's the "knowledge base" of facts, preferences, and experiences the agent learns at runtime. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/long-term-memory.md`
- **MCP Server Interface**（project_doc）：Agent Memory Server offers an MCP Model Context Protocol server interface powered by FastMCP, providing tool-based memory management for LLMs and agents: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/mcp.md`
- **Memory Extraction Strategies**（project_doc）：This reference documents the configurable extraction strategies that determine how memories are extracted from conversations during background extraction memory-integration-patterns.md pattern-3-background-extraction-automatic . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/memory-extraction-strategies.md`
- **Memory Integration Patterns**（project_doc）：The most common question developers have is: "How do I actually get memories into and out of my LLM?" Redis Agent Memory Server provides three distinct patterns for integrating memory with your AI applications, each optimized for different use cases and levels of control. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/memory-integration-patterns.md`
- **Memory Lifecycle Management**（project_doc）：Redis Agent Memory Server provides sophisticated memory lifecycle management to prevent unlimited growth and maintain optimal performance. This includes automatic background forgetting processes, memory compaction strategies, and server-controlled cleanup operations. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/memory-lifecycle.md`
- **Operations Guide**（project_doc）：Configure, secure, and deploy your Redis Agent Memory Server in production. This guide covers server configuration, authentication, LLM providers, and infrastructure setup. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/operations-guide-index.md`
- **Python SDK**（project_doc）：The Python SDK provides a simple, async-first interface for integrating memory into your AI applications. It includes client libraries, tool schemas for LLMs, and framework integrations. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/python-sdk-index.md`
- **Python SDK**（project_doc）：The Python SDK agent-memory-client provides the easiest way to integrate memory into your AI applications. It includes high-level abstractions, tool integration for OpenAI and Anthropic, and automatic function call resolution. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/python-sdk.md`
- **Query Optimization**（project_doc）：The Redis Agent Memory Server includes intelligent query optimization that uses configurable language models to improve search accuracy and retrieval quality. This feature automatically refines user queries to better match stored memories using specialized AI models. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/query-optimization.md`
- **Quick Start Guide**（project_doc）：Get up and running with Redis Agent Memory Server in 5 minutes. This guide shows you how to build memory-enabled AI applications using the Python SDK, with REST API examples as backup. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/quick-start.md`
- **Recency Boost**（project_doc）：Recency boost is an intelligent memory ranking system that combines semantic similarity with time-based relevance to surface the most contextually appropriate memories. It ensures that recent and frequently accessed memories are weighted appropriately in search results while maintaining semantic accuracy. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/recency-boost.md`
- **Security Guide: Custom Memory Prompts**（project_doc）：Security Guide: Custom Memory Prompts 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/security-custom-prompts.md`
- **Summary Views**（project_doc）：Summary Views provide configurable, partitioned summaries of long-term memories. They enable applications to generate and cache concise overviews of memory collections, organized by user, namespace, session, or other groupings. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/summary-views.md`
- **TypeScript SDK**（project_doc）：The TypeScript SDK agent-memory-client provides a type-safe client for integrating memory capabilities into Node.js and browser applications. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/typescript-sdk.md`
- **Use Cases and Examples**（project_doc）：Redis Agent Memory Server enables powerful AI applications by providing persistent, searchable memory. Here are real-world use cases and implementation examples across different industries and applications. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/use-cases.md`
- **Working Memory**（project_doc）：Working memory stores the current conversation for a session. It holds messages, tracks context, and automatically summarizes old messages when the conversation gets too long. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/working-memory.md`
- **Auth0 Troubleshooting Guide**（project_doc）：This guide helps you diagnose and fix common Auth0 authentication issues. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`manual_oauth_qa/TROUBLESHOOTING.md`
- **Release Process for Agent Memory Client Java**（project_doc）：Release Process for Agent Memory Client Java 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`agent-memory-client/agent-memory-client-java/RELEASE.md`

## 证据索引

- 共索引 80 条证据。

- **Redis Agent Memory Server Documentation**（documentation）：Redis Agent Memory Server Documentation 证据：`docs/README.md`
- **CLAUDE.md - Redis Agent Memory Server Project Context**（documentation）：CLAUDE.md - Redis Agent Memory Server Project Context 证据：`AGENTS.md`
- **CLAUDE.md - Redis Agent Memory Server Project Context**（documentation）：CLAUDE.md - Redis Agent Memory Server Project Context 证据：`CLAUDE.md`
- **Redis Agent Memory Server**（documentation）：Documentation https://redis.github.io/agent-memory-server/ • GitHub https://github.com/redis/agent-memory-server • Docker https://hub.docker.com/r/redislabs/agent-memory-server 证据：`README.md`
- **Agent Memory Client**（documentation）：A Python client library for the Agent Memory Server https://github.com/redis-developer/agent-memory-server REST API, providing comprehensive memory management capabilities for AI agents and applications. 证据：`agent-memory-client/README.md`
- **Examples**（documentation）：This directory contains example implementations showing how to use the Agent Memory Server with the agent memory client SDK. Examples use LangChain's modern create agent API LangGraph-based for agent orchestration. 证据：`examples/README.md`
- **Manual OAuth QA Testing Guide**（documentation）：This folder contains everything needed to manually test Auth0 authentication with the Redis Memory Server on any machine. 证据：`manual_oauth_qa/README.md`
- **Agent Memory Workbench**（documentation）：A browser-based demo UI for the Redis Agent Memory Server ../README.md . It provides two interactive views — a Memory Explorer for browsing and managing long-term memories, and a Chat interface that demonstrates memory-augmented conversations using OpenAI. 证据：`workbench/README.md`
- **Agent Memory Client JavaScript/TypeScript**（documentation）：Agent Memory Client JavaScript/TypeScript 证据：`agent-memory-client/agent-memory-client-js/README.md`
- **Package**（package_manifest）：{ "name": "agent-memory-workbench", "private": true, "version": "0.1.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", "format": "prettier --write \"src/ / .{ts,tsx,css}\"" }, "dependencies": { "@tanstack/react-query": "^5.56.2", "clsx": "^2.1.1", "lucide-react": "^0.462.0", "openai": "^4.73.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "^6.26.2", "sonner": "^1.5.0", "tailwind-merge": "^2.5.2" }, "devDependencies": { "@eslint/js": "^9.9.0", "@tailwindcss/postcss": "^4.0.0", "@types/node": "^22.5.0", "@types/react": "^18.3.5", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react-swc": "^3.7.… 证据：`workbench/package.json`
- **Package**（package_manifest）：{ "name": "agent-memory-client", "version": "0.3.2", "description": "JavaScript/TypeScript client for the Agent Memory Server REST API", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "files": "dist", "README.md", "LICENSE" , "scripts": { "build": "tsup", "dev": "tsup --watch", "test": "vitest", "test:coverage": "vitest --coverage", "lint": "eslint src --ext .ts", "lint:fix": "eslint src --ext .ts --fix", "format": "prettier --write src/ / .ts", "typecheck": "tsc --noEmit", "prepublishOnly": "npm run build" }, "keywords": "redis", "memory", "age… 证据：`agent-memory-client/agent-memory-client-js/package.json`
- **License**（source_file）：Copyright c 2025 Redis, Inc. Released under the Apache License 2.0: 证据：`LICENSE`
- **License**（source_file）：Copyright c 2025 Redis, Inc. Released under the Apache License 2.0: 证据：`agent-memory-client/LICENSE`
- **Advanced Memory Vector Database Configuration**（documentation）：Advanced Memory Vector Database Configuration 证据：`docs/advanced-memory-vector-db.md`
- **Advanced Topics**（documentation）：Optimize memory search, tune ranking algorithms, and configure advanced memory vector database features. 证据：`docs/advanced-topics-index.md`
- **Agent Examples**（documentation）：This section provides comprehensive working examples that demonstrate real-world usage patterns of the Redis Agent Memory Server. Each example showcases different aspects of memory management, from basic conversation storage to advanced memory editing workflows. 证据：`docs/agent-examples.md`
- **API Reference**（documentation）：Complete reference documentation for all Redis Agent Memory Server interfaces and client SDKs. 证据：`docs/api-reference-index.md`
- **REST API Reference**（documentation）：This documentation is auto-generated from the OpenAPI specification. For interactive docs, run the server and visit /docs . 证据：`docs/api.md`
- **Authentication**（documentation）：The Redis Agent Memory Server supports multiple authentication modes for secure API access. All API endpoints except /v1/health , /docs , and /openapi.json require valid authentication unless disabled for development. 证据：`docs/authentication.md`
- **AWS Bedrock Models**（documentation）：The Redis Agent Memory Server supports Amazon Bedrock https://aws.amazon.com/bedrock/ for both embedding models and LLM generation models . This allows you to use AWS-native AI models while keeping your data within the AWS ecosystem. 证据：`docs/aws-bedrock.md`
- **Command Line Interface**（documentation）：The agent-memory-server provides a command-line interface CLI for managing the server and related tasks. You can access the CLI using the agent-memory command assuming the package is installed in a way that makes the script available in your PATH, e.g., via pip install ... . 证据：`docs/cli.md`
- **Configuration**（documentation）：The Redis Agent Memory Server can be configured via environment variables or YAML configuration files. All settings have sensible defaults for development, but you'll want to customize them for production. 证据：`docs/configuration.md`
- **Contextual Grounding**（documentation）：Contextual grounding is an advanced feature that ensures extracted memories contain complete, unambiguous information by resolving pronouns, temporal references, and other contextual elements within the full conversation history. This eliminates confusion from vague references like "he," "yesterday," or "that place" in stored memories. 证据：`docs/contextual-grounding.md`
- **Custom Memory Vector Databases**（documentation）：The Agent Memory Server uses a flexible factory system that allows you to plug in custom memory vector database implementations. By default, the server uses Redis for vector indexing and search over long term memories, but you can override this by providing your own factory function. 证据：`docs/custom-memory-vector-db.md`
- **Developer Guide**（documentation）：Learn how to integrate memory into your AI applications. This guide covers integration patterns, memory types, extraction strategies, and memory lifecycle management. 证据：`docs/developer-guide-index.md`
- **Development**（documentation）：Start by creating a virtual environment and installing dependencies with uv: 证据：`docs/development.md`
- **Embedding Providers**（documentation）：The Redis Agent Memory Server uses LiteLLM for embeddings, enabling support for many embedding providers out of the box. 证据：`docs/embedding-providers.md`
- **Getting Started**（documentation）：Get up and running with Redis Agent Memory Server. Whether you want a quick 5-minute setup or a comprehensive installation guide, start here. 证据：`docs/getting-started-index.md`
- **Getting Started**（documentation）：First, you'll need to download this repository. After you've downloaded it, you can install and run the servers. 证据：`docs/getting-started.md`
- **Redis Agent Memory Server**（documentation）：Give your AI agents persistent memory and context that gets smarter over time. 证据：`docs/index.md`
- **Java SDK**（documentation）：The Java SDK agent-memory-client-java provides a type-safe client for integrating memory capabilities into JVM-based applications. 证据：`docs/java-sdk.md`
- **LangChain Integration**（documentation）：The Python SDK agent-memory-client provides a LangChain integration that helps you use the memory server with LangChain applications. This integration automatically converts memory operations into LangChain-compatible tools. 证据：`docs/langchain-integration.md`
- **LLM Providers**（documentation）：The Redis Agent Memory Server uses LiteLLM https://docs.litellm.ai/ as a unified interface for all LLM operations. This enables support for 100+ LLM providers without code changes—just configure environment variables. 证据：`docs/llm-providers.md`
- **Long-term Memory**（documentation）：Long-term memory is persistent , cross-session storage designed for knowledge that should be retained and searchable across all interactions. It's the "knowledge base" of facts, preferences, and experiences the agent learns at runtime. 证据：`docs/long-term-memory.md`
- **MCP Server Interface**（documentation）：Agent Memory Server offers an MCP Model Context Protocol server interface powered by FastMCP, providing tool-based memory management for LLMs and agents: 证据：`docs/mcp.md`
- **Memory Extraction Strategies**（documentation）：This reference documents the configurable extraction strategies that determine how memories are extracted from conversations during background extraction memory-integration-patterns.md pattern-3-background-extraction-automatic . 证据：`docs/memory-extraction-strategies.md`
- **Memory Integration Patterns**（documentation）：The most common question developers have is: "How do I actually get memories into and out of my LLM?" Redis Agent Memory Server provides three distinct patterns for integrating memory with your AI applications, each optimized for different use cases and levels of control. 证据：`docs/memory-integration-patterns.md`
- **Memory Lifecycle Management**（documentation）：Redis Agent Memory Server provides sophisticated memory lifecycle management to prevent unlimited growth and maintain optimal performance. This includes automatic background forgetting processes, memory compaction strategies, and server-controlled cleanup operations. 证据：`docs/memory-lifecycle.md`
- **Operations Guide**（documentation）：Configure, secure, and deploy your Redis Agent Memory Server in production. This guide covers server configuration, authentication, LLM providers, and infrastructure setup. 证据：`docs/operations-guide-index.md`
- **Python SDK**（documentation）：The Python SDK provides a simple, async-first interface for integrating memory into your AI applications. It includes client libraries, tool schemas for LLMs, and framework integrations. 证据：`docs/python-sdk-index.md`
- **Python SDK**（documentation）：The Python SDK agent-memory-client provides the easiest way to integrate memory into your AI applications. It includes high-level abstractions, tool integration for OpenAI and Anthropic, and automatic function call resolution. 证据：`docs/python-sdk.md`
- **Query Optimization**（documentation）：The Redis Agent Memory Server includes intelligent query optimization that uses configurable language models to improve search accuracy and retrieval quality. This feature automatically refines user queries to better match stored memories using specialized AI models. 证据：`docs/query-optimization.md`
- **Quick Start Guide**（documentation）：Get up and running with Redis Agent Memory Server in 5 minutes. This guide shows you how to build memory-enabled AI applications using the Python SDK, with REST API examples as backup. 证据：`docs/quick-start.md`
- **Recency Boost**（documentation）：Recency boost is an intelligent memory ranking system that combines semantic similarity with time-based relevance to surface the most contextually appropriate memories. It ensures that recent and frequently accessed memories are weighted appropriately in search results while maintaining semantic accuracy. 证据：`docs/recency-boost.md`
- **Security Guide: Custom Memory Prompts**（documentation）：Security Guide: Custom Memory Prompts 证据：`docs/security-custom-prompts.md`
- **Summary Views**（documentation）：Summary Views provide configurable, partitioned summaries of long-term memories. They enable applications to generate and cache concise overviews of memory collections, organized by user, namespace, session, or other groupings. 证据：`docs/summary-views.md`
- **TypeScript SDK**（documentation）：The TypeScript SDK agent-memory-client provides a type-safe client for integrating memory capabilities into Node.js and browser applications. 证据：`docs/typescript-sdk.md`
- **Use Cases and Examples**（documentation）：Redis Agent Memory Server enables powerful AI applications by providing persistent, searchable memory. Here are real-world use cases and implementation examples across different industries and applications. 证据：`docs/use-cases.md`
- **Working Memory**（documentation）：Working memory stores the current conversation for a session. It holds messages, tracks context, and automatically summarizes old messages when the conversation gets too long. 证据：`docs/working-memory.md`
- **Auth0 Troubleshooting Guide**（documentation）：This guide helps you diagnose and fix common Auth0 authentication issues. 证据：`manual_oauth_qa/TROUBLESHOOTING.md`
- **Release Process for Agent Memory Client Java**（documentation）：Release Process for Agent Memory Client Java 证据：`agent-memory-client/agent-memory-client-java/RELEASE.md`
- **Devcontainer**（structured_config）：{ "name": "Agent Memory Workbench", "dockerComposeFile": "docker-compose.yml", "service": "workspace", "workspaceFolder": "/workspace", "features": { "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": true, "installOhMyZsh": true, "upgradePackages": true } }, "customizations": { "vscode": { "extensions": "ms-python.python", "ms-python.vscode-pylance", "ms-python.black-formatter", "charliermarsh.ruff", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "bradlc.vscode-tailwindcss", "redhat.vscode-yaml", "ms-azuretools.vscode-docker", "ms-vscode.vscode-typescript-next" , "settings": { "python.defaultInterpreterPath": "/usr/local/bin/python", "editor.formatOnSave": true, "editor.… 证据：`.devcontainer/devcontainer.json`
- **Mcp Config**（structured_config）：{ "mcpServers": { "agent-memory": { "command": "uv", "args": "run", "agent-memory", "mcp" , "cwd": "/workspace", "env": { "REDIS URL": "redis://redis:6379", "DISABLE AUTH": "true", "LONG TERM MEMORY": "true" } } } } 证据：`.devcontainer/mcp-config.json`
- **Docker Bake**（structured_config）：{ "group": { "default": { "targets": "aws", "standard" }, "all": { "targets": "aws", "standard", "standalone" } }, "target": { "common": { "context": ".", "platforms": "linux/amd64", "linux/arm64" }, "aws": { "inherits": "common" , "dockerfile": "Dockerfile", "target": "aws", "tags": "redislabs/agent-memory-server-aws:${REDIS AGENT MEMORY AWS VERSION:-latest}" }, "standard": { "inherits": "common" , "dockerfile": "Dockerfile", "target": "standard", "tags": "redislabs/agent-memory-server:${REDIS AGENT MEMORY VERSION:-latest}" }, "standalone": { "inherits": "common" , "dockerfile": "Dockerfile.standalone", "target": "standalone", "tags": "redislabs/agent-memory-server:${REDIS AGENT MEMORY VER… 证据：`docker-bake.json`
- **Tsconfig**（structured_config）：{ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, "lib": "ES2020", "DOM", "DOM.Iterable" , "module": "ESNext", "skipLibCheck": true, "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", "noEmit": true, "jsx": "react-jsx", "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, "baseUrl": ".", "paths": { "@/ ": "./src/ " } }, "include": "src" } 证据：`workbench/tsconfig.json`
- **Tsconfig**（structured_config）：{ "compilerOptions": { "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler", "lib": "ES2022" , "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "declaration": true, "declarationMap": true, "sourceMap": true, "outDir": "./dist", "rootDir": "./src", "resolveJsonModule": true, "isolatedModules": true, "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "exactOptionalPropertyTypes": false, "noUncheckedIndexedAccess": true }, "include": "src/ / " , "exclude": "node modules", "dist", " / .test.ts" } 证据：`agent-memory-client/agent-memory-client-js/tsconfig.json`
- **Install Node.js 22 directly matching working devcontainer**（source_file）：FROM mcr.microsoft.com/devcontainers/python:3.12 证据：`.devcontainer/Dockerfile`
- **Docker Compose**（source_file）：version: '3.8' services: workspace: build: context: . dockerfile: Dockerfile volumes: - ..:/workspace:cached - /var/run/docker.sock:/var/run/docker.sock command: sleep infinity depends on: redis: condition: service healthy environment: - REDIS URL=redis://redis:6379 - DISABLE AUTH=true - LONG TERM MEMORY=true - ENABLE TOPIC EXTRACTION=true - ENABLE NER=true - ENABLE DISCRETE MEMORY EXTRACTION=true - GENERATION MODEL=${GENERATION MODEL:-gpt-4o-mini} - EMBEDDING MODEL=${EMBEDDING MODEL:-text-embedding-3-small} - OPENAI API KEY=${OPENAI API KEY} - VITE MEMORY SERVER URL=http://localhost:8000 ports: - "25173:5173" - "28000:8000" networks: - ams-network redis: image: redis:8 ports: - "26379:6379… 证据：`.devcontainer/docker-compose.yml`
- **Install Python dependencies for the memory server**（source_file）：set -e GREEN='\033 0;32m' YELLOW='\033 1;33m' BLUE='\033 0;34m' NC='\033 0m' echo -e "${BLUE}========================================${NC}" echo -e "${BLUE} Post-Create Setup${NC}" echo -e "${BLUE}========================================${NC}" echo "" Install Python dependencies for the memory server echo -e "${YELLOW}Installing Memory Server dependencies...${NC}" cd /workspace uv sync --all-extras Install Workbench UI dependencies if the project exists if -d "/workspace/workbench" && -f "/workspace/workbench/package.json" ; then echo -e "${YELLOW}Installing Workbench UI dependencies...${NC}" cd /workspace/workbench npm install { echo -e "${YELLOW}Warning: npm install had issues. You may ne… 证据：`.devcontainer/post-create.sh`
- **Create logs directory**（source_file）：set -e export PATH="$HOME/.local/bin:$PATH" RED='\033 0;31m' GREEN='\033 0;32m' YELLOW='\033 1;33m' BLUE='\033 0;34m' NC='\033 0m' echo -e "${BLUE}========================================${NC}" echo -e "${BLUE} Agent Memory Workbench Startup${NC}" echo -e "${BLUE}========================================${NC}" echo "" Create logs directory mkdir -p /tmp/ams-logs Load environment variables from workbench .env if it exists if -f "/workspace/workbench/.env" ; then echo -e "${YELLOW}Loading environment from /workspace/workbench/.env...${NC}" set -a source /workspace/workbench/.env set +a fi if -f "/workspace/.env" ; then echo -e "${YELLOW}Loading environment from /workspace/.env...${NC}" set -a… 证据：`.devcontainer/start-services.sh`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`docs/README.md`, `AGENTS.md`, `CLAUDE.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`docs/README.md`, `AGENTS.md`, `CLAUDE.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **项目概述**：importance `high`
  - source_paths: README.md, pyproject.toml
- **快速开始**：importance `high`
  - source_paths: README.md, docker-compose.yml, Dockerfile
- **社区重点问题**：importance `medium`
  - source_paths: docs/getting-started.md
- **系统架构**：importance `high`
  - source_paths: agent_memory_server/api.py, agent_memory_server/mcp.py, agent_memory_server/working_memory.py, agent_memory_server/long_term_memory.py
- **记忆生命周期**：importance `high`
  - source_paths: agent_memory_server/extraction.py, agent_memory_server/summarization.py, agent_memory_server/memory_strategies.py
- **工作记忆管理**：importance `high`
  - source_paths: agent_memory_server/working_memory.py, agent_memory_server/models.py
- **长期记忆与检索**：importance `high`
  - source_paths: agent_memory_server/long_term_memory.py, agent_memory_server/filters.py
- **搜索能力**：importance `high`
  - source_paths: agent_memory_server/long_term_memory.py, agent_memory_server/memory_vector_db.py, agent_memory_server/llm/embeddings.py

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `cc3a832488ae6faf4c9fe1442143765001a8d980`
- inspected_files: `pyproject.toml`, `Dockerfile`, `README.md`, `docker-compose.yml`, `uv.lock`, `docs/security-custom-prompts.md`, `docs/aws-bedrock.md`, `docs/working-memory.md`, `docs/llm-providers.md`, `docs/advanced-topics-index.md`, `docs/typescript-sdk.md`, `docs/advanced-memory-vector-db.md`, `docs/cli.md`, `docs/agent-examples.md`, `docs/memory-extraction-strategies.md`, `docs/index.md`, `docs/operations-guide-index.md`, `docs/authentication.md`, `docs/api.md`, `docs/python-sdk.md`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 依赖 Docker 环境

- Trigger: 安装/运行入口包含 Docker 命令：docker run -p 8000:8000 -e REDIS_URL=redis://your-redis:6379 -e OPENAI_API_KEY=your-key redislabs/agent-memory-server:latest agent-memory api
- Host AI rule: 标注 Docker 前置条件，并提供非 Docker 路径或失败提示。
- Why it matters: 非工程用户可能没有 Docker，启动成本明显增加。
- Evidence: identity.distribution | github_repo:948774854 | https://github.com/redis/agent-memory-server | docker run -p 8000:8000 -e REDIS_URL=redis://your-redis:6379 -e OPENAI_API_KEY=your-key redislabs/agent-memory-server:latest agent-memory api
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：Switch examples from Redis Stack to Redis 8

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Switch examples from Redis Stack to Redis 8
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_a01992ad9518466a818525b303de01aa | https://github.com/redis/agent-memory-server/issues/287 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 能力判断依赖假设

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: 将假设转成下游验证清单。
- Why it matters: 假设不成立时，用户拿不到承诺的能力。
- Evidence: capability.assumptions | github_repo:948774854 | https://github.com/redis/agent-memory-server | README/documentation is current enough for a first validation pass.
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 维护活跃度未知

- Trigger: 未记录 last_activity_observed。
- Host AI rule: 补 GitHub 最近 commit、release、issue/PR 响应信号。
- Why it matters: 新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。
- Evidence: evidence.maintainer_signals | github_repo:948774854 | https://github.com/redis/agent-memory-server | last_activity_observed missing
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 下游验证发现风险项

- Trigger: no_demo
- Host AI rule: 进入安全/权限治理复核队列。
- Why it matters: 下游已经要求复核，不能在页面中弱化。
- Evidence: downstream_validation.risk_items | github_repo:948774854 | https://github.com/redis/agent-memory-server | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 存在评分风险

- Trigger: no_demo
- Host AI rule: 把风险写入边界卡，并确认是否需要人工复核。
- Why it matters: 风险会影响是否适合普通用户安装。
- Evidence: risks.scoring_risks | github_repo:948774854 | https://github.com/redis/agent-memory-server | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: issue/PR 响应质量未知

- Trigger: issue_or_pr_quality=unknown。
- Host AI rule: 抽样最近 issue/PR，判断是否长期无人处理。
- Why it matters: 用户无法判断遇到问题后是否有人维护。
- Evidence: evidence.maintainer_signals | github_repo:948774854 | https://github.com/redis/agent-memory-server | issue_or_pr_quality=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 发布节奏不明确

- Trigger: release_recency=unknown。
- Host AI rule: 确认最近 release/tag 和 README 安装命令是否一致。
- Why it matters: 安装命令和文档可能落后于代码，用户踩坑概率升高。
- Evidence: evidence.maintainer_signals | github_repo:948774854 | https://github.com/redis/agent-memory-server | release_recency=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
