cognee
Routes Cognee AI memory platform tasks across SDK memory APIs, graph/RAG retrieval, configuration, custom pipelines, session memory, CLI, API, MCP, and deployment workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cognee
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes Cognee AI memory platform tasks across SDK memory APIs, graph/RAG retrieval, configuration, custom pipelines, session memory, CLI, API, MCP, and deployment workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-overview.md2.9 KB
- 参考文档references/repo-provenance.md2.1 KB
- 参考文档references/repo-routing-metadata.json479 B
- 参考文档references/troubleshooting.md2.3 KB
- 脚本scripts/check_install.py3.2 KB
03 SKILL.md 正文
Cognee Repo Skill
Use this skill when the user asks about Cognee, AI memory, persistent agent memory, graph RAG, Cognee SDK/CLI/API/MCP usage, Cognee configuration, custom graph extraction, session memory, or self-hosted Cognee services.
Cognee is a Python package and service stack for ingesting data, building a graph/vector-backed memory layer, and recalling knowledge for agents.
First checks
For a safe installed-package check:
python scripts/check_install.py --help
python scripts/check_install.py --json
Minimal package install:
python -m pip install "cognee"
python - <<'PY'
import cognee
print(cognee.__version__)
print(cognee.SearchType.GRAPH_COMPLETION)
PY
Do not assume provider credentials or optional databases are configured. Most real ingestion/search workflows need an LLM and embedding provider; backend-specific workflows need matching extras and services.
Route map
| User intent | Read |
|---|---|
| Store, build, recall, improve, or delete memory with SDK calls | sub-skills/core-memory/SKILL.md |
Choose SearchType, tune recall/search, handle empty results or invalid query knobs |
sub-skills/search-retrieval/SKILL.md |
| Configure LLMs, embeddings, database/storage backends, optional extras, env vars, and paths | sub-skills/configuration-backends/SKILL.md |
| Define custom graph schemas, custom tasks/pipelines, ontology workflows, memify, migration, export, or visualization | sub-skills/advanced-graphs-pipelines/SKILL.md |
| Use session memory, feedback entries, agent memory decorators, agent identities, or multi-agent isolation | sub-skills/agent-session-memory/SKILL.md |
| Operate Cognee through CLI, FastAPI, MCP, Docker Compose, UI, cloud/local service connection, or push/sync | sub-skills/api-cli-services/SKILL.md |
Shared references
- references/package-overview.md — package identity, public surface, and sub-skill boundaries.
- references/troubleshooting.md — cross-cutting install/import/credential/backend issues.
- references/repo-provenance.md — source snapshot and refresh baseline.
- references/repo-routing-metadata.json — structured router placement used by DisCo repo-skills import tooling.
Operating rules
- Prefer
remember/recallfor memory-shaped user requests; preferadd/cognify/searchfor explicit pipeline control. - Before diagnosing workflow failures, separate three causes: package install, provider credentials, and database/storage backend state.
- Never tell a future agent to open original Cognee docs, examples, notebooks, tests, or scripts. Use the bundled references and scripts in this skill tree.
- Keep real API keys, cloud tokens, local filesystem paths, and service URLs in the user’s runtime configuration, not in copied guidance.
- Treat Docker, MCP, UI, and API servers as long-running services; run only
--help, version, or check scripts unless the user asks to start them. - If a current checkout has changed from the provenance snapshot, refresh this skill before relying on implementation-specific details.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).