deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:artec/clat
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
cl + at = command-line agent · Homepage
CLAT is a local-first coding agent foundation shipped as one Rust binary. It can inspect a repository, edit files, run commands, use external tools, and keep durable conversations without requiring a JavaScript or Python runtime. That guarantee covers the shipped CLAT core; optional MCP servers and the DSH adapter may declare their own runtimes.
The project is built by dogfooding real repository work and turning recurring needs into reusable, provider-neutral capabilities.
# Open the terminal UI in the current repository.
clat
# Then run /model once to choose a preset and enter an API key.
# Headless use: positional text is the instruction; piped input is context.
clat exec "explain this repository in one sentence"
git diff | clat exec "review this diff"
# Deterministic offline proof of the model -> tool -> model loop.
clat demo
# Check whether a signed upgrade is available.
clat upgrade --check
Run clat --help for the complete command-line surface.
| Interface | Best for | Entry point |
|---|---|---|
| Terminal UI | Daily interactive repository work | clat |
| Headless runner | Scripts, CI, git hooks, editor integrations | clat exec |
| Web workbench | An installable local PWA and HTTP+SSE clients | clat serve |
| WeChat remote | Official iLink text, image, steering, and approvals | clat serve --im wechat |
| DSH client | Using CLAT's TUI with a local DeepSeek Harness host | clat dsh |
| Plugin manager | Browsing the signed market; installing, updating, auditing, or rolling back packages | clat plugin / pi.at.cn |
| Offline demo | Verifying the core loop without credentials | clat demo |
clat serve binds only to 127.0.0.1:2691 by default. API access uses a
persistent ~/.clat/web-token Bearer credential; the token is never placed in
the URL. The same binary serves the responsive three-panel PWA.
An optional official-iLink WeChat frontend can be bound and paired explicitly;
it remains off unless serve is started with --im wechat.
definition, references,
implementation, hover) through CLAT-managed sandboxed stdio; and /context
for a one-shot estimate of the model-facing context breakdown.~/.clat, with local replay and per-project resume state.clat discovers or
starts one background host on 127.0.0.1:2691, so the terminal UI and the
web workbench can stay open on the same sessions at the same time;
clat standalone keeps the traditional in-process TUI.macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/artec/clat/main/install.sh | sh
Windows (PowerShell):
irm https://raw.githubusercontent.com/artec/clat/main/install.ps1 | iex
The installers prefer prebuilt release artifacts and fall back to a source build when an artifact is unavailable. Prebuilt binaries cover macOS arm64 and x86_64, Windows x86_64 and arm64, and Linux x86_64 and aarch64 with glibc 2.39+. Older Linux systems can build from source with the stable Rust toolchain. See release signing for the trust model and platform baselines.
Prebuilt installs go to ~/.local/bin/clat on macOS/Linux and
%LOCALAPPDATA%\clat\bin\clat.exe on Windows; the installer prints a PATH hint
when needed. A source fallback uses Cargo's bin directory, normally
~/.cargo/bin. To uninstall, remove that executable. User state under
~/.clat is deliberately left intact unless you remove it separately.
Start with the document that matches your task:
| Goal | Document |
|---|---|
Use the TUI, exec, serve, or dsh |
Using CLAT |
| Configure a preset or custom model | Model editor |
| Understand approvals, modes, and path boundaries | Permissions |
| Configure MCP servers | MCP integration |
| Understand plugin runtimes, packages, and the signed market | CLAT plugins |
| Install or author a WASM component | WASM plugins |
| Port a DSH/Cordis plugin | DSH plugin compatibility guide |
| Audit evidence-backed DSH compatibility claims | DSH compatibility matrix |
| Understand core boundaries and lifecycle | Architecture |
| Understand provider adapters and retry behavior | Providers |
| Understand files, journals, and recovery | Persistent state |
| Build and publish a release | Release signing |
| Run credentialed smoke tests | Live-model validation |
The DSH adapter package also has standalone English and Chinese package documentation.
For short edit feedback use scripts/gates.sh [test-filter ...]; run
scripts/gates.sh --full once before delivery. See Testing.
Prerequisites are Git and the current stable Rust toolchain:
git clone https://github.com/artec/clat.git
cd clat
cargo test --all-targets --all-features
cargo build
./target/debug/clat demo
Useful repository paths:
| Path | Purpose |
|---|---|
src/ |
Rust core and frontends |
web/ |
Zero-build assets embedded by clat serve |
wit/ |
WASM plugin contract |
schemas/ |
Machine-readable plugin/package schemas |
sdk/clat-plugin/ |
Rust SDK for WASM plugin authors |
sdk/dsh-adapter/ |
npm adapter for DSH plugin authors |
plugins/ |
WASM examples and pilot plugins |
market/ |
independently deployable pi.at.cn catalog and signed-index release tooling |
Live provider checks are intentionally separate from the normal test suite because they require user credentials and may incur charges. Follow live-model validation when provider behavior is in scope. Contributors and coding agents should also read the project constitution in AGENTS.md.
Local first · one binary · model agnostic · MCP native · project aware · permission first · dogfood driven · generalize, never special-case.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。