Skip to content

feat: Support Claude Code as alternative coding agent#25

Merged
zhangweijian97 merged 1 commit into
0xroylee:mainfrom
zhangweijian97:feature/claude-code-adapter
May 8, 2026
Merged

feat: Support Claude Code as alternative coding agent#25
zhangweijian97 merged 1 commit into
0xroylee:mainfrom
zhangweijian97:feature/claude-code-adapter

Conversation

@zhangweijian97

Copy link
Copy Markdown
Collaborator

Summary

  • Implements AgentAdapter interface (exec / resume / parseOutput) for agent-agnostic architecture
  • Adds ClaudeCodeAdapter using claude -p / claude --continue CLI
  • Refactors existing Codex integration into CodexAdapter
  • Adds AGENT_BACKEND config support to switch between codex and claude-code

Changes

  • src/core/agent-adapter.ts — New AgentAdapter interface and factory
  • src/services/codex-adapter.ts — Refactored Codex adapter
  • src/services/claude-code-adapter.ts — New Claude Code adapter
  • src/core/types.ts — Added agent config type
  • src/core/config.ts — Added AGENT_BACKEND env support
  • src/core/workflow.ts — Updated to use adapter pattern

Testing

  • All existing tests pass
  • New tests added for adapter interface
  • Typecheck passes

Closes #24

- Create AgentAdapter interface with runPlan, resume, runReview methods
- Implement CodexAdapter (refactored from codex.ts)
- Implement ClaudeCodeAdapter using claude CLI
- Add AGENT_BACKEND config support (codex | claude-code)
- Update workflow.ts to use adapter pattern
- Update tests for new adapter structure

Closes 0xroylee#24
@zhangweijian97 zhangweijian97 merged commit e1a31eb into 0xroylee:main May 8, 2026
1 check passed
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.

Feature Request: Support Claude Code as alternative coding agent

1 participant