Knowledge Agent
SkillDocs & knowledgeA skill that builds and queries AI-powered knowledge bases from claude-mem observations. It collects recorded observations into filtered corpora, such as everything about a project or topic, then loads a corpus into an AI session you can question conversationally. Use it to create focused brains from your observation history, ask questions about past work patterns, or compile expertise on specific topics.
Then ask your AI: use the Knowledge Agent skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Have claude-mem observations recorded, since corpora are built from that history.
What your AI can do with it
- Build a corpus with build_corpus using filters like project, types, concepts, files
- Prime a corpus with prime_corpus to load its knowledge into an AI session
- Ask questions with query_corpus and keep context across follow-up questions
- List all corpora with list_corpora, including stats and priming status
- Rebuild a corpus with rebuild_corpus to refresh it with new observations
- Reprime a corpus with reprime_corpus to clear prior Q&A context and reload it
Getting started
- Have claude-mem observations recorded, since corpora are built from that history.
- Build a corpus with build_corpus, setting a name and filters such as project, concepts, or a date range.
- Prime the corpus with prime_corpus to load its knowledge into an AI session.
- Ask questions with query_corpus, and continue with follow-up questions that keep context.
- When new observations are added, rebuild the corpus and reprime it to load the updated knowledge.
What this skill tells your AI
The instructions your AI receives, as published by thedotmack/claude-mem in plugin/skills/knowledge-agent/SKILL.md and read by Ahel’s review.
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
build_corpus name="hooks-expertise" description="Everything about the hooks lifecycle" project="claude-mem" concepts="hooks" limit=500
Filter options:
project— filter by project nametypes— comma-separated: decision, bugfix, feature, refactor, discovery, changeconcepts— comma-separated concept tagsfiles— comma-separated file paths (prefix match)query— semantic search querydateStart/dateEnd— ISO date rangelimit— max observations (default 500)
Step 2: Prime the corpus
prime_corpus name="hooks-expertise"
This creates an AI session loaded with all the corpus knowledge. Takes a moment for large corpora.
Step 3: Query
query_corpus name="hooks-expertise" question="What are the 5 lifecycle hooks and when does each fire?"
The knowledge agent answers from its corpus. Follow-up questions maintain context.
Step 4: List corpora
list_corpora
Shows all corpora with stats and priming status.
Tips
- Focused corpora work best — "hooks architecture" beats "everything ever"
- Prime once, query many times — the session persists across queries
- Reprime for fresh context — if the conversation drifts, reprime to reset
- Rebuild to update — when new observations are added, rebuild then reprime
Maintenance
Rebuild a corpus (refresh with new observations)
rebuild_corpus name="hooks-expertise"
After rebuilding, reprime to load the updated knowledge:
Reprime (fresh session)
reprime_corpus name="hooks-expertise"
Clears prior Q&A context and reloads the corpus into a new session.
Signals
- GitHub stars
- 99k
- Forks
- 9k
- Last commit
- Oct 2026
Questions
- What are knowledge agents?
- They are filtered corpora of observations compiled into a conversational AI session. You build a corpus from your observation history, prime it to load the knowledge into a session, then ask it questions conversationally.
- How do I build a corpus?
- Use build_corpus with a name and filters. Options include project, types, concepts, files, query, dateStart, dateEnd, and limit, which defaults to 500 observations.
Advanced
- Item type
- skill
- Key
knowledge-agent-thedotmack- Source
- github.com/thedotmack/claude-mem
github.com/thedotmack/claude-mem
More in Docs & knowledge
Skill · mattpocock
More in Docs & knowledgecanvas-design
Skill · anthropics
More in Docs & knowledgedoc-coauthoring
Skill · anthropics
More in Docs & knowledgedefuddle
Skill · kepano
More in Docs & knowledgepopups
Skill · coreyhaines31
More in Docs & knowledgewriting-for-agents
Skill · mattpocock
More in Docs & knowledge