Skip to content

ENH: Feature request / Idea: Custom CodeAgent: Codex, Claude Code, OpenHeands, Copilot etc #1908

@qdrddr

Description

@qdrddr

Problem
Instead of competing with SotA Coding Agents that focus on code generation, Smolagents could benefit from integrating with them.

While Smolagents is excellent in creating a general agentic framework, enforcing the security limitations of the produced code, retry mechanisms, and code output verification, it can leverage SotA Coding Agents' superior capabilities in producing high-quality code and testing it.

The Code Agent should be able to use state-of-the-art external coding agents on tests like those listed in the well-established and respected SWE-Bench Verified benchmarking.

Proposed solution
Provide a CustomCodeAgent that could integrate with OpenHands, Codex, Claude Code, Copilot, SWE-agent, TRAE-Agent, Refact, etc.

Is this not possible with the current options.
Currently, CodeAgnet is only a SmolAgent implementation.

Alternatives considered
Run with 3rd party Code Agent and then provide the results as a context or create a custom LLM wrapper. Which is suboptimal.

Additional context (optional)
The listed Coding agents may work locally as CLI, may be imported as a module, or consumed remotely via API.


Checklist

  • I have searched the existing issues and have not found a similar feature request.
  • I have verified that this feature is not already implemented in the latest version.
  • I am willing to work on this feature and submit a pull request. (see my PR)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions