Skip to content

feat: per-project agent engine (Claude Code / Codex)#177

Open
NagariaHussain wants to merge 1 commit into
developfrom
feat/agent-engine-codex
Open

feat: per-project agent engine (Claude Code / Codex)#177
NagariaHussain wants to merge 1 commit into
developfrom
feat/agent-engine-codex

Conversation

@NagariaHussain

Copy link
Copy Markdown
Contributor

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

  • Hive Project → agent_engine Select (Claude Code default / Codex).
  • Hive Settings → openai_api_key (global 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.
  • Frontend: engine selector on the project Agent tab; OpenAI key + Claude OAuth token on the global Agent settings tab.

Validation

  • build_boot_env gating verified on pms.localhost (migrate clean): claude+key → ANTHROPIC only, claude+no-key → OAUTH only, codex → OPENAI only.
  • yarn build green; 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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant