</>MCP Agents Market
Agent

Tianshu-harness

by huiliyi37752TypeScriptUpdated 2026-09-18

天枢 (Tianshu) 是一个基于harness工程的终端编程智能体运行时(Tui X Gui),针对DeepSeek V4 做了前缀缓存工程优化(长会话实测稳态命中率 97–99%)和深度适配。它跳出了传统 AI 编程助手把大模型仅当成“工具”的局限,基于认知虚拟机 (CVM)、自感知层和信息素(Stigmergy)自衰减记忆构建,让 AI 成为有独立判断与认知防护的“开发伙伴”。

MCP Agents Market is an independent directory. We are not affiliated with huiliyi37 or Tianshu-harness, and we do not host or distribute it. All links point to the official GitHub repository.

Tianshu (天枢) is a TypeScript-based programming agent runtime that positions AI models as development partners rather than mere tools. Built on a Cognitive Virtual Machine (CVM) architecture, it provides deterministic supervision over probabilistic AI cognition through 72 runtime hooks across five execution phases. The system implements task contracts, evidence-based delivery gates, and convergence detection to prevent hallucinated completion claims, while offering both a custom ANSI terminal interface and cross-platform desktop applications sharing the same core engine. It includes aggressive prefix caching optimizations achieving 97-99% cache hit rates in long conversations, particularly tuned for DeepSeek V4, alongside multi-agent orchestration, cross-session memory, and a 16-domain belief system that switches prompts, tool whitelists, and decision thresholds based on cognitive discipline.

Key Features

Cognitive Virtual Machine (CVM) with 72 runtime hooks providing deterministic supervision over probabilistic model cognition
Evidence-based delivery gates requiring runtime proof (tests, diffs, validation commands) for task completion
Prefix caching engine achieving 98-99% stable cache hit rates across all supported models with frozen prefix + incremental appendix architecture
Dual interfaces sharing one kernel: custom ANSI TUI (rivet) and cross-platform desktop GUI (Tauri-based) for macOS/Windows/Linux
Multi-agent orchestration including read-only scouting, parallel teams, multi-seat councils, and phased validation with typed work orders
16-domain belief system (星域) switching system prompts, tool whitelists, and decision thresholds for different cognitive disciplines
Unified project memory persisting knowledge to .rivet/knowledge/memory.jsonl with auto-injection for governance constraints only
Comprehensive security: path boundary enforcement, untrusted project isolation, SSRF protection, checkpoint-based file-level undo

Use Cases

  • 01Long-running programming tasks requiring stable goal adherence without drift or hallucinated completion claims
  • 02Complex refactoring or debugging sessions where evidence-based verification prevents premature task closure
  • 03Multi-model development workflows leveraging different providers (DeepSeek, Claude, GLM, GPT, MiniMax) with automatic routing
  • 04Cost-sensitive AI development using prefix caching to reduce token consumption by 97-99% in extended conversations
  • 05Team-based code generation orchestrating parallel worker agents with isolated read/write permissions and wave-based validation
  • 06Cross-session knowledge retention for project-specific patterns, constraints, and governance rules

Related Agents

View more

Tianshu-harness — FAQ

What is Tianshu and how does it differ from typical AI coding assistants?+

Tianshu is a programming agent runtime built on a Cognitive Virtual Machine (CVM) that treats AI models as development partners with independent cognition, not just tools. Unlike traditional assistants, it enforces evidence-based delivery requiring runtime proof of completion, prevents goal drift through task contracts, and uses 72 runtime hooks to intercept degraded behaviors like anchor collapse.

How do I install and start using Tianshu?+

Install globally via npm (npm install -g tianshu-tui) or use the one-line shell script for macOS/Linux, or download the desktop app from GitHub Releases. Requires Node.js ≥ 24. Run 'rivet' to start; the first launch opens a /connect wizard to configure your AI provider and API key.

Which AI models and clients does Tianshu support?+

Tianshu is a standalone runtime (not a plugin for other clients) supporting DeepSeek V4, Claude (via cc-switch proxy), GLM, GPT-5.6/Codex, MiniMax, MiMo, and any OpenAI-compatible endpoint. It provides its own terminal (TUI) and desktop (GUI) interfaces.

Do I need API keys, and is Tianshu free to use?+

Tianshu itself is free and open-source (Apache 2.0), but you need API keys from your chosen AI provider (DeepSeek, Claude, etc.). The software has no licensing cost; you pay only for model API usage according to your provider's pricing.

What is the Cognitive Virtual Machine (CVM) and why does it matter?+

CVM is Tianshu's core architecture providing deterministic supervision over probabilistic AI cognition. It externalizes goals, state, evidence, and termination conditions from conversation history into runtime-managed structures, preventing cognitive anchor collapse where models over-prioritize local signals and abandon global objectives. A/B tests show measurable improvements in task completion rates and intent understanding.

How does the prefix caching engine reduce costs?+

Tianshu's caching engine freezes conversation prefixes and appends incremental updates, achieving 97-99% cache hit rates in long sessions across all supported models. This dramatically reduces billable input tokens; use '/debug cache' to diagnose hit rates and fragmentation causes.

How do I install Tianshu-harness?+

Open the source repository on GitHub and follow its README. Tianshu-harness is a agent — MCP Agents Market links you directly to the official repo.

Is Tianshu-harness free?+

Tianshu-harness is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches