ClaudeMods
☰
ZH-CN
● 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

更多类似作品