Hippocortex Feature Catalog

A comprehensive reference of every capability in the Hippocortex platform.


0. Integration Methods

Hippocortex offers multiple integration paths, from zero-code to full manual control. All methods access the full pipeline: capture, synthesize, learn, vault, collective brain.

Gateway (Recommended)

OpenAI-compatible proxy. Change your base URL and every LLM call gets persistent memory. No SDK, no code changes. Works with any provider: OpenAI, Anthropic, Google Gemini, Groq, Together, Mistral, Fireworks, Ollama, and any OpenAI-compatible endpoint.

Reliability: ~99% with graceful fallback.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.hippocortex.dev/v1",
    api_key="hx_live_...",
    default_headers={"X-LLM-API-Key": "sk-..."},
)

See Gateway Guide for full documentation.

Auto-Instrumentation

Sentry-style monkey-patching. One import, zero config. Every OpenAI and Anthropic SDK call automatically gets memory context injection and conversation capture.

// TypeScript
import '@hippocortex/sdk/auto'
# Python
import hippocortex.auto

How it works: On import, the module patches Completions.prototype.create (OpenAI) and Messages.prototype.create (Anthropic). Each call synthesizes relevant context, prepends it as a system message, calls the original method, then captures the conversation. All operations are fault-tolerant: if Hippocortex is unreachable, calls pass through unchanged.

wrap() — Transparent Client Wrapping

Wrap your OpenAI or Anthropic client instance. Explicit, typed, per-client control.

import { wrap } from '@hippocortex/sdk'
const openai = wrap(new OpenAI())
// Use exactly as before. Memory is transparent.
from hippocortex import wrap
client = wrap(OpenAI())
# Use exactly as before. Memory is transparent.

The wrapped client keeps its original type signature. Works with OpenAI and Anthropic SDKs.

OpenClaw Plugin (Recommended for OpenClaw)

The @hippocortex/hippocortex@3.2.1 plugin gives OpenClaw agents persistent memory with zero code changes. Full pipeline: capture, synthesize (semantic search, graph retrieval, collective brain, behavioral context), learn, vault, and context engine for infinite sessions.

See OpenClaw Plugin for full documentation.

Zero-Config

All integration methods support automatic configuration resolution:

  1. Explicit arguments
  2. Environment variables: HIPPOCORTEX_API_KEY, HIPPOCORTEX_BASE_URL
  3. .hippocortex.json file (searched from cwd upward to filesystem root)

1. Event Capture

Hippocortex captures agent interactions as structured events for downstream compilation and retrieval.

Supported Event Types

#TypeDescriptionExample Payload Fields
1messageConversation turns (user/assistant/system)role, content
2tool_callTool invocations with parameterstool, args, callId
3tool_resultTool outputs and return valuestool, result, callId, success
4file_editFile modificationspath, before, after, diff
5test_runTest suite executionsuite, passed, failed, duration
6command_execShell command executioncommand, exitCode, stdout, stderr
7browser_actionBrowser automation actionsaction, url, selector, result
8api_resultExternal API call resultsendpoint, method, status, body
9decisionAgent reasoning and choice pointsoptions, chosen, reasoning
10errorErrors and exceptionstype, message, stack, context
11feedbackHuman feedback signalsverdict, comment, rating
12observationEnvironmental observationssource, content, significance
13outcomeTask completion and resultstask, success, duration, metrics

Batch Support

Capture up to 100 events in a single API call using POST /v1/capture/batch.

Deduplication

Events are deduplicated using idempotency keys and SHA-256 content hashing.

Salience Scoring

Every ingested event receives a salience score (0.0 to 1.0). High-salience events (errors, outcomes, decisions) are prioritized during memory compilation.


2. Context Synthesis

Retrieves compressed, relevant context for an agent's current query. The synthesis engine uses the full pipeline: semantic search, graph retrieval, collective brain, and behavioral context.

Performance

MetricValue
p50 latency18ms
p99 latency85ms
Max context sections6
Default token budget4,000
Max token budget32,000

Token Budget Management

The synthesis engine allocates tokens across reasoning sections:

SectionPriorityDescription
proceduresHighestRelevant task schemas and step sequences
failuresHighFailure playbooks matching the query
decisionsMediumDecision policies and rules
factsMediumKnown facts and entity information
causalLowerCausal patterns and relationships
contextLowestGeneral context and background

Ranking Model

Context items are ranked using an 8-signal composite model:

SignalWeightDescription
Salience0.20Stored confidence/importance score
Recency0.15Time decay (newer items score higher)
Keyword Overlap0.15Query terms found in memory content
Entity Overlap0.20Named entities shared between query and memory
Graph Connectivity0.10Knowledge graph connections to query entities
Relation Strength0.05Direct graph relations to query subject
Contradiction Status0.10Active (1.0) vs deprecated (0.0)
Promotion Confidence0.05Original confidence assessment score

Provenance Tracking

Every synthesis entry includes provenance references tracing back to source events.


3. Memory Compilation (Learn)

The Memory Compiler transforms raw events into structured knowledge artifacts. It operates without any LLM calls, ensuring deterministic and hallucination-free knowledge extraction.

Key Properties

PropertyDescription
Zero-LLMNo language model calls. Purely algorithmic pattern extraction.
DeterministicSame inputs always produce the same artifacts.
IncrementalOnly processes events since the last compilation run.
AuditableEvery artifact traces back to source events.
Contradiction-awareDetects and supersedes outdated knowledge.

Compilation Modes

  • Incremental: Processes only new events since the last run (default, faster)
  • Full: Reprocesses all events from scratch (thorough, slower)

4. Knowledge Artifacts

The compiler produces five types of knowledge artifacts:

Artifact TypeWhat It Contains
Task SchemaLearned procedures and step sequences
Failure PlaybookKnown failure modes with recovery steps
Decision PolicyConditional rules extracted from agent decisions
Causal PatternCause-and-effect relationships between events
Strategy TemplateHigh-level approaches for recurring problem types

5. Collective Brain

Cross-session knowledge promotion. When patterns are observed across multiple sessions and agents, the collective brain promotes them to shared knowledge that benefits all agents in the account.

  • Patterns are promoted based on frequency, consistency, and confidence across sessions
  • Promoted knowledge is available via synthesize() to all agents
  • Prevents knowledge silos between agents
  • Available on Pro, Unlimited, and Team plans

6. Graph Retrieval

Knowledge graph that captures relationships between entities, tools, outcomes, and artifacts. Used during synthesis to find contextually related information that semantic search alone would miss.

  • Entity extraction from captured events
  • Relationship mapping between entities
  • Graph traversal during context retrieval
  • Enhances synthesis with connected knowledge

7. Behavioral Intelligence

Analyzes tool usage patterns and decision-making behavior across agent sessions.

  • Tool usage analysis: Which tools are used most, in what sequences, with what success rates
  • Decision pattern extraction: Common decision points and the choices agents make
  • Session flow analysis: How agents approach different types of tasks
  • Anomaly detection: Unusual patterns that may indicate problems
  • Effectiveness scoring: Which approaches lead to successful outcomes

8. Encrypted Vault

Secure storage for sensitive data with AES-256-GCM envelope encryption.

Features

FeatureDescription
Envelope encryptionTwo-layer encryption (DEK + KEK)
AES-256-GCMAuthenticated encryption with associated data
Permission-gated revealSecrets only revealed to authorized roles
Audit trailEvery reveal is logged with actor, timestamp, IP
Version historyFull version history for every vault item
Secret referencesvault:// URI scheme for referencing without revealing
Auto-detectionSecrets in captured events are automatically intercepted and vaulted

Vault API

  • vaultQuery() — Search vault by natural language query (metadata only)
  • vaultReveal() — Retrieve decrypted secret value (permission-gated, audited)
  • Create, update, and archive vault items
  • List versions for audit

9. Secret Detection

Automatically intercepts sensitive data in captured events before it enters the memory system.

  • Detects secrets in event payloads during capture
  • Classifies detected secrets by type and confidence level
  • High-confidence secrets are automatically redirected to the vault
  • Secret references (vault://) replace raw values in stored events

Supported Secret Types

API keys (AWS, GCP, GitHub, Stripe, etc.), connection strings, tokens (JWT, OAuth, bearer), credentials, and PII.


10. Gateway

OpenAI-compatible proxy running the full pipeline. See Gateway Guide.


11. Context Engine

Powers infinite sessions for the OpenClaw plugin and other integrations. Manages context windows across long-running agent sessions by synthesizing the most relevant information within token budgets.



13. HMX Protocol

The Hippocortex Memory Exchange (HMX) Protocol is an open standard for agent memory interoperability:

  1. Event Schema Spec — Standardized event format across frameworks
  2. Artifact Schema Spec — Knowledge artifact structure and lifecycle
  3. Context Pack Spec — Compressed context delivery format
  4. Memory Fingerprint Spec — Portable compressed memory state
  5. Transfer Protocol Spec — Cross-agent knowledge portability

14. Memory Fingerprints

Compressed representations of an agent's memory state for portability and backup.

TierCompression RatioContents
Full~1:1All artifacts, memories, and metadata
Standard~5:1Active artifacts and promoted memories
Compact~20:1Top-confidence artifacts and key decision points

15. Adaptive Compiler

Self-tunes compilation parameters based on telemetry feedback. Adjusts 19 parameters across five categories with safety guarantees (hard bounds, max change caps, full rollback).


16. Predictive Context

Pre-warms context packs based on predicted agent needs, reducing retrieval latency for anticipated queries.


17. Enterprise RBAC

Role-based access control with organization and team scoping. 6 organization roles, 4 team roles, 28 permissions.


18. Memory Namespaces

Scoped collections with sensitivity classification (public, internal, confidential, restricted).


19. Policy Engine

Fine-grained access control using allow/deny rules with priority evaluation.


20. Audit Logging

Comprehensive audit trail for all system operations: mutations, access, vault, authentication, administration.


21. Memory Lineage

Full provenance tracking showing how knowledge was derived from source events.


22. Lifecycle Policies

Manage retention, archival, and deletion: active → warm → cold → archived.


Feature Availability by Plan

FeatureFreeProUnlimitedTeam
Event Capture
Memory Compilation
Context Synthesis
Knowledge Artifacts
Gateway
OpenClaw Plugin
Collective Brain
Vault (Encrypted)
Secret Detection
Advanced Analytics
RBAC
Memory Namespaces
Policy Engine
Audit Logging
Memory Lineage
Lifecycle Policies
Behavioral Intelligence
Adaptive Compiler
Predictive Context
Cross-Agent Transfer
Memory Fingerprints