Tianyi Cui 440384fdb4 Merge remote-tracking branch 'origin/master' into worktree/acp-automation-protocol před 1 měsícem
..
tests 440384fdb4 Merge remote-tracking branch 'origin/master' into worktree/acp-automation-protocol před 1 měsícem
README.md 5569f3f8ac docs: repair rewritten rationale and stale claims from the ACP reduction před 1 měsícem
advanced.cordis.snapshot.yml d139948ed2 feat(persistence): compress JSONL logs with Zstandard před 1 měsícem
advanced.cordis.yml 0e06d0691d feat(examples): default agent configs to DeepSeek Pro Max Thinking před 1 měsícem
both-mode.cordis.snapshot.yml d139948ed2 feat(persistence): compress JSONL logs with Zstandard před 1 měsícem
both-mode.cordis.yml 0e06d0691d feat(examples): default agent configs to DeepSeek Pro Max Thinking před 1 měsícem
code-mode-workspace-context.cordis.snapshot.yml 82ce9dfe0e Merge branch 'master' into codex/jsonl-zstd-persistence před 1 měsícem
code-mode-workspace-context.cordis.yml 0e06d0691d feat(examples): default agent configs to DeepSeek Pro Max Thinking před 1 měsícem
code-mode.cordis.snapshot.yml d139948ed2 feat(persistence): compress JSONL logs with Zstandard před 1 měsícem
code-mode.cordis.yml 0e06d0691d feat(examples): default agent configs to DeepSeek Pro Max Thinking před 1 měsícem
composition.md 88f3933327 fix(docs): address Codex round-1 findings on the review-fix stack před 1 měsícem
cordis.snapshot.yml 7eec0d81ec test(snapshot): reconcile replay overlays with the merged configs and fixtures před 1 měsícem
cordis.yml d07875947b Merge remote-tracking branch 'origin/master' into worktree/acp-automation-protocol před 1 měsícem
depth-two.cordis.snapshot.yml 7eec0d81ec test(snapshot): reconcile replay overlays with the merged configs and fixtures před 1 měsícem
depth-two.cordis.yml 46d60d6d90 fix(tool-subagent): enforce depth only at runtime před 1 měsícem
fs.cordis.snapshot.yml 7eec0d81ec test(snapshot): reconcile replay overlays with the merged configs and fixtures před 1 měsícem
fs.cordis.yml 2e7cdddb89 Merge remote-tracking branch 'origin/master' into cross-family-fs-sandbox před 1 měsícem
package.json e819a586b0 refactor(acp): reduce bridge to automation protocol před 1 měsícem
packed-chunks.cordis.snapshot.yml f4ad731079 test(snapshot): add the packed-chunks opt-in replay scenario před 1 měsícem
packed-chunks.cordis.yml f4ad731079 test(snapshot): add the packed-chunks opt-in replay scenario před 1 měsícem
pty-snapshot-backend.mjs 58cde5103a feat: add persistent PTY sessions před 1 měsícem
pty.cordis.snapshot.yml 57a47b1fb3 fix(pty): close review lifecycle gaps před 1 měsícem
pty.cordis.yml 58cde5103a feat: add persistent PTY sessions před 1 měsícem
session-sandbox-root.cordis.snapshot.yml 7e5d5795a5 test(sandbox): adapt scenarios to latest master před 1 měsícem
session-sandbox-root.cordis.yml 7677d49c93 test(snapshot): cover session-scoped sandbox roots před 1 měsícem
workspace-context.cordis.snapshot.yml 82ce9dfe0e Merge branch 'master' into codex/jsonl-zstd-persistence před 1 měsícem
workspace-context.cordis.yml 0e06d0691d feat(examples): default agent configs to DeepSeek Pro Max Thinking před 1 měsícem

README.md

acp-agent example

Automation-oriented Agent Client Protocol server over JSON-RPC stdio. It is intended for parent agents, subagent providers, and other programmatic clients, not as the product UI.

pnpm run demo:acp             # needs DEEPSEEK_API_KEY (repo-root .env or env)
pnpm run demo:code-mode acp   # same protocol with the Code Mode tool transport

The leaf loads the ACP app, DeepSeek adapter, sandboxed bash and filesystem stacks, one-shot approval policy, compaction, subagents, workflows, hooks, model-facing tools, and repeat guard. The app creates one fresh agent per session/new, persists sessions to JSONL, and keeps stdout protocol-pure. fs.cordis.yml adds local tool-result spill storage for dedicated scenarios; code-mode.cordis.yml adds run_code and its generated TypeScript SDK.

Protocol channel

Stdout carries only newline-delimited ACP JSON-RPC. @deepseek-ai/dsh-acp-demo installs no stdout logger; leaf additions must use stderr for diagnostics.

The automation contract — supported methods, baseline prompt content, committed-text output, and the intentionally absent UI surfaces — lives in @deepseek-ai/dsh-acp.

Session workspaces and permissions

Each session/new supplies an absolute cwd. Sandboxed bash and filesystem mutations resolve workspace-write against that session cwd, so concurrent sessions can use separate project roots; platform temporary roots remain shared writable scratch space (sandbox contract). DSH_PERMISSION_MODE selects workspace-write or danger-full-access for deployment and tests.

Under workspace-write, a model retry requesting wider sandbox access triggers session/request_permission with allow_once and reject_once. The client decides programmatically; dismissal or an unavailable answer fails closed. The selected outcome applies only to that retry and is recorded through the normal tool-result/audit path. The server never exposes a permission picker or persists client policy.

Snapshot tests

This example owns the ACP snapshot suite. It boots the real automation server, replays committed model streams through dsh-llm-replay, and compares both normalized protocol output and re-persisted session logs. Recording uses the real model; refresh reuses committed replay input. Overrides cover throw/hang behavior, and optional workspace/ fixtures seed world-state checks.

Most scenarios pin backend behavior rather than ACP-specific behavior; the automation-only ACP decision owns why that coverage remains transport-coupled.