#1 Persistent memory for AI coding agents based on real-world benchmarks
TypeScript agentmemoryagentsaiclaudeclaudecodecodexcopilotcursorgenaiharnesshermesmemoryompopenclawopencodepi
fix: resolve 6 installation bugs breaking fresh setup (#95)
Rohit Ghumare9d607c1c3747
diff --git a/README.md b/README.mdindex 1fc456dc..2a8e5179 100644--- a/README.md+++ b/README.md@@ -190,7 +190,7 @@ git clone https://github.com/rohitg00/agentmemory.git && cd agentmemorynpm install && npm run build && npm start```-### 4. Verify+### 3. Verify```bashcurl http://localhost:3111/agentmemory/health@@ -203,7 +203,7 @@ open http://localhost:3113{"status": "healthy","service": "agentmemory",- "version": "0.7.1",+ "version": "0.7.4","health": {"memory": { "heapUsed": 42000000, "heapTotal": 67000000 },"cpu": { "percent": 2.1 },diff --git a/docker-compose.yml b/docker-compose.ymlindex 17d1ab27..101284d6 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -8,6 +8,7 @@ services:- "9464:9464"volumes:- iii-data:/data+ - ./iii-config.yaml:/app/config.yaml:rorestart: unless-stoppedvolumes:diff --git a/iii-config.yaml b/iii-config.yamlindex adb05b5a..3aecf8a8 100644--- a/iii-config.yaml+++ b/iii-config.yaml@@ -10,7 +10,7 @@ modules:- class: modules::api::RestApiModuleconfig:port: 3111- host: 127.0.0.1+ host: 0.0.0.0default_timeout: 180000cors:allowed_origins: ["http://localhost:3111", "http://localhost:3113", "http://127.0.0.1:3111", "http://127.0.0.1:3113"]@@ -34,7 +34,7 @@ modules:- class: modules::stream::StreamModuleconfig:port: 3112- host: 127.0.0.1+ host: 0.0.0.0- class: modules::observability::OtelModuleconfig:diff --git a/package-lock.json b/package-lock.jsonindex fdd03b6b..cb40de21 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "@agentmemory/agentmemory",- "version": "0.7.0",+ "version": "0.7.4","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "@agentmemory/agentmemory",- "version": "0.7.0",+ "version": "0.7.4","license": "Apache-2.0","dependencies": {"@anthropic-ai/claude-agent-sdk": "^0.2.56",@@ -14,7 +14,7 @@"@clack/prompts": "^1.2.0","dotenv": "^16.4.7","iii-sdk": "^0.3.0",- "zod": "^3.23.0"+ "zod": "^4.0.0"},"bin": {"agentmemory": "dist/cli.mjs",@@ -4621,9 +4621,9 @@}},"node_modules/zod": {- "version": "3.25.76",- "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",- "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",+ "version": "4.3.6",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",+ "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==","license": "MIT","funding": {"url": "https://github.com/sponsors/colinhacks"diff --git a/package.json b/package.jsonindex bdf8af08..456e5761 100644--- a/package.json+++ b/package.json@@ -12,7 +12,7 @@"scripts": {"build": "tsdown && (cp iii-config.yaml dist/ 2>/dev/null || true) && (cp docker-compose.yml dist/ 2>/dev/null || true)","dev": "tsx src/index.ts",- "start": "node dist/index.mjs",+ "start": "node dist/cli.mjs","migrate": "node dist/functions/migrate.js","test": "vitest run --exclude test/integration.test.ts","test:watch": "vitest --exclude test/integration.test.ts",@@ -51,7 +51,7 @@"@clack/prompts": "^1.2.0","dotenv": "^16.4.7","iii-sdk": "^0.3.0",- "zod": "^3.23.0"+ "zod": "^4.0.0"},"optionalDependencies": {"@xenova/transformers": "^2.17.2"diff --git a/src/cli.ts b/src/cli.tsindex bb72c959..20cb070c 100644--- a/src/cli.ts+++ b/src/cli.ts@@ -52,10 +52,10 @@ function getRestPort(): number {async function isEngineRunning(): Promise<boolean> {try {- const res = await fetch(`http://localhost:${getRestPort()}/agentmemory/livez`, {+ await fetch(`http://localhost:${getRestPort()}/`, {signal: AbortSignal.timeout(2000),});- return res.ok;+ return true;} catch {return false;}diff --git a/src/viewer/server.ts b/src/viewer/server.tsindex ecd96677..cd878a03 100644--- a/src/viewer/server.ts+++ b/src/viewer/server.ts@@ -136,6 +136,14 @@ export function startViewerServer(}});+ server.on("error", (err: NodeJS.ErrnoException) => {+ if (err.code === "EADDRINUSE") {+ console.warn(`[agentmemory] Viewer port ${port} already in use, skipping viewer.`);+ } else {+ console.error(`[agentmemory] Viewer error:`, err.message);+ }+ });+server.listen(port, "127.0.0.1", () => {console.log(`[agentmemory] Viewer: http://localhost:${port}`);});