SkillsReviewed · topoteretes

Cognee Custom Pipelines

Cognee Custom Pipelines is an assistant skill for Python developers extending cognee, but its similarly named runners handle inputs and dataset protections differently. It explains custom tasks, graph storage, batching, context injection and pipeline status reporting.

Researched 15 Nov 2026

In short.

Cognee Custom Pipelines is an assistant skill for Python developers building custom cognee processing, but choosing the wrong runner changes how data flows and which dataset protections apply. It documents custom extraction, typed graph nodes, graph enrichment and status checks. Its main integration cautions are consumer-side batching, separate database migrations and explicit node identity to prevent duplicates. Runtime behavior, performance and compatibility with a particular installed release have not been assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete captured skill folder: .agents/skills/cognee-custom-pipelines/SKILL.md, plus repository-root LICENSE and NOTICE.md, all at commit 4053f6cc5536757f26a3665eed95c50088e6dc0b. Referenced implementation modules, examples, tests and other skills are outside this material. No code was executed; installation, runtime behavior, deduplication, permissions, performance and release compatibility remain untested.

The overview

Identity

The resource is the cognee-custom-pipelines assistant skill in the topoteretes/cognee repository. Its SKILL.md supplies instructions and Python examples for extending cognee processing; it is not the cognee runtime package. The original folder is [https://github.com/topoteretes/cognee/tree/main/.agents/skills/cognee-custom-pipelines].

The covered folder contains one captured file, SKILL.md. The accompanying rights evidence consists of the repository-root LICENSE and NOTICE.md.

Assessment

This skill is useful when a developer needs extraction logic, graph node types or post-processing that cognee does not already provide. Its strongest feature is the explanation of operational details that can otherwise produce incorrect integrations: one chain per document, list-shaped initial input, different runner interfaces and explicit deduplication fields.

It is a detailed implementation reference rather than a complete installation guide. The examples and troubleshooting claims are documented but untested here, and the evidence establishes no extraction-quality or performance results.

Users

The intended users are coding assistants and Python developers working on custom cognee processing. Relevant work includes extracting application-specific entities, adding typed graph nodes, enriching an existing graph and diagnosing how intermediate results reach later tasks.

Beginners need enough Python knowledge to follow functions, lists, classes and asynchronous calls. Experienced developers get more detailed guidance on streaming, concurrency, context injection and run-status types. For ordinary ingestion, the skill recommends remember().

Capabilities

The skill covers synchronous functions, coroutines, generators and asynchronous generators as tasks. It explains Task configuration, injected PipelineContext, filtering with Drop and passing input onward when an enrichment function returns None.

Custom DataPoint objects can be stored through add_data_points, which writes graph data and indexes declared index_fields in the vector database. identity_fields define which nodes should merge on repeated runs. The skill also documents provenance stamping, background execution and dataset status queries filtered by pipeline name.

Using it

Requirements

The examples depend on an installed cognee environment exposing the documented Python imports. Graph and vector storage are involved when using the default add_data_points behavior. The normal dataset runner checks write permission and takes a per-dataset lock.

An LLM is needed only when the chosen processing calls one. The skill says marking every applicable task needs_llm=False allows an LLM-free pipeline to skip the LLM connection check. Minimum Python and cognee versions, supported storage configurations, credentials, hardware requirements and deployment instructions are not established.

Mechanism

cognee.run_custom_pipeline delegates to the full orchestrator, which checks write permission, locks the dataset and records a pipeline run. Each document then travels through its own complete task chain. Its first task receives a one-element list; with data=None, processing uses the dataset's existing document rows.

data_per_batch defaults to 20 and limits concurrent documents. A consumer task's batch_size controls how the preceding generator's outputs are grouped. Generator output reaches consumers as lists, while ordinary functions and coroutines pass their single return value. Streaming can therefore invoke a downstream task several times for one document.

A parameter named ctx receives PipelineContext automatically. Drop removes an item from the stream. With enriches=True, a function or coroutine returning None passes its original input onward; this rule does not apply to generators. DataPoint objects receive automatic provenance fields.

Setup

The documented starting point is cognee.run_custom_pipeline with a list of Task objects, input data and a dataset name. Define custom DataPoint classes with index_fields for searchable fields and identity_fields for merging repeated entities. Add an add_data_points task when results should be persisted.

On an existing database, the skill calls for await cognee.run_migrations(), or a remember() call first, because run_custom_pipeline does not perform migrations. For a single graph-wide operation, its example uses data=[{}] and a task that reads the graph itself.

The source provides no assistant-specific skill installation command or package version pin. Compatibility between these instructions and an installed cognee release needs confirmation.

Example

The opening example defines a Person DataPoint with a name field. Its metadata declares name as both an indexed field and an identity field. An asynchronous extract_people task splits comma-separated text into Person objects.

The pipeline receives data=["Ada Lovelace, Alan Turing"] and dataset="people", then chains Task(extract_people, needs_llm=False) with Task(add_data_points, needs_llm=False). The intended result is two named entities stored in graph and vector databases, with identity rules allowing matching entities to merge on later runs. This is a description of the supplied example, not an observed execution result.

Assessment & evidence

Limitations

The two run_pipeline interfaces are easy to confuse. The lightweight function imported from cognee.pipelines expects called task() specifications and returns the last step's outputs. The full orchestrator in cognee.modules.pipelines expects Task objects. The skill also warns that after import cognee, the cognee.pipelines.run_pipeline attribute denotes the orchestrator.

The lightweight runner omits permission checks, dataset locks, run records and migrations. run_custom_pipeline accepts only Task objects despite its type hint; string task names are not resolved. Task also rejects callable instances and some bound methods or partial wrappers, with a plain function wrapper offered as the workaround.

Missing identity_fields or Dedup() fields can cause new nodes on every run. The skill specifically flags two guide examples as having this problem. Those example files are referenced but are not included in the supplied evidence.

Reasoning

The central design decision is whether processing belongs to each document or to the graph as a whole. The normal runner repeats the entire chain per document; a graph-wide task therefore needs a deliberate single invocation, as illustrated by the placeholder input.

The other important distinctions concern execution and persistence. Increasing data_per_batch increases document concurrency rather than task input size. Increasing a consumer's batch_size groups upstream generator results. Declaring node identity controls repeated storage. These details make the skill useful for implementation decisions, while scalability and extraction quality remain unassessed.

Alternatives

Within cognee, remember() is the documented choice for ordinary ingestion. improve() is recommended for cognee's built-in enrichment, including session bridging, feedback weights, conflict review and the global context index.

For custom work, the lightweight runner suits short task chains when dataset permissions, locking and run records are unnecessary. Direct use of the full orchestrator exposes dataset orchestration and yields PipelineRunInfo objects, while run_custom_pipeline is the documented normal entry point. The evidence contains no comparison with external pipeline frameworks.

Evidence

The technical source is the captured SKILL.md at [https://raw.githubusercontent.com/topoteretes/cognee/4053f6cc5536757f26a3665eed95c50088e6dc0b/.agents/skills/cognee-custom-pipelines/SKILL.md]. Rights information comes from LICENSE and NOTICE.md at the same repository revision.

The skill names implementation files, example programs and test directories, but their contents are outside the supplied material. Runtime semantics are therefore documentation claims rather than verified implementation findings. Nothing was executed, and no benchmark, test outcome or production result is established.

Access & freshness

Costs

Operating cost is unknown. The skill supplies no service prices, infrastructure estimates, token usage or measured resource consumption. Its opening extractor uses string processing, and both shown tasks are declared needs_llm=False; that does not establish zero operating cost.

Custom tasks that call an LLM, database storage and hosting may create costs depending on the deployment. The Apache license provides no-charge copyright permissions, which are separate from the cost of running cognee.

Rights

The captured repository LICENSE is Apache License 2.0. It permits use, modification and redistribution subject to its conditions. Redistribution requires a license copy, retention of applicable notices and prominent change notices in modified files. Applicable attribution from NOTICE.md must also accompany redistributed derivatives.

NOTICE.md identifies cognee and Topoteretes UG, with a 2024 copyright notice. The license includes conditional patent permissions, warranty disclaimers and limits on trademark rights. The unchanged skill can be distributed with the captured LICENSE and NOTICE.md while retaining their notices.

Freshness

The supplied snapshot was captured on 15 November 2026 at 23:10:25.649 UTC and is pinned to commit 4053f6cc5536757f26a3665eed95c50088e6dc0b. No cognee release number or publication date for the skill is established, and later repository changes are unknown.

At that revision, the skill describes memify interfaces and improve()'s extraction_tasks and enrichment_tasks arguments as deprecated and due for removal in the next release. It directs custom graph processing to run_custom_pipeline. The timing of that release and whether removal has occurred are unknown.

Actions

Before adopting the examples, confirm that the installed cognee version provides the documented imports and choose the runner explicitly. For dataset pipelines, prepare migrations, use Task objects and define node identity before repeated writes.

A useful local validation would process a small disposable dataset, inspect intermediate input shapes, confirm intended graph and vector storage, and repeat the input to check merging. Status queries should specify pipeline_names=["custom_pipeline"], because the default query reports only cognify_pipeline. These are suggested validation steps; no results are available.

Evidence for this report

LICENSEnotice · checked 2026-11-15
NOTICE.mdnotice · checked 2026-11-15