← 返回 Skills 市场
symbolstar

Agent Tab Title

作者 SymbolStar · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
72
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install agent-tab-title
功能描述
Patch a locally installed OpenClaw Control UI so the browser tab title shows the active agent name (e.g. "Milly · OpenClaw") instead of the static "OpenClaw...
使用说明 (SKILL.md)

agent-tab-title

Local OpenClaw Control UI patch: rewrites document.title to \x3Cagent name> · OpenClaw.

agent-tab-title demo — multiple Control UI tabs disambiguated by agent name in the browser tab switcher

Mirrors PR openclaw/openclaw#80944 as an out-of-tree patch that edits the bundled Control UI index.html shipped inside the locally installed openclaw npm package. Survives gateway restarts; does not survive openclaw update (re-run apply after upgrades).

When to use

  • User wants per-agent browser tab titles for OpenClaw Control UI.
  • User has multiple Control UI tabs open across agents and can't tell them apart.
  • User wants to apply / remove / re-apply this patch.
  • User just ran openclaw update and the tab title went back to OpenClaw Control.

How it works

The Control UI is a static SPA shipped inside the npm package at:

\x3Cnpm-global>/openclaw/dist/control-ui/index.html

Gateway serves it as a static file. The patch injects a ~25-line \x3Cscript> block right before \x3C/body> that:

  1. Polls \x3Copenclaw-app> Lit element every 200 ms.
  2. Reads assistantName (preferred) or assistantAgentId (fallback) properties.
  3. Sets document.title to \x3Cname> · OpenClaw (U+00B7 middle dot), or OpenClaw Control if no agent.

No build, no dependencies, no gateway restart — just refresh the browser tab.

Apply / remove

# Apply (idempotent — safe to re-run after openclaw update)
bash scripts/apply.sh

# Remove (restores original index.html via .bak)
bash scripts/apply.sh --uninstall

# Custom Control UI path (auto-detect usually works)
bash scripts/apply.sh --target /path/to/openclaw/dist/control-ui/index.html

apply.sh auto-detects the Control UI index.html by probing, in order:

  1. OPENCLAW_CONTROL_UI_INDEX env var
  2. --target \x3Cpath> flag
  3. $(npm root -g)/openclaw/dist/control-ui/index.html
  4. Common nvm path ~/.nvm/versions/node/*/lib/node_modules/openclaw/dist/control-ui/index.html

On apply:

  • Creates index.html.bak once (never overwrites an existing backup; that backup is the rollback point).
  • Skips re-injection if the patch marker openclaw-tab-title local patch is already present.

After openclaw update

npm update overwrites the whole dist/ tree, including any prior backup. Re-run bash scripts/apply.sh — it will create a fresh backup off the new pristine file and inject the patch.

Verify

  1. Reload Control UI in browser (no gateway restart needed).
  2. Switch between agents (Milly / Sherry / etc.) — tab title should update live to \x3Cagent> · OpenClaw.
  3. With no agent selected, title falls back to OpenClaw Control.

If title doesn't change, check Service Worker cache: DevTools → Application → Service Workers → Unregister → reload.

安全使用建议
This skill is reasonable to install if you want a local OpenClaw UI tab-title patch. Before running it, confirm that the target path is your intended OpenClaw Control UI index.html, understand that it modifies an installed package file, and keep the backup so you can undo the change.
功能分析
Type: OpenClaw Skill Name: agent-tab-title Version: 0.1.1 The skill performs live patching of the OpenClaw Control UI by modifying the 'index.html' file within the global npm or NVM installation directories. While the injected JavaScript in 'scripts/apply.sh' appears limited to updating 'document.title', the mechanism of modifying application source code is a high-risk behavior that could be leveraged for XSS or persistence. The script requires write access to package distribution files to function as described in 'SKILL.md'.
能力评估
Purpose & Capability
The stated purpose is to make OpenClaw Control UI browser tab titles show the active agent name, and the included script injects only a small title-updating JavaScript snippet.
Instruction Scope
The apply/remove workflow is user-directed and documented, including backup and uninstall behavior. The script also supports an explicit --target path, so users should verify the target file before running it.
Install Mechanism
There is no package install step, but the skill asks the user to run a local bash script. This is central to the stated patching purpose and the script source is included.
Credentials
The skill mutates a locally installed OpenClaw npm package file, which is proportionate to a local UI patch but still changes installed application assets.
Persistence & Privilege
The patch persists in the local Control UI file until removed or overwritten by an OpenClaw update. This persistence is disclosed and includes a documented uninstall path.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-tab-title
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-tab-title 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Add demo screenshot to SKILL.md (multi-agent Control UI tab switcher).
v0.1.0
Initial release: dynamic OpenClaw Control UI browser tab title (mirrors openclaw/openclaw#80944) as a local zero-build patch.
元数据
Slug agent-tab-title
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Agent Tab Title 是什么?

Patch a locally installed OpenClaw Control UI so the browser tab title shows the active agent name (e.g. "Milly · OpenClaw") instead of the static "OpenClaw... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。

如何安装 Agent Tab Title?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-tab-title」即可一键安装,无需额外配置。

Agent Tab Title 是免费的吗?

是的,Agent Tab Title 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent Tab Title 支持哪些平台?

Agent Tab Title 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Tab Title?

由 SymbolStar(@symbolstar)开发并维护,当前版本 v0.1.1。

💬 留言讨论