feat: per-project agent engine (Claude Code / Codex)#177
Open
NagariaHussain wants to merge 1 commit into
Open
Conversation
Lets each project pick its coding-agent engine, and delivers the matching auth key to the box. - Hive Project: new `agent_engine` Select (Claude Code default / Codex). - Hive Settings: new global `openai_api_key` (Password). - build_boot_env: emits AGENT_ENGINE and forwards ONLY the chosen engine's key(s) — Codex → OPENAI_API_KEY; Claude → ANTHROPIC_API_KEY, or the subscription CLAUDE_CODE_OAUTH_TOKEN when no API key is set. Verified on pms.localhost: gating correct across claude+key / claude+token / codex. - Frontend: reusable SelectField; engine selector on the project Agent tab; OpenAI key + (completing #176's UI gap) the Claude OAuth token on the global Agent settings tab. yarn build green, changed files lint-clean. Box side (agent_command/summarize engine abstraction, codex baked into the golden) ships in the paired BenchSpace PR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011C9jzHhfxDqtU13uWtazZm
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.
Lets each project choose its coding-agent engine and delivers the matching API key to the box. Pairs with the BenchSpace PR (box-side engine abstraction + Codex baked into the golden).
Hive changes
agent_engineSelect (Claude Code default / Codex).openai_api_key(global Password).build_boot_envemitsAGENT_ENGINEand forwards only the chosen engine's key(s): Codex →OPENAI_API_KEY; Claude →ANTHROPIC_API_KEY, or the subscriptionCLAUDE_CODE_OAUTH_TOKENwhen no API key is set.Validation
build_boot_envgating verified onpms.localhost(migrate clean):claude+key → ANTHROPIC only,claude+no-key → OAUTH only,codex → OPENAI only.yarn buildgreen; changed frontend files lint-clean.Note on stacking
Branched off
feat/box-claude-oauth-token(#176), so this includes and supersedes #176 — it also wires #176's OAuth-token field into the frontend (which #176 left desk-only). Merge this and close #176, or merge #176 first (this rebases clean).🤖 Generated with Claude Code