About cdeust/Cortex
cdeust/Cortex is an MCP server published by cdeust in the RAG category: coding write gate, WRRF retrieval. PostgreSQL + pgvector, 33 MCP tools, 7 lifecycle hooks. Benchmarked 97.8% R@10 on LongMemEval. `claude plugin marketplace add cdeust/Cortex`. Conduid read 60 tools from its source: add_rule, anchor, assess_coverage, backfill_memories, calibration, change_impact and 54 more. It is published to PyPI as hypermnesia-mcp and runs with uvx.
The repository has 78 stars and 17 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 agent-memory-system, artificial-intelligence, causal-inference, claude-code-plugin, cognitive-architecture and cognitive-science.
Install
uvx hypermnesia-mcppip install hypermnesia-mcpgit clone https://github.com/cdeust/CortexTools (60)
add_ruleAdd a neuro-symbolic rule to the memory store.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| condition * | string | |
| priority | integer | |
| rule_type | string | |
| scope | string | |
| scope_value | string | |
| source_memory_id | integer |
anchorMark a memory as compaction-resistant (heat=1.0).| Parameter | Type | Description |
|---|---|---|
| is_global | boolean | |
| memory_id * | integer | |
| reason | string |
assess_coverageEvaluate knowledge coverage completeness.| Parameter | Type | Description |
|---|---|---|
| directory | string | |
| domain | string | |
| stale_days | integer |
backfill_memoriesAuto-import prior Claude Code conversations into memory.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | |
| force_reprocess | boolean | |
| max_files | integer | |
| min_importance | number | |
| project | string |
calibrationScore resolved predictions: Brier score and reliability bands.| Parameter | Type | Description |
|---|---|---|
| domain | string |
change_impactReport memories affected by a commit's code changes.| Parameter | Type | Description |
|---|---|---|
| apply_heat_bump | boolean | |
| base | string | |
| expand_impact | boolean | |
| head | string |
check_setupVerify the local install: Python, PG driver, DB, extensions, FS.checkpointSave or restore working state for hippocampal replay.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| active_errors | array | |
| current_task | string | |
| custom_context | string | |
| directory | string | |
| files_being_edited | array | |
| key_decisions | array | |
| next_steps | array | |
| open_questions | array | |
| session_id | string |
codebase_analyzeAnalyze codebase and store structure as memories.| Parameter | Type | Description |
|---|---|---|
| directory | string | |
| domain | string | |
| dry_run | boolean | |
| incremental | boolean | |
| languages | array | |
| max_file_size_kb | integer | |
| max_files | integer |
consolidateRun memory maintenance: decay, compression, CLS, memify.| Parameter | Type | Description |
|---|---|---|
| compress | boolean | |
| decay | boolean | |
| deep | boolean | |
| memify | boolean | |
| wiki | boolean | |
| wiki_apply_citation_seed | boolean | |
| wiki_apply_classifier_rejects | boolean | |
| wiki_apply_stubs | boolean | |
| wiki_citation_seed_limit | integer | |
| wiki_max_purges_per_axis | integer |
create_triggerCreate a prospective memory trigger.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| source_memory_id | integer | |
| target_directory | string | |
| trigger_condition * | string | |
| trigger_type | string |
curate_distillReturn distillation dossiers for the in-session LLM to author| Parameter | Type | Description |
|---|---|---|
| domain | string | |
| include_co_access | boolean | |
| include_entity_family | boolean | |
| include_error_success | boolean | |
| limit | integer | |
| memory_pool_size | integer | |
| min_avg_heat | number | |
| min_memories | integer | |
| window_hours | number |
curate_wikiReturn structured authoring jobs for the in-session LLM to author.| Parameter | Type | Description |
|---|---|---|
| coverage_jobs_max | integer | |
| domain | string | |
| include_coverage | boolean | |
| include_reauthor | boolean | |
| limit | integer | |
| memory_pool_size | integer | |
| min_avg_heat | number | |
| min_memories | integer | |
| reauthor_jobs_max | integer | |
| recent_only | boolean | |
| report_uncited_deliberate | boolean | |
| uncited_deliberate_limit | integer |
detect_domainLightweight domain classification.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| first_message | string | |
| project | string |
detect_gapsIdentify knowledge gaps in the memory store.| Parameter | Type | Description |
|---|---|---|
| domain | string | |
| include_domain_gaps | boolean | |
| include_entity_gaps | boolean | |
| include_temporal_gaps | boolean | |
| stale_threshold_days | integer |
drill_downNavigate into a fractal memory cluster.| Parameter | Type | Description |
|---|---|---|
| cluster_id * | string | |
| domain | string | |
| min_heat | number |
explore_featuresExplore interpretability features.| Parameter | Type | Description |
|---|---|---|
| compare_domain | string | |
| domain | string | |
| mode * | any |
forgetDelete or soft-delete a memory by ID.| Parameter | Type | Description |
|---|---|---|
| force | boolean | |
| memory_id * | integer | |
| soft | boolean |
get_causal_chainTrace entity relationships through the knowledge graph.| Parameter | Type | Description |
|---|---|---|
| direction | string | |
| entity_name | string | |
| max_depth | integer | |
| max_edges | integer | |
| memory_id | integer | |
| relationship_types | array |
get_grooming_healthBacklog + staleness for wiki/distillation/promotion grooming.get_project_storyGenerate a period-based autobiographical narrative.| Parameter | Type | Description |
|---|---|---|
| directory | string | |
| domain | string | |
| max_chapters | integer | |
| period | string |
get_rulesList active neuro-symbolic rules.| Parameter | Type | Description |
|---|---|---|
| include_inactive | boolean | |
| rule_type | string | |
| scope | string |
get_telemetryReturn per-op counters + read/write ratio (Popper C6).import_sessionsImport conversation history into the memory store.| Parameter | Type | Description |
|---|---|---|
| domain | string | |
| dry_run | boolean | |
| max_sessions | integer | |
| min_importance | number | |
| project | string |
ingest_codebaseIngest upstream codebase analysis into Cortex.| Parameter | Type | Description |
|---|---|---|
| force_reindex | boolean | |
| ingest_docs | boolean | |
| language | string | |
| output_dir | string | |
| project_path * | string |
ingest_documentIngest a .docx or Confluence export into Cortex.| Parameter | Type | Description |
|---|---|---|
| domain | string | |
| format | string | |
| path * | string | |
| title | string |
ingest_findingsIngest an AP findings run (runs/<run_id>/) into Cortex.| Parameter | Type | Description |
|---|---|---|
| graph_key | string | |
| output_dir | string | |
| run_id * | string |
ingest_prdIngest a PRD document into Cortex.| Parameter | Type | Description |
|---|---|---|
| content | string | |
| domain | string | |
| path | string | |
| pipeline_id | string | |
| title | string | |
| validate | boolean |
lesson_promotionPropose promotion jobs for validated lessons — never promotes itself.| Parameter | Type | Description |
|---|---|---|
| limit | integer |
list_domainsOverview of all detected cognitive domains.memory_statsMemory system diagnostics.narrativeGenerate project narrative from stored memories.| Parameter | Type | Description |
|---|---|---|
| brief | boolean | |
| directory | string | |
| domain | string |
navigate_memoryNavigate memory space using Successor Representation.| Parameter | Type | Description |
|---|---|---|
| include_2d_map | boolean | |
| max_depth | integer | |
| memory_id * | integer | |
| window_hours | number |
predictRecord a falsifiable prediction before its outcome is known.| Parameter | Type | Description |
|---|---|---|
| claim * | string | |
| confidence * | number | |
| directory | string | |
| domain | string | |
| memory_id | integer | |
| prediction * | string | |
| test * | string |
query_methodologyReturns cognitive profile for the current domain.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| first_message | string | |
| project | string |
rate_memoryRate a memory as useful or not to update metamemory confidence.| Parameter | Type | Description |
|---|---|---|
| memory_id * | integer | |
| query | string | |
| useful * | boolean |
rebuild_profilesFull rescan of all session data to rebuild methodology profiles.| Parameter | Type | Description |
|---|---|---|
| domain | string | |
| force | boolean | |
| replace_accumulated_profiles | boolean |
recallRetrieve memories using multi-signal fusion.| Parameter | Type | Description |
|---|---|---|
| content_offset | integer | |
| cross_domain | boolean | |
| directory | string | |
| domain | string | |
| exact_id | boolean | |
| format | string | |
| include_low_signal | boolean | |
| include_related | boolean | |
| max_results | integer | |
| memory_id | integer | |
| min_heat | number | |
| project_root | string | |
| query * | string | |
| sa_mode | string | |
| tags_all | array | |
| tags_any | array |
recall_hierarchicalRetrieve memories using fractal hierarchy.| Parameter | Type | Description |
|---|---|---|
| cluster_threshold | number | |
| domain | string | |
| max_results | integer | |
| memory_ids | array | |
| min_heat | number | |
| query * | string |
recall_skillsRetrieve procedural skills for the current situation.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| domain | string | |
| min_proficiency | number | |
| recent_tools | array | |
| top_k | integer |
record_session_endIncremental profile update after a session ends.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| domain | string | |
| duration | number | |
| keywords | array | |
| project | string | |
| session_id * | string | |
| tools_used | array | |
| turn_count | integer |
rememberStore a memory through the predictive coding write gate.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| created_at | string | |
| directory | string | |
| domain | string | |
| force | boolean | |
| initial_heat | number | |
| is_global | boolean | |
| origin_tool | string | |
| source | string | |
| supersedes_id | integer | |
| tags | array | |
| write_class | string |
resolve_predictionSettle an open prediction against the evidence that decided it.| Parameter | Type | Description |
|---|---|---|
| observed * | string | |
| prediction_id * | integer | |
| source_kind * | string | |
| source_ref * | string | |
| verdict * | string |
seed_projectBootstrap memory from an existing codebase.| Parameter | Type | Description |
|---|---|---|
| directory | string | |
| domain | string | |
| dry_run | boolean | |
| max_file_size_kb | integer |
sync_instructionsPush top memory insights into CLAUDE.md.| Parameter | Type | Description |
|---|---|---|
| directory | string | |
| dry_run | boolean | |
| max_insights | integer | |
| min_heat | number |
unified_searchFuse Cortex recall with AP code search using reciprocal rank fusion.| Parameter | Type | Description |
|---|---|---|
| cross_domain | boolean | |
| domain | string | |
| exact_id | boolean | |
| k | integer | |
| max_results | integer | |
| project_root | string | |
| query * | string | |
| sa_mode | string |
validate_memoryValidate memories against current filesystem state.| Parameter | Type | Description |
|---|---|---|
| after_id | integer | |
| base_dir | string | |
| directory | string | |
| domain | string | |
| dry_run | boolean | |
| memory_id | integer | |
| staleness_threshold | number | |
| url_check_limit | integer |
whyResolve ⟦rcpt:id⟧ injection receipts into presence-in-context evidence.| Parameter | Type | Description |
|---|---|---|
| receipt_ids * | array |
wiki_adrCreate a numbered ADR with auto-incremented sequence.| Parameter | Type | Description |
|---|---|---|
| consequences * | string | |
| decision * | string | |
| project_root | string | |
| status | string | |
| tags | array | |
| title * | string |
wiki_get_draftFetch a pending draft with its source claims and kind contract.| Parameter | Type | Description |
|---|---|---|
| draft_id | integer | |
| kind | string | |
| limit | integer | |
| list_pending | boolean |
wiki_linkAdd a bidirectional link between two wiki pages (Related section).| Parameter | Type | Description |
|---|---|---|
| from_path * | string | |
| relation * | string | |
| to_path * | string |
wiki_listList authored wiki pages, optionally filtered by kind.| Parameter | Type | Description |
|---|---|---|
| include_auto_generated | boolean | |
| include_redirects | boolean | |
| kind | string |
wiki_migrateSync the filesystem wiki into PG and reconcile FS-deleted ghosts.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean |
wiki_purgeRe-evaluate and purge wiki pages that fail the current classifier.| Parameter | Type | Description |
|---|---|---|
| apply | boolean | |
| kind | string | |
| max_purges | integer | |
| purge_classifier_rejects | boolean | |
| purge_shallow | boolean | |
| purge_stubs | boolean | |
| shallow_threshold | integer | |
| stub_threshold | number |
wiki_readRead a wiki page by relative path.| Parameter | Type | Description |
|---|---|---|
| follow_redirects | boolean | |
| offset | integer | |
| path * | string | |
| project_root | string |
wiki_refine_draftSubmit refined prose for a draft and record an audit memo.| Parameter | Type | Description |
|---|---|---|
| draft_id * | integer | |
| frontmatter | object | |
| lead | string | |
| rationale | string | |
| sections | array | |
| synth_model | string | |
| synth_prompt | string | |
| title | string |
wiki_reindexRegenerate the wiki table of contents at .generated/INDEX.md.| Parameter | Type | Description |
|---|---|---|
| project_root | string |
wiki_renameMove a page and leave a redirect stub at the old path.| Parameter | Type | Description |
|---|---|---|
| from_path * | string | |
| overwrite_dest | boolean | |
| reason | string | |
| to_path * | string |
wiki_verifyVerify wiki-page symbol citations against AP's code graph.| Parameter | Type | Description |
|---|---|---|
| path | string |
wiki_writeAuthor a wiki page using create, append, or replace mode.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| memory_ids | array | |
| mode | string | |
| path * | string | |
| project_root | string | |
| tags | array |
Security checks
- ✓README presentThe repository's README runs to about 4.9K words.
5 checks have not been run yet.
README
The repository's README runs to about 4.9K words. The original in the repository is authoritative.
Read full README