ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 shissncg

turn-timestamp

一个 Claude Code hook mod,让每一轮结束时在会话回滚中显示时间戳、持续时间和工具调用数。

shissncg@shissncg

shissncg/claude-mods/tree/main/mods/turn-timestamp

已翻译

关于这个 mod

turn-timestamp 是一个 TypeScript hook 模块,会在每轮结束时追加一行,例如 ✻ 2026-10-03 19:05 CDT · 3s · 1 tool call。在终端中,它会替换 Claude Code 自带的回合结束行;在桌面应用 Code 标签页中,它显示在 Claude 最后一个回复块下方。它只负责显示。通过 claude plugin marketplace add shissncg/claude-mods,然后执行 claude plugin install turn-timestamp@shissncg-mods 安装;也可以用 claude --plugin-dir mods/turn-timestamp 为一个会话试用。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add shissncg/claude-mods
claude plugin install turn-timestamp
原文 / README

Interesting Claude mods

Small Claude Code mods: TypeScript hook modules that run before, after or instead of what Claude Code does.

| Mod | What it does | | --- | --- | | turn-timestamp | Ends every turn with ✻ 2026-10-03 19:05 CDT · 3s · 1 tool call, so scrollback in multi-day sessions shows when each turn finished. In the terminal it replaces Claude Code's own end-of-turn line (✻ Churned for 1s); in the desktop Code tab, which draws no such line, it goes under Claude's last reply block. Display only. | | ci-status | /ci opens a pane listing the repo's latest GitHub Actions runs (via gh), refreshes every 30s, shows CI: N running in the status line and a toast when a run finishes. | | ai-meter-agents | Classic command hooks (no TypeScript) that record each session's state (working and on which tool, needs you, done) to ~/.config/claude-usage-monitor/agents/, one file per session. The ai-meter daemon shows them on the desk display's Agents page. The same script feeds Codex, Grok and Antigravity sessions: python3 mods/ai-meter-agents/install_other_tools.py adds it to their hook configs (--uninstall removes it). Silent: never blocks a tool call. |

Set up a machine

Installs every mod in setup/mods.conf (mine and the community ones I use) and restores their saved settings, such as the neon-cyber skin:

git clone https://github.com/shissncg/claude-mods ~/Dev/claude-mods
~/Dev/claude-mods/setup.sh
  • ./setup.sh --dev registers this checkout as the marketplace instead of GitHub, so edits under mods/ load without pushing.
  • ./setup.sh save copies this machine's mod settings into setup/store/; commit them to carry them to other machines.
  • To add a mod, add a line to setup/mods.conf. Running the script again only installs what's missing.

Plugins turned on at claude.ai sync by themselves and don't need to be listed.

To install just one of mine:

claude plugin marketplace add shissncg/claude-mods
claude plugin install turn-timestamp@shissncg-mods

Or try one for a session without installing:

claude --plugin-dir mods/turn-timestamp --plugin-dir mods/ci-status

Check one with claude plugin validate mods/<name>. Mods need a recent Claude Code build: older CLIs report "session.start" is not an event.

更多类似作品