by wsw669
Claude Code 专属会话管理器:多会话统一管理 + AI 成本可视化仪表盘 + 会话摘要知识库。终端 CLI 与 VS Code 扩展双形态,流式解析会话日志,按模型/项目/日期归因成本并支持预算预警,会话退出自动生成结构化摘要沉淀知识。
# Add to your Claude Code skills
git clone https://github.com/wsw669/cclensGuides for using cli tools skills like cclens.
cclens is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by wsw669. Claude Code 专属会话管理器:多会话统一管理 + AI 成本可视化仪表盘 + 会话摘要知识库。终端 CLI 与 VS Code 扩展双形态,流式解析会话日志,按模型/项目/日期归因成本并支持预算预警,会话退出自动生成结构化摘要沉淀知识。. It has 53 GitHub stars.
cclens's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/wsw669/cclens" and add it to your Claude Code skills directory (see the Installation section above).
cclens is primarily written in TypeScript. It is open-source under wsw669 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cclens against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Claude Code 专属会话管理器:多会话管理 + AI 成本可视化 + 会话知识沉淀。
一个终端应用,让你同时管理多个 Claude Code 会话——知道每个会话在忙什么、烧了多少钱、上次聊了什么。
用 Claude Code 的人都会遇到三个问题:
CCLens 一次性解决这三个问题。
~/.config/cclens/pricing.json)前置要求:Node.js 20+(构建与运行只需要 Node 和 npm)。
git clone https://github.com/wsw669/cclens.git
cd cclens
npm install
npm run build
npm start
开发时也支持 Bun 工作流:bun install && bun run dev。
同一套能力,两种形态:仓库里的 vscode-ext/ 是配套的 VS Code 扩展,在编辑器侧边栏直接看成本仪表盘与浏览会话摘要。
安装:
cd vscode-ext
npm install
npm run package # 生成 cclens-0.1.0.vsix
code --install-extension cclens-0.1.0.vsix
主菜单选择 Cost Dashboard(快捷键 $)。
需要配置 LLM 凭证(任意 OpenAI 兼容 API):
export CCLENS_LLM_API_KEY=sk-xxx
export CCLENS_LLM_BASE_URL=https://api.deepseek.com/anthropic # 可选,默认即此
export CCLENS_LLM_MODEL=deepseek-v4-pro # 可选
会话退出后自动生成摘要,主菜单选择 Session Summaries(快捷键 S)浏览。
不管在哪里使用 Claude Code(CLI 或 VS Code 插件),只要会话结束,cclens 都能自动生成摘要:利用 Claude Code 的 SessionEnd 钩子,会话结束时自动调用本仓库的摘要脚本。
安装:在 ~/.claude/settings.json 中加入(替换为本仓库的实际路径):
{
"hooks": {
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "node \"<本仓库路径>/scripts/summarize-session-end.mjs\"",
"timeout": 120
}
]
}
]
}
}
需要先配置上面的 LLM 凭证。摘要结果与 CLI 生成的完全一致,存于 ~/.config/cclens/summaries/,VS Code 扩展实时可见;同一会话不会重复生成。
提示:摘要生成会将会话内容发送到你配置的 LLM API(这是摘要功能的本质)。
# ~/.config/cclens/pricing.json
{
"deepseek-v4-pro": { "input": 2, "output": 8, "cacheRead": 0.5, "cacheWrite": 2 }
}
Ctrl+E:从会话返回菜单Esc:取消 / 返回Ctrl+C:退出| 组件 | 要求 |
|---|---|
| 操作系统 | Windows 10/11 · macOS · Linux |
| Node.js | 20+ |
| Claude Code | code.claude.com |
npm test # 单元测试
npm run typecheck # 类型检查
本项目基于开源会话管理器 kbwo/ccmanager 聚焦重构:将 9 种 AI 助手支持裁剪为 Claude Code 专属,并新增成本可视化与会话知识沉淀模块。
MIT License