ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 zyx1121

hint-mod

更安靜的 Claude Code 頁尾:提示列下方那行暗淡的提示文字消失了。

已翻譯

關於這個 mod

Claude Code 外掛透過單一 ui.render function hook,將引擎的 PromptHint 元件重寫為空字串,藉此隱藏提示列下方暗淡的提示列(? for shortcuts、esc to interrupt、(shift+tab to cycle)、← for agents)及其旁邊的膠囊。安裝需要先設定 CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1,然後執行 /plugin marketplace add zyx1121/hint-mod 和 /plugin install hint-mod@hint-mod;也可以使用 claude --plugin-dir /path/to/hint-mod 僅為單一工作階段載入。權限模式徽章繪製在 PromptHint 外部,無法移除,因此在 bypass/plan 模式下仍會留下末尾的 ·。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add zyx1121/hint-mod
claude plugin install hint-mod
原文 / README

hint-mod

A quieter Claude Code footer: the dim hint line under the prompt, gone.

claude-code · mod · function-hooks · footer

Claude Code plugin  CI  License: MIT

before  ⏵⏵ bypass permissions on (shift+tab to cycle) · ← for agents
after   ⏵⏵ bypass permissions on ·

Once the shortcuts are in your fingers, the hint line under the prompt is only noise. This mod empties it: ? for shortcuts, esc to interrupt, (shift+tab to cycle), ← for agents and the pills beside them.

It is a Claude Code mod: a plugin whose behaviour lives in a TypeScript hooks module. It rewrites the engine's PromptHint component to an empty string, nothing else.

Install

Function hooks are early access, so the engine loads a mod only with the flag on. Put it in your shell profile:

export CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1

Then install it as a plugin, from GitHub or from a local clone:

/plugin marketplace add zyx1121/hint-mod
/plugin install hint-mod@hint-mod

Or try it for one session without installing:

claude --plugin-dir /path/to/hint-mod

Limits

The permission mode badge (⏵⏵ bypass permissions on, ⏸ plan mode on) is drawn by the engine outside PromptHint, so no hook can remove it, and a trailing · stays beside it. In the default (Manual) mode there is no badge and the line disappears.

How it is built

| File | Role | |------|------| | hooks/register.ts | One ui.render hook on PromptHint that passes the line on with hint: '' | | tests/register.test.ts | The engine receives an empty hint; draft and working flags pass through | | types/claude-code.d.ts | The engine contract, written by /plugin-types |

Typecheck with bunx -p typescript tsc -p tsconfig.json and test with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude plugin test .. CI runs both.

Contributing

Issues and pull requests are welcome. Keep the mod to one hook; run the typecheck and tests before opening a PR.

License

MIT

更多類似作品