Skip to content
Development
Skill

/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.

From plugin
coco
631200 skills53 agents42 commands3 hooks

Claude Code

$ npx -y skills add coco-research/coco --skill cognee-recall --agent claude-code

SKILL.md

cognee-recall.SKILL.md
name: cognee:recall
description: "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."

/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

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:

| Type | Best for | |------|---------| | `FEELING_LUCKY` | Auto-selects best strategy (default, recommended) | | `GRAPH_COMPLETION` | Relationship-heavy queries ("who owns X", "what depends on Y") | | `GRAPH_COMPLETION_COT` | Complex reasoning with chain-of-thought | | `GRAPH_COMPLETION_CONTEXT_EXTENSION` | Expanding context around a node | | `GRAPH_SUMMARY_COMPLETION` | Summarization of graph neighborhood | | `RAG_COMPLETION` | Retrieval-augmented generation | | `TRIPLET_COMPLETION` | Entity-relationship-entity patterns | | `CHUNKS` | Raw chunk retrieval | | `CHUNKS_LEXICAL` | Keyword/lexical matching | | `SUMMARIES` | Pre-computed summaries | | `NATURAL_LANGUAGE` | Free-form natural language queries | | `TEMPORAL` | Time-based queries | | `CODING_RULES` | Code-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:

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 .

5. 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.

3. 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.

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) │  └───────────────┘
Read more
@coco-research
Ships withcoco

495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.

631200 skills53 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
631
Star history of coco-research/coco on GitHub, a chart by star-history.com

Other skills on coco.

create-rule

create-rule

Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…

@coco-research@coco-researchInstall Skill
create-skill

create-skill

Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill,…

@coco-research@coco-researchInstall Skill
create-subagent

create-subagent

Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific…

@coco-research@coco-researchInstall Skill
migrate-to-skills

migrate-to-skills

Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills…

@coco-research@coco-researchInstall Skill
agent-lightning

agent-lightning

Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent…

@coco-research@coco-researchInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about cognee-recall.

Which coding agents can use cognee-recall?
cognee-recall installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.