Cognee:Recall logo

Cognee:Recall

Community
coco-research
cognee:recall

Use when the user says 'cognee recall', 'search memory', 'what do we know about', 'find related', or 'graph search'. Runs semantic, graph, and lexical search across the Cognee knowledge graph and injects results as agent context.

Overview

Publishercoco-research
Repositorycoco
Skill namecognee:recall
Stars
550
Forks
12
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by coco-research on GitHub. Read the source before you install it.

Installation

Install the Cognee:Recall AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/coco-research/coco/tree/main/systems/cognee/skills/cognee-recall
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coco-research/coco.git /tmp/coco
mkdir -p .claude/skills
cp -r /tmp/coco/systems/cognee/skills/cognee-recall .claude/skills/coco-research-cognee-recall
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cognee:Recall in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cognee:Recall on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cognee:Recall is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/cognee-recall — Search & Recall from Knowledge Graph

Semantic, graph-traversal, and lexical search across Cognee's knowledge graph. Finds entities, decisions, events, and their relationships — then injects relevant results as agent context for informed decision-making.

Quick Reference

bash
COGNEE="${COGNEE_BASE_URL:-http://localhost:8000}"
DATASET="my-project"

# Semantic search (auto-selects best strategy)
curl -s -X POST "$COGNEE/api/v1/search" \
  -H "Content-Type: application/json" \
  -d '{"query": "authentication decisions", "datasets": ["my-project"], "search_type": "FEELING_LUCKY", "top_k": 10}' | jq .

# Graph completion search (relationship-aware)
curl -s -X POST "$COGNEE/api/v1/search" \
  -H "Content-Type: application/json" \
  -d '{"query": "who reports to Alice", "datasets": ["my-project"], "search_type": "GRAPH_COMPLETION", "top_k": 10}' | jq .

# Recall with context injection (adds system prompt)
curl -s -X POST "$COGNEE/api/v1/recall" \
  -H "Content-Type: application/json" \
  -d '{"query": "rate limiting", "datasets": ["my-project"], "top_k": 10, "only_context": true}' | jq .

# Cross-project search
curl -s -X POST "$COGNEE/api/v1/search" \
  -H "Content-Type: application/json" \
  -d '{"query": "auth decisions", "datasets": ["project-a", "project-b", "project-c"], "search_type": "FEELING_LUCKY"}' | jq .

Search Types

Cognee supports multiple search strategies. Use FEELING_LUCKY for auto-selection (recommended), or specify one:

TypeBest for
FEELING_LUCKYAuto-selects best strategy (default, recommended)
GRAPH_COMPLETIONRelationship-heavy queries ("who owns X", "what depends on Y")
GRAPH_COMPLETION_COTComplex reasoning with chain-of-thought
GRAPH_COMPLETION_CONTEXT_EXTENSIONExpanding context around a node
GRAPH_SUMMARY_COMPLETIONSummarization of graph neighborhood
RAG_COMPLETIONRetrieval-augmented generation
TRIPLET_COMPLETIONEntity-relationship-entity patterns
CHUNKSRaw chunk retrieval
CHUNKS_LEXICALKeyword/lexical matching
SUMMARIESPre-computed summaries
NATURAL_LANGUAGEFree-form natural language queries
TEMPORALTime-based queries
CODING_RULESCode-specific patterns

Sub-commands

/cognee-recall search — Run a semantic/graph search

Procedure:

  1. Ask the user what they're looking for (or use the provided query).
  2. Determine the best search type based on the query:
    • Queries about relationships → GRAPH_COMPLETION
    • General "what do we know" → FEELING_LUCKY
    • Time-based ("last week", "in Q2") → TEMPORAL if available
    • Code-related → CODING_RULES
  3. Detect which datasets to search:
    • Default: current project dataset
    • If user mentions another project: include its dataset
    • Use /cognee status to list available datasets
  4. Execute search:
bash
COGNEE="${COGNEE_BASE_URL:-http://localhost:8000}"

curl -s -X POST "$COGNEE/api/v1/search" \
  -H "Content-Type: application/json" \
  -d "{
    \"query\": \"$QUERY\",
    \"datasets\": $DATASETS_JSON,
    \"search_type\": \"$SEARCH_TYPE\",
    \"top_k\": $TOP_K
  }" | jq .
  1. Present results:
COGNEE RECALL — "$QUERY"
==================================================
Found N results across M datasets

[1] DECISION: Use JWT for API auth (2026-06-30)
    Context: Stateless, works with existing infra
    Dataset: my-project | Score: 0.94

[2] ENTITY: Auth Service — depends_on → PlatformHub
    Description: Authentication and authorization service
    Dataset: my-project | Score: 0.87

[3] TASK: Set up JWT middleware (open, priority 1)
    Assigned to: Alice Chen
    Dataset: my-project | Score: 0.82

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

/cognee-recall context — Inject results as agent context

Same as search, but formats results for direct injection into the agent's context window. Use this before making architectural decisions or when context from past sessions is needed.

Procedure:

  1. Run search as above.
  2. Format results as a compact context block:
[COGNEE CONTEXT INJECTION — {timestamp}]
Query: "{original_query}"
Dataset(s): {dataset_names}

Relevant knowledge:
• DECISION ({date}): {text} — {context} [relevance: {score}]
• ENTITY: {name} ({type}) — {description} [relevance: {score}]
• TASK: {text} ({status}) — assigned to {assignee} [relevance: {score}]
• EVENT: {title} ({date}, {type}) — {summary} [relevance: {score}]

Use this context to inform your response. Cite specific decisions and entities where relevant.
  1. The agent then uses this context transparently in its reasoning.

/cognee-recall graph — Explore entity neighborhood

Explore the graph around a specific entity to understand its relationships.

bash
COGNEE="${COGNEE_BASE_URL:-http://localhost:8000}"

# First, get the dataset ID
DATASET_ID=$(curl -s "$COGNEE/api/v1/datasets" | jq -r '.[] | select(.name=="my-project") | .id')

# Get the full graph
curl -s "$COGNEE/api/v1/datasets/$DATASET_ID/graph" | jq .

Present as a relationship map:

ENTITY GRAPH — "Auth Service" (my-project)
==================================================
                      ┌──────────────────┐
                      │   Auth Service   │
                      │   (system)       │
                      └───┬──────────┬───┘
                          │          │
              depends_on  │          │ owns
                          │          │
                   ┌──────▼──┐  ┌───▼──────────┐
                   │Platform │  │ JWT Middleware│
                   │Hub      │  │ (module)      │
                   │(module) │  └───────────────┘
                   └─────────┘

Related decisions:
  • Use JWT for API auth (2026-06-30) — relates to Auth Service

Related tasks:
  • Set up JWT middleware (open) — assigned to Alice Chen
  • Update API docs (open) — assigned to unassigned

/cognee-recall cross-project — Search across multiple projects

Search for related knowledge across all available datasets.

bash
COGNEE="${COGNEE_BASE_URL:-http://localhost:8000}"

# Get all dataset names
DATASETS=$(curl -s "$COGNEE/api/v1/datasets" | jq -r '[.[].name] | join(",")')

# Cross-project search
curl -s -X POST "$COGNEE/api/v1/search" \
  -H "Content-Type: application/json" \
  -d "{
    \"query\": \"$QUERY\",
    \"datasets\": [$DATASETS_JSON],
    \"search_type\": \"FEELING_LUCKY\",
    \"top_k\": 15
  }" | jq .

Present results grouped by dataset:

CROSS-PROJECT RECALL — "$QUERY"
==================================================
Found N results across M datasets

my-project (5 results):
  [1] DECISION: Use JWT for API auth — 0.94
  [2] ENTITY: Auth Service — 0.87
  ...

e-and-c (3 results):
  [1] DECISION: Stakeholder role for external users — 0.91
  [2] ENTITY: External Review System — 0.84
  ...

optimize (2 results):
  [1] DECISION: Migration to pgvector — 0.78
  ...

Behavior Rules

Proactive recall triggers

Automatically run /cognee-recall search when:

  • User asks "what do we know about X" or "what did we decide about Y"
  • User starts a new task that references past work ("continue working on auth")
  • User makes a decision that might conflict with past decisions
  • Before architectural or design discussions that would benefit from context

Relevance threshold

Only show results with relevance score > 0.5 by default. If fewer than 3 results exceed threshold, tell the user: "Only {N} low-relevance results found. Try a broader query."

Context injection discipline

  • Inject context before reasoning about a decision, not after.
  • Cite specific decisions/entities from the graph in responses: "Based on the June 30 decision to use JWT for API auth [Cognee]..."
  • Never fabricate — if the graph has no relevant data, say so.

Session-aware recall

If Cognee supports sessions, tag recalls with a session ID for better multi-turn context:

bash
SESSION_ID="coco-$(date +%s)"

curl -s -X POST "$COGNEE/api/v1/search" \
  -H "Content-Type: application/json" \
  -d "{
    \"query\": \"$QUERY\",
    \"datasets\": [\"$DATASET\"],
    \"search_type\": \"FEELING_LUCKY\",
    \"top_k\": 10
  }" | jq .

Fallback Behavior

If Cognee is unreachable:

  1. Check if Brain is available: look for project_brain.db in current or parent directories
  2. If available: "Cognee is not running. Using Brain for this query instead." Run equivalent /brain context --search "query"
  3. If neither available: "No memory backend available. Start Cognee with cognee server start or initialize Brain with /brain init."

Prerequisites

Cognee must be running and the project dataset must exist (created via /cognee init).

bash
# Verify
curl http://localhost:8000/health
curl http://localhost:8000/api/v1/datasets | jq '.[].name'

Frequently asked questions

What does the Cognee:Recall AI skill do?

Use when the user says 'cognee recall', 'search memory', 'what do we know about', 'find related', or 'graph search'. Runs semantic, graph, and lexical search across the Cognee knowledge graph and injects results as agent context.

Why use Cognee:Recall on TypingMind?

Because you install it once and use it with any model. Cognee:Recall is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cognee:Recall in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/coco-research/coco/tree/main/systems/cognee/skills/cognee-recall. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cognee:Recall?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cognee:Recall?

As many as you like. As long as a model supports skills, you can use Cognee:Recall with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cognee:Recall AI skill free?

It is published on GitHub by coco-research. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇