Skip to main content
Glama
universal-brute-workpack

universal-brute-workpack


UBW 是一个 MCP 服务。Codex 分配任务、限定目录,用户自主配置的大模型通过 API 只负责调用只读工具,返回报告与证据。联网搜索通过配置的搜索服务完成。

Plus 额度不够用,又用不完 Pro?UBW 支持接入自选模型 API,分担读取、搜索和代码审查等任务,让原本交给 Codex 子 Agent 的只读工作走自定义模型的 API 计费。Codex 负责判断、修改和交付,把订阅额度留给核心任务。

更多用法,欢迎探索,也欢迎提交 Issue 或 PR。

通过 UBW 接入自选模型 API,分担读文件、查资料和审代码的工作,把 Codex 订阅额度留给判断、修改和交付。

UBW 任务分工:将代码审查、文件检索和资料搜索交给外部模型,Codex 额度节省目标 30%,外部 API 按量计费。

能做什么

  • 列目录、找文件、搜索文本、读取文件、查看 Git 差异。

  • 搜索公开网页,保留来源链接。

  • 查看进度、补充指令、暂停、恢复和取消任务。

  • 保存阶段结果;失联或预算耗尽时暂停。

不提供文件写入、Shell 执行或子 Agent 派生。

Related MCP server: agent-godmode

接入

需要 Node.js ≥ 20.3、DeepSeek API Key;读取 Git 差异需要 Git。

复制 配置示例,将 roots 设为允许读取的项目目录:

{
  "roots": ["D:/projects/example"],
  "search": { "backend": "deepseek" }
}

MCP 客户端配置:

{
  "mcpServers": {
    "ubw": {
      "command": "node",
      "args": ["D:/tools/ubw/src/bridge.js"],
      "env": {
        "UBW_CONFIG": "D:/config/ubw.json",
        "DEEPSEEK_API_KEY": "<API_KEY>"
      }
    }
  }
}

路径改为实际位置。密钥保存在本机配置或环境变量中,不提交到仓库。

配套 Skill

ubw:任务委派、进度跟进和结果复核。使用时将 skills/ubw 目录放入宿主的 Skill 目录。

工具

工具

用途

delegate.start

分配任务,指定目录、预算和联网权限

delegate.inspect

查看进度并续租,可等待状态变化

delegate.control

补充指令、暂停、恢复、取消

delegate.result

获取完整任务的报告或当前阶段结果

读取的文件内容会发送到 DeepSeek API。联网任务需设置 allowNetwork: true;官方搜索另计 API 用量。

默认租约为 120 秒,需在到期前调用 delegate.inspect。任务记录含文件摘录和报告,保存在 ~/.ubw/tasks;重启后保持暂停。Token 预算用于停止后续请求,不是账户金额上限。

开发

npm test
npm run doctor

已通过 Windows / Node.js 26 的本地模拟测试。真实 API 联调尚未完成。

许可证

Apache-2.0

欢迎按需修改和扩展,也欢迎提交 Issue 或 PR。

Available Tools

26 tools
agent.pipelineC

Run an external multi-agent pipeline through the managed sidecar adapter.

Inputs: model, tasks, maxTasks, staggerMs, +1 more.

agent.spawnC

Spawn one external agent through the configured sidecar adapter.

Inputs: model, prompt, system.

audit.collectC

Collect an existing audit runDir into an EvidenceBundle and gate file.

Inputs: runDir, maxFindings, failureThreshold, mainThreadSampleRate.

audit.ingest_reportC

Ingest one host-mediated worker report into an audit runDir.

Inputs: output, report, runDir, status, +3 more.

audit.prepareC

Prepare a host-mediated audit runDir with TaskCards, prompts, manifest, and report dropbox.

Inputs: model, tasks, runDir, dispatchMode, +2 more.

audit.runC

Run a TaskCard/runDir/collector/EvidenceBundle audit pipeline.

Inputs: model, tasks, runDir, maxTasks, +5 more.

code.patchB

Apply exact text replacements and run syntax check for JS-like files.

Inputs: path, newText, oldText, expectedReplacements.

code.reviewC

Run a structured heuristic code review over a file or directory.

Inputs: path, maxFiles, maxFindings.

command.execC

Execute a local shell command.

Inputs: cwd, command, timeoutMs.

file.copyC

Copy a file or directory.

Inputs: dest, source.

file.moveC

Move a file or directory.

Inputs: dest, source.

file.readC

Read a file.

Inputs: path.

file.writeD

Write a file.

Inputs: path, content.

fs.globC

List files matching a glob-like pattern.

Inputs: root, pattern, maxResults.

fs.grepC

Search file contents under a root using the local worker pool for large trees.

Inputs: root, pattern, maxFiles, maxResults.

fs.listC

List a directory.

Inputs: path.

memory.recallC

Alias of memory.search for Agent clients that use recall wording.

Inputs: root, topK, query, backend, +1 more.

memory.searchB

Search memory through an external service, then local text files as fallback.

Inputs: root, topK, query, backend, +1 more.

search.fetchB

Fetch an HTTP/HTTPS URL as text.

Inputs: url.

search.webC

Search the web via configured Exa, Tavily, DuckDuckGo, or direct HTTP fallback.

Inputs: query, maxResults.

validate.checkC

Run a lightweight syntax/config check.

Inputs: path.

validate.diffB

Return git diff for a cwd/path when git is available.

Inputs: cwd, path.

validate.loadC

Load JSON or JS modules and return a structured summary.

Inputs: path.

worker.analyzeC

Analyze files in parallel for size, extension, line, TODO, and FIXME summaries.

Inputs: root, maxFiles.

worker.diffC

Parallel file or directory diff by sha256, size, and existence.

Inputs: left, right, maxFiles.

worker.statusA

Return local workpack, worker-pool, and sidecar status.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 26 tools

    Disambiguation4/5

    Tool boundaries are mostly clear thanks to domain prefixes and distinct actions such as search.web vs search.fetch and fs.glob vs fs.grep. The main weaknesses are memory.recall, which is an explicit alias of memory.search, and worker.analyze vs worker.diff, which both operate on files in parallel and could be confused.

    Naming Consistency5/5

    All tools follow the same namespace.verb lower_snake_case pattern, e.g. search.web, fs.glob, file.read, audit.ingest_report, and agent.spawn. There is no mixing of camelCase, inconsistent verb styles, or unpredictable naming conventions.

    Tool Count3/5

    At 26 tools, this is on the heavy side and just above the 16-25 range that feels bloated for typical MCP servers. However, the universal workpack purpose spans search, filesystem, code, validation, memory, workers, audit, and agents, so most tools serve a distinct function and the count is borderline rather than extreme.

    Completeness3/5

    The toolkit covers a wide range of operations and the audit/worker pipeline is fairly complete, but there are notable lifecycle gaps for a universal workpack: no file delete, no directory create/stat, no memory write, and no way to terminate spawned agents. Some of these can be worked around with command.exec, but they are missing as first-class tools.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers