daily-dose
🗞 Claude Code 每日速递
一个本地报纸风格的内存系统,记录你与 Claude Code 的所有交互。 所有数据都不会离开你的机器。
持久化 SQLite 数据库,记录每一次 Claude Code 会话、提示词、工具调用和文件编辑——跨所有仓库
报纸风格 UI,位于
http://localhost:3000,支持浅色/深色暖色主题、日期导航、时间线、TODO 工作台、统计和搜索一流的 TODO 功能,可在 UI 中编辑,也可通过本地 MCP 服务器由 Claude 操作
全局 Claude Code 钩子(SessionStart、UserPromptSubmit、PostToolUse、Stop、PreCompact、SessionEnd),增量合并到您现有的
~/.claude/settings.json中(绝不覆盖,始终备份)在任何写入之前对常见机密格式进行脱敏处理
无云端、无 API 密钥、无外部 LLM 调用
安装
选项 1 — 一行命令安装(推荐)
curl -fsSL https://raw.githubusercontent.com/iamdevnitesh/daily-dose-of-claude-code/main/install.sh | bash或者,如果您已经克隆了此仓库:
./install.sh它会克隆到 ~/daily-dose-of-claude-code,安装依赖,构建钩子/MCP,
合并到 ~/.claude/settings.json(先备份),在 ~/.claude/CLAUDE.md 中添加一个小的受管
区块,并运行 doctor 检查。
选项 2 — npm
发布后,任何人都可以全局安装:
npm install -g daily-dose-of-claude-code
daily-dose install
daily-dose dev # UI on http://localhost:3000或者无需安装直接运行:
npx daily-dose-of-claude-code install选项 3 — Docker Compose(仅 UI)
钩子和 MCP 服务器必须在宿主机上运行——Claude Code 会将它们作为 子进程启动,无法进入容器。Docker 仅适用于报纸 UI,它通过 卷挂载读写共享的 SQLite 数据库。
# 1. Install hooks + MCP on the host first (any of the options above)
npx daily-dose-of-claude-code install
# 2. Run the UI in Docker
docker compose up -d
# → http://localhost:3000compose 文件将 ~/.daily-dose-claude(或 $DAILY_DOSE_HOME)挂载到
容器内的 /data,因此 UI 与宿主机上的钩子和 MCP 服务器写入的是完全相同的数据库。随时可以关闭容器——捕获功能
会持续运行,因为它位于宿主机上。
选项 4 — 手动(开发者 / 可定制)
git clone <repo> && cd daily-dose-of-claude-code
npm install
npm run build:node # compile hooks + MCP
npm run install:daily-dose # merge into ~/.claude/settings.json (backup first)
npm run doctor
npm run dev # http://localhost:3000Related MCP server: Longhand
daily-dose CLI
全局安装(或通过 npx)后,daily-dose 命令可调度所有功能:
命令 | 功能 |
| 将钩子 + MCP 合并到 |
| 移除钩子/MCP;除非使用 |
| 验证所有配置是否正确 |
| 以开发模式启动报纸 UI |
| 以生产模式启动 UI |
| 编译钩子/MCP + 构建 Next.js UI |
| 为今天添加演示活动 |
| 清空数据库(先备份;保留表结构) |
| 将数据库快照到 |
| 打印表结构状态 |
文件位置
路径 | 用途 |
| SQLite 数据库(WAL、FTS5) |
| JSON 行格式的钩子日志 |
| 捕获开关 + 主题 |
| 带时间戳的数据库备份 |
| 钩子 + MCP 注册(每次写入前都会备份) |
| 包含一个小的 |
架构
Claude Code
│
├─ Hooks (host-side Node): SessionStart, UserPromptSubmit,
│ PostToolUse, Stop, PreCompact, SessionEnd
│ → write to SQLite
│
└─ MCP server (host-side stdio, daily-dose)
→ same SQLite DB
Next.js UI (host or Docker, localhost:3000)
→ same SQLite DBUI 不需要运行即可捕获活动——钩子直接与 SQLite 通信。您可以关闭 Docker、关闭 next dev、卸载 UI——Claude 活动仍会持续写入您的本地数据库。
MCP 工具
daily_dose_add_tododaily_dose_list_todosdaily_dose_update_tododaily_dose_complete_todo(接受title_query或id)daily_dose_delete_tododaily_dose_search_memory(对活动 + TODO 进行 FTS5 搜索)daily_dose_get_daydaily_dose_get_recent_activitydaily_dose_remember
测试
npm test测试在临时的 DAILY_DOSE_HOME 下运行——您的真实数据库和 Claude
配置绝不会被触碰。
说明与非目标
无外部 AI 调用——标题/摘要均为确定性生成
完整的工具输出(如巨大的
Read负载)永远不会被持久化;仅保存简洁的元数据所有写入都会进行脱敏处理;但请勿故意粘贴机密信息
钩子采用故障开放(fail-open)设计——Daily Dose 的故障绝不会阻塞 Claude Code
Docker 按设计仅用于 UI;钩子必须位于宿主机上,Claude Code 才能启动它们
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides comprehensive session management for Claude Code with automatic initialization/cleanup, quality checkpoints, and local conversation memory with semantic search for capturing learnings across coding sessions.62BSD 3-Clause
- AlicenseAqualityAmaintenancePersistent local memory for Claude Code that indexes every session's JSONL file verbatim into SQLite + ChromaDB. Exposes 17 MCP tools for semantic recall, deterministic file replay, and fuzzy "do you remember when..." queries across your entire session history — no API calls, nothing leaves the machine.1712MIT
- AlicenseAqualityDmaintenanceGives Claude Code, Claude Desktop, Cursor, VS Code Copilot, and other MCP-compatible tools persistent memory.18801MIT
- FlicenseNot gradedqualityDmaintenanceProvides persistent semantic memory for Claude Code via local embeddings and six MCP tools, enabling context storage and retrieval across sessions without cloud dependencies.
Related MCP Connectors
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Hosted MCP memory: save sessions/decisions once, search from Claude, Cursor, ChatGPT. EU-hosted FTS.
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iamdevnitesh/daily-dose-of-claude-code'
If you have feedback or need assistance with the MCP directory API, please join our Discord server