The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(anthropic): which() already guarantees an executable file
kshitijk4poora4ec7d63c749
diff --git a/agent/anthropic_adapter.py b/agent/anthropic_adapter.pyindex d94b176e5f2..876fc58389d 100644--- a/agent/anthropic_adapter.py+++ b/agent/anthropic_adapter.py@@ -246,7 +246,7 @@ def _claude_code_candidates() -> List[str]:seen: Dict[str, None] = {}for name in _CLAUDE_CODE_NAMES:hit = shutil.which(name)- if hit and os.path.isfile(hit):+ if hit:seen.setdefault(hit)for prefix in _CLAUDE_CODE_PREFIXES:for name in _CLAUDE_CODE_NAMES: