Claude Modsはめちゃくちゃわかりやすくまとまっていた https://zenn.dev/nogu66/articles/claude-code-function-hooks-claude-mods
Community posts
Public posts on X about Claude Code mods. 2,784 collected.
introducing md viewer! 👀 a simple claude code mod that renders your markdown like github, right next to the chat. /md http://github.com/hamzafer/claude-code-mods
Yuchen Jin氏は、Claude CodeもCodex CLIもしばらく触っていないと言う。コーディングエージェントにターミナルは不向きな画面で、タブは使い捨てだから、と。mods(拡張)が盛り上がる今、画面そのものを疑う声も出ている。
Daniel San氏が、Claude Codeのmodの一つ「Cache Control」を推奨。Claudeの5分キャッシュの残りをバーで見せ、切れそうなら通知で温め直す。トークン節約に効く、と。長いセッションを回す人ほど効きそうな細工です。
Claude Codeのプロンプトキャッシュ状況を可視化するModです。キャッシュヒット率、読み書きされたトークン、残り有効時間などの表示、期限切れ間近の通知をしてくれるようです。面白いアイデアのModですね!
Made a pixel pet for Claude Code 🦀 Clawd lives above your prompt: it thinks when Claude thinks, types when Claude runs commands, and waves when Claude needs you. Hats included. /plugin marketplace add yuyongyan29-dev/claude-pet https://github.com/yuyongyan29-dev/claude-pet
谁先建成Agent的应用商店,谁就躺着收过路费 AI 圈四大家,最近全在干同一件事——给 Agent 开"插件市场",让你自己给 AI 加功能。 Anthropic 刚出了个 Claude Mods,只要一句话,Claude Code 就长出新本事了。OpenAI 那边呢,Codex 插件加 Dots,直接把 4000 多个 ChatGPT 插件拿过来复用,省事儿。DeepSeek 最狠,整个架子就是插件拼起来的,连 Agent 干活的"大脑循环"都能换。还有个叫 PI 的小玩意,程序员圈子里都传疯了。 这都不是什么功能更新,这是 App Store 时刻降临。谁先把 Agent 的应用商店建起来,谁以后就躺着收"过路费"。 短期押注 OpenAI:12 亿周活摆着,插件往 ChatGPT 里一甩就能用,这分发能力没对手。中期看 MCP——插件界的"普通话",Anthropic 自己都把它捐出去了,谁都得说。 但长期,拼的是谁先为安全还账。 Anthropic 自己文档里白纸黑字写着:Mods"以你的权限运行",不隔离,能翻你电脑里存的 API key。这等于请了个保姆,还把家里钥匙全给她了。Snyk 查了 3984 个公开插件,超过三分之一有毛病,76 个确认是坏的。上个月那个 Plugin4Shell,一个漏洞通吃四家,26000 多个 Agent 全中招。 最狠的是,两家到现在提都不提抽成。先圈地、再收租,平台的老剧本了。第一批交学费的,永远是抢着装插件的咱基层牛马。
Claude Codeにmodsという拡張機構が載った。セッション内で動くフックで、危険なコマンドの前に確認paneを出したり、文脈窓の残量を常時表示したりできる。Claude自身に作らせてホットリロードで調整できるのも楽。 https://claude.dev/blog/getting-started-with-claude-code-mods/
【新機能】AnthropicがClaude CodeのModsを使った公式プラグイン「You Should Know」を出した。中身はこうだ。Claudeが長い作業をしている間、別のエージェントが横で作業を読んでいて、見落としそうな大事な点をメモで知らせてくれる。 ・初期状態はオフ。/plugin enable cc-plugin-you-should-know@builtin で有効にできる ・rm -rfやforce pushを止めて影響範囲を見せる「blast-radius」も、公式サンプルにある ・Anthropic自身も、/diffコマンドをModsの形で作っている ・組織の管理者は、読み込めるModsを管理設定で制限できる Claude Codeに長い作業を任せることが多いなら、今日の作業で一度有効にして走らせてみるといい。 ↓詳細
@dani_avila7 Source code of the Claude Code plugin above: https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/mods/observability/prompt-cache-control
📢 2026-10-04 AI日更 | Claude Code 插件化、教皇为 AI 创作与意识划界 > 今日核心动向:Anthropic 为 Claude Code 新增 Mods 插件,使编码助手从固定工具转向可编程平台;教皇利奥十四世连续就 AI 艺术创作与意识问题表态,将 AI 道德地位推向公共伦理议程。此外,OpenClaw 审核延迟引发对 AI 应用分发效率的讨论,而 X 平台大量体育娱乐话题被误归为 AI,凸显信息治理噪声。 🔹 📖 本期 Watch List 深度导读 今日暂无深度阅读推荐。 🔹 🌐 X 平台 AI 热点快讯 ▫️ 话题 1:Google CEO Sundar Pichai Quickly Responds to OpenClaw App Review Delay • 分类:AI · News • 概况:热度时间:3 hours ago,相关帖子数:1300 • 是什么事:谷歌 CEO Sundar Pichai 就 OpenClaw 应用审核延迟问题迅速作出回应。 • 为什么重要:这反映出 AI 应用在分发审核环节面临的上线不确定性,也显示谷歌对 AI 产品发布节奏和竞争窗口的高度重视。 • 讨论概况:X 上的讨论主要聚焦于审核延迟是安全审查还是流程低效、CEO 快速介入是否会带来审核公平性压力,以及 OpenClaw 在 AI 助手/代理市场的竞争力。 ▫️ 话题 2:Trump Announces $90 Medicare Payments to 20 Million Seniors • 分类:AI · Other • 概况:热度时间:8 hours ago,相关帖子数:120000… 🔗 完整排版阅读: https://miaok.ong/ai-daily/ai-daily-2026-10-04/
sub agentがstatuslineに生息するようにしてみたら可愛くてたくさんポーンさせたい・・・!! #claudemod #mod #claude #cc
Claude Code just got mods. So I moved Clawd into my terminal 👇 He cooks while Claude thinks, writes when it edits, cries when your tests fail. And the bar next to him shows your model, context, 5h/7d limits and git. Live. Free. Open source.
Claude Code now supports "mods": small TypeScript functions that can rewrite prompts, block tool calls and change the interface. Powerful. But they aren't sandboxed: a mod has the same access to your machine as Claude Code itself. Would you install a mod made by a stranger? Yes / No / Only after reading the code
Claude Codeの動きに、自分で書いた処理を割り込ませられる『mods』が出ました。 ✅プロンプトの書き換え、ツール実行のブロックや再試行、権限の承認・拒否をTypeScriptの関数で組める ✅出力に含まれる秘密情報を隠す(redaction)ことや、画面(UI)の差し替えにも対応 ✅プラグインとして配布され、/plugin から導入 ⚠️modsはサンドボックスなしで、Claude Codeと同じ権限で動きます。入れるのは提供元を確認したものだけに。
A long prompt runs and you stay planted in the chair. The wait is dead time. You meant to stand up, and the agent kept the cursor blinking. Terminal Gym is a Claude mod that turns those waits into bodyweight reps. It keeps the rep count moving through the day, nudges you when a prompt runs long, and a strict mode can block another prompt until you finish the reps you owe. It also keeps a daily streak. The builder had been doing this from a status bar, then moved it into a mod and opened the repo. A mod can change the loop you are stuck in while you wait, not only the pane you glance at.
watch people switch up on yahiamice for the most bs reasons you've ever seen over partially using claude on a melee mod
Getting started with Claude Code mods / https://claude.dev Blog https://claude.dev/blog/getting-started-with-claude-code-mods/
【Claude CodeのModsを、実際に作って動かすまで】 10/1に書いたModsの続きです。今回は手を動かします。公式の手順どおりに作りました。 私の環境(2026-10-03、Claude Code 2.1.288)で動かした結果も載せます。 ■ Modsとは Claude Codeの動きや画面に、自分で書いたJavaScriptを差し込める機能です。 これまでフックでできたのは、決まった場面で自分のコマンドを走らせること。 画面の表示を変えることはできませんでした。 Modsなら、作業中にくるくる回っている表示(スピナー)の文字を書き換えたり、 自分で作った/コマンドを足したりできる。 ―――――――――― 【まず一番ラクな作り方】 Claude Codeに「今のgitブランチをプロンプトの上に出すModを作って」と頼むだけです。 plugin-authoring という組み込みのスキルが使われます。 書かれる場所は ~/.claude/dev-mods/セッションID/ です。最初のファイルを保存する時に「このセッションでホットリロードを有効にするか」と聞かれます。有効にすると、ターンの終わりに読み込まれます。 自分で書くと仕組みが分かるので、次は手書きでやります。 ―――――――――― 【最小構成は3ファイル】 first-mod/ ├── .claude-plugin/ │ └── plugin.json └── hooks/ ├── hooks.json └── register.js ■ plugin.json プラグインの名前や説明を書く名札です。Modは普通のプラグインの一種なので、これが要ります。 ■ hooks.json { "description": "The first-mod hooks module", "modules": ["./register.js"] } 大事なのは modules の行です。 この行があると、Claude Codeは「これはModだ」と判断します。 ■ register.js ここが本体です。公式のコードをそのまま載せます。 // The count, shared by the hooks below let calls = 0 // Claude Code calls this once when the mod loads export function register(on) { // Runs when the session starts, before your first prompt on('session.start', async ($, e, next) => { // Add the /tally command await $.command.register({ name: 'tally', description: 'Show how many tool calls Claude has made', }) // Let the session start as usual return next(e) }) // Runs each time Claude is about to use a tool on('http://tool.call', async ($, e, next) => { calls += 1 // Ask Claude Code to draw the interface again, so the new count shows $.ui.invalidate('ui.render') // Let the tool run as usual return next(e) }) // Runs when you type /tally, and only then, because of the matcher on('http://command.run', { command: 'tally' }, async () => { // The text to print in the transcript return { text: 'Claude has made ' + calls + ' tool calls since this mod loaded' } }) // Runs each time Claude Code draws the spinner on('ui.render', { component: 'Spinner' }, async ($, e, next) => { // Keep Claude Code's spinner, with the count added after its word return next({ ...e, props: { ...e.props, suffix: ' · tool calls: ' + calls + '…' } }) }) } フック(イベントが起きた時に呼ばれる関数)は4つです。 ・session.start:起動時に /tally コマンドを登録する ・http://tool.call:Claudeが道具(ファイル編集やコマンド実行)を使う直前に呼ばれ、回数を1足す ・http://command.run:/tally と打った時だけ、回数の文章を返す ・ui.render:スピナーを描く時に、回数を後ろへ足す 各フックは3つを受け取ります。 $(Claude Codeの機能の入口)、e(イベントの中身)、next(次へ渡す関数)です。 ―――――――――― 【動かす】 claude --plugin-dir ./first-mod インストールせず、この1回だけ読み込む起動方法です。 ■ 実測:チュートリアルはそのまま動いた まず中身を点検しました。入れる前に確認できるコマンドがあります。 claude plugin validate ./first-mod ❯ ./register.js hooks: session.start, http://tool.call, http://command.run{command=tally}, ui.render{component=Spinner} ❯ ./register.js calls: $.command.register, $.ui.invalidate ✔ Validation passed hooks の行が「どのイベントに割り込むか」、calls の行が「何を呼ぶか」です。入れる前に中身が分かります。 次に claude -p "/tally" --plugin-dir ./first-mod を実行しました。 first-mod: Claude has made 0 tool calls since this mod loaded 先頭にMod名が自動で付きます(公式にも記載あり)。 ―――――――――― 【書き間違えるとどうなる?(実測)】 ■ イベント名を1文字違える http://tool.call を tool.calls に変えて、さきほどの validate を実行しました。 ✘ Found 1 error: ❯ ./register.js:12: "tool.calls" is not an event; ... ✘ Validation failed 行番号まで出て、実行前に止まります。 ■ $ を変数に入れる const ui = $.ui と書くと落ちました。 ✘ Found 1 error: ❯ ./register.js:14: $.ui is used as a value ... ✘ Validation failed $ は毎回 $.名前空間.メソッド() の形で書く決まりになっています。 変数に入れたり、分解して使ったりはできません。 入れる前に中身を解析できるようにするための制約です。 ―――――――――― 【作りながら直せる】 ファイルを保存すると、ターンの終わりに読み込み直されます。 例えば ' · tool calls: ' を ' · tools used: ' に変えて保存してみる。 すると次の表示から、新しい文字に変わります。 注意が1つあります。 読み込み直されるたびに register が最初から実行されます。 そのため、数えていた値は0に戻ります。 ■ 自動テストも書ける(実測) claude plugin test を実行しました。 (pass) /tally reports the tool calls the mod has seen [17.49ms] 1 pass 0 fail セッションもログインもネットも不要です。イベントを発火させて結果を確かめられます。 ■ 型定義ファイルが自動で作られた(実測) --plugin-dir で読むと、Modのフォルダに .claude-plugin/types/ ができました。中の claude-code/index.d.ts は14,973行。先頭に「Written by Claude Code 2.1.288.」と私のバージョンが入っています。 中を直接数えました。 ・フックできるイベント(Claude Code自身の動作)… 43種類 tool、ui、session、prompt、turn、command、agent など13分野 ・$ から呼べるAPI … 61種類、名前空間は19個 $.fs、$.http、$.store、$.model、$.clock、$.process など 面白いのは、このAPI呼び出し自体にもフックできる点です。 他のModが $.store を読む瞬間に割り込めます。 公式も「ページよりこのファイルを信じてほしい」と書いています。 バージョンで中身が変わるためです。 ―――――――――― 【ハマりポイント:バージョン】 Modsには v2.1.287 以降が必要です。 claude update で「2.1.287に更新しました」と出ました。なのに claude --version は 2.1.283 のままでした。原因は、Claude Codeが2か所に入っていたことでした。 更新は使っていない方に入り、古い方が動いたままだった。 パソコンは、PATH(コマンドを探す順番の設定)で先に見つかった方を使います。 確認方法は2つです。 ・claude doctor の Running: の行に、実際に動く場所とバージョンが出る ・which -a claude で複数出たら、2か所に入っている 直し方は、実際に使われている方へ入れ直すことです。 npmで入れている場合は、場所を指定して入れ直せます。 npm install -g --prefix ~/.npm-global @anthropic-ai/claude-code@latest ―――――――――― 【入れる前に知っておきたい権限】 公式は警告しています。Modは自分の権限で動くコードで、サンドボックス(隔離された実行環境)の外です。入れたModは次のことができます。 ・ファイルの読み書き ・環境変数やAPIキーの読み取り ・全プロンプトとツール呼び出しの閲覧 ・あなたに聞かずに、許可の確認を通してしまうこと ・自分のプランでのモデル呼び出し 作った人と配っている場所が信頼できるものだけ入れてください。 入れる前に validate を通して、hooks と calls の行を見ておくと安心です。 ―――――――――― 【止め方】 ・1個だけ:/plugin の Installed タブで無効化 ・今回だけ全部:claude --safe-mode で起動 ・ずっと全部:~/.claude/settings.json に "disableAllHooks": true ―――――――――― 【まとめ】 ・Modsは、Claude Codeの中で動く自作の機能 ・頼めば書いてくれる(plugin-authoring) ・最小は3ファイル。modules キーがあればMod ・register.js に on(イベント名, 関数) を並べる ・validate で、入れる前に中身が分かる ・古い版が残っていないか、claude doctor で確認
Anthropic acaba de meter un segundo agente dentro de Claude Code. Se llama “You should Know”. No escribe código. Lee lo que escribió el agente principal y, si te ibas a perder algo, te lo pone arriba del prompt. #ClaudeCode #Anthropic #DevTools #IA #Mods
プログラムの知識なしで、Claude Code の画面に自分用のパネルを1日で出せました。 Claude mod、これはヤバいです。
Wrapping up work on my own take of the humble Progress Bar via the new #claudecode Mod :D I love seeing trees and dependencies! Will publish soon cuz why not! c: 👀 And one more project in the words with CC mods... something ive been wanting since ChatGPT 2 days....
無料の Gemini は、10月9日から Flash-Lite しか選べなくなります。仕事で使う人は今週中に確認を。 1️⃣ Gemini 無料版が縮小 2️⃣ Claude Code に Mods 3️⃣ 会計士12人 vs AI 4️⃣ 首相がAppleに要請 今日の軸は、使っているAIの見直し。 👇続きは動画で(5分) #AIニュース #生成AI #Gemini
Got tired of alt-tabbing to check my bags while Claude codes. So the positions now sit in a pane next to the terminal (new Claude mods feature), refreshing every few seconds, and my trade journal writes itself. Open source, read-only, no private keys. https://github.com/KamiFin/pumpfun-utilities
Claude Code design philosophy has been consistent: bottom up and give community building blocks and see where it goes. And with mods, that seems clear and it also feels like the focus is still engineers/orgs wanting HITL for agentic coding. I don't see that UX changing anytime soon in the workplace, where engineers are very much hands-on. It will take a generation to overcome this inertia. But personally, I am using @bot to "code": managing various 2-bot teams (engineer + product owner) across side projects, via text or voice chat (more voice now). Sure, I am not creating production critical apps, but that UX def. seems like the future (and SEEMS like reality in these frontier labs). To be clear, its a glimpse of the future. The UX still feels disjointed and unclear. e.g. where do I go for "review", for "deployment", for "requirements", who/what is keeping track. But one thing is for sure, I cannot see myself going back. THIS is the way. Side thought: I am so lucky to b born in 80s, we get to experience all these transitions, the analog->digital, internet, mobile, social, and now AI.
Claude mods have a lot of potential, especially for context engineering and other serious work. Anyway, I made a slot machine. Reels spin while Claude works, every tool call drops a coin in, and you get a loot box when it's done. https://github.com/alexmeckes/vibe-slots - if you want to try it
@thsottiaux Take inspiration from claude mods. And add a codex mod sidebar which we can ask codex to design for us for our required features and design
Claude Code shipped Mods this week and I think people are underrating it. Not another feature — a platform shift. Mods are JS/TS functions that hook into the tool itself: prompts, tool calls, permission checks, even UI rendering. You no longer just change what the AI outputs. You change how the tool behaves. Block dangerous commands. Inject your own review step. Render a custom status bar showing context usage. Anthropic's own /diff and AGENTS.md support already run as Mods, and the community is already shipping wild ones — a "Token Weather" status bar, a "Blast Radius" interceptor that puts an approve/cancel panel in front of risky commands. I sell Claude Code prompt packs on Gumroad. Mods are the obvious next product format for people like me. Prompt pack = words. Mod = behavior. The ceiling just got 10x higher — and so did the bar. The catch everyone will learn the hard way: Mods run unsandboxed, with full user permissions. Anthropic's own warning is "install only from sources you trust." First paid Mods won't win on features. They'll win on trust.
Mods are the Claude Code release I keep coming back to this week. Change how it behaves, customize the UI, write one in a few lines of TypeScript or have Claude build it. #ClaudeCode #ClaudeAI #ai Token Weather is the one I want first. Which mod are you installing?
如果你经常用 Claude Code,这个 Prompt Cache Control 模组真可以装。 它做的事很简单: 给 Claude Code 加一个 5 分钟缓存状态栏,同时在缓存快失效时发通知,提醒你保持 cache 活跃。 实际好处就是: 少重复吃上下文 少烧 token 长会话更耐用 更容易知道缓存什么时候快失效 安装: npx claude-code-templates@latest --mod observability/prompt-cache-control 如果你平时一开 Claude Code 就是长会话,这种小工具可能比换一堆花哨插件更实用。 #ClaudeCode #Claude #AI #Agent
Shown as text cards so your browser makes no requests to X. Want a post removed? Email us from the imprint.