mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
826fda3f577f9813cf91cfff6aaf5966e841f6c5
Review noted the deep-clone of the child output runs inside `onFulfilled`, OUTSIDE emitLifecycle's per-listener containment, and the settle `.then` is `void`ed — so an uncloneable output (a future non-serializable content-block type, or a contract-violating result) would throw and become an UNHANDLED rejection, contradicting the "any throw is contained" guarantee the comment claims. Wrap the clone in try/catch: on failure, log via ctx.logger.warn and emit subagent/end WITHOUT lastAssistantMessage (preserving stopReason/agentType) rather than dropping the event or crashing. Regression proves the unfixed code produces an unhandled rejection.
DeepSeek Harness
Monorepo for the DeepSeek Harness group.
Projects
- DeepSeek Code — DeepSeek's coding agent product.
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:echo # runnable echo-agent example (no API key needed)
pnpm run demo:coding # the real DeepSeek coding agent (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 before package work. Local context lives in packages/ and vendor/.
For agents, follow AGENTS.md.
Languages
TypeScript
97%
CSS
1.6%
Python
0.7%
JavaScript
0.6%