Agent Skill Integration
Overview
Section titled “Overview”HEBBS ships a universal SKILL.md file that teaches any AI agent how to use HEBBS as a cognitive memory backend. The skill works with OpenClaw, Cursor, Claude Code, Codex, or any agent that can run shell commands.
The agent uses the hebbs CLI directly — no plugin, SDK, or custom integration needed.
Installation
Section titled “Installation”- Install HEBBS:
brew install hebbs-ai/tap/hebbs(orcurl -sSf https://hebbs.ai/install | sh) - Initialize a vault:
hebbs init . --provider openai --key $OPENAI_API_KEY(--modelis optional, defaults per provider) - Index your files:
hebbs index . - Copy
hebbs/skills/hebbs/SKILL.mdinto your agent’s skill directory
For OpenClaw:
cp hebbs/skills/hebbs/SKILL.md ~/.openclaw/skills/hebbs/SKILL.mdopenclaw skills list # verify it appearsHow It Works
Section titled “How It Works”The skill teaches the agent five core operations:
| Operation | Purpose | When to use |
|---|---|---|
remember | Store a memory | User shares a fact, preference, decision |
recall | Retrieve relevant memories | Before answering questions |
insights | Retrieve consolidated knowledge | Before recall, for distilled answers |
forget | Remove outdated memories | User corrects or retracts information |
prime | Load entity context | Start of a conversation |
HEBBS handles reflection and contradiction detection autonomously using its configured LLM. The agent can optionally trigger reflection manually:
| Operation | Purpose | When to use |
|---|---|---|
reflect | Trigger reflection for an entity | Optional one-shot trigger when the agent wants immediate consolidation |
Example: OpenClaw Agent Loop
Section titled “Example: OpenClaw Agent Loop”A typical agent conversation flow with HEBBS:
- User opens chat — Agent runs
hebbs prime <entity>to load context - User sends message — Agent runs
hebbs recall "<message>" --format jsonto find relevant memories - Agent responds using recalled context
- After response — Agent runs
hebbs remember "<key fact from conversation>" --importance 0.7 --entity-id <entity> - Before deep questions — Agent runs
hebbs insights --entity-id <entity>to check consolidated knowledge
Periodically, HEBBS automatically consolidates memories into insights using the configured LLM (threshold: 20+ memories per entity, or 1 hour interval). The agent can trigger this manually with hebbs reflect --entity-id <id> if immediate consolidation is needed.
Configuration
Section titled “Configuration”The agent connects to the HEBBS server at localhost:50051 by default. Override with:
hebbs --endpoint myhost:50051 recall "query"For authenticated deployments, set the API key:
hebbs --api-key $HEBBS_API_KEY recall "query"HEBBS requires an LLM provider for autonomous reflection and contradiction detection. Configure during initialization:
hebbs init --provider openai --key $OPENAI_API_KEY--model is optional (defaults per provider). LLM and embedding config are saved to ~/.hebbs/config.toml and inherited by all vaults.
Or set in ~/.hebbs/config.toml directly:
[llm]provider = "openai"model = "gpt-4o-mini"api_key = "sk-proj-your-key-here"
[embedding]provider = "openai"model = "text-embedding-3-small"api_key = "sk-proj-your-key-here"dimensions = 1536- Always use
--format jsonwhen the agent parses output - Set importance based on content type: 0.9 for corrections, 0.8 for preferences, 0.5 for observations, 0.3 for transient context
- Use entity IDs to scope memories per user, project, or domain
- Check insights before raw recall — insights are higher-quality, distilled knowledge