# knowledge-agent

> Claude/Codex skill by [@thedotmack](https://omgskills.com/library/thedotmack/index.md) · 90k stars · Updated 2026-08-11

Build and query AI-powered knowledge bases from claude-mem observations. Use when users want to create focused "brains" from their observation history, ask questions about past work patterns, or compile expertise on specific topics.

Tags: ai, ai-agents, ai-memory, anthropic, artificial-intelligence, chromadb, claude, claude-agent-sdk, claude-agents, claude-code, claude-code-plugin, claude-skills, embeddings, long-term-memory, mem0, memory-engine, openmemory, rag, sqlite, supermemory

## Install

```sh
git clone https://github.com/thedotmack/claude-mem /tmp/claude-mem && ln -s /tmp/claude-mem/plugin/skills/knowledge-agent ~/.claude/skills/knowledge-agent
```

## From README

Knowledge Agent Build and query AI-powered knowledge bases from claude-mem observations. What Are Knowledge Agents? Knowledge agents are filtered corpora of observations compiled into a conversational AI session. Build a corpus from your observation history, prime it (loads the knowledge into an AI session), then ask it questions conversationally. Think of them as custom "brains": "everything about hooks", "all decisions from the last month", "all bugfixes for the worker service". Workflow Step 1: Build a corpus Filter options: project — filter by project name types — comma-separated: decision, bugfix, feature, refactor, discovery, change concepts — comma-separated concept tags files — comma-separated file paths (prefix match) query — semantic search query dateStart / dateEnd — ISO date range limit — max observations (default 500) Step 2: Prime the corpus This creates an AI session loaded with all the corpus knowledge. Takes a moment for large corpora.

## Links

- HTML page: https://omgskills.com/skills/thedotmack/claude-mem/knowledge-agent/
- GitHub: https://github.com/thedotmack/claude-mem
- Author: [@thedotmack](https://omgskills.com/library/thedotmack/index.md)

## More from this repo

- [do](https://omgskills.com/skills/thedotmack/claude-mem/plugin/skills/do/index.md) — Execute a phased implementation plan using subagents.
   - [@thedotmack](https://omgskills.com/library/thedotmack/index.md) · 94k stars
- [babysit](https://omgskills.com/skills/thedotmack/claude-mem/plugin/skills/babysit/index.md) — Watch a pull request or review cycle until it is ready to merge.
   - [@thedotmack](https://omgskills.com/library/thedotmack/index.md) · 91k stars
- [cloud-sync](https://omgskills.com/skills/thedotmack/claude-mem/plugin/skills/cloud-sync/index.md) — Set up or check claude-mem cloud sync with cmem.ai Pro.
   - [@thedotmack](https://omgskills.com/library/thedotmack/index.md) · 91k stars
