1. Conduid
  2. Agents
  3. Tianshu Tui
MCP server · Agents

Tianshu Tui

天枢harness是一个的终端编程智能体,它要回答的核心问题是:模型何以稳定地交付——目标不漂移、完成有证据、验证有闭环,不说"应该修好了"。为此它在模型与真实世界之间建立一层认知执行环境(CVM),把目标、状态、证据、资源、权限与终止条件从对话历史中外部化,由运行时持续管理。同时对deepseek v4极度优化。

87Strong

Scored 7 hours ago · breakdown

About Tianshu Tui

Tianshu Tui is an MCP server published by huiliyi37 in the Agents category: 天枢harness是一个的终端编程智能体,它要回答的核心问题是:模型何以稳定地交付——目标不漂移、完成有证据、验证有闭环,不说"应该修好了"。为此它在模型与真实世界之间建立一层认知执行环境(CVM),把目标、状态、证据、资源、权限与终止条件从对话历史中外部化,由运行时持续管理。同时对deepseek v4极度优化。. Conduid read 15 tools from its source: apply_patch, ask_image, ask_user_question, ast_edit, ast_grep, attack_case and 9 more. It is published to npm as tianshu-harness and starts with npx.

The repository has 1.4K stars and 97 forks, is licensed Apache-2.0, and its last commit was on 26 Nov 2026. The latest release is v4.1.55-migration-b0eda79cd6ca9f2fc57a (26 Nov 2026): 天枢更新日志 修复了一些已知问题| 太一带着天琴拆了颗星球。拆完一看,剩下的零件刚好够给天枢装个热插拔接口。以后更新可以热插拔了,下次不用再拆一颗。 拆完俩人准备开黑,结果卡在加载界面。太一骂了句网烂,天琴转头就拉了条新网线。游戏赢没赢不知道,官方模型倒是先吃上了红利: 续期更稳:减少官方模型续期异常。 掉线更少:减少连接中断和请求超时… It follows v4.1.54 (22 Nov 2026), and the 5 most recent releases go back to v4.1.51 (21 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include coding-agent, context-management, deepseek, prefix-cache, terminal and tui.

Install

Claude Code
claude mcp add tianshu-tui -- npx -y tianshu-harness
npx
npx -y tianshu-harness
From source
git clone https://github.com/huiliyi37/Tianshu-harness

Tools (15)

apply_patch用 git apply 把 unified diff 应用到当前 git 仓库。支持应用前先做 check-only 校验。用于多文件改动或应用已有 patch;单点定向编辑优先用 edit_file 或 hash_edit。注意:大 patch 应用后,消息历史里只保留摘要指针(改动文件列表 + 大小)而非 diff 原文——用 read_file 或 git diff 查看结果。check_only 校验会保留完整 diff 内联。
ParameterTypeDescription
check_onlyboolean只校验 patch 能否干净应用,不修改文件。
diff *string要应用的 unified diff 内容。
ask_image就本会话中已发送的图片提出具体问题(视觉副驾)。 ### 何时调用 - 用户发过图片,你需要就图中某个细节再确认("第几行的报错文本"、"这个按钮的坐标"、"配色值")。 - 你之前拿到的是图片描述,但需要换个角度看同一张图。 ### 做了什么 把你的问题定向发给视觉模型(或在主控支持识图时直接看原图),返回针对该问题的答案。 可反复调用、可指定不同图片。 ### 字段 - question:你要问的具体问题(越具体越好,如"逐字念出红色报错那一行")。 - imageId(可选):目标图片 id(如 img_1);省略则用最近一张图。
ParameterTypeDescription
imageIdstring可选:目标图片 id(如 img_1),省略用最近一张
question *string就图片提出的具体问题
ask_user_question向用户提出一个或多个问题,并等待其输入回答。当你需要澄清信息、了解偏好,或需要一个无法从上下文推断的决定时使用。 单个问题:传 `question`(+ 可选 `options`)。多个相关问题(最多 4 个):传 `questions`——CLI 与桌面端会把它们渲染成一张结构化卡片,用户逐页作答。 为一小组互斥选项提供 `options`(UI 渲染为编号列表,用户可直接按编号回答;卡片还提供自定义回答项)。开放式问题省略 `options`。 有选项时必须结构化调用本工具,不得只在普通回复列菜单;恰好一个选项标记 recommended: true,并用 recommendation_reason 解释为何更符合用户目标及主要取舍。推荐不代表替用户选择。 当用户要的是你的分析、建议或观点时,禁止用这个工具把决定推回给用户——那种情况直接回答。优先只问一个问题;先处理你能确定的部分。
ParameterTypeDescription
allow_multipleboolean允许选择多个选项(默认:false)。
optionsarray可选的 2-4 个简短互斥选项。开放式问题、或用户要的是你的分析而不是菜单时省略。
questionstring要问用户的问题。清晰、具体。
questionsarray多问题形式(最多 4 个)。存在时优先于单问题字段。
ast_edit按 AST 结构(而非文本)编辑代码。用 ast-grep 模式查找并替换语法节点。默认 dryRun(仅预览)。设 dryRun:false 才写文件。适用于 TypeScript/JavaScript/Tsx/Html/Css。
ParameterTypeDescription
dryRunboolean为 true(默认)时仅预览——不写文件
langstring语言:TypeScript, Tsx, JavaScript, Html, Css
limitinteger每文件最大改动数(默认 50)
ops *arrayfind/replace 操作的有序列表
pathsarray要编辑的文件或目录
ast_grep按 AST 结构(而非文本)搜索代码。用 ast-grep 模式(如 `function $NAME($$$) { $$$ }`)匹配语法节点。返回 file:line:column 及匹配文本。支持 TypeScript/JavaScript/Tsx/Html/Css。
ParameterTypeDescription
includeMetaboolean是否附带元变量绑定
langstring语言:TypeScript、Tsx、JavaScript、Html、Css
limitinteger最大匹配数(默认 50)
pathsarray要搜索的文件或目录
pattern *stringast-grep 模式(如 "function $NAME($$$) { $$$ }")或 rule 对象
attack_case疑难 bug 的攻坚案件账本:宣告竞争假设与判别探针,然后用证据结算探针谓词。当问题经受 2+ 次修复尝试仍未解决、或复现路径不清时使用。流程:open(绑定锚事实)→ hypothesize(2+ 条带 targets 的竞争解释)→ plan_probe(机器可判定的 expectation + 每条假设的 supports/refutes 方向)→ 用常规工具执行探针(或用 delegate_task 并行——并行探针有加分)→ observe(带 evidenceRef 结算谓词)。有效动作得分:有信息量的探针 +2,淘汰一条假设 +3(排除即进展),证实 +3,复现 +1,并行委派探针 +2,案件收敛 +5。分数只来自 reducer 推导的证据,回执会显示累计总分。status 显示假设看板;close 结案。
ParameterTypeDescription
anchorobjectopen: 本案绑定的锚事实。无锚不开案。
case_idstring案件 id(除 open/status 外所有操作必填)。
evidence_refstringobserve: 证据指针——tool:<name>:<turn> | worker:<orderId> | obligation:<id>。true/false 必填。引用会与真实记录核验:伪造的 worker/obligation 引用会被拒绝;超出最近历史窗口的 tool 引用可结算状态但零分。
hypothesesarrayhypothesize: 竞争解释。每条必须指明具体 targets(文件/符号)。
op *string案件操作。
predicate_outcomestringobserve: expectation 谓词是否成立?unobservable = 探针已运行但谓词无法判定。
probe_idstringobserve: 要结算的探针。
probesarrayplan_probe: 带机器可判定 expectation 的判别探针。
problemstringopen: 一句话问题陈述。
resolutionstringclose: 结案原因。
bash执行 shell 命令,用于构建、测试、git 和系统操作。退出码属于外层进程,复合命令的最终退出码不证明每个子命令成功;测试或任务是否通过须核对对应结果。 用 && 串联独立命令。长时间运行的命令(dev server、watcher、install)与要排跨进程闸门的长验证(typecheck)都传 run_in_background=true 转入后台,用 job 工具查看/等待/终止。自动检测已知长跑命令也会后台化。
ParameterTypeDescription
command *string要执行的 shell 命令
rerunboolean仅用户明确要求重复已有相同验证时 true;默认返回已有执行回执
run_in_backgroundboolean设为 true 转入后台并返回 job id。自动检测已知长跑命令。
timeoutinteger超时毫秒数(默认 120000;非正数按默认值处理;typecheck 形态自动抬到闸门预算,传更小值无效)
write_filesarray可选显式文件事务:1–50 个仓内普通文件;前台且 timeout≤120000ms。只备份/检查这些文件,失败后仅在进程停止、claim 和版本均匹配时恢复;不覆盖未声明副作用。
browser驱动无头浏览器验证 Web UI。导航到许可名单中的 URL 并截图、提取文本或点击元素。 始终需要显式人工审批,且目标主机必须在配置的许可名单中(fail-closed)。截图保存为可查看的 artifact。
ParameterTypeDescription
action *string导航后执行的操作。
selectorstringtext/click 操作的 CSS 选择器。
url *string要导航到的 URL(主机必须在许可名单中)。
capability只读查询能力索引(capability registry)。列出全部能力或对指定 capabilityId 做 preflight——逐 provider 报告本机 binary/env/package 可用性与安装提示。不修改任何状态。
ParameterTypeDescription
capabilityIdstring要 preflight 的能力 id;缺省时列出全部能力概览。
cli_discover能力发现与安装:search 按 intent 检索能力索引 → preflight 检查依赖可用性 → plan 生成缺失依赖安装计划(dry-run 预览,零副作用)→ install 安装并自动产出 SKILL.md。安装永不自动放行(requiresApproval=true),仅接受 brew/npm/pip 官方源且包名格式校验,SKILL.md 输出受 realpath 围栏约束。
ParameterTypeDescription
action *string动作。search/preflight/plan 只读零副作用;install 执行安装并写 SKILL.md,需审批。
capabilityIdstringpreflight/plan/install 的目标能力 id。
querystringsearch:按 intent/hints/id 检索的关键词。
grepSearch files by pattern
ParameterTypeDescription
path *string
pattern *string
lsp_find_references查找给定文件位置符号的所有引用。返回符号被使用的文件路径、行号和列号列表。用于理解修改函数、类或变量的影响范围。
ParameterTypeDescription
column *number符号所在列号(从 0 开始)
file_path *string包含该符号的源文件路径
line *number符号所在行号(从 1 开始)
lsp_goto_definition跳转到给定文件位置符号的定义。返回定义的文件路径、行号和列号。用于理解函数、类、变量或类型的定义位置。
ParameterTypeDescription
column *number符号所在列号(从 0 开始)
file_path *string包含该符号的源文件路径
line *number符号所在行号(从 1 开始)
read_fileRead a file
ParameterTypeDescription
file_path *string
read_sectionRead lines from a previously loaded artifact
ParameterTypeDescription
artifact_id *string
end_line *integer
start_line *integer

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json and 5 more.
  • !No dynamic code executionScanned 1.8K source files and found 26 calls to eval or shell execution, in src/agent/delivery-impact.ts:23, src/agent/security-patterns.ts:92 and src/agent/security-patterns.ts:84 among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
None found in the source
Starts other programs
124 callssrc/agent/delivery-impact.ts:23, src/agent/security-patterns.ts:75, src/agent/security-patterns.ts:78
Outbound network calls
17 callsplugins/tianshu-imbridge/lib/serve-client.mjs:173, src/api/greeting.ts:232, src/auth/oauth-auth.ts:327
Writes or deletes files
25 callssession-probe.js:34, src/agent/appendix-trace.ts:69, src/agent/appendix-trace.ts:70
Lockfile
package-lock.json and 5 more

Pattern matches on the source text of 1794 files: places to read, not proof of what the code does at run time.

Releases

v4.1.55-migration-b0eda79cd6ca9f2fc57av4.1.55 · 26 Nov 2026天枢更新日志 修复了一些已知问题| 太一带着天琴拆了颗星球。拆完一看,剩下的零件刚好够给天枢装个热插拔接口。以后更新可以热插拔了,下次不用再拆一颗。 拆完俩人准备开黑,结果卡在加载界面。太一骂了句网烂,天琴转头就拉了条新网线。游戏赢没赢不知道,官方模型倒是先吃上了红利: 续期更稳:减少官方模型续期异常。 掉线更少:减少连接中断和请求超时。 吞吐更高:同样的时间里,能处理更多请求。
v4.1.54v4.1.54 · 22 Nov 2026安装指南 · Installation 本段落随每个版本发布,嵌在 Release 正文顶部。完整安装与平台说明见 docs/guides/installation.md(含 Android Termux、源码构建、Shell 补全、自动更新)。 This section is published with every release. For the full installation & platform guide (Android Termux, building…
v4.1.53v4.1.53 · 21 Nov 2026安装指南 · Installation 本段落随每个版本发布,嵌在 Release 正文顶部。完整安装与平台说明见 docs/guides/installation.md(含 Android Termux、源码构建、Shell 补全、自动更新)。 This section is published with every release. For the full installation & platform guide (Android Termux, building…
v4.1.52v4.1.52 · 21 Nov 2026安装指南 · Installation 本段落随每个版本发布,嵌在 Release 正文顶部。完整安装与平台说明见 docs/guides/installation.md(含 Android Termux、源码构建、Shell 补全、自动更新)。 This section is published with every release. For the full installation & platform guide (Android Termux, building…
v4.1.51v4.1.51 · 21 Nov 2026安装指南 · Installation 本段落随每个版本发布,嵌在 Release 正文顶部。完整安装与平台说明见 docs/guides/installation.md(含 Android Termux、源码构建、Shell 补全、自动更新)。 This section is published with every release. For the full installation & platform guide (Android Termux, building…

README

The repository's README runs to about 1.6K words, fetched 4 days ago. The original in the repository is authoritative.

Read full README
Questions

About Tianshu Tui

How do I install Tianshu Tui?

In Claude Code, run claude mcp add tianshu-tui -- npx -y tianshu-harness. Other MCP clients take the command after "--" in their server configuration.

Is Tianshu Tui safe to use with an AI agent?

Its trust score is 87 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 1.8K source files found that it starts other programs (124 calls), makes outbound network calls (17 calls) and writes or deletes files (25 calls). Its dependencies are pinned by package-lock.json and 5 more. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Tianshu Tui still maintained?

Yes — the latest release is v4.1.55-migration-b0eda79cd6ca9f2fc57a (26 Nov 2026), and the last commit was 5 days ago. The repository has 1.4K stars and 46 open issues.

What tools does Tianshu Tui provide?

Conduid read 15 tools from the source: apply_patch, ask_image, ask_user_question, ast_edit, ast_grep, attack_case, bash, browser and 7 more. 15 of them publish their parameters, listed under Tools above.

What license is Tianshu Tui released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v4.1.55-migration-b0eda79cd6ca9f2fc57a, as well.