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

tardy

一个 Claude Code mod,把 Tardy 的菜单栏升级提醒显示为提示符上方的状态栏,让你专心进行工作时不会被会议突然打断。

已翻译

关于这个 mod

Tardy for Claude Code

一个 Claude Code mod,会把 Tardy 的菜单栏升级提醒显示为提示符上方的状态栏,让你专心进行工作时不会被会议突然打断。它读取与 Tardy 应用相同的日历,并应用相同的规则,因此状态栏和菜单栏始终一致。

内容

安装

需要 Claude Code 2.1.287 或更高版本(mods),以及 Tardy 1.0.5 或更高版本;后者会提供此 mod 读取的日历辅助程序。

claude plugin marketplace add ventz/tardy
claude plugin install tardy@tardy

启动新会话(或运行 /reload-plugins)后,状态栏会出现在提示符上方。日历访问权限归运行 Claude Code 的终端应用所有。如果状态栏显示没有访问权限,请在 系统设置 > 隐私与安全性 > 日历 中允许该终端。

状态栏位于 Claude Code 的提示符上方插槽中,该位置一次只能容纳一个 mod。请停用其他会在此处绘制内容的 mod。

安装

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

claude plugin marketplace add ventz/tardy
claude plugin install tardy
原文 / README

Tardy for Claude Code

A Claude Code mod that shows Tardy's menu bar escalation as a band above the prompt, so a meeting can't sneak up on you while you're deep in a session. It reads the same calendars as the Tardy app and applies the same rules, so the band and the menu bar always agree.

Contents

Install

Requires Claude Code 2.1.287 or later (mods) and Tardy 1.0.5 or later, which ships the calendar helper the mod reads.

claude plugin marketplace add ventz/tardy
claude plugin install tardy@tardy

Start a new session (or run /reload-plugins) and the band appears above the prompt. Calendar access belongs to the terminal app that runs Claude Code. If the band says it has no access, allow that terminal in System Settings > Privacy & Security > Calendars.

The band sits in Claude Code's above-prompt slot, which holds one mod at a time. Disable any other mod that draws there.

What it shows

| Band | When | | --- | --- | | ● Next: Standup · 2:30-3:00pm (in 1h 12m) +2 more today (dim) | Next meeting more than 30 min away | | ● 2:30-3:00pm - Standup | Within 30 min | | ● 12m - Standup [Join Zoom] [Dismiss] (yellow) | Within 15 min | | ● 4:59 - Standup (until 3:00pm) (red, live) | Within 5 min; bold in the last minute | | ⚠ LATE 1:23 - Standup (red, flashing) | Started; clears itself after 5 min | | ● Now: Standup (until 3:00pm) (dim) | In a meeting with nothing after it |

The dot is blue for a Work calendar and red for a Personal one, as marked in Tardy's Settings > Calendars. Nothing shows once the day is done.

Use

  • Join opens the meeting link and dismisses the meeting; Dismiss hides it. With the band focused (ctrl+x tab), j and d press them. A dismissal applies in every session.
  • /tardy lists today's remaining meetings. /tardy join, /tardy dismiss, /tardy refresh, /tardy hide and /tardy show do what they say.
  • There are no sounds or notifications here: the Tardy app already does those.

How it works

  • tardy-events (Sources/TardyEvents) is a small command-line helper built on TardyCore, so declined and canceled invites, all-day events, title cleanup and the meeting-link allowlist are the app's own code. It reads the app's calendar choices (disabledCalendarIDs, workCalendarIDs in net.vpetkov.tardy) and prints today's remaining meetings as JSON, with times formatted in the Mac's time zone.
  • Tardy.app ships it in Contents/Helpers/tardy-events, signed and notarized with the app, so installing the mod needs no build. The mod looks in /Applications and ~/Applications.
  • The mod runs the helper at session start and every 2 minutes. It ticks once a second only inside the 5-minute countdown and while LATE; otherwise it wakes at the next phase boundary, at most every 15 s, and redraws only when the text changes.
  • Join opens only https:// links the helper matched to a known provider (MeetingLinks.isSafeToOpen), and the mod checks the scheme again.

Develop

Load the mod straight from a checkout:

claude plugin marketplace add ~/git/tardy   # or: claude --plugin-dir ~/git/tardy/claude-code
claude plugin install tardy@tardy

From a checkout, the mod prefers the checkout's own helper and builds it on first use (swift build -c release --product tardy-events, about a minute the first time; the band says so meanwhile). Rebuild after changing TardyCore or Sources/TardyEvents. Without a Swift toolchain it falls back to the installed app's helper.

claude plugin validate claude-code
claude plugin test claude-code        # 24 tests: phases, formatting, links, helper lookup, auto-build

更多类似作品