deepseek-harness/examples
creatixchu 42164508c8 feat(llm): 在 compaction 中按路由为图片请求压力计价
Closes #2848.

- dsh-llm 新增 LlmAdapter.imageRequestPricing 同步钩子与 LlmImageRequestPricing/LlmImageRequestPrice 词汇,ctx.llm 按路由解析
- llm-deepseek 用官方公布的 v4 视觉计算器逐句移植(14px patch、3:1 降采样、384 上限、最坏对齐 pad)实现该钩子,复现请求投影的最旧优先 offload 与像素预算缩放;纯几何 requestImageDimensions 上移到 dsh-attachment
- token-meter 表层 fold 存储与路由无关的节点事实,measure() 按生效 envelope 的路由为图片出现处定价;锚点存快照并按同一路由重定价;TokenSurfaceNode 同时携带路由价 tokens 与固定启发式 heuristicTokens
- compaction 触发、保留与选段读取同一套路由价,记录的 shadowedTokenCount 保持启发式以维持 O(1) 投影 fold 一致
- llm-replay 支持按模型的 imageRequestTokens 声明;新增 keyless 的 image-compaction ACP 快照场景端到端验证装配应用
2026-08-24 19:15:30 +08:00
..
acp-agent feat(llm): 在 compaction 中按路由为图片请求压力计价 2026-08-24 19:15:30 +08:00
headless-agent test(llm): cover pi-ai upgrade compatibility 2026-08-24 01:57:18 +08:00
mcp-memory docs(i18n): localize Chinese internal links 2026-08-18 19:00:37 +08:00
python-sdk-agent test(python): exercise the shipped SDK profile directly 2026-08-24 17:28:29 +08:00
web-cordis docs(i18n): localize Chinese internal links 2026-08-18 19:00:37 +08:00
web-github-review test(webhook): resolve the real CLI rule from examples 2026-08-23 01:48:55 +08:00
web-schedule refactor: apply repository naming contract 2026-08-13 00:54:38 +08:00
AGENTS.md docs: make technical prose concrete 2026-08-10 16:34:20 +08:00
CLAUDE.md refactor(examples): extract reusable logic into tested packages 2026-06-19 12:42:28 +08:00
package.json chore(repo): wire profile apps and the renamed runtime through builds 2026-08-23 10:59:01 +08:00
README.i18n.yaml refactor(sdk): name the private Python runtime carrier explicitly 2026-08-23 10:59:01 +08:00
README.md refactor(sdk): name the private Python runtime carrier explicitly 2026-08-23 10:59:01 +08:00
README.zh.md refactor(sdk): name the private Python runtime carrier explicitly 2026-08-23 10:59:01 +08:00

Examples

English | 中文

Runnable demonstrations of the main DeepSeek Harness interfaces and extension points. Each child directory owns its configuration, prerequisites, commands, and detailed behavior.

mcp-memory

Optional overlays that connect supported third-party memory servers through the generic MCP client. See the memory example reference.

headless-agent

A non-interactive agent that accepts one task, runs it, and emits a selected machine-readable or human-readable output format. See the headless example reference.

python-sdk-agent

An unattended coding agent driven through the Python SDK and JSON-RPC. See the Python SDK agent reference.

web-cordis

A self-referential agent that can inspect and change its in-memory Cordis plugin tree. See the web-cordis example reference.

web-schedule

An opt-in Web overlay for durable, Session-local reminders. It supports positive whole-second after_seconds delays and absolute at targets through schedule_create, schedule_list, and schedule_delete; active reminders persist in the original Session, resume when that Session becomes live again, and do not run while it is cold. Run dsh web --patch examples/web-schedule/cordis.yml; see web-schedule/README.md for absolute-time authority, delivery, and recovery boundaries.

web-github-review

An opt-in Web overlay with a dedicated signed GitHub endpoint and a programmatic pull_request.ready_for_review rule. Matching deliveries create read-only review Sessions beneath the configured local Workspace; see web-github-review/README.md.

acp-agent

An Agent Client Protocol automation server for programmatic clients, with session, permission, and cancellation support. See the ACP example reference.