cognee-custom-pipelines
Skill31k starsChanged 2 months agoApache-2.0View on GitHub
Use when building your own cognee processing — writing custom tasks, chaining them into a pipeline with run_custom_pipeline or the lightweight run_pipeline (from cognee.pipelines import run_pipeline), storing custom DataPoints with add_data_points, running custom extraction/enrichment over the existing graph with memify, checking pipeline run status, or debugging how data flows between tasks (batch_size, data_per_batch, ctx, Drop, enriches).
Trending
More talk lately.about the whole repository
Who's talking about topoteretes/cognee
- A Hacker News story“Show HN: Cognee – Open-Source AI Memory Layer That Remembers Context”Hacker News · Jun 3, 2025 · 9 points
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 4,853 (+414) 🗒 Python Memory for AI Agents …”Bluesky · Jun 9, 2025 · 7 likes
- A Hacker News story“Show HN: Auto-optimizing deterministic LLM outputs using knowledge graphs”Hacker News · Apr 22, 2024 · 7 points
- A Hacker News story“Show HN: Cognee – Turn RAG and GraphRAG into custom dynamic semantic memory”Hacker News · Feb 13, 2025 · 6 points
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 28,581 (+303) 🗒 Python Cognee is the …”Bluesky · Jul 20, 2026 · 5 likes
The biggest 5 of 70 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 70
Talked about on GitHub, Bluesky and Hacker News (70 times).
On GitHub · 50
- Apr 10, 2026[Add App]Cognee — beclab/apps2 reactions
- Nov 15, 2025[Request] Implement Long-term Cross-session Memory through Cognee Integration — lobehub/lobehub2 reactions · 6 comments
- Jun 28, 2026Epic: Cross-project knowledge storage — queryable KB over the board — joelfuller2016/KanbanFlow-v21 reaction · 4 comments
- Nov 20, 2026[spike] Cognee GitHub ingestion vs file memory, Phase 0 measurement only — anchapin/plan-coder0 reactions · 1 comment
- Nov 16, 2026مرشحون جدد للدليل (2026-11-16) — mgrd281/Skill-0 reactions
45 more on GitHub
- Nov 3, 2026feat(connector): add Gitee data-source connector (cognee#6364) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add Atlassian Jira project issues and agile tracking data-source connector (cognee#6466) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add Zendesk support tickets and conversations data-source connector (cognee#6465) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add Trello boards, lists, and cards data-source connector (cognee#6471) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add AtCoder competitive programming data-source connector (cognee#6406) — topoteretes/cognee-community0 reactions
- Nov 3, 2026chore(deps): bump cognee from 0.4.1 to 1.5.0 in /ai-memory-hackathon-2026-02-07 — topoteretes/cognee-hackathons0 reactions
- Oct 30, 2026Bump the pip group across 2 directories with 2 updates — MendyData/agents-towards-production0 reactions
- Oct 29, 2026memory-lab: Cognee — развернуть на PVE и проверить — TeaShaman-cyber/theseus-local-lab0 reactions · 38 comments
- Oct 28, 2026feat(connector): add Traefik reverse proxy routing and middleware topology connector — topoteretes/cognee-community0 reactions
- Oct 26, 2026chore(deps-dev): bump cognee from 1.1.2 to 1.6.5 — TSchonleber/brainctl0 reactions
- Oct 26, 2026feat(connector): add Habitica gamified habits and task management connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add lemlist outreach and campaigns REST connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add Jotform form builder and submissions REST connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add npm package registry public REST API connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 25, 2026feat(connector): add WooCommerce store catalog and orders connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add Hardcover books and reading journals GraphQL connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add Bitrix24 CRM inbound webhook connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add BigCommerce catalog and orders connector — topoteretes/cognee-community0 reactions
- Oct 23, 2026MEMSYNC — Umbrella: governed synchronization of persistent memories across Cogentia agents — JeanHuguesRobert/cogentia0 reactions
- Oct 22, 2026Memoria que el agente escribe durante la sesión — e2its/myrmion-graphrag0 reactions
- Oct 22, 2026Olvidar y borrar como herramienta — e2its/myrmion-graphrag0 reactions
- Oct 20, 2026fix(storage): explain embedding mismatch recovery — volcengine/OpenViking0 reactions
- Oct 15, 2026[P0][Comparator][Cognee] Execute first local-model external same-harness comparison — MythologIQ-Labs-LLC/agent-memory0 reactions · 3 comments
- Oct 14, 2026feat: add Read.ai connector with OAuth and scoped sync — topoteretes/cognee-community0 reactions
- Oct 13, 2026[Benchmark][Comparators] Expand real same-harness market cohort beyond Mem0, with per-profile peer coverage — MythologIQ-Labs-LLC/agent-memorysays it tested it0 reactions · 9 comments
- Oct 9, 2026feat(linear): implement linear integration - #4699 — topoteretes/cognee-community0 reactions
- Oct 9, 2026feat(connector): add Airtable data-source connector — topoteretes/cognee-community0 reactions
- Oct 8, 2026feat(connector): add Snowflake data-source connector — topoteretes/cognee-community0 reactions · 2 comments
- Oct 8, 2026feat(connector): add Databricks workspace data connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 8, 2026feat(connector): add Outline Knowledge Base data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 8, 2026feat(connector): add Appwrite data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 8, 2026feat(connector): add Ghost CMS data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 5, 2026feat(connector): add tl;dv meeting data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 5, 2026feat(connector): add LogRocket MCP data source — topoteretes/cognee-community0 reactions · 1 comment
- Oct 3, 2026Bump the pip group across 2 directories with 2 updates — herominutes/agents-towards-production0 reactions
- Sep 27, 2026[assessment] Competitor assessment 3×7: KIP, mem0, ruflo, MemPalace, [redacted vendor], cognee, agentmemory, [redacted vendor] Agent Memory, Haystack vs ai-memory release/v1.0.0 (level, value, licensing) — alphaonedev/ai-memory-mcp0 reactions · 11 comments
- Sep 24, 2026Reality probe: Cognee #5161 passes local prune tests but the end-to-end claim is contradicted — hippoley/CounterProof0 reactions
- Sep 20, 2026Freshness: cognee v1.5.4 -> v1.6.5 — thoroc/context-radar0 reactions
- Sep 15, 2026[GHSA-fcch-9ph8-q3p4] Cognee thru v0.4.0 contains a critical remote code... — github/advisory-database0 reactions
- Sep 4, 2026Bump cognee from 1.0.9 to 1.5.0 in /testbed/dmas/memory — rustic-ai/dmas-memory0 reactions
- Sep 3, 2026chore(deps): bump cognee from 1.1.0 to 1.5.0 in /cognee-mcp — monk-io/cognee0 reactions
- Sep 3, 2026chore(deps): bump the pip group across 2 directories with 1 update — CorInfinitum/cognee0 reactions
- Sep 3, 2026chore(deps): bump cognee from 0.2.0 to 1.5.0 in /evals/src — AhindraD/cognee0 reactions
- Sep 3, 2026chore(deps): bump cognee from 0.2.0 to 1.5.0 in /evals/src — monk-io/cognee0 reactions
- Sep 3, 2026chore(deps): bump cognee from 0.2.0 to 1.5.0 in the pip group across 1 directory — PhilippMT/cognee0 reactions
On Bluesky · 15
- Jun 9, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 4,853 (+414) 🗒 Python Memory for AI Agents in 5 lines of code — @github-trending.bsky.social7 likes and reposts
- Jul 20, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 28,581 (+303) 🗒 Python Cognee is the open-source AI memory platform for… — @github-trending.bsky.social5 likes and reposts · 1 reply
- Mar 15, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 topoteretes / cognee ⭐ 13,644 (+168) 🗒 Python Knowledge Engine for AI Agent Memory in 6 lines of code — @github-trending.bsky.social5 likes and reposts
- Jun 3, 2025Explore the research: arxiv.org/abs/2505.24478 Our GitHub: github.com/topoteretes/... — @vasilijee.bsky.social3 likes and reposts
- Jan 17, 2025What will you build with cognee? Try it out: github.com/topoteretes/... — @vasilijee.bsky.social2 likes and reposts · 1 reply
10 more on Bluesky
- Jan 16, 2025Check it out and let us know what you’ll build 🛠️ github.com/topoteretes/... github.com/milvus-io/mi... @cognee.bsky.social… — @vasilijee.bsky.social2 likes and reposts
- Jul 20, 2026今日のGitHubトレンド topoteretes/cognee CogneeはAIエージェントにセッションをまたいだ永続的な長期記憶を提供するためのオープンソースAIメモリプラットフォームです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 27, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 topoteretes / cognee ⭐ 23,567 (+729) 🗒 Python Cognee is the open-source AI memory platform for… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 15, 2026Cognee transforma datos no estructurados en un grafo de conocimiento persistente. plugins para OpenClaw, Claude Code y Hermes Agent.… — @samuel-ferrero.bsky.social1 likes and repost
- Apr 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 topoteretes / cognee ⭐ 15,589 (+156) 🗒 Python Knowledge Engine for AI Agent Memory in 6 lines of code — @github-trending.bsky.social1 likes and repost
- Jun 19, 2025cognee Memory for AI Agents in 5 lines of code. https://github.com/topoteretes/cognee — @pythonhub.dev1 likes and repost · 1 reply
- Jun 8, 2025今日のGitHubトレンド topoteretes/cognee このリポジトリは、AIエージェント向けの動的なメモリ機能を提供することを目的に作成されました。 従来のRAG(Retrieval Augmented… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 6, 2025今日のGitHubトレンド topoteretes/cognee このリポジトリは、AIエージェントにメモリ機能を持たせるためのライブラリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jan 21, 2025and try @cognee.bsky.social with LanceDB in our repo: github.com/topoteretes/... — @vasilijee.bsky.social1 likes and repost
- Jun 21, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 18,410 (+361) 🗒 Python Cognee is the open-source AI memory platform for… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 5
- Jun 3, 2025Show HN: Cognee – Open-Source AI Memory Layer That Remembers Context9 points · 2 comments
- Apr 22, 2024Show HN: Auto-optimizing deterministic LLM outputs using knowledge graphs7 points
- Feb 13, 2025Show HN: Cognee – Turn RAG and GraphRAG into custom dynamic semantic memory6 points · 1 comment
- Jan 13, 2025Cognee: Reliable LLM Memory for AI Applications and AI Agents2 points
- Feb 6, 2026Memory for AI agents in 6 lines of code1 point
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cognee-cliSkill
- cognee-communitySkill
- cognee-custom-graph-modelsSkill
- cognee-dockerSkill
- cognee-forgetSkill
- cognee-improve-sessionsSkill
- cognee-ingestionSkill
- cognee-installSkill
- cognee-integrationsSkill
- cognee-migrationsSkill
- cognee-performanceSkill
- cognee-permissionsSkill
- cognee-recallSkill
- cognee-serverSkill
- cogneeSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 105
enriches=True: if the task returns None, its input is passed on unchanged (coroutines and functions only, not generators). - Very specific: line 108
Every DataPoint passing through is stamped automatically with where it came from (source_pipeline, source_task, source_user, …).
- Very specific: line 180
Nodes duplicate on every run: when a DataPoint has no identity_fields (or Dedup() fields).
- Very specific: line 221
A new shipped task: put it in the cognee/tasks/ subpackage for its stage, export it from that package's __init__.py, follow the template in …
- Very specific: line 226
A new write pipeline name: add it to WRITE_PIPELINE_NAMES.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Custom tasks and pipelines
Everything cognee does runs as a pipeline: an ordered list of tasks,
each a plain Python function whose output feeds the next one. remember()
is the right tool for ordinary ingestion. Build a pipeline when you need
processing cognee does not ship: your own extraction, your own node types,
or a post-processing step over the graph.
import cognee
from cognee.modules.pipelines import Task
from cognee.tasks.storage import add_data_points
from cognee.low_level import DataPoint
class Person(DataPoint):
name: str
metadata: dict = {"index_fields": ["name"], "identity_fields": ["name"]}
async def extract_people(data_items: list) -> list[Person]:
people = []
for item in data_items: # always a list, see below
text = item if isinstance(item, str) else ""
people += [Person(name=n.strip()) for n in text.split(",") if n.strip()]
return people
result = await cognee.run_custom_pipeline(
tasks=[
Task(extract_people, needs_llm=False),
Task(add_data_points, needs_llm=False), # store in graph + vector DBs
],
data=["Ada Lovelace, Alan Turing"],
dataset="people",
)Use it
Pick the runner
There are three, and two share the name run_pipeline:
| Runner | Import | Use it for |
cognee.run_custom_pipeline(...) | cognee | The normal choice: runs your tasks against a dataset with permissions, a per-dataset lock, run records, and status |
Full orchestrator run_pipeline(tasks=..., data=..., datasets=...) | cognee.modules.pipelines | What run_custom_pipeline and cognify call; yields PipelineRunInfo |
Lightweight run_pipeline([...], data=...) | from cognee.pipelines import run_pipeline (after import cognee, the attribute cognee.pipelines.run_pipeline is the orchestrator) | Quick chains of task() specs with no permissions, locks, run rows, or migrations; returns the last step's outputs |
cognee.run_custom_pipeline(tasks, data=None, dataset="main_dataset",
user=None, incremental_loading=False, data_per_batch=20,
run_in_background=False, pipeline_name="custom_pipeline", data_cache=False,
...) returns {dataset_id: PipelineRunInfo} (the started run when
run_in_background=True). With data=None it runs over the dataset's
existing documents (Data rows).
Write a task
from cognee.modules.pipelines import Task
from cognee.modules.pipelines.models import PipelineContext
from cognee.modules.pipelines.tasks.task import task_summary
from cognee.pipelines import Drop
@task_summary("Tagged {n} chunk(s)")
async def tag_chunks(chunks: list, ctx: PipelineContext = None, label: str = "x"):
for chunk in chunks:
chunk.metadata["label"] = label
return chunks # or yield per item; return/yield Drop to discard
tag = Task(tag_chunks, label="reviewed", batch_size=10, needs_llm=False)- A task is an
async def, a generator, an async generator, or a plaindef. ExtraTask(fn, *args, **kwargs)arguments are passed after the pipeline data. needs_llm=Falseon tasks that never call an LLM lets an LLM-free pipeline skip the LLM connection check.ctx(injected by the parameter namectx) carriesuser,data_item,dataset,pipeline_run_id,pipeline_name, andextras.task.with_config(batch_size=..., **kwargs)returns a modified copy.
How data flows
- Each document runs the whole chain on its own with
run_custom_pipelineor the orchestrator, and the first task receives it as a one-element list ([data_item]), not the bare item. The lightweightrun_pipelinepassesdatato the first task unchanged. data_per_batch(default 20) is how many documents run at the same time. It is a concurrency limit, not a batch size.batch_sizebelongs to the consumer. A task'sbatch_sizedecides how the previous task's generator output is grouped before it is passed in. Generator tasks always hand over lists; a coroutine or function hands over its single return value.- Streaming: each upstream result goes down the chain immediately, so a downstream task can run many times per document.
enriches=True: if the task returnsNone, its input is passed on unchanged (coroutines and functions only, not generators).Drop: returning or yielding it removes that item from the stream.- Every
DataPointpassing through is stamped automatically with where it came from (source_pipeline,source_task,source_user, …).
Store results
add_data_points(data_points, custom_edges=None, embed_triplets=False,
graph_only=False) writes a list of DataPoints to the graph and indexes
their index_fields in the vector DB. It returns the same list, so it can
sit mid-chain. Give every node type identity_fields so repeated runs merge
instead of duplicating (see the cognee-custom-graph-models skill).
Work on the existing graph: memify
await cognee.memify(
extraction_tasks=["extract_subgraph_chunks"], # names or Task objects
enrichment_tasks=[Task(my_enrichment, needs_llm=False)],
dataset="people",
node_name=["AI"], # optional subgraph filter
)With no data, memify passes the graph (or the node_type / node_name
subgraph) to the first task. Registered task names:
extract_subgraph, extract_subgraph_chunks, get_triplet_datapoints,
extract_user_sessions, cognify_session, extract_agent_trace_feedbacks,
cognify_agent_trace_feedback, apply_feedback_weights,
detect_entity_duplicates, merge_entity_duplicates, index_data_points.
improve() also forwards extraction_tasks / enrichment_tasks to memify,
but only inside its enrichment stage. With custom tasks that stage skips
the TRIPLET_EMBEDDING gate and the has-the-graph-changed check, so they
run on every improve (unless the stage is disabled, the lock is held, or
the fatal persist_session_qa stage errors and stops the run first).
Check status
status = await cognee.datasets.get_status([dataset_id], pipeline_names=["custom_pipeline"])Without pipeline_names it reports only cognify_pipeline. It returns
{str(dataset_id): PipelineRunStatus} ({str(dataset_id): {pipeline_name:
status}} for several pipeline_names): DATASET_PROCESSING_STARTED,
_COMPLETED, or _ERRORED (_INITIATED exists only on legacy rows). The value run_custom_pipeline
returns per dataset is a PipelineRunInfo instead, whose class names the
outcome: PipelineRunCompleted, PipelineRunAlreadyCompleted,
PipelineRunErrored, and so on.
Pitfalls
- Wrong
run_pipeline. The one imported viafrom cognee.pipelines import run_pipelinewantstask()specs called (extract(), notextract) and raisesTypeErrorotherwise; the orchestrator incognee.modules.pipelineswantsTaskobjects and raisesWrongTaskTypeErrorotherwise. - String task names only work in
memify.run_custom_pipelineaccepts onlyTaskobjects despite its type hint. - Some callables are rejected by
Task(ValueError: Unsupported task type): bound methods andfunctools.partials of a plain (non-generator) sync function, and callable objects (instances with__call__). Generator and async variants, plain functions, and lambdas work. When in doubt, wrap it in a plaindef/async def. run_custom_pipelinedoes not run database migrations. On an existing database, runawait cognee.run_migrations()(or anyremember()first).- Keep
pipeline_name="custom_pipeline"unless you add your name toWRITE_PIPELINE_NAMESincognee/modules/improve/graph_changes.py. Otherwiseimprove()does not notice your graph writes and may skip enrichment as "already completed". - memify defaults. An omitted or empty task list is replaced by the
defaults:
index_data_pointsenrichment, plusget_triplet_datapointsextraction only whenTRIPLET_EMBEDDING=true(off by default). memify uses only the first dataset it resolves. - Nodes duplicate on every run when a DataPoint has no
identity_fields(orDedup()fields).examples/guides/custom_data_models.pyandexamples/guides/custom_tasks_and_pipelines.pyhave this bug; don't copy it.
How it works
run_custom_pipeline → orchestrator run_pipeline (checks write
permission, takes the per-dataset lock, records a PipelineRun) →
run_tasks (a semaphore of data_per_batch, one chain per document) →
run_tasks_base (streams each task's output into the next, batching by the
consumer's batch_size, injecting ctx, stamping provenance).
- Package overview and the runner semantics:
cognee/modules/pipelines/__init__.py Task,task(),TaskSpec,BoundTask,@task_summary:cognee/modules/pipelines/tasks/task.py- Orchestrator:
cognee/modules/pipelines/operations/pipeline.py; execution:run_tasks.py,run_tasks_base.py,run_tasks_data_item.py - Lightweight runner:
cognee/modules/pipelines/operations/run_pipeline.py, exported fromcognee/pipelines/ - Context:
cognee/modules/pipelines/models/PipelineContext.py run_custom_pipeline:cognee/modules/run_custom_pipeline/run_custom_pipeline.py- memify:
cognee/modules/memify/memify.py,cognee/memify_pipelines/memify_task_registry.py,memify_default_tasks.py - Storage:
cognee/tasks/storage/add_data_points.py - Index of all shipped tasks:
cognee/tasks/README.md
Examples:
examples/demos/custom_pipelines/custom_pipeline_single_object_example.py: the best reference. It runs over added documents, does LLM extraction into typed DataPoints, then recalls. Its models declare identity withDedup()(theAnnotatedalternative tometadata["identity_fields"]).examples/demos/custom_pipelines/organizational_hierarchy/: low-levelrun_tasks, no LLM, dedup viaidentity_fields, status polling.examples/demos/custom_pipelines/custom_cognify_pipeline_example.py: rebuilds add + cognify from the default task list.examples/demos/custom_pipelines/memify_coding_agent_rule_extraction_example.py: memify with a custom enrichment task.
Extending it
- A new shipped task: put it in the
cognee/tasks/subpackage for its stage, export it from that package's__init__.py, follow the template incognee/tasks/README.md, and add a unit test undercognee/tests/unit/tasks/. - A new memify task name: register it in
cognee/memify_pipelines/memify_task_registry.py. - A new write pipeline name: add it to
WRITE_PIPELINE_NAMES. - Pipeline tests:
cognee/tests/unit/modules/pipelines/(runner semantics, context, provenance, rollback) andcognee/tests/unit/pipelines/(the lightweight API).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

