決まったプロンプトを、
キーひとつで文章の末尾に。

Your standing instructions,
one key away from the end of the line.

Rakkan は macOS のメニューバーに常駐します。登録した定型文を、入力中の文章の末尾へキー操作ひとつで付与します。 付けるか付けないかは、送信のたびに自分で決められます。

Rakkan lives in your macOS menu bar. One shortcut appends a saved prompt to the end of what you are typing. You decide whether to append it every single time.

バージョン 1.0.3 / macOS 13 以降 / Apple Silicon・Intel 対応 / 無料

Version 1.0.3 · macOS 13 or later · Apple Silicon and Intel · Free

メニューバーから開く画面。左端にショートカット、右に本文の冒頭。
The menu bar panel: shortcuts on the left, a preview of the text on the right.

背景の印はつかんで投げられます。空いたところを押すと印が増えます。 Grab and fling the seals. Press an empty spot to drop another one.

なぜ必要か

Why it exists

プロジェクトの規約を CLAUDE.md に書いても、その通りに動かないことがあります。 同じ内容をプロンプトに直接書き添えると、期待どおりに動きます。 CLAUDE.md はセッションの最初に一度読まれるだけなのに対し、 送信直前の末尾は毎ターンもっとも注意が向く位置にあるためです。

とはいえ、その文章を毎回手で打つのは現実的ではありません。 かといって常に自動で付くと、短い確認や雑談では邪魔になります。 Rakkan は「毎回自分で選べる」ことを前提に、この往復をキー1つに畳みます。

You can write your project rules in CLAUDE.md and still watch them get ignored. Paste the same words into the prompt itself and the model follows them. 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.

Retyping that paragraph every time is not realistic. Appending it automatically every time gets in the way of short follow-ups. Rakkan collapses the whole round trip into one keystroke that you choose to press.

押すと、こうなる

What pressing it looks like

実際の順序をそのまま再現しています。キーを押してみてください。

This plays back the real sequence, step for step. Press a key and watch.

claude

2つのキーで使い分ける

Two keys, two behaviours

プロンプトごとに2種類のキーを割り当てられます。片方だけの設定でも構いません。

Each prompt can carry two shortcuts. Assigning only one of them is fine.

⌘⏎

付与して送信

Append & Send

末尾に定型文を入れ、そのまま Return を送ります。書き終えてそのまま流したいときに。

Appends the text and presses Return for you. For when the message is already done.

⌘1

付与だけ

Append Only

末尾に入れるだけで送信しません。内容を目で確かめ、書き足してから自分で送れます。

Appends the text and stops. Read it over, edit it, and send it yourself.

⏎ そのまま ⏎ untouched

修飾キーなしの Return は触らない

A bare Return is never taken

素の Return を横取りしない設計です。万一の不具合でも、ターミナルで文字が送れなくなることはありません。

Rakkan never intercepts an unmodified Return, so a bug here can never leave you unable to send a line.

できること

What it does

用途別に何個でも

As many prompts as you need

規約の念押し、調査だけ、テストを先に書かせる。用途ごとに登録し、キーで即座に呼び分けられます。

Rule reminders, plan-only mode, 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 — no restart.

設定は素の 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.

クリップボードは元に戻す

Your clipboard is put back

貼り付け方式では注入の瞬間だけ借り、直後に元の内容へ戻します。打鍵方式も選べます。

The paste path borrows the clipboard for an instant and restores it. Direct typing is also available.

導入

Setup

3ステップで終わります。つまずくとしたら 2 の権限です。

Three steps. Step 2 is the only one that trips people up.

  1. アプリケーションへ入れて起動する

    Move it to Applications and launch

    .dmg を開き、Rakkan を「アプリケーション」へドラッグしてダブルクリックします。Dock には出ず、メニューバーに角印のアイコンが現れます。

    Open the .dmg, drag Rakkan into Applications, and double-click it. It does not appear in the Dock — look for the seal in your menu bar.

  2. アクセシビリティ権限を許可する

    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. Rakkan starts working the moment you grant it — no restart.

  3. 自分の定型文に書き換える

    Replace the samples with your own

    初回に3件のプロンプトが用意されています。メニューバーの一覧から本文とキーを編集してください。変更は自動保存され、次の発火から効きます。

    Three sample prompts are created for you. Edit the text and keys from the menu bar list. Changes save themselves and apply to the very next trigger.

ダウンロードしたまま開けます。 配布物は Apple Developer ID で署名し、Apple の公証(notarization)を通しています。 「開発元を確認できません」「壊れているため開けません」といった警告は出ません。 右クリックでの回避操作も、ターミナルでの隔離属性の削除も不要です。

It opens straight from the download. The build is signed with an Apple Developer ID and notarized by Apple, so macOS raises no "unidentified developer" or "damaged" warning. No right-click trick, no quarantine removal.

設定ファイル

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.

ダウンロード

Download

SHA-256 (.dmg) 8d762392ab5c4949f881d67f5a78692233be94447c5ce3a646e377e717e20491
SHA-256 (.zip) 832b7f22e29a75f1ba49cafdbb9d4e07313d02b35e58209f621cc394ef62137f