cbfdf9d0922736151bab3a406dd1a951ef7bc551
When headTail budgets cover the whole stream, omitted is 0 and the two retained halves are contiguous — the split is artificial and a multibyte codepoint can straddle it. finish() now decodes the contiguous buffer as one in that case; the per-side UTF-8 boundary trims and separate decoding apply only when a real middle gap exists. Without this, a headTail retainer could drop a character while reporting truncated:false.
DeepSeek Harness
English | 中文
The DeepSeek Harness SDK is a plugin-based SDK for building agent harnesses.
Development
This monorepo is built on the Cordis framework (vendored as source under vendor/), microkernel-style: everything is a plugin.
pnpm install
pnpm run test # vitest
pnpm run demo:repl # REPL agent demo (needs DEEPSEEK_API_KEY)
pnpm run demo:acp # ACP server agent demo (needs DEEPSEEK_API_KEY)
For humans, start with the development guide for local setup, hooks, environment variables, and quality gates, then read the architecture design and documentation graph index before package work. Local context lives in packages/ and vendor/.
For agents, follow AGENTS.md.
Languages
TypeScript
96.9%
CSS
1.6%
JavaScript
0.7%
Python
0.7%