Add API provider selection and Codex skills#2
Open
arsis-dev wants to merge 1 commit into
Open
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.
Summary
Adds provider selection to API mode and ships Codex-compatible agent skills for the existing Open Collider setup/brainstorm workflow.
Anthropic remains the default provider. Existing projects keep working unchanged unless they opt into
llm_provider: openaiorllm_provider: codex.What changed
llm_providersupport for API mode:anthropicremains the default.openaiuses the OpenAI Responses API shape.codexshells out to localcodex exec.anthropic:claude-sonnet-4-20250514openai:gpt-4.1codex:defaultllm_provider: openai.domain_max_tokensgeneration_max_tokensscoring_max_tokens.agents/skills/open-collider-setupand.agents/skills/open-collider-brainstormas Codex equivalents for the existing Claude Code/collider_setupand/brainstormflows.run_iteration.pyto invoke the existing Python orchestrator.apply_flags_from_text.pyto map human love/like/trash input back to idea IDs deterministically..env.example, and project template comments with provider examples.**4.25/5**.Why
Open Collider already has two execution surfaces:
This PR keeps that architecture, but makes API mode usable from more environments:
The Codex provider is intentionally marked experimental because each LLM call starts a local
codex execprocess. It is useful for local agent workflows and testing, while direct API providers remain the better fit for faster and more deterministic runs.Codex skill scripts
The Codex skills include two small helper scripts so the agent workflow can call the existing Python API-mode orchestration without reimplementing it in prompt text.
.agents/skills/open-collider-brainstorm/scripts/run_iteration.py--brainstorm-idto resume a specific brainstorm.BrainstormOrchestratorfrom the repository and prints the iteration result as JSON./brainstorm..agents/skills/open-collider-brainstorm/scripts/apply_flags_from_text.pylove 1,3 - like 2 - trash the rest.numbering_map.json.apply_flags()function and regenerates reports through the existing report path.Both scripts are thin adapters around existing Open Collider functions. They do not introduce new LLM behavior; they make the Codex skill workflow reproducible from terminal commands.
Compatibility
llm/andbrainstorm.py, so skill mode is not coupled to API mode.Tests
PYTHONPATH=src .venv/bin/python -m pytest tests/ -vResult:
36 passedTargeted lint:
PYTHONPATH=src .venv/bin/python -m ruff check src/open_collider/brainstorm.py src/open_collider/llm/client.py src/open_collider/scoring/data_loader.py src/open_collider/scoring/score_parser.py tests/test_api_mode.py tests/test_smoke.py .agents/skills/open-collider-brainstorm/scripts/apply_flags_from_text.py .agents/skills/open-collider-brainstorm/scripts/run_iteration.pyResult:
All checks passed