feat(tooling): add just agent recipe to bootstrap AI agent#32
Closed
eouzoe wants to merge 1 commit into
Closed
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.
修改了什麼
在
Justfile新增agentrecipe,讓使用者一鍵以無互動模式用 bootstrap 提示詞啟動 AI agent。為什麼要修改
專案引導完成後,需要一個統一入口啟動 AI agent(claude / codex / opencode 任一皆可),避免每個人手動拼指令。
功能
claude/codex/opencode(含claude-code、codex-cli兜底檔名),按優先序選第一個可用的。nix profile add nixpkgs#opencode安裝 OpenCode 後啟動。anthropic/claude-opus-4-6),由使用者自行決定模型。PATH涵蓋 nix-profile / bun / npm global / mise / homebrew 等非標準安裝位置,純函式不污染環境。涉及檔案
Justfile(+23 行,僅 appendagentrecipe)影響
docs/agent/bootstrap-prompt.md存在(已存在)。參考文件 / 依據
docs/agent/bootstrap-prompt.md:recipe 讀取的引導提示詞。devenv --trace-to/ agent 自動 quiet 模式行為(與start.sh互補,start.sh 只提示、此 recipe 真正啟動)。測試
agentrecipe 分支邏輯以 8 個案例單測全過(claude / claude-code / codex / codex-cli / opencode / 皆無 / 多 agent 優先序)。bash -n語法檢查通過。