@cerefox/memory 0.4.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENT_GUIDE.md +462 -0
- package/AGENT_QUICK_REFERENCE.md +76 -0
- package/README.md +134 -0
- package/dist/bin/cerefox-mcp.js +26866 -22608
- package/dist/bin/cerefox.js +40039 -0
- package/docs/guides/access-paths.md +235 -0
- package/docs/guides/agent-coordination.md +163 -0
- package/docs/guides/cli.md +481 -0
- package/docs/guides/configuration.md +460 -0
- package/docs/guides/connect-agents.md +1428 -0
- package/docs/guides/migration-v0.4.md +231 -0
- package/docs/guides/migration-v0.5.md +165 -0
- package/docs/guides/operational-cost.md +113 -0
- package/docs/guides/ops-scripts.md +271 -0
- package/docs/guides/quickstart.md +165 -0
- package/docs/guides/response-limits.md +151 -0
- package/docs/guides/setup-cloud-run.md +117 -0
- package/docs/guides/setup-local.md +178 -0
- package/docs/guides/setup-supabase.md +370 -0
- package/docs/guides/upgrading.md +275 -0
- package/package.json +19 -6
package/README.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# @cerefox/memory
|
|
2
|
+
|
|
3
|
+
**User-owned shared memory for AI agents.** The local TypeScript runtime for
|
|
4
|
+
[Cerefox](https://github.com/fstamatelopoulos/cerefox) — a persistent,
|
|
5
|
+
curated knowledge layer that multiple AI tools can read and write, backed by
|
|
6
|
+
Postgres + pgvector.
|
|
7
|
+
|
|
8
|
+
This package contains two binaries:
|
|
9
|
+
|
|
10
|
+
| Bin | What it does |
|
|
11
|
+
|---|---|
|
|
12
|
+
| **`cerefox`** | Main CLI — search, ingest, list, version-history, audit-log, lifecycle (`init`, `doctor`, `configure-agent`, `self-update`). Callable from any directory. |
|
|
13
|
+
| **`cerefox-mcp`** | Local stdio MCP server. Drop-in for Claude Code, Cursor, Claude Desktop, Codex CLI, Gemini CLI. Exposes the same 10 MCP tools as the remote `cerefox-mcp` Edge Function. |
|
|
14
|
+
|
|
15
|
+
> **What this package isn't:** the source of truth for Cerefox's architecture
|
|
16
|
+
> or docs. Those live in the [GitHub repo](https://github.com/fstamatelopoulos/cerefox).
|
|
17
|
+
> This README is the npm landing card.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# One-line install (recommended on a fresh machine):
|
|
25
|
+
curl -fsSL https://github.com/fstamatelopoulos/cerefox/releases/latest/download/install.sh | sh
|
|
26
|
+
|
|
27
|
+
# Direct (any of these):
|
|
28
|
+
bun install -g @cerefox/memory
|
|
29
|
+
npm install -g @cerefox/memory
|
|
30
|
+
pnpm add -g @cerefox/memory
|
|
31
|
+
yarn global add @cerefox/memory
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Runtime requirements: **Node ≥ 20** or **Bun ≥ 1.0**.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## First-run setup
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
cerefox init # 5-step interactive bootstrap (Supabase, OpenAI, identity)
|
|
42
|
+
cerefox doctor # verify everything reaches
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Cerefox needs:
|
|
46
|
+
|
|
47
|
+
- A **Supabase project** (free tier works) — see
|
|
48
|
+
[`docs/guides/setup-supabase.md`](https://github.com/fstamatelopoulos/cerefox/blob/main/docs/guides/setup-supabase.md).
|
|
49
|
+
- An **OpenAI API key** for embeddings (or Fireworks AI as an alternative).
|
|
50
|
+
|
|
51
|
+
`cerefox init` walks you through both.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Connect an AI agent
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
cerefox configure-agent --tool claude-code # writes ~/.claude/mcp.json
|
|
59
|
+
cerefox configure-agent --tool claude-desktop # writes Claude Desktop config
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Phase 1 supports Claude Code + Claude Desktop. Cursor, Codex CLI, and Gemini
|
|
63
|
+
CLI ship in a follow-up. For manual configuration, the canonical MCP entry
|
|
64
|
+
is:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"mcpServers": {
|
|
69
|
+
"cerefox": {
|
|
70
|
+
"command": "npx",
|
|
71
|
+
"args": ["-y", "--package=@cerefox/memory", "cerefox-mcp"]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Once configured, any of these clients can search + write your Cerefox KB via
|
|
78
|
+
the 10 MCP tools (`cerefox_search`, `cerefox_ingest`, `cerefox_get_document`,
|
|
79
|
+
`cerefox_list_versions`, `cerefox_list_projects`, `cerefox_list_metadata_keys`,
|
|
80
|
+
`cerefox_metadata_search`, `cerefox_set_document_projects`,
|
|
81
|
+
`cerefox_get_audit_log`, `cerefox_get_help`).
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Common commands
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
cerefox search "second brain" # hybrid (FTS + semantic)
|
|
89
|
+
cerefox ingest notes.md --project "Personal" # add a doc
|
|
90
|
+
cerefox list-projects # discover projects
|
|
91
|
+
cerefox metadata-search --metadata-filter '{"type":"decision-log"}'
|
|
92
|
+
cerefox get-audit-log --since 2026-05-01 # immutable history
|
|
93
|
+
cerefox doctor # diagnose your install
|
|
94
|
+
cerefox upgrade # alias for self-update
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Run `cerefox --help` for the full command surface (28 subcommands grouped
|
|
98
|
+
by category).
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Why install the CLI when I already have MCP wired up?
|
|
103
|
+
|
|
104
|
+
You don't have to. `cerefox-mcp` works standalone — wire it into any MCP
|
|
105
|
+
client and your AI agent has full access. The `cerefox` CLI is useful for:
|
|
106
|
+
|
|
107
|
+
- **One-off shell operations**: search, ingest, list, audit-log.
|
|
108
|
+
- **Power-user workflows**: `cerefox ingest-dir ./meeting-notes`,
|
|
109
|
+
`cerefox metadata-search --metadata-filter …`, `cerefox backup`.
|
|
110
|
+
- **Setup + diagnostics**: `cerefox init`, `cerefox doctor`,
|
|
111
|
+
`cerefox configure-agent`, `cerefox self-update`.
|
|
112
|
+
- **Agents via local Bash tool** (Path C in the architecture): some
|
|
113
|
+
coding agents prefer running `cerefox <subcommand>` over a Bash tool
|
|
114
|
+
rather than configuring MCP.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Architecture, design, docs
|
|
119
|
+
|
|
120
|
+
- **Project README + roadmap**: <https://github.com/fstamatelopoulos/cerefox>
|
|
121
|
+
- **Architecture overview**: [`CLAUDE.md`](https://github.com/fstamatelopoulos/cerefox/blob/main/CLAUDE.md)
|
|
122
|
+
- **Setup guides**: [`docs/guides/`](https://github.com/fstamatelopoulos/cerefox/tree/main/docs/guides)
|
|
123
|
+
- **Migration from v0.4.x**: [`docs/guides/migration-v0.5.md`](https://github.com/fstamatelopoulos/cerefox/blob/main/docs/guides/migration-v0.5.md)
|
|
124
|
+
- **For AI agents using Cerefox**: [`AGENT_GUIDE.md`](https://github.com/fstamatelopoulos/cerefox/blob/main/AGENT_GUIDE.md), [`AGENT_QUICK_REFERENCE.md`](https://github.com/fstamatelopoulos/cerefox/blob/main/AGENT_QUICK_REFERENCE.md), or run `cerefox docs --list`.
|
|
125
|
+
- **Changelog**: [`CHANGELOG.md`](https://github.com/fstamatelopoulos/cerefox/blob/main/CHANGELOG.md)
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## License
|
|
130
|
+
|
|
131
|
+
Apache-2.0 — see [`LICENSE`](https://github.com/fstamatelopoulos/cerefox/blob/main/LICENSE) in the repo.
|
|
132
|
+
|
|
133
|
+
Cerefox is a single-maintainer open-source project. Bug reports and PRs
|
|
134
|
+
welcome at [github.com/fstamatelopoulos/cerefox/issues](https://github.com/fstamatelopoulos/cerefox/issues).
|