Repository navigation
Generalize CodexAgentBackend → LLMAgentBackend (#234) - #363
larstalian wants to merge 1 commit into
Conversation
CodexAgentBackend had no codex-specific code — it just wraps any LLMBackend into a single-shot, tool-less AgentBackend, defaulting to CodexBackend when none is passed. Rename to LLMAgentBackend so the name reflects that it takes any LLMBackend and "Codex" appears in exactly one place (CodexBackend). Clean rename, no backward-compat alias (pre-1.0). The CodexBackend default fallback stays intact. Closes #234 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Review — Generalize
|
Code review — #234
|
Summary
CodexAgentBackendhad no codex-specific code — it just wraps anyLLMBackendinto a single-shot, tool-lessAgentBackend, defaulting toCodexBackendwhen none is passed. This renames it toLLMAgentBackendso the name reflects what it actually does, leaving "Codex" in exactly one place (CodexBackend).CodexBackenddefault fallback stays intact — that's the one legitimate Codex reference. Error strings/docstrings updated to sayLLMAgentBackend.agent_backend.py,__init__.py(import +__all__),tests/test_agent_backend.py,tests/test_office_persona.py,examples/codex_eval.py(class ref; file name kept), pack-sdk_protocols.pycomment, and pack-sdkREADME.mdprose.grep CodexAgentBackendacross the repo → zero hits.Test plan
ruff checkon all touched files — passedmypyonagent_backend.py,__init__.py,examples/codex_eval.py— passedpytest tests/test_agent_backend.py tests/test_office_persona.py— 31 passedCloses #234
🤖 Generated with Claude Code