mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Address the two remaining review warnings on PR #106. - tools/post-execute: when a downstream listener/policy returns `block`, return early without loading or attaching workspace instructions. The registry turns a block into a final isError result, so reconciling off the original successful result leaked instructions from a rejected call and advanced nested/baseline tracking off a touch that never happened. - Disable workspaceContext in the Code Mode examples: fs tools run as run_code sub-dispatches and code-mode.ts drops sub-call additionalContext, so dynamic AGENTS.md updates are silently discarded there. Update the block regression test to assert no context is attached, and add a waterfall case proving accept still surfaces the discovered instructions.
37 lines
1.8 KiB
YAML
37 lines
1.8 KiB
YAML
# Code Mode overlay: the live acp-agent tree (./cordis.yml) with two
|
|
# load-time patches — the app entry's config gains `tools: { mode: code }`
|
|
# (the registry offers exactly one wire tool, run_code, plus the generated
|
|
# TypeScript SDK prompt section) and the worker-thread code runtime joins the
|
|
# tree as `ctx.codeRuntime`. The dsh-acp-agent bin boots this file for
|
|
# `pnpm run demo:code-mode acp` and when the snapshot harness records the
|
|
# code-mode scenarios; DSH_SNAPSHOT=replay swaps it for the sibling
|
|
# code-mode.cordis.snapshot.yml. A config patch REPLACES the entry's whole
|
|
# config, so the base entry's fields are restated verbatim.
|
|
- id: base
|
|
name: '@cordisjs/plugin-include'
|
|
config:
|
|
path: ./cordis.yml
|
|
patches:
|
|
- id: acp-agent
|
|
name: '@deepseek-ai/dsh-acp-agent'
|
|
config:
|
|
model: deepseek-v4-flash
|
|
persistenceRoot: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.sessions'
|
|
# Disabled in Code Mode: fs tools run as run_code sub-dispatches and
|
|
# code-mode.ts deliberately drops sub-call `additionalContext`, so the
|
|
# nested/changed/removed AGENTS.md notices this feature emits after
|
|
# read/write/edit are discarded before the loop can append them.
|
|
# Enabling it would only ship the baseline prefix while silently
|
|
# dropping the dynamic updates, so keep it off until sub-dispatch
|
|
# context propagation lands.
|
|
workspaceContext: false
|
|
tools:
|
|
mode: code
|
|
persona: |
|
|
You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}.
|
|
|
|
Verify your work by running the code or tests. Keep answers brief and factual.
|
|
- insert:
|
|
- id: code-runtime
|
|
name: '@deepseek-ai/dsh-code-runtime-worker'
|