Tianshu Harness
Open-source coding agent runtime that adds a supervision layer to keep AI models verifying work and delivering with evidence.
At a Glance
Apache-2.0 open-source core runtime (CLI, desktop, editor plugin); free download without login. BYOK model API costs are external.
Engagement
Available On
Listed Oct 2026
About Tianshu Harness
Tianshu Harness (天枢) is an open-source AI coding agent from developer huiliyi37 that reads code, edits files, runs commands and verifies results inside a real project, then reports what was done. The terminal CLI, desktop app and VS Code extension share one agent kernel. The latest release listed is v3.36.1, published under Apache-2.0.
What It Is
Tianshu is a TypeScript coding-agent runtime. It places a Cognitive Virtual Machine (CVM) between the model and the real world, moving goals, state, evidence, permissions and termination conditions out of the chat history so the runtime manages them. The project says this targets common model behaviours such as giving in when challenged, looping on one idea, or claiming completion without verification.
How the CVM Works
- A per-task contract records goal, scope, constraints and success criteria.
- Completion passes a deliver_task gate that requires evidence such as tests, diffs or verification commands.
- Runtime hook modules run across five stages of each turn, alongside Sensorium state sensing and loop detection.
- The README describes four layers: a belief constitution in the prompt, a Courage Hook, Sensorium, and the RuntimeHookPipeline.
- The project reports a small A/B pilot (5 tasks, one model, LLM review) and real-session prefix-cache figures; these are vendor-published results.
Working Modes and Tools
- 16 "star domains" switch the prompt, tool scope and decision thresholds for different work postures; the default is 启明.
- Multi-agent commands include /plan, /council, /team, /scout and /galaxy.
- Plan mode, /goal autonomous continuation, /handoff, rewind, and cross-session project memory support long projects.
- Built-in tools, LSP diagnostics, MCP servers and Skills extend it, plus headless mode for scripts and CI.
- Three permission modes (supervise, auto, full-auto), path boundaries, a project trust gate, sandboxing and checkpoints constrain actions.
Setup Path
Install the CLI with npm (Node.js 24+) and run tianshu; a /connect wizard configures a provider and API key. Desktop installers are offered for macOS, Windows and Linux. The README lists 25 provider presets, including DeepSeek, Claude, Codex, Gemini, GLM and Grok, plus any OpenAI-compatible endpoint such as Ollama or vLLM.
Community Discussions
Be the first to start a conversation about Tianshu Harness
Share your experience with Tianshu Harness, ask questions, or help others learn from your insights.
Pricing
开源版 (Open Source)
Apache-2.0 open-source core runtime (CLI, desktop, editor plugin); free download without login. BYOK model API costs are external.
- 开源运行时、文档与基础安装入口
- Apache-2.0 license
- 免费下载,无需登录
Pro
面向真实项目长期使用; Pro monthly or yearly subscription
- Spark 长会话通道(更快 · 更省 token)
- Computer Use 图形界面自动化
- 多视角编排与无人值守自动化
- 最多 2 台激活设备
- 付款成功后发放激活码
永久会员
One-time lifetime membership, limited to 200 members; includes Pro authorization path and sponsor badge
- 包含 Pro 授权路径
- 永久会员记录和长期权益
- 专属赞助者身份标识(限 200 名)
- 支持 Tianshu-harness 后续维护
Capabilities
Key Features
- Evidence-gated delivery via deliver_task
- Task contracts for goals, scope and success criteria
- Runtime hook pipeline with Sensorium state sensing
- Prefix-cache engine for long sessions
- 16 star domains as switchable work postures
- Multi-agent commands (/plan, /council, /team, /scout, /galaxy)
- Plan mode and /goal autonomous continuation
- Project memory, /handoff and rewind
- LSP diagnostics integration
- MCP and Skills extensibility
- Three permission modes with sandbox and checkpoints
- Headless mode for scripts and CI
- 25 provider presets and OpenAI-compatible endpoints
