lktiep/cortex-hub
Self-hosted AI Agent Memory + Code Intelligence Platform — one MCP endpoint for persistent memory, AST-aware code search, shared knowledge, and quality enforcement across all your AI coding agents.
field: Cloud & infrastructure
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 15/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit lktiep/cortex-hub/.claude ./rig-cortex-hub # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit lktiep/cortex-hub/templates/skills/install .claude/skills/install $ npx degit lktiep/cortex-hub/templates/skills/working .claude/skills/working
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit|Write|NotebookEdit|Bash|Grep|Glob",
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/enforce-session.sh\""
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/enforce-commit.sh\""
}
]
},
{
"matcher": "Bash|Grep|Glob|mcp__.*cortex_(code_search|code_context|code_impact|cypher)",
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/nudge-lookup.sh\""
}
]
},
{
"matcher": "mcp__.*cortex_(session_start|code_search)",
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/session-id.sh\""
}
]
},
{
"matcher": "Read|Edit|Write|MultiEdit|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/recall-notes.sh\""
}
]
}
]
}
} Skills (2)
Hooks (9)
| event | matcher | runs |
|---|---|---|
| SessionStart | * | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/session-init.sh" |
| SubagentStart | * | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/subagent-start.sh" |
| PreToolUse | Edit|Write|NotebookEdit|Bash|Grep|Glob | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/enforce-session.sh" |
| PreToolUse | Bash | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/enforce-commit.sh" |
| PreToolUse | Bash|Grep|Glob|mcp__.*cortex_(code_search|code_context|code_impact|cypher) | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/nudge-lookup.sh" |
| PreToolUse | mcp__.*cortex_(session_start|code_search) | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/session-id.sh" |
| PreToolUse | Read|Edit|Write|MultiEdit|NotebookEdit | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/recall-notes.sh" |
| PostToolUse | * | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/track-quality.sh" |
| SessionEnd | * | bash "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/session-end-check.sh" |
Slash commands (2)
/ce/cs
Similar rigs
wireboard/wireboard-claude-plugin
Official Claude Code plugin for WireBoard. Install tracking, custom events, SPA route tracking, and cookie consent flow in any web codebase.
Pragmatist 2.6k tok · · Q0
agenticmail/agenticmail
Email, SMS & phone-call infrastructure for AI agents — send and receive real email and text messages, and place agent-driven outbound voice calls, all programmatically
Pragmatist 10.2k tok · · Q3
rekal-dev/rekal-cli
Your coding agent starts every session blank. Rekal is the memory your team is missing
Pragmatist 16.5k tok · · Q5
keshrath/agent-discover
MCP server registry and marketplace — discover, install, activate, and manage MCP tools on demand
Pragmatist 4.7k tok · · Q5