agentscope-ai / agentscope-ai/ReMe

feat(agent-wrapper): add Codex backend

Ouverte
#352 0 commentaires 0 réactions 1 personne assignée Réclamée par @jinliyl Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
3.4k
Forks
298
Merge moyen
19 h 52 min
PR mergées (30 j)
55

Description

**Background**

ReMe's unified agent wrapper currently supports AgentScope and Claude Code. A Codex backend is needed so ReMe jobs can use Codex through the same prompt, tool, skill, session, structured-output, and streaming contracts without coupling job logic to a specific agent runtime.

**Changes**
- Add a Codex implementation under `reme/components/agent_wrapper/codex_agent_wrapper.py`
- Integrate with the Codex App Server v2 thread and turn APIs over its local JSON-RPC transport
- Map Codex thread lifecycle operations to new sessions, resume, fork, and deterministic workspace-scoped persistence
- Expose configured ReMe jobs and project skills to Codex while preserving existing tool context injection
- Convert Codex turn, content, reasoning, tool, approval, usage, completion, and error events into unified `StreamChunk` values
- Support non-streaming replies, streaming replies, structured output, working-directory configuration, sandbox settings, and approval policies
- Manage the Codex subprocess and protocol resources deterministically, including cancellation and failure cleanup
- Register the backend, add default configuration, document prerequisites, and add focused unit and integration tests

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.