Skip to content

[Phase 2.5-C] Extend ReactAgent interface to support full runtime parameters #362

Description

@frankbria

Summary

The ReactAgent currently has a minimal constructor interface compared to the existing plan-based Agent. When wiring ReactAgent into the runtime (issue #348), we deliberately chose to wrap the simpler interface rather than modify ReactAgent, but this leaves 5 runtime features unsupported when using --engine react.

Missing Parameters

Parameter Purpose Priority
dry_run Preview changes without applying High
verbose Print detailed progress to stdout High
on_event Emit workspace events for monitoring Medium
debug Write debug log to workspace Medium
output_logger Enable cf work follow streaming Medium
event_publisher Enable SSE streaming for web UI Low
fix_coordinator Global fix coordination for parallel execution Low

Acceptance Criteria

  • ReactAgent constructor accepts dry_run, verbose, on_event, debug, output_logger, event_publisher, fix_coordinator parameters
  • Parameters that don't apply to the ReAct loop architecture are documented as no-ops or adapted to the ReAct pattern
  • runtime.py passes all parameters when engine="react" (currently only passes workspace and llm_provider)
  • Tests verify ReactAgent behavior with each parameter

Implementation Notes

  • The ReAct loop architecture may not map 1:1 to all plan-based Agent features (e.g., fix_coordinator assumes step-based execution)
  • dry_run and verbose should be straightforward to add
  • on_event callbacks may need different event types for the ReAct loop (tool calls vs plan steps)
  • Consider whether ReactAgent should return AgentState directly instead of AgentStatus to remove the wrapper in runtime.py

Dependencies

Reference

  • codeframe/core/react_agent.py — ReactAgent constructor (lines 75-85)
  • codeframe/core/runtime.py — execute_agent() engine branch with TODO comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-2.5Phase 2.5: Agent Execution Redesign (ReAct)phase-2.5-CPhase C: ReAct Agent Core

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions