feat(bootstrap): detect agent CLI after bootstrap and print guidance#34
Closed
eouzoe wants to merge 1 commit into
Closed
feat(bootstrap): detect agent CLI after bootstrap and print guidance#34eouzoe wants to merge 1 commit into
eouzoe wants to merge 1 commit into
Conversation
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.
修改了什麼
scripts/start.sh在 bootstrap 完成後(第 6 步)新增 agent CLI 偵測:掃描opencode/claude/codex是否可用,並在結尾訊息中告知使用者偵測到的 agent 與預設啟動方式。為什麼要修改
引導流程結束後,使用者需要知道「下一步啟動哪個 AI agent」。原本只給一句 generic 提示,現在根據主機實際可用的 CLI 給出具體指引。
功能
command -v檢查三個 agent CLI,收集到AGENT_DETECTED。Detected agent CLI(s): ...與Default: opencode -> run: opencode。No agent CLI detected. Install one, e.g. 'npm i -g opencode'。涉及檔案
scripts/start.sh(+15 / -1,僅第 6 步與結尾訊息)影響
Justfile的agentrecipe 互補:start.sh 負責「提示」,agent recipe 負責「真正無互動啟動」。參考文件 / 依據
just agentrecipe to bootstrap AI agent #32(just agentrecipe)配套;agent 偵測順序一致(opencode / claude / codex)。測試
bash -n scripts/start.sh語法通過。command -v分支,已在 recipe 單測中驗證。