{"_id":"@agent-memory/cli","_rev":"4-67aa741be3d647a592a4bcf561c8c980","name":"@agent-memory/cli","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@agent-memory/cli","version":"0.1.0","license":"MIT","_id":"@agent-memory/cli@0.1.0","maintainers":[{"name":"wuhangqi25","email":"wuhangqi25@gmail.com"}],"bin":{"agmem":"dist/index.js"},"dist":{"shasum":"dae2c492b4817c84eefb2984b9f08e5a18ee7c66","tarball":"https://registry.npmjs.org/@agent-memory/cli/-/cli-0.1.0.tgz","fileCount":46,"integrity":"sha512-hDftlgCheDHzhjsEfOKsz0SpT2DzJk5CYfyFV2h2VL6SczhVuQO5MeS+0mKxPvre2vdLhXYBQtV9LLlOjyz31g==","signatures":[{"sig":"MEUCIFWHtp9xgmocZgd8H0ZI8hsktz20+jn82WKnBYaUgY1fAiEApyCzROQyrVDY+7T75iulxh8w7kYMuDWZdBG6uvtzIKY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38783},"type":"module","engines":{"node":">=22"},"gitHead":"b64a400250026b15c210c9ae2e1c1316da3b5e4f","scripts":{"dev":"tsc --watch","build":"tsc"},"_npmUser":{"name":"wuhangqi25","email":"wuhangqi25@gmail.com"},"_npmVersion":"10.9.2","description":"CLI for agent-memory: long-term, cross-project memory system for AI agents","directories":{},"_nodeVersion":"22.13.1","dependencies":{"commander":"^13.1.0","@toon-format/toon":"^2.1.0","@agent-memory/core":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.0_1770300587347_0.8905647449567273","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-memory/cli","version":"0.1.1","license":"MIT","_id":"@agent-memory/cli@0.1.1","maintainers":[{"name":"wuhangqi25","email":"wuhangqi25@gmail.com"}],"homepage":"https://github.com/WHQ25/agent-memory#readme","bugs":{"url":"https://github.com/WHQ25/agent-memory/issues"},"bin":{"agmem":"dist/index.js"},"dist":{"shasum":"6fde56c75b8386ef0267d09d1e6f820bd2ea1148","tarball":"https://registry.npmjs.org/@agent-memory/cli/-/cli-0.1.1.tgz","fileCount":47,"integrity":"sha512-01CL81ECbu9fsKEk5XJZaY+o9LrSOxr3d1sJw1GbU+ZCj3SDwyOTL3c80I0THim55q7Pr2rqurKDIyf688z1MA==","signatures":[{"sig":"MEUCIQCVm6tICQFxysYYoaN0zbOk28pB4Bgiul7EX6Jmacrk7QIgIBe520vAKSlsG7CoFksgA2W8o1WW1SvSyTDFrEQ+Wk4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agent-memory%2fcli@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40800},"type":"module","engines":{"node":">=22"},"gitHead":"791f40b8abb923f3c3c12fe4134cd1e824cb0013","scripts":{"dev":"tsc --watch","build":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:899031b2-0064-4d8b-9d86-1005bbe58ed6"}},"repository":{"url":"git+https://github.com/WHQ25/agent-memory.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.6.2","description":"CLI for agent-memory: long-term, cross-project memory system for AI agents","directories":{},"_nodeVersion":"24.13.0","dependencies":{"commander":"^13.1.0","@toon-format/toon":"^2.1.0","@agent-memory/core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.1_1770303692043_0.4585991381645447","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-memory/cli","version":"0.1.2","license":"MIT","_id":"@agent-memory/cli@0.1.2","maintainers":[{"name":"wuhangqi25","email":"wuhangqi25@gmail.com"}],"homepage":"https://github.com/WHQ25/agent-memory#readme","bugs":{"url":"https://github.com/WHQ25/agent-memory/issues"},"bin":{"agmem":"dist/index.js"},"dist":{"shasum":"53c471bf2cad89375ce0f253fee8787749007a05","tarball":"https://registry.npmjs.org/@agent-memory/cli/-/cli-0.1.2.tgz","fileCount":47,"integrity":"sha512-r4XyklP7XqS96XIwuHhcmiF+XSgpCfoo7COg0aHp6Qiy64z4oJJ9/8Hr4dKX9AsXk9vHEtnMay9yatDzgXxhXQ==","signatures":[{"sig":"MEUCIQD6yRvFPN2Aptu6ZEUp6OiZn99QZKW9nbuI+9tnV5OZcQIgURz7oaXsb56z2xMhiUrOQi0MxDJJLlEABOeKSjTMJpI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agent-memory%2fcli@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41036},"type":"module","engines":{"node":">=22"},"gitHead":"e1aa3e2fcc3eb67065d22799b5a8652437c92611","scripts":{"dev":"tsc --watch","build":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:899031b2-0064-4d8b-9d86-1005bbe58ed6"}},"repository":{"url":"git+https://github.com/WHQ25/agent-memory.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.6.2","description":"CLI for agent-memory: long-term, cross-project memory system for AI agents","directories":{},"_nodeVersion":"24.13.0","dependencies":{"commander":"^13.1.0","@toon-format/toon":"^2.1.0","@agent-memory/core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.2_1770328979818_0.4366382664672144","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agent-memory/cli","version":"0.2.0","description":"CLI for agent-memory: long-term, cross-project memory system for AI agents","type":"module","bin":{"agmem":"dist/index.js"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc","dev":"tsc --watch"},"engines":{"node":">=22"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/WHQ25/agent-memory.git","directory":"packages/cli"},"dependencies":{"@agent-memory/core":"^0.1.0","commander":"^13.1.0","@toon-format/toon":"^2.1.0"},"gitHead":"ba33df09632d87734211a5ed3f41eb66185d3727","_id":"@agent-memory/cli@0.2.0","bugs":{"url":"https://github.com/WHQ25/agent-memory/issues"},"homepage":"https://github.com/WHQ25/agent-memory#readme","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-4fCtTw3aHXNFdvZF3d5THIY1Q3PQRQfCQEtGREJWoHfb7H6QMTEHL2ganr3fe4UhU9HJmtO9vZyAy+2oJ1RKtw==","shasum":"984429b57be7522dd887df45208338d35156b527","tarball":"https://registry.npmjs.org/@agent-memory/cli/-/cli-0.2.0.tgz","fileCount":47,"unpackedSize":41036,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agent-memory%2fcli@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCT0MZ8riE5MzdVXYgG+CUjGUTTcPtNrka/B+B3puJw4AIgWLuxnX8/7+YEc3pH5hKNhb7wA7B2ClzFS2KplLtNul0="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:899031b2-0064-4d8b-9d86-1005bbe58ed6"}},"directories":{},"maintainers":[{"name":"wuhangqi25","email":"wuhangqi25@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.2.0_1770367535980_0.06721259394031853"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-05T14:09:47.235Z","modified":"2026-02-06T08:45:36.461Z","0.1.0":"2026-02-05T14:09:47.486Z","0.1.1":"2026-02-05T15:01:32.207Z","0.1.2":"2026-02-05T22:02:59.961Z","0.2.0":"2026-02-06T08:45:36.186Z"},"bugs":{"url":"https://github.com/WHQ25/agent-memory/issues"},"license":"MIT","homepage":"https://github.com/WHQ25/agent-memory#readme","repository":{"type":"git","url":"git+https://github.com/WHQ25/agent-memory.git","directory":"packages/cli"},"description":"CLI for agent-memory: long-term, cross-project memory system for AI agents","maintainers":[{"name":"wuhangqi25","email":"wuhangqi25@gmail.com"}],"readme":"# @agent-memory/cli\n\nCLI for [agent-memory](https://github.com/WHQ25/agent-memory) — long-term, cross-project memory for AI agents.\n\n## Install\n\n```bash\nnpm install -g @agent-memory/cli\n```\n\n## Quick Start\n\n```bash\n# Initialize (downloads local embedding model)\nagmem run init\n\n# Store a memory\nagmem add \"Node 22 ESM has path resolution bug in monorepo\" --tags node,esm\n\n# Search (hybrid: keyword + semantic)\nagmem search \"ESM compatibility\"\n\n# Get full content by ID\nagmem get <id>\n```\n\n## Commands\n\n### Memory CRUD\n\n```bash\nagmem add <content> [--tags t1,t2] [--digest \"summary\"]\nagmem get <id> [--full]\nagmem update <id> [--content text] [--tags t1,t2] [--digest text]\nagmem delete <id> [<id>...]\n\n# Pipe from stdin\necho \"long content\" | agmem add --tags lesson\n```\n\n### Search & Browse\n\n```bash\nagmem search <query> [--tags t1,t2] [--limit n] [--after date] [--before date]\nagmem list [--tags t1,t2] [--sort time|access] [--limit n] [--offset n]\nagmem tags\nagmem stats\n```\n\nSearch returns `digest` (not full content) — use `agmem get <id>` for full detail.\n\n### Source Commands\n\n```bash\nagmem run                  # List available commands\nagmem run init             # Initialize source (download embedding model)\nagmem run status           # Show source status\nagmem run embed            # Batch embed un-indexed memories\nagmem run embed-rebuild    # Full rebuild of all embeddings\nagmem run embed-status     # Show embedding index status\n```\n\n### Config\n\n```bash\nagmem config set <key> <value> [--source name]\nagmem config get <key> [--source name]\nagmem config list [--source name]\nagmem config delete <key> [--source name]\n```\n\n### Output Formats\n\n| Flag | Format | Use case |\n|------|--------|----------|\n| _(default)_ | TOON | LLM-optimized, ~40% fewer tokens than JSON |\n| `--json` | JSON | Machine parsing |\n| `--human` | Human | Terminal display |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}