hebb

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

README

hebb

CI

hebb turns a folder of markdown notes into a fast, connected knowledge base — and gives your AI tools a memory they can search and recall.

Point hebb at a vault of .md files. It builds a full-text index, follows your [[wiki-links]] and tags to assemble related context, and serves both over the Model Context Protocol (MCP) — so Claude and Codex can search your notes and pull in connected material while they work. Your notes stay plain markdown on your disk; hebb indexes and serves them, it never takes ownership.

Multi-vault, like git is multi-repo: run hebb inside a vault directory, or pass --vault.

Why hebb

  • Agent-native. One MCP server gives Claude Code, Claude Desktop, and Codex the same tools: search_vault, get_context_for_topic, expand_context, vault_stats, reindex_vault.
  • Connected recall, not just keywords. hebb walks [[wiki-links]] and shared tags to gather a topic's context, so an agent gets the related notes, not just the literal hits.
  • Local and fast. Pure-Go SQLite FTS5 — no service, no cloud, no cgo. A single static binary; your vault never leaves your machine.
  • Composable. A CLI, a local web UI, an MCP server, a Claude Code plugin, and a file watcher over one engine. Use the parts you want.

Install

curl -fsSL https://raw.githubusercontent.com/cizer/hebb/main/install.sh | sh

Installs hebb to ~/.local/bin (override HEBB_INSTALL_DIR; pin a version with HEBB_VERSION=vX.Y.Z). With Go: go install github.com/cizer/hebb/cmd/hebb@latest. Requires macOS or Linux (arm64 or amd64).

Quickstart

hebb new ~/notes              # scaffold a vault (PARA folders + templates) and install it
cd ~/notes
echo "# Idea\nA note about search engines. #ideas" > 1-Projects/Idea.md
hebb search "search engines"  # full-text search
hebb serve                    # local web UI on 127.0.0.1

Wire your agents — hebb install/hebb new offer an interactive picker, or do it directly:

hebb codex                                  # register the vault with the Codex CLI
# Claude Code plugin (search + the vault-ingest skill, all vaults):
#   /plugin marketplace add cizer/hebb
#   /plugin install hebb@hebb

Commands

  • hebb new <path> — scaffold a fresh vault (PARA skeleton, CLAUDE.md + AGENTS.md, note template) and install it.
  • hebb install — wire a vault into the machine (config, index, memory, optional launchd jobs) and offer to connect your agents. Idempotent.
  • hebb search <query> — full-text search (--tag, --path-prefix, --limit).
  • hebb mcp — MCP server over stdio (the five tools above).
  • hebb serve — local web search UI on 127.0.0.1 (--port, $HEBB_WEB_PORT).
  • hebb codex — register the vault as a Codex MCP server (~/.codex/config.toml), non-destructively.
  • hebb doctor — read-only health check; non-zero exit if anything is broken.
  • hebb reset — un-wire a vault from the machine (memory link, launchd jobs, agent configs, index). Dry run by default; --force to apply. Never touches your notes.
  • hebb sync — commit, pull (rebase), and push the vault's markdown via git. Never force-pushes; a conflicting pull is aborted and reported. Enable [git] in config.toml to also auto-sync: pull when a hebb process starts, commit+push after edits settle.
  • hebb update — check for and install a newer hebb release (checksum-verified, atomic replace). --check only reports. Self-replaces only a binary hebb owns; a Homebrew or go install binary is left to its package manager. A scheduled update-check job notifies of new releases (set [update] auto = true to install them).
  • hebb index — build or refresh the index (usually automatic).

Vault selection everywhere: --vault <path>, $HEBB_VAULT, or the nearest .hebb/ above the working directory.

Agents

hebb is the engine; thin adapters connect it to each tool, all over the same MCP server:

  • Claude Code — the plugin/ (MCP server + the vault-ingest filing skill), installed once via the marketplace; works in every vault.
  • Claude Desktop / Codex — an MCP-server entry pinned to a vault, written by the hebb install picker (or hebb codex).
  • Anything else that speaks MCP — point it at hebb mcp.

How it works

core/         engine: index, search, context graph, file watcher
cli/          the hebb command
mcp/          MCP server surface
web/          local web UI (embedded)
plugin/       Claude Code plugin (manifest, .mcp.json, vault-ingest skill)
automation/   optional background jobs (digest, action review)
vault-template/  the `hebb new` scaffold

Per vault, hebb keeps a .hebb/ directory (like .git): config.toml, the derived index.db, and memory/. Commit config.toml and your notes; the index is rebuilt on demand.

See ARCHITECTURE.md for the design.

Build

go build ./...
go test ./...

hebb --version shows the git revision on dev builds; releases stamp a clean tag. Test strategy and the CD pipeline are in TESTING.md; releasing in RELEASING.md.

License

Apache-2.0.

Documentation

Overview

Package hebb embeds the function-layer assets (automation scripts and the vault template) into the binary so hebb runs standalone, with no repo checkout required. `hebb install` materialises the automation scripts onto disk (the hebb data dir) for launchd jobs, and `hebb new` scaffolds from the embedded vault template. The agent-facing skills ship in the hebb Claude Code plugin (see plugin/), not the binary. A repo checkout is only needed for development, via --asset-root.

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS

Assets carries the function-layer content shipped inside the binary.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package cli holds the command implementations that sit over core.
Package cli holds the command implementations that sit over core.
cmd
hebb command
Command hebb is the CLI entrypoint for the hebb knowledge-vault engine.
Command hebb is the CLI entrypoint for the hebb knowledge-vault engine.
Package core is the UI-agnostic hebb engine: indexing, search, vault scaffolding, sync and hygiene.
Package core is the UI-agnostic hebb engine: indexing, search, vault scaffolding, sync and hygiene.
Package install wires a vault into the machine: it writes the per-vault contracts (.hebb/config.toml, the project-scoped .mcp.json), symlinks global skills and memory, and renders launchd jobs.
Package install wires a vault into the machine: it writes the per-vault contracts (.hebb/config.toml, the project-scoped .mcp.json), symlinks global skills and memory, and renders launchd jobs.
Package launchd renders parameterised macOS launchd job definitions (plist files) and writes them to a LaunchAgents directory.
Package launchd renders parameterised macOS launchd job definitions (plist files) and writes them to a LaunchAgents directory.
Package mcp exposes the core engine over the Model Context Protocol, so Claude can query a vault.
Package mcp exposes the core engine over the Model Context Protocol, so Claude can query a vault.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL