You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,13 @@ Open <http://localhost:8321/> for the Web Console.
81
81
<imgsrc="repo_pages/public/web-console-hero.jpg"alt="Hebb Mind Web Console — partitioned memories and tag graph"width="760">
82
82
</p>
83
83
84
+
Use **Agent Sync** in the Web Console to make Hebb Mind the shared memory hub for Claude Code and Codex. It collects local session history from both tools, shows synced vs pending turns, and imports pending turns into the Hebb Mind database. The same workflow is available from the CLI:
85
+
86
+
```bash
87
+
hebb agent-sync list --host codex
88
+
hebb agent-sync sync --host codex --dry-run
89
+
```
90
+
84
91
### Full experience (5 min) — enable LLM consolidation
85
92
86
93
Consolidation, conflict resolution, and tag extraction need an LLM backend. The gate is `llm_model` — until it's set, those endpoints are a no-op (see [#consolidation-no-op](https://afx-team.github.io/hebb-mind/troubleshooting.html)). A hosted provider also needs `llm_api_key`; a local model (e.g. Ollama via `llm_base_url`) does not.
Collect local Claude Code and Codex session history, show sync state, and import pending turns into Hebb Mind. This is the CLI counterpart to the Web Console **Agent Sync** page and uses the same `/api/v1/agent-sync/*` endpoints.
120
+
121
+
```bash
122
+
hebb agent-sync list [--host all|claude-code|codex] [--limit 100] [--json] [--url URL]
|`--host`|`list`, `sync`| Filter to one source. `claude-code` maps to the API host `claude_code`. |
129
+
|`--limit`|`list`, `sync`| Maximum sessions to scan. |
130
+
|`--id`|`sync`| Sync only specific opaque session ids returned by `list --json`. May be repeated. |
131
+
|`--dry-run`|`sync`| Report pending turns without writing memories. |
132
+
|`--json`|`list`, `sync`| Print the raw API payload for scripts. |
133
+
|`--url`|`list`, `sync`| Override the server URL, useful for dev servers on non-default ports. |
134
+
135
+
Common workflow:
136
+
137
+
```bash
138
+
hebb agent-sync list --host codex
139
+
hebb agent-sync sync --host codex --dry-run
140
+
hebb agent-sync sync --host codex
141
+
```
142
+
143
+
Synced turns land in `mem_hippocampus` with `source` set to `sync:codex` or `sync:claude_code`, then follow the normal consolidation and recall lifecycle. See [Agent Sync](../guide/agent-sync.md) for the full workflow.
144
+
117
145
## hebb doctor
118
146
119
147
Run a one-shot health check covering Python version, config file, workspace, LLM, embedding model cache, web console assets, server reachability, and Claude Code / Codex MCP registration.
description: "Use Hebb Mind as the shared memory hub for Claude Code and Codex: collect local session history, sync pending turns, and keep the Web Console and CLI in parity."
3
+
---
4
+
5
+
# Agent Sync
6
+
7
+
Agent Sync turns Hebb Mind into the shared memory hub between **Claude Code** and **Codex**.
8
+
9
+
The normal hooks capture new turns after installation. Agent Sync covers the other half of the workflow: it scans local session history that already exists on disk, shows what has and has not reached Hebb Mind, and imports pending turns into the same database used by recall, consolidation, and search.
- populate Hebb Mind from past Claude Code or Codex conversations;
28
+
- verify which local sessions have already been written into Hebb Mind;
29
+
- move memories from one agent surface to another through Hebb Mind;
30
+
- run the same workflow from either the Web Console or the `hebb` CLI.
31
+
32
+
Agent Sync does not replace the live hooks. Install the hooks for future capture, then use Agent Sync to backfill history or audit sync state.
33
+
34
+
```bash
35
+
hebb claude-code install --scope user
36
+
hebb codex install
37
+
```
38
+
39
+
## Web Console workflow
40
+
41
+
Open the console:
42
+
43
+
```bash
44
+
hebb console
45
+
```
46
+
47
+
Then go to **Agent Sync**.
48
+
49
+
1. Choose **All software**, **Claude Code**, or **Codex**.
50
+
2. Read the hub flow: **Source software → Hebb Mind → Available to Claude Code / Codex**.
51
+
3. Review the sync queue. Each row shows project, transcript path, synced turns, pending turns, and update time.
52
+
4. Click **Sync pending** to import all pending turns for the selected source, or **Sync** on a single session.
53
+
54
+
The page intentionally replaces the old Claude Code-only memory browser as the primary cross-agent workflow. Claude Code file memory and Hebb Mind database memory are different systems; Agent Sync makes the Hebb Mind database the shared hub.
If you run a development server on a non-default port, pass it explicitly:
89
+
90
+
```bash
91
+
hebb agent-sync list --url http://127.0.0.1:8765
92
+
```
93
+
94
+
## What gets stored
95
+
96
+
Synced turns are written to the working-memory inbox, `mem_hippocampus`, so the normal lifecycle still applies: inspect, consolidate, recall, and forget.
|`metadata.tools` / `metadata.mcps`| Tool and MCP names observed in the turn |
109
+
110
+
Agent Sync deduplicates by `host + session_id + turn`, and also avoids duplicating older hook writes that did not yet include a `host` field.
111
+
112
+
## Troubleshooting
113
+
114
+
**No sessions found.** Make sure the sessions exist locally on the same machine as the Hebb Mind service. Agent Sync currently scans the local Claude Code and Codex transcript locations.
115
+
116
+
**The CLI says the Agent Sync API is missing.** The running service is probably older than the checkout or package that provided your CLI. Restart the service:
117
+
118
+
```bash
119
+
hebb service restart
120
+
```
121
+
122
+
If you are using a dev server, pass `--url`.
123
+
124
+
**Hook output still shows an old command.** Codex and Claude Code load hook configuration at session startup. Start a new session or reload hooks after reinstalling the integration.
125
+
126
+
**This is local-first.** The console displays local transcript paths. Do not expose the console on a public network without authentication; see [Web Console](./web-console.md#authentication).
Copy file name to clipboardExpand all lines: repo_pages/guide/web-console.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
-
description: "Browse, search, and edit your AI agent memory in the browser: the Hebb Mind Web Console bundles hybrid retrieval, a knowledge graph view, and live config on port 8321."
2
+
description: "Browse, search, sync, and tune AI agent memory in the browser: the Hebb Mind Web Console bundles Agent Sync, hybrid retrieval, a knowledge graph view, and live config on port 8321."
3
3
---
4
4
5
5
# Web Console
6
6
7
-
The Web Console is a single-page app that ships inside the Hebb Mind binary. It gives you a browseable view of your memories, a search box wired to the same hybrid retrieval that powers the API, a graph view of your knowledge graph, and a settings panel for changing config without touching JSON.
7
+
The Web Console is a single-page app that ships inside the Hebb Mind binary. It gives you a browseable view of your memories, Agent Sync for Claude Code and Codex session history, a search box wired to the same hybrid retrieval that powers the API, a graph view of your knowledge graph, and a settings panel for changing config without touching JSON.
8
8
9
9
## Access
10
10
@@ -40,7 +40,7 @@ The whole stack reads from your resolved workspace (run `hebb config get workspa
40
40
41
41
## Tour
42
42
43
-
The sidebar is organised around the memory lifecycle. The first four entries — **Manage**, **Activate**, **Consolidate**, **Forget**— are the write → recall → consolidate → forget loop; a divider separates them from **CC Memory**, **System**, and a link out to the **Docs**. Each entry is a hash route, so you can deep-link straight to it.
43
+
The sidebar is organised around the memory lifecycle. **Manage**, **Activate**, **Agent Sync**, **Consolidate**, and **Forget**cover browse/write → recall → cross-agent sync → consolidate → forget; a divider separates them from **System** and a link out to the **Docs**. Each entry is a hash route, so you can deep-link straight to it.
44
44
45
45
### Manage (`#manage`)
46
46
@@ -59,6 +59,17 @@ If the stat band reads zero on a fresh install, you're probably in the wrong wor
59
59
60
60
Recall, end to end. A **recall test** at the top lets you run a semantic search with per-query sliders for `relevance`, `importance`, and `recency`, and renders the scored results. Below it sit the global **recall parameters** — the recall-pipeline toggles, cross-encoder rerank, and the default scoring weights — so you can tune against real queries and then persist what works.
61
61
62
+
### Agent Sync (`#agent-sync`)
63
+
64
+
The cross-agent memory hub for Claude Code and Codex.
65
+
66
+
- Choose **All software**, **Claude Code**, or **Codex**.
67
+
- Read the flow as **Source software → Hebb Mind → Available to Claude Code / Codex**.
68
+
- Inspect the sync queue: project, transcript path, synced turns, pending turns, and update time.
69
+
- Click **Sync pending** to import all pending turns for the current filter, or **Sync** on one session.
70
+
71
+
This is the primary UI for making Hebb Mind the shared memory layer across agent tools. The matching CLI commands are `hebb agent-sync list` and `hebb agent-sync sync`; see [Agent Sync](./agent-sync.md).
72
+
62
73
### Consolidate (`#consolidate`)
63
74
64
75
Consolidation runs automatically on a daily cron. This page gives you an **Organize now** trigger to run it on demand and stream the run log live, the **run records** of past consolidations, and the **consolidation config**.
@@ -70,10 +81,6 @@ The forgetting counterpart of Consolidate. A **Clean up now** trigger runs a swe
70
81
<!-- TODO(asset): screenshot of the Manage → Graph tab with a non-trivial graph rendered (5+ tag clusters). Save as repo_pages/public/console-graph.png, then uncomment the image below. -->
Browse and edit Claude Code's file-based memory documents directly on disk.
76
-
77
84
### System (`#system`)
78
85
79
86
Infrastructure config, grouped into tabs: **LLM**, **Embedding**, **Storage**, and **Server**.
@@ -104,10 +111,18 @@ This requires an LLM key — see [Troubleshooting](../troubleshooting.md#consoli
104
111
105
112
**Change the LLM model without restarting.** System → LLM → enter a LiteLLM string (e.g. `anthropic/claude-3-haiku-20240307`) → save. If the field shows `restart_required`, run `hebb service restart`.
106
113
114
+
**Backfill Claude Code or Codex sessions.** Open Agent Sync → pick the source software → click **Sync pending**. For headless use:
115
+
116
+
```bash
117
+
hebb agent-sync list --host codex
118
+
hebb agent-sync sync --host codex --dry-run
119
+
hebb agent-sync sync --host codex
120
+
```
121
+
107
122
## When to use the Console vs. the CLI vs. the API
Copy file name to clipboardExpand all lines: repo_pages/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,8 @@ features:
36
36
title: Built-in Web Console
37
37
details: Single-page app for memory CRUD, search, partitions, and graph view. Lives at http://localhost:8321/ — no separate deploy.
38
38
- icon: 🔌
39
-
title: REST + MCP + Claude Code hooks
40
-
details: Three-line install gives Claude Code or Codex automatic cross-session recall and turn capture, backed by MCP memory tools. REST docs at /docs.
39
+
title: REST + MCP + Agent Sync
40
+
details: Claude Code and Codex get automatic recall and turn capture through hooks, explicit memory tools over MCP, and historical session backfill through the Agent Sync hub.
Copy file name to clipboardExpand all lines: repo_pages/public/llms.txt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Headline benchmark results (reproducible via the `eval/` harness): LongMemEval r
19
19
- [Switch the Embedding Model](https://afx-team.github.io/hebb-mind/guide/switch-embedding-model.html): Use local sentence-transformers or a LiteLLM API embedding provider, handle dimension changes, and re-embed with resume.
20
20
- [Claude Code Integration](https://afx-team.github.io/hebb-mind/guide/claude-code.html): Give Claude Code cross-session memory via the MCP server plus session hooks for automatic recall, turn capture, and consolidation.
21
21
- [Codex Integration](https://afx-team.github.io/hebb-mind/guide/codex.html): Give Codex automatic cross-session recall and turn capture with native hooks, plus explicit memory tools over MCP.
22
+
- [Agent Sync](https://afx-team.github.io/hebb-mind/guide/agent-sync.html): Use Hebb Mind as the shared memory hub for Claude Code and Codex by collecting local session history and syncing pending turns.
22
23
- [MCP Integration](https://afx-team.github.io/hebb-mind/guide/mcp-integration.html): Connect Claude Code, Codex, Cursor, and Claude Desktop to long-term memory over MCP — write, recall, and consolidate.
23
24
- [Web Console](https://afx-team.github.io/hebb-mind/guide/web-console.html): Browser UI bundled with the service (port 8321) — memory CRUD, hybrid search, partitions, a knowledge-graph view, and live config.
24
25
- [Migration from mem0 / Letta / Zep](https://afx-team.github.io/hebb-mind/guide/migration.html): Concept and API mapping, before/after code, data import, and an honest gap analysis.
@@ -39,7 +40,7 @@ Headline benchmark results (reproducible via the `eval/` harness): LongMemEval r
39
40
- [Knowledge Graph API](https://afx-team.github.io/hebb-mind/api/graph.html): Inspect tags, query neighbors by depth, find shortest paths, and export nodes and edges.
0 commit comments