Repository navigation
Conversation
…_DIR The installation entry point and binary detection for on-demand CLIs were already implemented, but the deployment guide never mentioned AGENTFLOW_RUNTIME_CLI_DIR: lookup order, directory layout, the pinned dsh version, or how it differs from AGENTFLOW_MANAGED_CLI_ROOT. As a result a correctly installed on-demand CLI still looked 'not installed' to operators who only checked PATH (Tencent#988). Document the five-step conversation CLI lookup, the shared absolute path requirement for sandboxes, the <dir>/<engine>/current/node_modules/.bin layout, the explicit @deepseek-ai/dsh@0.2.2-rc.1 pin, and the distinction from the daily-updater managed root. Documentation only; no behavior change. Part of Tencent#988. Follow-up from the DeepSeek install audit.
Robert0622
approved these changes
Nov 26, 2026
Robert0622
left a comment
Collaborator
There was a problem hiding this comment.
Code Review & Deploy Test: PASS ✅
Docs-only change. Adds paragraph to docs/deployment.md documenting the CLI lookup order, AGENTFLOW_RUNTIME_CLI_DIR, and the dsh version pin. The lookup order and version pin match the code.
Minor note (non-blocking):
- P3: Stated install layout differs slightly for Cursor and installer-based CLIs; worth a follow-up clarification.
loopforge-pr-review:4b0371745dc9480e1f4b3e2adfcd4d28f0fe6cb7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs(deploy): document on-demand CLI lookup and AGENTFLOW_RUNTIME_CLI_DIR
This is the documentation-only slice of #988. The issue's two code concerns were already fixed on current main: the CLI install entry point (
/api/assistant/cli-installplus the web action) exists, andresolveAssistantEngineBinalready falls back toAGENTFLOW_RUNTIME_CLI_DIRon-demand installs. What remained was that the deployment guide never mentioned any of it —AGENTFLOW_RUNTIME_CLI_DIRhad zero hits underdocs/, so an operator checking onlyPATHcould still conclude a correctly installed CLI was missing.Change
One paragraph in
docs/deployment.md(Native development) documenting:PATH→ global/~/.local/bin→ on-demandAGENTFLOW_RUNTIME_CLI_DIR);<dir>/<engine>/current/node_modules/.bin/<binary>layout (Claude Code uses its pinned version directory);@deepseek-ai/dsh@0.2.2-rc.1pin (not a floating latest);AGENTFLOW_MANAGED_CLI_ROOT(daily updater with rollback) andAGENTFLOW_RUNTIME_CLI_DIR(first-use on-demand installs) are separate, non-substitute directories.No behavior change, no code touched. Findings from a DeepSeek read-only install audit.
Scope / notes
conversation_sandbox.go/managed_cli.go; no file or semantic overlap with this docs-only slice.Related
Part of #988; does not close the issue.