About io.github.keshrath/agent-knowledge
io.github.keshrath/agent-knowledge is an MCP server published by keshrath in the Search category: cross-session memory for AI agents - knowledge graph, scoring, semantic search. Conduid read 11 tools from its source: Aider, Cline, Continue.dev, Cursor, OpenCode, knowledge and 5 more. It is published to npm as agent-knowledge and starts with npx.
The repository has 19 stars and 2 forks, and its last commit was on 28 Nov 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include search.
Install
claude mcp add io-github-keshrath-agent-knowledge -- npx agent-knowledgenpx agent-knowledgegit clone https://github.com/keshrath/agent-knowledgeTools (11)
AiderMarkdown/JSONLClineJSONContinue.devJSONCursorJSONLOpenCodeSQLiteknowledgeKnowledge base CRUD, sync, and session-start hydration. Actions: "list" (browse entries), "read" (get entry content), "write" (create/update entry, auto git sync), "delete" (remove entry, auto git sync), "sync" (manual git pull + push), "wakeup" (return token-budgeted section-priority context bundle — identity, active_tasks, recent_decisions, known_gotchas, last_session_summary, top_weighted, semantic_fallback — call once at session start).| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| category | string | Category (action=list: filter; action=write: target directory). One of: projects, people, decisions, workflows, notes |
| content | string | Full markdown content for the entry (action=write) |
| filename | string | Filename with or without .md extension (action=write), e.g. 'my-project.md' |
| path | string | Relative path to the entry, e.g. 'projects/my-project.md' (action=read, delete) |
| section_budgets | object | [wakeup] Per-section token-budget overrides, e.g. {"identity": 200, "top_weighted": 400}. Unspecified sections split the remainder evenly. Unused budget redistributes to later sections. |
| sections | string | [wakeup] Comma-separated, ordered section list. Valid: identity, active_tasks, recent_decisions, known_gotchas, last_session_summary, top_weighted, semantic_fallback. Default: all seven in that order. Omit to preserve v1.8.0 behaviour. |
| tag | string | Filter by tag (action=list) |
| token_budget | number | [wakeup] Max tokens to render (chars/4 estimate, default 800) |
knowledge_adminAdmin operations: view vector store stats, view/update configuration, rebuild embeddings, prune orphan session embeddings, or VACUUM the database. Use action "status" for index stats, "config" to view or update settings, "rebuild_embeddings" to re-embed all knowledge entries (useful when switching providers), "prune_orphans" to delete embeddings for sessions no longer present on disk, "vacuum" to reclaim free pages.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action: status (vector store stats), config (view/update settings), rebuild_embeddings (re-embed all entries), prune_orphans (delete embeddings for missing sessions), vacuum (reclaim free pages), promote (run the scored promoter — see promote_mode) |
| auto_distill | boolean | Enable/disable scheduled promotion (action=config) |
| force_vacuum | boolean | Run VACUUM even if no orphans were pruned (action=prune_orphans) |
| git_url | string | Git remote URL (action=config). Set to empty string to remove. |
| memory_dir | string | Local knowledge base directory (action=config). Empty to reset. |
| min_recall_count | number | [promote] Minimum recall count gate (default: 2). |
| min_score | number | [promote] Minimum composite score to promote (default: 0.5). |
| min_unique_queries | number | [promote] Minimum unique-query gate (default: 2). |
| promote_mode | string | action=promote mode (default: explain). "explain" returns score breakdowns without writing; "apply" promotes candidates that pass all gates. |
| vacuum | boolean | Run VACUUM after pruning (action=prune_orphans, default true) |
knowledge_analyzeAnalysis tools: find duplicates, unconnected entries, most-connected concepts (god nodes), bridge entries, knowledge gaps, zero-result search queries, stale-by-code-activity entries, or generate a compact knowledge brief. Actions: consolidate, reflect, god_nodes, bridges, gaps, brief, search_gaps, stale_by_code_activity.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action: consolidate (find duplicates), reflect (find unconnected entries), god_nodes (most-connected entries), bridges (cross-cluster connectors), gaps (entries with 0-1 edges), brief (compact knowledge base summary), search_gaps (zero-result knowledge_search queries grouped by similarity — the single best signal for "what entries should I write next?"), stale_by_code_activity (entries whose referenced file paths were modified in recent sessions after the entry body was last edited — automatic staleness signal, v1.8.1). |
| category | string | Scan only this category (omit for all) |
| group_similarity | number | [search_gaps] Jaccard token similarity threshold for merging near-duplicate queries (default: 0.35, range 0-1). Low because short queries yield low Jaccard even when topically related. |
| max_entries | number | Max unconnected entries to include (action=reflect, default: 20) |
| min_count | number | [search_gaps] Minimum occurrence count per merged group (default: 1). Raise to surface only repeated misses. |
| min_touching_sessions | number | [stale_by_code_activity] Minimum distinct sessions that must have modified one of the entry's referenced files for it to be flagged (default: 1). |
| since_days | number | [search_gaps] Lookback window in days (default: 30). Only queries logged within this window are considered. |
| threshold | number | Similarity threshold 0-1 (action=consolidate, default: 0.5) |
| top_n | number | Number of results (action=god_nodes default: 10, action=bridges default: 5) |
knowledge_graphKnowledge graph operations with temporal validity and code structure support. Create/remove edges, traverse via directed BFS, bulk-import code graph edges. Relationship types: related_to, supersedes, depends_on, contradicts, specializes, part_of, alternative_to, builds_on, calls, imports, inherits. Code structure types (calls/imports/inherits) are created by knowledge-ingest and use "code:" prefixed node IDs.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action: link (create edge), unlink (remove edge), invalidate (set valid_to), list (list edges), traverse (directed BFS), bulk_link (batch-create edges), unlink_by_origin (delete all edges from a specific origin) |
| as_of | string | ISO date — only return edges valid at this date (action=list/traverse, optional) |
| depth | number | Max traversal depth in hops (action=traverse, default: 2) |
| direction | string | Traversal direction (action=traverse, default: both). outbound: follow source→target (what does X call?). inbound: follow target→source (who calls X?). both: undirected (default, preserves legacy behavior). |
| edges | array | Array of edges to create (action=bulk_link). Each: { source, target, rel_type, strength?, origin? } |
| entry | string | Entry path for filtering (action=list) or BFS start (action=traverse) |
| origin | string | Edge origin to delete (action=unlink_by_origin). E.g. "tree-sitter" to clear code graph before re-ingest. |
| rel_type | string | Relationship type (required for link, optional filter for unlink/invalidate/list) |
| source | string | Source entry path (action=link/unlink/invalidate), e.g. 'projects/my-project.md' |
| strength | number | Edge strength 0-1 (action=link, default: 0.5) |
| target | string | Target entry path (action=link/unlink/invalidate), e.g. 'decisions/architecture.md' |
| valid_from | string | ISO date the fact became true (action=link, optional). Null/omitted = unbounded. |
| valid_to | string | ISO date the fact stopped being true (action=link/invalidate). For invalidate, defaults to today. |
knowledge_searchGeneral hybrid TF-IDF + semantic (no `scope`)| Parameter | Type | Description |
|---|---|---|
| category | any | |
| category_mode | any | |
| explain | any | |
| max_results | any | |
| mmr | any | |
| mmr_lambda | any | |
| project | any | |
| query * | any | |
| ranked | any | |
| role | any | |
| semantic | any |
knowledge_sessionSession operations: list sessions, get a full conversation, or get a summary. Use action "list" to browse sessions, "get" to retrieve messages, "summary" for a quick overview.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| include_tools | boolean | Include tool_use and tool_result messages (action=get, default: false) |
| limit | number | Max sessions to return (action=list, default: 20, max: 500) |
| offset | number | Skip first N sessions (action=list, default: 0) |
| project | string | Filter by project name (substring match) |
| session_id | string | Session UUID (required for get, summary) |
| tail | number | Only return the last N messages (action=get) |
Security checks
- ✓README presentThe repository's README runs to about 3.6K words.
5 checks have not been run yet.
README
The repository's README runs to about 3.6K words. The original in the repository is authoritative.
Read full README