# @enhanced-cognee/client - Doramagic AI Context Pack

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

## 充分原则

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

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 @enhanced-cognee/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_0003` supported 0.86

## 它能做什么

- **AI Skill / Agent 指令资产库**（可做安装前预览）：项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 证据：`cognee/skill.md` Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md`, `docs/DEPLOYMENT_QUICKSTART.md`, `docs/guides/FRONTEND_QUICKSTART.md` Claim：`clm_0002` supported 0.86

## 怎么开始

- `git clone https://github.com/vincentspereira/Enhanced-Cognee.git` 证据：`README.md` Claim：`clm_0004` supported 0.86
- `pip install -e .` 证据：`README.md` Claim：`clm_0005` supported 0.86, `clm_0006` supported 0.86, `clm_0008` supported 0.86
- `pip install enhanced-cognee-client` 证据：`README.md` Claim：`clm_0006` supported 0.86
- `pip install -r requirements-test.txt` 证据：`README.md` Claim：`clm_0007` supported 0.86
- `pip install -e ".[dev]"` 证据：`README.md` Claim：`clm_0008` supported 0.86
- `pip install pre-commit` 证据：`README.md` Claim：`clm_0009` supported 0.86
- `npx create-next-app@latest enhanced-cognee-dashboard --typescript --tailwind --eslint` 证据：`docs/guides/FRONTEND_QUICKSTART.md` Claim：`clm_0010` unverified 0.25
- `npm install @radix-ui/react-dialog @radix-ui/react-dropdown-menu` 证据：`docs/guides/FRONTEND_QUICKSTART.md` Claim：`clm_0011` unverified 0.25
- `npm install lucide-react` 证据：`docs/guides/FRONTEND_QUICKSTART.md` Claim：`clm_0012` unverified 0.25
- `npx shadcn-ui@latest init` 证据：`docs/guides/FRONTEND_QUICKSTART.md` Claim：`clm_0013` unverified 0.25

## 继续前判断卡

- **当前建议**：先做权限沙盒试用
- **为什么**：项目存在安装命令、宿主配置或本地写入线索，不建议直接进入主力环境，应先在隔离环境试装。

### 30 秒判断

- **现在怎么做**：先做权限沙盒试用
- **最小安全下一步**：先跑 Prompt Preview；若仍要安装，只在隔离环境试装
- **先别相信**：工具权限边界不能在安装前相信。
- **继续会触碰**：命令执行、宿主 AI 配置、本地环境或项目文件

### 现在可以相信

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

### 现在还不能相信

- **工具权限边界不能在安装前相信。**（unverified）：MCP/tool 类项目通常会触碰文件、网络、浏览器或外部 API，必须真实检查权限和日志。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`AGENTS.md`, `CLAUDE.md`, `cognee/skill.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。
- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`README.md`

### 继续会触碰什么

- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`, `docs/DEPLOYMENT_QUICKSTART.md`, `docs/guides/FRONTEND_QUICKSTART.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`, `CLAUDE.md`, `cognee/skill.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`README.md`, `docs/DEPLOYMENT_QUICKSTART.md`, `docs/guides/FRONTEND_QUICKSTART.md`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：用安装前交互式试用判断工作方式是否匹配，不需要授权或改环境。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

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

## 哪些必须安装后验证

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

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0028` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md`, `docs/DEPLOYMENT_QUICKSTART.md`, `docs/guides/FRONTEND_QUICKSTART.md` Claim：`clm_0029` supported 0.86
- **源文档冲突：agent_count**：项目文档中存在数量表述不一致，AI Context Pack 必须提示用户不要把单一数字当作已验证事实。 处理方式：在 Human Manual 和 AI Context Pack 中共同标记为待核实，而不是强行选择一个数字。 证据：`CLAUDE.md`, `docs/development/SDLC_AGENTS_INTEGRATION.md`, `docs/architecture/ENHANCED_COGNEE_STRATEGIC_PLAN.md`, `docs/development/SDLC_AGENTS_INTEGRATION.md` 等 Claim：`clm_0030` supported 0.86, `clm_0033` contradicted 0.20
- **源文件冲突 agent_count**：发现多个值 `10, 20, 21`，应在真实使用前核实。
- **待确认**：真实安装后是否与用户当前宿主 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。

### 任务路由

- **AI Skill / Agent 指令资产库**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`cognee/skill.md` Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md`, `docs/DEPLOYMENT_QUICKSTART.md`, `docs/guides/FRONTEND_QUICKSTART.md` Claim：`clm_0002` supported 0.86

### 上下文规模

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

### 证据不足时的处理

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

## Prompt Recipes

### 适配判断

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

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

### 安装前体验

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

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


## 角色 / Skill 索引

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

- **cognee**（skill）： 激活提示：当用户任务与“cognee”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`cognee/skill.md`

## 证据索引

- 共索引 80 条证据。

- **Enhanced Cognee Documentation**（documentation）：Welcome to the Enhanced Cognee documentation. This section contains comprehensive guides, architecture documentation, and operational procedures. 证据：`docs/README.md`
- **Repository Guidelines**（documentation）：This document summarizes how to work with the cognee repository: how it’s organized, how to build, test, lint, and contribute. It mirrors our actual tooling and CI while providing quick commands for local development. 证据：`docs/legacy/AGENTS.md`
- **Contributing to Enhanced Cognee**（documentation）：Note: Enhanced Cognee is a derivative work of Cognee https://github.com/topoteretes/cognee . Please ensure your contributions align with both the Enhanced Cognee goals and the original Cognee license Apache 2.0 . 证据：`docs/development/CONTRIBUTING.md`
- **Enhanced Cognee Testing Documentation**（documentation）：Enhanced Cognee Testing Documentation 证据：`docs/testing/README.md`
- **Enhanced Cognee Implementation for Codex**（documentation）：Enhanced Cognee Implementation for Codex 证据：`AGENTS.md`
- **Enhanced Cognee Implementation for Claude**（documentation）：Enhanced Cognee Implementation for Claude 证据：`CLAUDE.md`
- **Enhanced Cognee**（documentation）：Enterprise-Grade AI Memory Infrastructure with Multi-Agent Support 证据：`README.md`
- **Enhanced Cognee Executables**（documentation）：This directory contains executable Python scripts for Enhanced Cognee. 证据：`bin/README.md`
- **Enhanced Cognee Cross-Language Clients**（documentation）：Enhanced Cognee Cross-Language Clients 证据：`clients/README.md`
- **Getting Started**（documentation）：This is a Next.js https://nextjs.org/ project bootstrapped with create-next-app https://github.com/vercel/next.js/tree/canary/packages/create-next-app . 证据：`cognee-frontend/README.md`
- **Cognee Starter Kit**（documentation）：Cognee Starter Kit Welcome to the cognee Starter Repo! This repository is designed to help you get started quickly by providing a structured dataset and pre-built data pipelines using cognee to build powerful knowledge graphs. 证据：`cognee-starter-kit/README.md`
- **Enhanced Cognee Configuration**（documentation）：This directory contains all configuration files for Enhanced Cognee. 证据：`config/README.md`
- **Enhanced Cognee Dashboard**（documentation）：Version: 1.0.0 Status: Backend API + Basic Frontend POC Date: 2026-02-06 证据：`dashboard/README.md`
- **QA Evaluation**（documentation）：Repeated runs of QA evaluation on 24-item HotpotQA subset, comparing Mem0, Graphiti, LightRAG, and Cognee multiple retriever configs . Uses Modal for distributed benchmark execution. 证据：`evals/README.md`
- **Enhanced Cognee Examples**（documentation）：End-to-end Python scripts demonstrating the most common Enhanced Cognee workflows. Each script is self-contained and runnable -- copy, edit the agent IDs / queries to fit your case, and you have a working starting point. 证据：`examples/README.md`
- **Third party licenses**（documentation）：This folder contains the licenses of third-party open-source software that has been redistributed in this project. Details of included files and modifications can be found in NOTICE /NOTICE.md . 证据：`licenses/README.md`
- **monitoring/ -- Observability stack files**（documentation）：monitoring/ -- Observability stack files 证据：`monitoring/README.md`
- **Enhanced Cognee Client**（documentation）：Async Python client for the Enhanced Cognee MCP server https://github.com/vincentspereira/Enhanced-Cognee - a production-grade knowledge-graph memory layer with 119 MCP tools. 证据：`sdk_pkg/README.md`
- **Enhanced Cognee Setup Scripts**（documentation）：This directory contains installation and setup scripts for Enhanced Cognee. 证据：`setup/README.md`
- **Enhanced Cognee Testing Suite**（documentation）：Prerequisites - Python 3.9+ - Docker and Docker Compose - PostgreSQL, Qdrant, Neo4j, Redis for testing - pytest and testing dependencies 证据：`testing/README.md`
- **Enhanced Cognee Go Client**（documentation）：Official Go client for the Enhanced Cognee https://github.com/vincentspereira/Enhanced-Cognee MCP HTTP server. 证据：`clients/go/README.md`
- **Enhanced Cognee Node.js Client**（documentation）：Official Node.js / TypeScript client for the Enhanced Cognee https://github.com/vincentspereira/Enhanced-Cognee MCP HTTP server. 证据：`clients/node/README.md`
- **Enhanced Cognee Rust Client**（documentation）：Official Rust client for the Enhanced Cognee https://github.com/vincentspereira/Enhanced-Cognee MCP HTTP server. 证据：`clients/rust/README.md`
- **Coding Agents**（documentation）：The coding agents module provides utilities for extracting developer coding rules and best practices from text and associating them with their original sources in Cognee’s knowledge graph. It uses LLM-powered structured extraction to identify rules from conversations, documentation, or commit messages. 证据：`cognee/tasks/codingagents/README.md`
- **Summarization**（documentation）：The summarization module provides LLM-powered text and code summarization for Cognee's knowledge graph pipeline. It transforms document chunks and source code into structured, searchable summaries. 证据：`cognee/tasks/summarization/README.md`
- **Web Scraper**（documentation）：The web scraper module provides tools for scraping web content and storing structured data in cognee's graph database. It supports two scraping backends: 证据：`cognee/tasks/web_scraper/README.md`
- **Enhanced Cognee Dashboard**（documentation）：Version: 1.0.0 Status: Phase 1 Foundation Complete 证据：`dashboard/nextjs-dashboard/README.md`
- **Enhanced Cognee Helm Chart**（documentation）：Production-grade Kubernetes deployment for Enhanced Cognee with all 4 storage tiers PostgreSQL + Qdrant + Valkey + ArcadeDB + the MCP HTTP server. 证据：`deploy/helm/enhanced-cognee/README.md`
- **Integrating Enhanced Cognee with Multi-Agent System MAS**（documentation）：Integrating Enhanced Cognee with Multi-Agent System MAS 证据：`deploy/integration-with-mas/README.md`
- **Enhanced Cognee VPS Deployment Guide**（documentation）：Enhanced Cognee VPS Deployment Guide 证据：`deploy/vps/README.md`
- **cognee-infra-helm**（documentation）：cognee-infra-helm General infrastructure setup for Cognee on Kubernetes using a Helm chart. 证据：`deployment/helm/README.md`
- **Comparative QA Benchmarks**（documentation）：Independent benchmarks for different QA/RAG systems using HotpotQA dataset. 证据：`evals/old/comparative_eval/README.md`
- **Apache Superset Dashboards**（documentation）：This directory holds the Enhanced Cognee BI / analytical Superset dashboards. The dashboards in here are the non-APM-style charts that the old Grafana dashboard used to host -- the APM-style charts request latency, error rates, RED metrics, flamegraphs now live natively in the SigNoz UI and don't need exports. 证据：`monitoring/superset-dashboards/README.md`
- **LLM Prompt Templates for Enhanced Cognee**（documentation）：LLM Prompt Templates for Enhanced Cognee 证据：`src/llm/prompts/README.md`
- **Package**（package_manifest）：{ "name": "cognee-frontend", "version": "1.0.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@auth0/nextjs-auth0": "^4.13.1", "classnames": "^2.5.1", "culori": "^4.0.1", "d3-force-3d": "^3.0.6", "next": "16.1.1", "react": "^19.2.0", "react-dom": "^19.2.0", "react-force-graph-2d": "^1.27.1", "uuid": "^9.0.1" }, "devDependencies": { "@eslint/eslintrc": "^3", "@tailwindcss/postcss": "^4.1.7", "@types/culori": "^4.0.0", "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", "@types/uuid": "^9.0.8", "eslint": "^9", "eslint-config-next": "^16.0.4", "eslint-config-prettier": "^10.1.5", "ta… 证据：`cognee-frontend/package.json`
- **Contributing to Enhanced Cognee**（documentation）：Welcome! This is the quick-start guide for contributors. The full contributor guide -- coding standards, DCO, dev setup, test conventions -- lives at docs/development/CONTRIBUTING.md docs/development/CONTRIBUTING.md . 证据：`CONTRIBUTING.md`
- **Package**（package_manifest）：{ "name": "@enhanced-cognee/client", "version": "1.0.0", "description": "Official Node.js client for Enhanced Cognee MCP HTTP server", "main": "dist/index.js", "types": "dist/index.d.ts", "type": "module", "scripts": { "build": "tsc", "test": "node --test test/ .test.js", "lint": "eslint src/ / .ts" }, "keywords": "enhanced-cognee", "memory", "mcp", "ai", "knowledge-graph", "vector-search" , "author": "Vincent S. Pereira", "license": "Apache-2.0", "repository": { "type": "git", "url": "https://github.com/vincentspereira/Enhanced-Cognee.git", "directory": "clients/node" }, "engines": { "node": " =18.0.0" }, "devDependencies": { "@types/node": "^20.0.0", "typescript": "^5.0.0" } } 证据：`clients/node/package.json`
- **Cognee**（skill_instruction）：Use this skill for Cognee-specific Python API help and for mapping user goals to the right Cognee workflow. 证据：`cognee/skill.md`
- **Package**（package_manifest）：{ "name": "nextjs-dashboard", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev -p 9050", "build": "next build", "start": "next start -p 9050", "lint": "eslint", "test": "vitest", "test:ui": "vitest --ui", "test:run": "vitest run", "test:e2e": "playwright test", "test:e2e:ui": "playwright test --ui", "test:e2e:debug": "playwright test --debug", "test:e2e:report": "playwright show-report", "test:a11y": "playwright test tests/a11y", "analyze": "ANALYZE=true next build" }, "dependencies": { "@hookform/resolvers": "^5.2.2", "@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-label": "^2.1.8", "@… 证据：`dashboard/nextjs-dashboard/package.json`
- **Translation Task Tests**（documentation）：Unit and integration tests for the multilingual content translation feature. 证据：`cognee/tests/tasks/translation/README.md`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`LICENSE`
- **ArcadeDB Migration Guide**（documentation）：Status: Default graph DB since Phase 2 2026-05-19; STRATEGY.md DR-11 . 证据：`docs/ARCADEDB_MIGRATION.md`
- **Commercialisation & License Compliance Guide**（documentation）：Commercialisation & License Compliance Guide 证据：`docs/COMMERCIALISATION_LICENSE_GUIDE.md`
- **Enhanced Cognee vs Alternatives**（documentation）：A clear-eyed comparison so first-time visitors can decide in under 30 seconds whether Enhanced Cognee fits their use case. 证据：`docs/COMPARE_TO_ALTERNATIVES.md`
- **Enhanced Cognee Deployment Quickstart**（documentation）：Enhanced Cognee Deployment Quickstart 证据：`docs/DEPLOYMENT_QUICKSTART.md`
- **Feature - License Matrix**（documentation）：Purpose: When porting Enhanced Cognee features into a downstream project e.g. Multi-Agent System / MAS or any other commercial product , you need to know which open-source licenses each feature pulls in. This file tags every major feature with its license footprint and a verdict for commercial / closed-source incorporation. Last refreshed: 2026-05-21. Re-run pip-licenses --format=markdown --output-file=docs/pip-licenses.md after any dependency bump. 证据：`docs/FEATURE_LICENSE_MATRIX.md`
- **Enhanced Cognee — Session Handover Brief**（documentation）：Enhanced Cognee — Session Handover Brief 证据：`docs/HANDOVER.md`
- **Enhanced Cognee — License Audit**（documentation）：Comprehensive review of every third-party component shipped with or runtime required by Enhanced Cognee. Goal: zero license risk for self-hosted personal or commercial use, including future monetisation. 证据：`docs/LICENSE_AUDIT.md`
- **Monitoring & Observability**（documentation）：Status: SigNoz + Apache Superset stack since Phase 4 2026-05-19 . 证据：`docs/MONITORING.md`
- **Outstanding Items & Gap Analysis**（documentation）：A frank look at what's still rough or missing in Enhanced Cognee. Originally written 2026-05-18; refreshed 2026-05-21 to mark items that have actually shipped. Categorised by urgency. 证据：`docs/OUTSTANDING_ITEMS.md`
- **Phase 5 / Outstanding Items - TODO**（documentation）：Honest accounting of work that's been mentioned but NOT yet shipped as of 2026-05-20. Each item is grouped with effort estimate, the user problem it solves, and the trigger that should pull it forward. 证据：`docs/PHASE5_TODO.md`
- **Pluggable Database Backends Design**（documentation）：Status 2026-05-20 : ✅ All 5 phases SHIPPED across PRs 19- 31. The full pluggable stack is live -- 13 providers across 4 tiers, factory-dispatched via ENHANCED PROVIDER env vars. See PROFILES.md PROFILES.md for the user-facing matrix and per-adapter caveats. The sections below are preserved as a record of the original design + effort estimate; the implementation matched the plan closely. 证据：`docs/PLUGGABLE_DB_BACKENDS.md`
- **Enhanced Cognee — Production-Readiness Master Plan**（documentation）：Enhanced Cognee — Production-Readiness Master Plan 证据：`docs/PRODUCTION_READINESS_PLAN.md`
- **Deployment Profiles**（documentation）：Status: Phase 3 Apache AGE + lean profile shipped 2026-05-19. Phase 5 quick-win adapters Memgraph / Kuzu / NetworkX-in-memory / Memcached / SQLite shipped 2026-05-20. See "Provider matrix" below for the full set and the "Deferred" section for what's still pending. 证据：`docs/PROFILES.md`
- **Quick Start**（documentation）：Get Enhanced Cognee running locally in under 5 minutes. 证据：`docs/QUICK_START.md`
- **README.md - Proposed Changes**（documentation）：Prepared : 2026-05-13 Status : AWAITING APPROVAL - do not apply until Vincent approves 证据：`docs/README_PROPOSED_CHANGES.md`
- **SDK Publishing Guide**（documentation）：How to publish the three new client SDKs Node / Go / Rust to their respective public registries. The Python SDK is already on PyPI as enhanced-cognee-client . 证据：`docs/SDK_PUBLISHING.md`
- **Secrets Management**（documentation）：Audience: anyone deploying Enhanced Cognee beyond a single developer laptop team deploys, production VPS, SaaS, CI/CD pipelines . Scope: how to keep database credentials, API keys, encryption keys, and TLS certificate material out of source control and out of plain-text shell history. Covers the four levels of secrecy this project recognises. 证据：`docs/SECRETS_MANAGEMENT.md`
- **Enhanced Cognee — Session Summary 2026-05-17 / 2026-05-18**（documentation）：Enhanced Cognee — Session Summary 2026-05-17 / 2026-05-18 证据：`docs/SESSION_SUMMARY_2026-05-18.md`
- **Upstream Sync Runbook**（documentation）：Project : Enhanced Cognee Upstream : topoteretes/cognee https://github.com/topoteretes/cognee Local baseline : see .upstream-sync/last seen release.txt 证据：`docs/UPSTREAM_SYNC_RUNBOOK.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

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

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`docs/README.md`, `docs/legacy/AGENTS.md`, `docs/development/CONTRIBUTING.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`docs/README.md`, `docs/legacy/AGENTS.md`, `docs/development/CONTRIBUTING.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, AGENTS.md, CLAUDE.md, cognee/__init__.py, cognee/version.py
- **核心功能亮点**：importance `high`
  - source_paths: src/mcp_memory_tools.py, src/enhanced_cognee_mcp.py, cognee/modules/memory/__init__.py, cognee/modules/search, cognee/tasks/memify
- **功能对比与选型指南**：importance `medium`
  - source_paths: COGNEE_VS_ENHANCED_MCP_COMPARISON.md, docs/COMPARE_TO_ALTERNATIVES.md, docs/FEATURE_LICENSE_MATRIX.md
- **系统架构总览**：importance `high`
  - source_paths: docs/architecture/ENHANCED_COGNEE_GUIDE.md, docs/architecture/IMPLEMENTATION_GUIDE.md, config/docker/docker-compose-enhanced-cognee.yml, src/db_factory.py, cognee/base_config.py
- **数据库适配器与存储层**：importance `high`
  - source_paths: src/db_adapters, cognee/infrastructure/databases, docs/PLUGGABLE_DB_BACKENDS.md, docs/PROFILES.md, docs/ARCADEDB_MIGRATION.md
- **MCP工具参考手册**：importance `high`
  - source_paths: bin/enhanced_cognee_mcp_server.py, src/enhanced_cognee_mcp.py, docs/mcp/COGNEE_MCP_COMPLETE_GUIDE.md, .kilocode/mcp.json
- **内存管理与生命周期**：importance `high`
  - source_paths: cognee/modules/memory/entries.py, cognee/memify_pipelines, cognee/tasks/memify, src/memory_deduplication.py, src/memory_summarization.py
- **多租户数据分区**：importance `high`
  - source_paths: src/multi_tenant.py, src/multi_tenant, docs/operations/MULTI_TENANT_DESIGN.md, cognee/api/v1, migrations

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

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `9ecf6bdfb5328b70ce486af808eaeeb07c4e09fb`
- inspected_files: `pyproject.toml`, `Dockerfile`, `README.md`, `uv.lock`, `requirements.txt`, `docs/PROFILES.md`, `docs/index.md`, `docs/SDK_PUBLISHING.md`, `docs/PHASE5_TODO.md`, `docs/FEATURE_LICENSE_MATRIX.md`, `docs/STRATEGY.md`, `docs/MONITORING.md`, `docs/UPSTREAM_SYNC_RUNBOOK.md`, `docs/LICENSE_AUDIT.md`, `docs/COMMERCIALISATION_LICENSE_GUIDE.md`, `docs/SECRETS_MANAGEMENT.md`, `docs/README.md`, `docs/COMPARE_TO_ALTERNATIVES.md`, `docs/HANDOVER.md`, `docs/SESSION_SUMMARY_2026-05-18.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: 能力判断依赖假设

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

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

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

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

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

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

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

### Constraint 5: 来源证据：Upstream sync: port v1.1.2 changes

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：Upstream sync: port v1.1.2 changes
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响授权、密钥配置或安全边界。
- Evidence: community_evidence:github | cevd_48ca82308de547e58718132ae98a6390 | https://github.com/vincentspereira/Enhanced-Cognee/issues/67 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

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

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

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

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