Summary
Connect the ReactAgent to CodeFRAME's existing runtime and CLI so users can opt in via cf work start <task-id> --execute --engine react.
Acceptance Criteria
Implementation Notes
- Minimal changes to runtime.py — just an
if engine == "react": use ReactAgent else: use Agent branch
- The
--engine flag should also work with cf work batch run (pass engine to conductor)
- Runtime's run lifecycle (start_task_run, complete_run, fail_run, block_run) is reused as-is
Dependencies
Reference
docs/AGENT_V3_UNIFIED_PLAN.md (Architecture → High-Level Design)
docs/REACT_AGENT_ARCHITECTURE.md (Section 7, Phase C)
Summary
Connect the ReactAgent to CodeFRAME's existing runtime and CLI so users can opt in via
cf work start <task-id> --execute --engine react.Acceptance Criteria
codeframe/core/runtime.pyupdated:execute_agent()acceptsengineparameter:"plan"(default, existing Agent) or"react"(new ReactAgent)engine="react", instantiates and runsReactAgentinstead ofAgentcodeframe/cli/app.pyupdated:cf work startaccepts--engineoption (default:"plan")--engine reactpasses through to runtimecf work start <task-id> --execute --engine reactcreates a run, invokes ReactAgent, and completes--enginenot specifiedImplementation Notes
if engine == "react": use ReactAgent else: use Agentbranch--engineflag should also work withcf work batch run(pass engine to conductor)Dependencies
Reference
docs/AGENT_V3_UNIFIED_PLAN.md(Architecture → High-Level Design)docs/REACT_AGENT_ARCHITECTURE.md(Section 7, Phase C)