Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

cognee

skill · topoteretes/cogneeApache-2.0 licenceAudited 30 Sep 2026 · source d3d09ecddf62

★ 31,230pushed today
✕BLOCKGrade F · 46/100 · 25 findings · d3d09ec
31,230repo stars · whole topoteretes/cognee

Is it safe? No — BLOCK, grade F (46/100). We read this skill's source at commit d3d09ecddf62 and observed filesystem, network and shell access and a hard-coded secret (see the findings). The audit raised 25 findings, 3 critical or high. What it does: Use this skill whenever the user asks about Cognee, AI memory, persistent agent memory, self-improving agents, agents learning from feedback, knowledge graphs, graph-based RAG, long-term memory for agents, short-term…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “cognee (topoteretes/cognee)”. Retrieved 30 Sep 2026. https://modelsatlas.com/skills/topoteretes/cognee

Blocked. The page stays public so you can check this skill if someone recommended it to you. The audit found 3 critical or high findings, starting with “Code injection” in shared/graph_model_utils.py:79. Do not install it without reading them.

Trust audit

Audit 0.4.1 · source read 30 Sep 2026

Trust score46/100✕BLOCK F
0 critical3 high18 medium22 low0 info

BLOCK means the audit found something that could harm you or your machine. Grade F is shared by 129 of 18,389 audited skills.

What the source does

  • FilesystemDeclared6 observations
  • NetworkDeclared7 observations
  • ShellDeclared10 observations
  • DependenciesPinnedNothing floats
  • SecretsFoundSee the findings; values are never shown

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityWARN6
L1 Static sourceSecrets, path traversal, supply chain, hidden codeFAIL19
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (25)

HIGHCode injectioncode.eval_exec · shared/graph_model_utils.py:79
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
exec(result, mod.__dict__)  # noqa: S102 - runs the generated model module source on purpose
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHHard-coded secretssecret.db_uri · api/v1/tools/tools.py:7
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1
connection_string="…",
Why
No further detail recorded for this rule.
Fix
—
HIGHHard-coded secretssecret.db_uri · tasks/ingestion/resolve_dlt_sources.py:128
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1
# like postgresql://…@host/db -- the form .env.template itself uses --
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInventory / provenanceinv.binary · eval_framework/beam/report_artifacts/100k_fixed/beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run0.json.gz
F-13 Inventory / provenanceCWE-1104Layer L0
beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run0.json.gz
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
MEDIUMInventory / provenanceinv.binary · eval_framework/beam/report_artifacts/100k_fixed/beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run1.json.gz
F-13 Inventory / provenanceCWE-1104Layer L0
beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run1.json.gz
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
MEDIUMInventory / provenanceinv.binary · eval_framework/beam/report_artifacts/100k_fixed/beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run2.json.gz
F-13 Inventory / provenanceCWE-1104Layer L0
beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run2.json.gz
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
MEDIUMInventory / provenanceinv.binary · eval_framework/beam/report_artifacts/100k_fixed/beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run3.json.gz
F-13 Inventory / provenanceCWE-1104Layer L0
beam_existing_ingestion_metrics_conv1_hybrid_completion_20_20_qa_v1_run3.json.gz
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
MEDIUMInventory / provenanceinv.binary · eval_framework/beam/report_artifacts/10m_routed/beam_json_sessions_metrics_conv0_routed_by_question_type_run0.json.gz
F-13 Inventory / provenanceCWE-1104Layer L0
beam_json_sessions_metrics_conv0_routed_by_question_type_run0.json.gz
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
MEDIUMCode injectioncode.dynamic_import · cli/_cognee.py:125
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
module = __import__(module_path, fromlist=[class_name])
Why
No further detail recorded for this rule.
Fix
—
MEDIUMCode injectioncode.dynamic_import · modules/migrations/lockstep.py:79
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
importlib.import_module(entrypoint)
Why
No further detail recorded for this rule.
Fix
—
MEDIUMCode injectioncode.dynamic_import · modules/migrations/lockstep.py:93
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
f"importlib.import_module({entrypoint!r})\n"
Why
No further detail recorded for this rule.
Fix
—
MEDIUMCode injectioncode.dynamic_import · modules/tools/registry.py:44
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
module = importlib.import_module(module_path)
Why
No further detail recorded for this rule.
Fix
—
MEDIUMCode injectioncode.dynamic_import · pipelines/__init__.py:35
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
module = importlib.import_module(_LEGACY_IMPORTS[name])
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInsecure cryptocrypto.weak_random · eval_framework/benchmark_adapters/logistics_system_utils/utils/world_creation_utils.py:391
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return tuple(sorted(modes[: random.randint(1, len(modes))], key=lambda mode: mode.label))
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInformation disclosuredisclose.log_secret · modules/users/get_user_manager.py:47
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.info("…", user.id, token)
Why
No further detail recorded for this rule.
Fix
—
MEDIUMInformation disclosuredisclose.log_secret · modules/users/get_user_manager.py:50
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.info("…", user.id, token)
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · api/v1/ui/ui.py:715
F-04 Network egressCWE-200 · CWE-319Layer L1
f"✓ Cognee MCP server starting on http://127.0.0.1:{mcp_port}/sse ({mode_info})"
Why
No further detail recorded for this rule.
Fix
—
MEDIUMObfuscation / stealthobf.base64_blob · shared/utils.py:467
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
logo_url = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAw8AAAHnCAYAAAD+VGEQAACAAElEQVR4Xuy9B5gsR3X2fyWRMTkbYzCO2MbYBozDB7ZxBoMNNjhgw/+zH38gsHK6ygFlCSQhoYgiSCgghBKSkAhKKCeUkJCEEtLqXkk3zPak3dn691s13d
Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · tests/unit/modules/tools/test_tools_config.py:32
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1
'{"…": {"…": "…",'
Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · tests/test_feedback_weights_memify_pipeline.py:122
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1
password="…",
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · infrastructure/files/utils/get_file_content_hash.py:19
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
h = hashlib.md5()
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · infrastructure/loaders/external/dlt_csv_loader.py:103
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
"dlt_manifest_" + hashlib.md5(manifest_text.encode()).hexdigest() + ".txt"
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · modules/ingestion/data_types/TextData.py:46
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
hash_contents = hashlib.md5(data_contents).hexdigest()
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · modules/ingestion/save_data_to_file.py:78
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
hash_contents = hashlib.md5(data_contents).hexdigest()
Why
No further detail recorded for this rule.
Fix
—

Audit 0.4.1 · source sha d3d09ecddf62 · 30 Sep 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • Publishertopoteretes GitHub organizationOwner of the repository this skill is read from
  • Source foldertopoteretes/cognee/cogneeThe exact folder we audited
  • LicenceApache-2.0As the repository states it
  • Commit pinned for this verdictd3d09ecddf62A new audit runs when the source changes
  • Repository statusNot archivedPushed today
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: Use this skill whenever the user asks about Cognee, AI memory, persistent agent memory, self-improving agents, agents learning from feedback, knowledge graphs, graph-based RAG, long-term memory for agents, short-term…

---
name: cognee
description: >
  Use this skill whenever the user asks about Cognee, AI memory, persistent agent memory,
  self-improving agents, agents learning from feedback, knowledge graphs, graph-based RAG,
  long-term memory for agents, short-term memory for agents, personalization, personas,
  temporal search, temporal knowledge graphs, ontology-based extraction, ontology grounding,
  feedback, Cypher search, natural-language graph search, chunk search, RAG search, cross-session memory,
  session feedback, feedback loops, session based memory, redis based memory, knowledge promotion.
  Also use when the user describes the workflow such as:
  "turn documents into a knowledge graph", "build memory from files", "search my graph",
  "extract entities and relations", "sync data into a graph", "update graph memory",
  "store memories for an agent", "help my agent learn over time", "visualize a knowledge
  graph built from documents", "let the agent learn", "adaptive agents", "personalized agents",
  "session based personalization", "find important ontologies", "find custom pydantic models",
  "isolate agentic behaviour", "add permission control to retrieval", "reduce context bloating".
---

# Cognee

Use this skill for **Cognee-specific Python API help** and for mapping user goals to the right
Cognee workflow.

## When to apply this skill

Apply this skill whenever the user wants to do any of the following with Cognee:

- ingest text, files, URLs, repos, or datasets
- build or rebuild a knowledge graph
- search documents, chunks, summaries, triplets, or graph context
- choose a `SearchType`
- enrich an existing graph with `improve`
- define custom graph extraction models or `DataPoint` types
- run custom task pipelines
- configure LLM, graph DB, vector DB, or storage settings
- tag and scope memory with `node_set` / NodeSets
- build persistent memory for agents across sessions
- create feedback loops or self-improving agent workflows
- work with temporal extraction, ontologies, Cypher, or natural-language graph queries
- manage datasets, sessions, feedback, deletion, updates, or visualization

If the user's intent is "store information in memory and query it later", prefer Cognee's
memory API: **remember -> recall** (plus **improve** to enrich and **forget** to delete).

## Core workflow

```python
import cognee

# Store: ingest + build the graph (+ improve, because self_improvement=True by default)
await cognee.remember(
    "Your text, file path, URL, or list of inputs",
    dataset_name="main",
)

# Query: recall picks a search strategy automatically (rule-based, no LLM call)
results = await cognee.recall("What are the key insights?", datasets=["main"])
for r in results:
    print(r.source, r)  # each result is tagged "graph" / "session" / ...
```

`remember()` runs `add()` + `cognify()` and then `improve()` underneath. `recall()` wraps
`search()` and adds routing, session memory as a source, and `source`-tagged results.

## Default guidance

When helping with Cognee:

1. Start with the **simplest working path** unless the user explicitly asks for advanced
   configuration.
2. Prefer the memory API:
   - `remember(...)` to store (ingest + graph build)
   - `recall(...)` to query
   - `improve(...)` to enrich or index an existing graph, and to bridge sessions into it
   - `forget(...)` to delete
3. Treat Cognee APIs as **async**.
4. Use `dataset_name` / `datasets` to keep work organized when the user has multiple sources.
5. Use `node_set` when the user wants lightweight tagging, project scoping, per-user memory
   buckets, or subgraph filtering.
6. Pass `query_type=SearchType.X` to `recall()` only when the user needs a specific strategy;
   otherwise let it route.
7. Recommend advanced features only when they match the task:
   - `session_id` for fast short-term memory and conversation continuity
   - `graph_model=` for schema-shaped extraction, `DataPoint` types for direct insertion
   - `extractor="gliner_demo"` for LLM-free graph extraction
   - custom pipelines for non-default task orchestration
   - feedback loops for retrieval improvement
   - visualization tools for graph inspection

## When to drop to the low-level operations

`add()`, `cognify()`, `search()` and `memify()` still ship; the memory API calls them. Reach for
them only when `remember`/`recall` cannot express the job:

- `cognify(datasets=["a", "b"])` or `datasets=None` processes several datasets at once;
  `remember()` always targets exactly one dataset.
- Rebuilding a graph over data already in the DB (after `forget(memory_only=True)`, or with a
  new `graph_model` / ontology) is `cognify()` only; `remember()` always runs `add()` first.
- `search()` takes the agentic extras as first-class parameters (`skills`, `tools`, `max_iter`,
  `code_query`, `node_type`) and returns raw `SearchResult` objects instead of tagged dicts.
- `add()` is a staging area: use it to ingest now and `cognify()` later.
- `prune.prune_system(metadata=True)` also drops the relational DB (users, ACLs, dataset
  registry); `forget()` never touches those. Use prune only for full test teardown.

`memify()` and `improve()` are the same enrichment pipeline; recommend `improve()`.
`cognee.delete()` is deprecated in favour of `forget()`. Full comparison of the two query
functions: `docs/recall-vs-search.md`.

## Common tasks

### Store data

`remember()` accepts text, file paths, URLs, directories, git repository URLs, binary streams,
or lists of these.

```python
await cognee.remember("notes.md", dataset_name="research")
await cognee.remember("https://example.com", dataset_name="research")
await cognee.remember(["paper.pdf", "summary.txt"], dataset_name="research")
```

Use `node_set` when the user wants data grouped into logical memory buckets.

```python
await cognee.remember(
    "Customer prefers concise weekly summaries and Slack delivery.",
    dataset_name="customer_success",
    node_set=["preferences", "customer_123", "weekly_reports"],

Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit d3d09ec

pip install "cognee[eval]"
uv run python -m cognee.eval_framework.beam.preprocessing.preprocess \
uv run python -m cognee.eval_framework.beam.local_ingest \
uv run python -m cognee.eval_framework.beam.eval.run_sweep \
uv run python -m cognee.eval_framework.beam.eval.aggregate_cross_run \
uv sync --dev --all-extras

Commands as the repository documents them: shown, never run by us. Our verdict covers commit d3d09ecddf62 only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
CursorMentioned in its text, not testedSkills for Cursor · About Cursor
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✕BLOCK F 46 / 100

    first audit · source d3d09ecddf62

README badge

For maintainers · shows the latest audit

ModelsAtlas: BLOCK FMODELSATLASBLOCK · F
[![ModelsAtlas: BLOCK F](https://modelsatlas.com/skills/topoteretes/cognee/badge.svg)](https://modelsatlas.com/skills/topoteretes/cognee/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Similar skills

Add this badge to your README

[![ModelsAtlas: BLOCK F](https://modelsatlas.com/skills/topoteretes/cognee/badge.svg)](https://modelsatlas.com/skills/topoteretes/cognee/)

Questions about cognee

What does the cognee skill do?
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
Is cognee safe to install?
No — not without reading the findings first. The audit graded it F (46/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What can cognee access on my machine?
The audit observed that it reaches the network, runs shell commands and reads or writes files. Each of those is consistent with what it says it does. Secrets in the source: found — see the findings.
Which assistants does cognee work with?
Its documentation mentions cursor. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (d3d09ecddf62), read on 2026-09-30. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.