macOS のメニューバーに常駐する、小さな道具
A small tool that lives in your macOS menu bar
CLAUDE.md に書いた。
それでも、また無視された。
You wrote it in CLAUDE.md.
It got ignored again.
同じ内容をプロンプトの末尾に書き添えれば、ちゃんと動く。それは分かっている。 分かっていて、毎回は打てない。
Paste the same words at the end of your prompt and the model follows them. You know this. You also know you will not type it every time.
背景の印はつかんで投げられます。空いたところを押すと印が増えます。 Grab and fling the seals. Press an empty spot to drop another one.
二つの道は、どちらも行き止まりだった
Both roads were dead ends
CLAUDE.md はセッションの最初に一度読まれるだけです。
送信直前の末尾は、毎ターンもっとも注意が向く位置にあります。
だから末尾に書けば効く。理屈は分かります。
それで最初はコピー&ペーストで凌ぎます。三日は続きます。四日目には忘れます。
では自動で付ければいい。そう考えて、常に末尾へ足す仕組みを作ります。 今度は「さっきのを取り消して」と一行送るだけの場面で、規約の念押しが十行ぶら下がります。 邪魔になって、結局オフにします。
二度行き詰まってから、ようやく分かります。欲しかったのは自動化ではなく、 押すか押さないかを毎回決められることでした。
CLAUDE.md is read once, at the start of a session. The tail of your message is the
spot that gets the most attention on every single turn. So put it at the tail. The logic is clear.
You start by pasting it in by hand. That lasts three days. On the fourth you forget.
So automate it — append the text every time. Now a one-line "undo that last change" drags ten lines of rules behind it. It gets in the way, and you switch it off.
Only after both dead ends does it become clear. What you wanted was never automation. It was deciding, each time, whether to press it.
だから、キーを分けた
So there are two keys, not one
落款は、書き上がった書画の末尾に作者が据える印です。押すかどうかは作者が選びます。 この道具もそうしました。
A rakkan is the seal an artist presses at the end of a finished work. Whether to press it is the artist's call. This tool works the same way.
付与して送信
Append & Send
書き終えた。そのまま流す。末尾に定型文が入り、続けて Return が送られます。
You're done writing. It appends the text and presses Return for you.
付与だけ
Append Only
入るところを見てから送りたい。末尾に入れて、そこで止まります。
You want to see it land first. It appends and stops there.
そのまま送信
Just send it
短い返事に規約は要りません。修飾キーなしの Return は、決して横取りしません。
A short reply needs no rules. An unmodified Return is never intercepted.
押すと、こうなる
Here is what pressing it looks like
説明より速いので、実際の順序をそのまま再現しました。キーを押してみてください。
Faster than explaining it — this plays back the real sequence, step for step. Press a key.
入れた次の日
The day after you install it
変わるのは一日の細部です。大きな話は起きません。
What changes is the texture of a day. Nothing dramatic happens.
-
朝、実装を頼む
Morning — you hand over a feature
依頼文を書き終えて ⌘⏎。規約の念押しが末尾に付いて、そのまま飛んでいきます。「CLAUDE.md 読んだ?」と訊き返す往復が、もうありません。
You finish the request and press ⌘⏎. The rule reminder lands at the end and the message goes. No more "did you read CLAUDE.md?" round trip.
-
昼、まだ触られたくない
Midday — you don't want anything touched yet
調査だけさせたいときは ⇧⌘⏎。「まだファイルを変更しないこと」が毎回きっちり付きます。書き忘れて勝手に直された、が起きません。
⇧⌘⏎ for investigate-only. "Do not edit any file yet" goes in every time. No more edits you never asked for.
-
夕方、長い依頼を書いた
Late afternoon — a long request
送る前に全文を読み返したい。⌘1 なら付くだけで止まります。目で確かめて、書き足して、自分の Return で送ります。
You want to reread the whole thing first. ⌘1 appends and stops. Check it, add to it, send it with your own Return.
-
夜、「ありがとう」だけ送る
Evening — just "thanks"
ここに規約は要りません。何も押さなければ、何も付きません。それがこの道具のいちばん大事な機能です。
No rules needed here. Press nothing, and nothing is appended. That is this tool's most important feature.
手に入れる
Get it
無料です。Apple の署名と公証を通してあるので、落として開くだけ。警告は出ません。
Free. Signed with an Apple Developer ID and notarized, so it opens straight from the download.
動き出すまで、3分
Three minutes to working
つまずくとしたら 2 の権限です。ほかは迷いません。
Step 2 is the only one that trips people up.
-
アプリケーションへ入れて起動する
Move it to Applications and launch
.dmg を開き、Rakkan を「アプリケーション」へドラッグしてダブルクリック。Dock には出ません。メニューバーに印のアイコンが増えていれば起動しています。
Open the .dmg, drag Rakkan into Applications, double-click. It never appears in the Dock — look for the seal in your menu bar.
-
アクセシビリティ権限を許可する
Allow Accessibility access
初回に案内が出ます。「システム設定 → プライバシーとセキュリティ → アクセシビリティ」で Rakkan をオンに。キー監視に macOS が必須とする権限です。許可した瞬間から、再起動なしで動き始めます。
The app walks you through it. Turn Rakkan on under System Settings → Privacy & Security → Accessibility. macOS requires this to watch for shortcut keys. It starts working the moment you grant it.
-
自分の言葉に書き換える
Replace the samples with your own words
3件の見本が入っています。メニューバーの一覧から本文とキーを直してください。変更は自動保存され、次の一押しから効きます。
Three samples are waiting. Edit the text and keys from the menu bar list. Changes save themselves and apply to the very next press.
ここから先は資料です
The rest is reference
使い始めるのに読む必要はありません。気になったときに戻ってきてください。
You do not need any of this to start. Come back when something makes you curious.
用途別に何個でも
As many prompts as you need
規約の念押し、調査だけ、テストを先に。用途ごとに登録し、キーで即座に呼び分けられます。
Rule reminders, plan-only, tests-first. Register one per situation and switch with a key.
複数行もそのまま
Multi-line text stays intact
改行を含む長い定型文も、途中で送信されることなく一度で挿入されます。
Long text with line breaks goes in as one piece, never sent halfway through.
対象アプリを絞れる
Scoped to the apps you pick
Bundle ID で指定したアプリだけで有効。対象外では、いかなるキーも横取りしません。
Only the bundle IDs you list are affected. Everywhere else, not a single key is intercepted.
日本語と英語
Japanese and English
起動時は OS の言語に従い、設定からいつでも切り替え。再起動は要りません。
Follows your system language on first launch and switches instantly from settings.
クリップボードは元に戻す
Your clipboard is put back
貼り付け方式では注入の瞬間だけ借り、直後に戻します。触れさせたくなければ打鍵方式も選べます。
The paste path borrows the clipboard for an instant and restores it. Direct typing is also available.
設定は素の JSON
Plain JSON settings
~/.config/rakkan/config.json を直接編集できます。壊れていても起動し、理由を画面に出します。
Edit ~/.config/rakkan/config.json by hand. If it breaks, the app still starts and tells you why.
設定ファイル
The config file
画面での変更はそのまま ~/.config/rakkan/config.json に書かれます。エディタで直接書いても構いません。
Everything you change in the UI lands in ~/.config/rakkan/config.json. Editing it by hand works too.
{
"enabled": true,
"language": "system",
"injectionMethod": "paste",
"preDelayMS": 40,
"postDelayMS": 80,
"targetBundleIDs": ["com.apple.Terminal", "com.mitchellh.ghostty"],
"rules": [
{
"id": "8B742136-2290-4C62-AD22-3E9651F50E62",
"name": "Follow the rules",
"enabled": true,
"hotkey": "cmd+enter",
"insertHotkey": "cmd+1",
"text": "Follow every rule in CLAUDE.md exactly."
}
]
}
見ているもの、見ていないもの
What it sees, and what it doesn't
- キー入力の内容を記録しません。保存も送信もしません。
- ネットワーク通信を一切行いません。更新確認もしません。
- 監視するのはキーの押下だけです。登録済みのトリガーに一致しなければ、そのまま通します。
- クリップボードを使うのは注入の瞬間だけで、直後に元へ戻します。
- Keystroke contents are never recorded, stored, or transmitted.
- No network traffic at all — not even an update check.
- Only key-down events are watched. Anything that is not one of your triggers passes straight through.
- The clipboard is used for a moment during injection and restored right after.
先に知っておくこと
Known limits
- macOS がセキュア入力モードのあいだ(パスワード入力待ちなど)は発火しません。OS の仕様です。
- Claude Code は ⇧Return・⌥Return を改行に使うため、この2つは実質的に割り当てられません。設定画面でも警告します。
- 主キーの判定は物理キーコードで行うため、JIS 配列では記号キーの位置が US 配列とずれます。数字キーをおすすめします。
- 日本語入力の変換中にトリガーを押した場合の挙動は、入力メソッド側の処理に依存します。
- アクセシビリティ権限とアプリサンドボックスは両立しないため、Mac App Store では配布できません。
- Nothing fires while macOS is in secure input mode, such as at a password prompt. That is by design in the OS.
- Claude Code uses ⇧Return and ⌥Return for line breaks, so those two are effectively unavailable. The settings screen warns you.
- Keys are matched by physical key code, so punctuation sits elsewhere on a JIS keyboard. Number keys are the safe choice.
- Pressing a trigger mid-conversion in a Japanese input method depends on how that input method behaves.
- Accessibility access and the app sandbox are mutually exclusive, so this cannot ship on the Mac App Store.
押すか押さないかを、毎回あなたが決める。それだけの道具です。
You decide, every time, whether to press it. That is the whole tool.