ai-agent

cortexdb: AI Knowledge Graph

Get a single-file AI memory library for Go.
245 stars3 forksGoGuide quality 8/10Updated 7/25/2026100% free · open source
What it does

Cortexdb is a lightweight, single-file Go library that enables creating and managing AI memory and knowledge graphs for building intelligent applications.

When to use it
  • When building a chatbot or virtual assistant that requires a knowledge base
  • When creating a recommender system that relies on graph-based relationships
  • When developing an AI-powered application that needs to store and query complex data relationships
Ready-to-paste prompt
Create a knowledge graph with entities and relations: `db.InsertEntity(cortexdb.Entity{ID: "1", Type: "Person", Properties: map[string]string{"name": "John"}})`
Heads up: Cortexdb requires Go version 1.17 or later to work correctly, so ensure your Go environment is up-to-date before using the library
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

⚡ Runs out of the box

A prompt/skill package — nothing to install beyond adding it to your AI tool.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/cortexdb && curl -fsSL https://workflowstacks.com/api/skills/cortexdb/claude-skill -o ~/.claude/skills/cortexdb/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How cortexdb: AI Knowledge Graph works
Codeflow
Free to inspect

Cortexdb: AI Knowledge Graph is a very large Go project (~156k lines across 741 code files, plus 5 test files). You install it into your AI tool with one command; there is nothing to run yourself. Last commit this month, MIT license, has a test suite.

Size
Very large codebase
~156k lines · 741 code files · days to read — use, don't read
Setup
Install as a skill / plugin
Add it to Claude Code (or your AI tool) with one command — 5 skills inside. Nothing to run yourself.
Runs on
Inside your AI tool
Helper scripts use Go
Go 95%Rust 2%Python 2%JavaScript 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    SKILL.md
    The instructions the AI actually follows
  3. 3
    cmd/cortexdb-grpc/main.go
    Where the program starts running
  4. 4
    pkg/agentmem/agentmem_test.go
    Inside pkg/ — the main logic begins here
  5. 5
    examples/01_core/main.go
    A worked example — copy this to get going
What's in each folder
pkg/Core code — the actual logic600 files
skills/Prompts, skills & agent definitions6 files
internal/Core code — the actual logic5 files
cmd/Command-line entry points44 files
plugins/Sub-packages / plugins37 files
docs/Documentation34 files
examples/Examples you can copy31 files
clients/SDKs / client libraries66 files
READMEHas testsDocumentedCI checksExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
liliang-cn
Language
Go
Category
ai-agent
Published
8/7/2025

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.