npx claudepluginhub usecortex/hydradb-claude-codeSecure HydraDB automation for Claude Code with workspace sync, prompt recall, and conversation capture.
Secure HydraDB automation for Claude Code with markdown-first workspace sync, prompt-time recall, and configurable memory capture modes.
The plugin gives Claude Code persistent, cross-session memory powered by HydraDB. It hooks into the Claude Code lifecycle to automatically recall relevant context at prompt time, sync workspace documentation into HydraDB, and capture conversation content as durable memories.
*.md, *.mdx, CLAUDE.md) into HydraDBgit clone https://github.com/usecortex/hydradb-claude-code.git
cd hydradb-claude-code
make bootstrap
The bootstrap script will:
npm installconfig.json from config.example.json (if it doesn't already exist)Then set your credentials:
export HYDRADB_API_KEY="your-api-key"
export HYDRADB_TENANT_ID="your-tenant-id"
Install the plugin in Claude Code:
/plugin marketplace add /path/to/hydradb-claude-code
/plugin install hydradb@hydradb
Or, once the repo is public:
/plugin marketplace add usecortex/hydradb-claude-code
/plugin install hydradb@hydradb
Reload Claude Code and run /hydradb:status to verify.
The plugin resolves configuration from multiple layers (later layers override earlier ones):
HYDRADB_PLUGIN_CONFIG environment variable${CLAUDE_PLUGIN_DATA}/config.json./.hydradb-plugin-data/config.json.hydradb-plugin.json.hydradb-plugin.local.json{
"apiBaseUrl": "https://api.hydradb.com",
"apiKey": "${HYDRADB_API_KEY}",
"tenantId": "${HYDRADB_TENANT_ID}",
"subTenantId": "",
"autoRecall": true,
"autoIngest": true,
"captureMode": "session-upsert",
"searchMode": "memory",
"ingestionMode": "memory"
}
| Field | Default | Description |
|---|---|---|
apiBaseUrl | https://api.hydradb.com | HydraDB API endpoint |
apiKey | — | HydraDB API key (use ${HYDRADB_API_KEY} to reference env var) |
tenantId | — | HydraDB tenant ID (use ${HYDRADB_TENANT_ID} to reference env var) |
subTenantId | — | Sub-tenant scope; set to "" for HydraDB's default sub-tenant |
userName | — | Display name attached to captured memories |
autoRecall | true | Automatically recall HydraDB context on each user prompt |
autoIngest | true | Automatically sync workspace docs on session start |
captureMode | session-upsert | turn, session-upsert, both, or off |
searchMode | memory | memory, knowledge, or both |
ingestionMode | memory | memory, knowledge, or auto |
recallMode | thinking | Recall strategy passed to HydraDB |
graphContext | true | Include graph entity paths and relations in recall |
maxContextChars | 7000 | Max characters injected into Claude's context per prompt |
maxMemoryResults | 6 | Max memory chunks returned per recall |
maxKnowledgeResults | 4 | Max knowledge chunks returned per recall |
requestTimeoutMs | 15000 | Timeout for HydraDB read requests |
writeTimeoutMs | 15000 | Timeout for HydraDB write requests |
maxFileSizeBytes | 52428800 | Max file size for workspace sync (50 MB) |
maxFilesPerSync | 25 | Max files synced per workspace sync run |
includeGlobs | ["CLAUDE.md", ".claude/**/*.md", "**/*.md", "**/*.mdx"] | File patterns to include in workspace sync |
excludeGlobs | (see config.example.json) | File patterns to exclude from workspace sync |
ignoreMarker | hydra-ignore | Marker string to skip capture/sync for specific files or prompts |
memoryCustomInstructions | (see config.example.json) | Instructions for memory extraction from conversations |
workspaceMemoryCustomInstructions | (see config.example.json) | Instructions for memory extraction from workspace docs |
debug | false | Enable JSONL debug logging |
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
Curated collection of 154 specialized Claude Code subagents organized into 10 focused categories