npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ccx-mem

v0.1.2

Published

Persistent memory system for Claude Code and Codex CLI

Readme


快速开始

使用一条命令安装:

npx ccx-mem install

安装 Codex CLI transcript 采集支持:

npx ccx-mem install --ide codex-cli

也可以在 Claude Code 内通过插件 marketplace 安装:

/plugin marketplace add remote1993/ccx-mem
/plugin install ccx-mem

当前支持的宿主集成:

  • Claude Code:本地插件注册、worker-backed 上下文注入与检索
  • Codex CLI:transcript 监听和工作区 AGENTS.md 上下文同步

安装后请重启宿主客户端。Claude Code 会读取本地插件状态;Codex CLI 在 worker 运行且 transcript watch 启用后开始写入记忆。

注意: ccx-mem 已发布到 npm,但 npm install -g ccx-mem 只会安装 SDK/library,不会注册 Claude Code 插件状态,也不会配置 Codex transcript 监听。请使用 npx ccx-mem installnpx ccx-mem install --ide codex-cli 或上面的 /plugin 命令安装。

核心特性

  • 持久记忆:项目上下文可跨 Claude Code 和 Codex CLI 会话延续
  • 统一 hook 入口:生命周期事件进入同一个 worker-backed 运行时
  • 渐进式检索:先读取紧凑索引,再按需展开时间线和完整观察
  • worker-backed retrieval:通过 Web UI、HTTP API、skills 和 MCP compatibility surfaces 查询项目历史
  • Web Viewer UI:在 http://localhost:37777 查看实时记忆流、设置、日志、来源筛选和上下文预览
  • 隐私控制:使用 <private> 标签排除敏感内容存储
  • 自定义 API 提取:可配置第三方兼容 API 处理结构化观察
  • 聚焦宿主集成:Claude Code 插件支持,以及可选的 Codex CLI transcript ingestion

文档


工作原理

核心组件:

  1. 统一 hook 入口:Claude Code 生命周期事件通过 plugin/scripts/worker-service.cjs hook claude-code <event>src/cli/ handlers 进入系统
  2. 智能安装:缓存依赖检查,降低 hook 启动成本
  3. Worker Service:端口 37777 上的 Express HTTP API,负责 sessions、storage、search、settings、logs、SSE 和 custom API processing
  4. SQLite 数据库:存储 sessions、prompts、observations、summaries 和 project/source 元数据
  5. 检索入口:Web viewer、HTTP APIs、skills 和 MCP compatibility tools 共享同一套 worker-backed history
  6. 可选 Chroma Sync:启用后可用向量 embedding 增强检索

详见 Architecture Overview


搜索工具

ccx-mem 通过 Web viewer、HTTP endpoints、skills 和 MCP compatibility tools 暴露 worker-backed memory search。检索遵循节省 token 的渐进式模式:先看紧凑索引,再查看时间线上下文,最后只为必要 ID 获取完整观察。

三层检索流程:

  1. search:获取紧凑索引
  2. timeline:查看相关结果前后的上下文
  3. get_observations:只为筛选出的 ID 获取完整详情

详见 Search Tools Guide


系统要求

  • Node.js 18.0.0 或更高版本
  • 支持插件的最新版 Claude Code
  • Codex CLI(可选,用于 transcript-based memory capture)
  • Bun(缺失时自动安装)
  • uv(缺失时自动安装,用于向量搜索)
  • SQLite 3(已内置)

配置

设置文件位于 ~/.claude-mem/settings.json,首次运行会自动创建。可配置模型、worker 端口、数据目录、日志级别和上下文注入行为。

示例:

{
  "CLAUDE_MEM_MODE": "code--zh"
}

模式文件位于 plugin/modes/。修改模式后请重启 Claude Code。


开发

git clone https://github.com/remote1993/ccx-mem.git
cd ccx-mem
npm install
npm run build

详见 Development Guide


故障排除

如果遇到问题,请先检查 worker 状态:

npx ccx-mem status

安装后的插件目录中也提供日志命令:

cd ~/.claude/plugins/marketplaces/remote1993/ccx-mem
npm run worker:logs

详见 Troubleshooting Guide


支持


许可证与原项目致谢

ccx-mem 源自原始 Claude-Mem 项目,并保留原项目的 AGPL-3.0 许可与版权声明。许可证文件中的 Copyright (C) 2025 Alex Newman (@thedotmack) 是原项目版权信息,应当保留。

本仓库当前由 @remote1993 维护为 remote1993/ccx-mem 发布线。详见 LICENSE