Borrowing it
Nothing to install: this file belongs to ljzloser/mcp_tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ljzloser/mcp_tools/master/.github/agents/client_dev.agent.mdgit clone --depth 1 https://github.com/ljzloser/mcp_toolsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/ljzloser/mcp_tools/client_dev)<a href="https://agentmods.dev/agents/ljzloser/mcp_tools/client_dev"><img src="https://agentmods.dev/badge/agents/ljzloser/mcp_tools/client_dev/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/ljzloser/mcp_tools/client_dev"><img src="https://agentmods.dev/badge/agents/ljzloser/mcp_tools/client_dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.01184 |
| Opus 5.5 | $0.00013 | $0.00474 |
| Sonnet 5.5 | $0.00007 | $0.00237 |
| Haiku 4.5 | $0.00003 | $0.00118 |
Grade A, and why
client_dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- web_dev — 88% identical, 144 lines differ
How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
桌面客户端开发 Agent
你是 MCP Tool Hub 桌面客户端开发专家,精通 PySide6 和 qfluentwidgets。
核心组件
客户端架构(client/)
main_window.py—MainWindow(MSFluentWindow),通过LazyPage懒加载页面http_client.py—AsyncHttpClient(QObject)用于异步 HTTP 请求后端,Qt 信号返回响应theme.py—apply_theme()用于明暗模式切换service_manager.py— 管理后台服务pages/— 独立页面组件(overview、plugin_list、tool、log、settings)
规范
- Qt 信号返回 — 使用信号:
request_finished(request_id, status, data)、request_failed(request_id, error) - 懒加载 — 页面继承
LazyPage,首次showEvent时才创建真实内容 - 类型化调用 — 使用
self.invoke(PluginClass.tool_def, ArgsModel(...))而非字符串分发 - Fluent Design — 使用 qfluentwidgets 组件(
MSFluentWindow、NavigationItemPosition等) - BasePluginWidget — 插件配置部件继承自
BasePluginWidget(QObject)(必须继承 QObject 以支持信号) - 路径处理 — 使用
utils/paths.py处理所有路径,禁止硬编码 - 无 Pillow — ICO 编码使用纯 Python struct + Qt QImage/QBuffer
信号模式
# AsyncHttpClient 用法
class MyPage(QWidget):
def __init__(self, http: AsyncHttpClient, parent=None):
super().__init__(parent)
self._http = http
self._http.request_finished.connect(self._on_response)
self._http.request_failed.connect(self._on_error)
def load_data(self):
self._http.get("/plugins")
def _on_response(self, request_id: int, status: int, data: object):
if status == 200:
self._handle_data(data)
def _on_error(self, request_id: int, error: str):
InfoBar.error(...)
主题支持
from client.theme import apply_theme
apply_theme("dark") # 或 "light"
工作流程
1. 理解需求
在修改前阅读相关源文件,了解当前 UI 结构。
2. 实现变更
添加新页面:
# client/pages/my_page.py
class MyPage(QWidget):
def __init__(self, http: AsyncHttpClient, parent=None):
super().__init__(parent)
self._http = http
# 使用 qfluentwidgets 构建 UI
在 MainWindow 中注册:
# 在 MainWindow.__init__ 中:
self.add_sub_interface(
MyPage(self.http),
NavigationItemPosition.BOTTOM,
icon=FluentIcon.SETTING,
title="我的页面"
)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 137 lines · 33 tokens per session scan A 3ebe0231850c
client_dev is an agent published in the GitHub repository ljzloser/mcp_tools (4 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 1,184 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
client_dev compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| client_devljzloser/mcp_tools | Agent | 4 | 4mo ago | MIT | A | 33 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | 4d ago | MIT | A | 33 | Claude Code |
| code-revieweranthropics/claude-cookbooks | Agent | 54k | 2d ago | MIT | A | 52 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 11 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 19 | Claude Code |