
Cognee
Use when the user says 'cognee', asks about knowledge graph or graph memory, wants to...
Install
npx skills add coco-research/coco --skill cognee -g -a claude-code -y- Repository
- coco-research/coco797
- Category
- Data and ML
- Updated
- 3d ago
- License
- See repository
- Context cost
- Lightabout 1,259 tokens
- Runs scripts
- No, instructions only
What it does
Use when the user says 'cognee', asks about knowledge graph or graph memory, wants to switch memory backends, or needs a status check, dataset init, or graph view. Covers Cognee endpoints plus the Brain fallback.
/cognee, Knowledge Graph Memory Backend
A persistent knowledge graph memory system powered by Cognee. Stores entities, decisions, events, and relationships as graph nodes with embeddings, enabling semantic search across projects and sessions.
Quick Reference
COGNEE="http://localhost:8000" # default; override with COGNEE_BASE_URL
# Status check
curl -s "$COGNEE/health" | jq .
# List datasets
curl -s "$COGNEE/api/v1/datasets" | jq .
# Create a dataset for this project
curl -s -X POST "$COGNEE/api/v1/datasets" \
-H "Content-Type: application/json" \
-d '{"name": "my-project"}' | jq .
# Quick semantic search
curl -s -X POST "$COGNEE/api/v1/search" \
-H "Content-Type: application/json" \
-d '{"query": "what did we decide about authentication", "search_type": "FEELING_LUCKY", "top_k": 10}' | jq .
Sub-commands
/cognee status, Health check and dataset overview
Check if Cognee is reachable and show available datasets.
COGNEE="${COGNEE_BASE_URL:-http://localhost:8000}"
echo "=== Cognee Status ==="
HEALTH=$(curl -s -o /dev/null -w "%{http_code}" "$COGNEE/health" 2>/dev/null)
if [ "$HEALTH" = "200" ]; then
echo "Server: RUNNING at $COGNEE"
echo ""
echo "Datasets:"
curl -s "$COGNEE/api/v1/datasets" | jq -r '.[] | " • \(.name) (\(.id))"'
else
echo "Server: NOT REACHABLE"
echo ""
echo "Start Cognee:"
echo " pip install cognee && cognee server start"
fi
/cognee init, Initialize a project dataset
Create a Cognee dataset for the current project.
Procedure:
- Ask the user for the dataset name (default: current directory name, slugified).
- Check if a dataset with that name already exists:
curl -s "$COGNEE/api/v1/datasets" | jq -r '.[].name'
- If it exists: "Dataset 'X' already exists. Using it." → skip creation.
- If not: create it:
