Preface¶
When developing agents in DeepSeek Harness (DSH), permission modes often involve a trade-off between “full manual confirmation” and “handing over to model auto-review.” The official Auto Review sends more operations to the LLM, driving up response times and costs; pure read-only or sandbox modes, on the other hand, tend to cause frequent interruptions when writing files or running shell commands. If you want safe and predictable operations to be passed directly by the program, with only actions not covered by rules escalating for review, you need a “deterministic-first” review policy. The following introduces the community plugin DCAR (@lytharalab/dsh-cons-auto-review), explaining how it provides the CAutoR mode in the DSH permission menu, along with installation and daily usage.
What is this¶
@lytharalab/dsh-cons-auto-review (referred to as Con’s Auto Review · DCAR 1.2.1 in the README) is maintained by LytharaLab. The npm package name corresponds to the GitHub repository LytharaLab/DSH-Cons-Auto-Review. The plugin adds a CAutoR preset to the DSH “Permissions” menu: it reuses DSH’s deterministic path rules for “modifications within the workspace,” returning allow for safe operations that can be determined, and escalate for the rest to hand over to LLM Auto Review. The first layer will not silently deny; it only allows or escalates.
CAutoR’s execution strategy is danger-full-access: what is relaxed is “which operations still require manual confirmation,” not the process isolation boundary; approved operations are still executed with the host process privileges.
Core Features¶
Program-First Review¶
- Paths and Files: Workspace read/write, DSH platform temporary directories, and optional additional root directories; includes real path and symbolic link checks; protected paths and unknown operations escalate to LLM.
- Shell Quick Check: A set of explicitly defined read-only commands and
mkdir/touchcan pass through the programmatic layer; unknown commands, scripts, pipes, redirections, variable expansions, wildcards, and compound commands will escalate.npm run, Python, Node, and Git escalate by default, as they may produce effects outside the workspace after leaving the sandbox. - Configurable Items: Tool categories, forced review tools, explicitly trusted tools, custom path fields, and trusted commands that strictly match the complete argv (see the repository’s
docs/CONFIGURATION.mdandexamples/defaults.jsonfor details).
LLM Review Layer¶
- Uses the current Agent’s provider / model by default; can specify a separate review model, reasoning tier, output limit, temperature, policy supplements, concurrency, timeout, and retries.
- Decisions are
allow/ask/deny; model failures do not automatically allow; denials or failures are handed over to the user by default, but can be configured to be final denials. - Approval questions are always in Chinese (including model confirmation questions and the current operation); even if the interface is in English, the prompt is in Chinese.
- Fixes “reviewer ended with max-tokens”: default output budget is 8192, expanding up to two times to 32768 if truncated; only complete JSON and normal termination are accepted.
- Prioritizes trying the
lowreasoning tier supported by the model; all attempts share a total timeout of 120 seconds by default.
Long Sessions and Context (1.2.0+)¶
As sessions grow longer, versions 1.1.0 and earlier would abandon the review entirely and fall back to manual if the total exceeded maxInputChars (default 180000)—requiring manual clicks for every operation that needed review. Starting from 1.2.0, segmented budgets are applied to history and project instructions, omitting the oldest entries and inserting an omitted-context note; the action to be executed is never trimmed. Omission only makes it more conservative and will not generate authorization out of thin air.
review:
maxInputChars: 180000
maxHistoryChars: 60000
maxProjectInstructionChars: 30000
Other Behaviors¶
- Unified review with normal tools and PTC internal tools; the outer
run_codeis reviewed by each internal call respectively. - Sub-agents inherit DCAR by default; subsequent mode switches by the parent Agent will not disable review for already delegated sub-agents.
- Session statistics, rule hit rates, number of review requests avoided by the program, optional JSONL logs; optional review cache (disabled by default, only caches approved results).
- Dynamic permission policy: CAutoR is only provided after the review entry is activated; pending reviews are cancelled when deactivated. It directly reuses the existing permission service in the Desktop, without needing to replace the
permissionconfiguration line in the profile. - 1.2.1: Adapts to DSH 0.2.1-rc.2 session working directory switching; the automatically allowed workspace boundary remains the session’s initial workspace, and switching directories will not expand the boundary.
When installed alongside the official Auto Review, Auto review and CAutoR are two independent options; only selecting CAutoR triggers the DCAR flow.
Installation and Activation¶
Requires Node.js 22.19+ or 24+. The plugin declares compatibility and is tested for DSH 0.1.7-rc.2, 0.2.0-rc.2, and 0.2.1-rc.2 in the README; the DSH plugin API is still changing, and no compatibility commitments are made for version 1.2.1 regarding other versions.
Desktop installation:
dsh plugin --profile desktop add @lytharalab/dsh-cons-auto-review
For the Web version, change --profile desktop to --profile web. You can also add an offline decompressed directory or the bundled .tgz (no compilation required).
When upgrading from the old package name dsh-cons-auto-review, close the Desktop first, remove the old package, then install the scoped package, and check if the plugin name in the profile has been changed to @lytharalab/dsh-cons-auto-review (see examples/ in the repository for examples).
After restarting DSH, select CAutoR in the “Permissions” bar of the chat input area, or execute:
/permission CAutoR
/dcar on
If you want new sessions to use CAutoR by default: In DSH settings, select CAutoR for “Default permission mode for new sessions” and save. If the plugin is disabled but the default value remains CAutoR, new sessions will fall back to read-only and display “CAutoR (DCAR not enabled)”.
Before uninstalling, it is recommended to execute /dcar off in each session, then run:
dsh plugin --profile desktop remove @lytharalab/dsh-cons-auto-review
Typical Usage¶
In-Session Commands¶
| Command | Function |
|---|---|
/dcar or /dcar status |
Version, current permission, and enabled status |
/dcar on / /dcar off |
Enable CAutoR / Switch back to fallback mode |
/dcar stats |
This session’s counts and program hit rate |
/dcar history 20 |
Last 20 review records |
/dcar config |
View active configuration |
/dcar config {"review":{"timeoutMs":30000}} |
Modify this session’s review settings |
/dcar check write {"file_path":"src/a.js","content":"x"} |
Run program rules only; do not execute tool, do not call model |
/dcar clear-cache |
Clear review cache |
/dcar reset |
Reset this session’s config, stats, and cache |
Session-level configuration overrides only affect that session in the current process; load-time settings such as command names and sub-agent inheritance need to be modified in the profile and restarted.
Recommended Review Snippet After Upgrading¶
If upgrading from an older version and the profile still retains a small maxTokens or short timeoutMs, the README suggests aligning with the examples in the package:
review:
maxTokens: 8192
maxTokensLimit: 32768
tokenLimitRetries: 2
preferLowReasoning: true
timeoutMs: 120000
See examples/desktop-config.patch.yml in the repository for stacking examples.
Use Cases and Notes¶
Who it is for: Users already using agents on DSH Desktop or Web who want to reduce repeated confirmations for “obviously safe” file writes and read-only shells, while retaining LLM review for operations outside the boundary; categorized as a workflow plugin in the DSH community directory.
Recommendations before installation: The plugin runs with the current dsh process privileges. There is still a time window and judgment blind spot between path checking and execution, as well as for command semantics the program cannot identify. For a complete explanation, see docs/COMPATIBILITY.md in the repository. Before installation, you should review the source code, the MIT License, and the reporting channels in SECURITY.md yourself. The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
DCAR turns CAutoR into a combination of “deterministic allow / escalate + LLM on-demand review”: the programmatic layer handles rule-based workspace and shell scenarios, long sessions avoid overall review failure via segmented budgets, and the model layer handles difficult decisions without defaulting to silent allow. For details, refer to the npm package 1.2.1 and the repository README and docs/CONFIGURATION.md.
- Directory Page: https://www.skillhub.cn/plugins/LytharaLab/DSH-Cons-Auto-Review
- GitHub: https://github.com/LytharaLab/DSH-Cons-Auto-Review
- npm: https://www.npmjs.com/package/@lytharalab/dsh-cons-auto-review