1. Conduid
  2. Search
  3. io.github.keshrath/agent-knowledge
MCP server · Search

io.github.keshrath/agent-knowledge

Cross-session memory for AI agents - knowledge graph, scoring, semantic search

Unclaimed search
54Fair

Scored 21 hours ago · breakdown

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 Code
claude mcp add io-github-keshrath-agent-knowledge -- npx agent-knowledge
Run
npx agent-knowledge
From source
git clone https://github.com/keshrath/agent-knowledge

Tools (11)

AiderMarkdown/JSONL
ClineJSON
Continue.devJSON
CursorJSONL
OpenCodeSQLite
knowledgeKnowledge 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).
ParameterTypeDescription
action *stringAction to perform
categorystringCategory (action=list: filter; action=write: target directory). One of: projects, people, decisions, workflows, notes
contentstringFull markdown content for the entry (action=write)
filenamestringFilename with or without .md extension (action=write), e.g. 'my-project.md'
pathstringRelative path to the entry, e.g. 'projects/my-project.md' (action=read, delete)
section_budgetsobject[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.
sectionsstring[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.
tagstringFilter by tag (action=list)
token_budgetnumber[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.
ParameterTypeDescription
action *stringAction: 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_distillbooleanEnable/disable scheduled promotion (action=config)
force_vacuumbooleanRun VACUUM even if no orphans were pruned (action=prune_orphans)
git_urlstringGit remote URL (action=config). Set to empty string to remove.
memory_dirstringLocal knowledge base directory (action=config). Empty to reset.
min_recall_countnumber[promote] Minimum recall count gate (default: 2).
min_scorenumber[promote] Minimum composite score to promote (default: 0.5).
min_unique_queriesnumber[promote] Minimum unique-query gate (default: 2).
promote_modestringaction=promote mode (default: explain). "explain" returns score breakdowns without writing; "apply" promotes candidates that pass all gates.
vacuumbooleanRun 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.
ParameterTypeDescription
action *stringAction: 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).
categorystringScan only this category (omit for all)
group_similaritynumber[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_entriesnumberMax unconnected entries to include (action=reflect, default: 20)
min_countnumber[search_gaps] Minimum occurrence count per merged group (default: 1). Raise to surface only repeated misses.
min_touching_sessionsnumber[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_daysnumber[search_gaps] Lookback window in days (default: 30). Only queries logged within this window are considered.
thresholdnumberSimilarity threshold 0-1 (action=consolidate, default: 0.5)
top_nnumberNumber 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.
ParameterTypeDescription
action *stringAction: 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_ofstringISO date — only return edges valid at this date (action=list/traverse, optional)
depthnumberMax traversal depth in hops (action=traverse, default: 2)
directionstringTraversal 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).
edgesarrayArray of edges to create (action=bulk_link). Each: { source, target, rel_type, strength?, origin? }
entrystringEntry path for filtering (action=list) or BFS start (action=traverse)
originstringEdge origin to delete (action=unlink_by_origin). E.g. "tree-sitter" to clear code graph before re-ingest.
rel_typestringRelationship type (required for link, optional filter for unlink/invalidate/list)
sourcestringSource entry path (action=link/unlink/invalidate), e.g. 'projects/my-project.md'
strengthnumberEdge strength 0-1 (action=link, default: 0.5)
targetstringTarget entry path (action=link/unlink/invalidate), e.g. 'decisions/architecture.md'
valid_fromstringISO date the fact became true (action=link, optional). Null/omitted = unbounded.
valid_tostringISO date the fact stopped being true (action=link/invalidate). For invalidate, defaults to today.
knowledge_searchGeneral hybrid TF-IDF + semantic (no `scope`)
ParameterTypeDescription
categoryany
category_modeany
explainany
max_resultsany
mmrany
mmr_lambdaany
projectany
query *any
rankedany
roleany
semanticany
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.
ParameterTypeDescription
action *stringAction to perform
include_toolsbooleanInclude tool_use and tool_result messages (action=get, default: false)
limitnumberMax sessions to return (action=list, default: 20, max: 500)
offsetnumberSkip first N sessions (action=list, default: 0)
projectstringFilter by project name (substring match)
session_idstringSession UUID (required for get, summary)
tailnumberOnly 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
Questions

About io.github.keshrath/agent-knowledge

How do I install io.github.keshrath/agent-knowledge?

In Claude Code, run claude mcp add io-github-keshrath-agent-knowledge -- npx agent-knowledge. Other MCP clients take the command after "--" in their server configuration.

Is io.github.keshrath/agent-knowledge safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.keshrath/agent-knowledge still maintained?

Yes — the last commit was 4 days ago. The repository has 19 stars and 2 forks.

What tools does io.github.keshrath/agent-knowledge provide?

Conduid read 11 tools from the source: Aider, Cline, Continue.dev, Cursor, OpenCode, knowledge, knowledge_admin, knowledge_analyze and 3 more. 6 of them publish their parameters, listed under Tools above.