Skip to content

feat: migrate planning agents to AgentField native .harness() (fixes #22)#40

Merged
santoshkumarradha merged 2 commits intoagentfield-harnessfrom
issue-22-planning-agents
Mar 12, 2026
Merged

feat: migrate planning agents to AgentField native .harness() (fixes #22)#40
santoshkumarradha merged 2 commits intoagentfield-harnessfrom
issue-22-planning-agents

Conversation

@santoshkumarradha
Copy link
Copy Markdown
Member

Summary

Migrates all 4 planning agents in swe_af/reasoners/pipeline.py from custom AgentAI wrapper to AgentField native router.harness().

Changes

  • run_product_manager: AgentAIrouter.harness() with tools ["Read", "Glob", "Grep", "Bash"]
  • run_architect: AgentAIrouter.harness() with tools ["Read", "Write", "Glob", "Grep", "Bash"]
  • run_tech_lead: AgentAIrouter.harness() with tools ["Read", "Glob", "Grep"]
  • run_sprint_planner: AgentAIrouter.harness() with tools ["Read", "Glob", "Grep"]

Details

  • Removed AgentAI, AgentAIConfig, Tool imports
  • Removed all log_path/log_file= parameters (not supported by router.harness())
  • Added provider mapping: "claude""claude-code"
  • Preserved all error handling, fallback behavior, and RuntimeError raises
  • Follows exact pattern from already-migrated fast/planner.py

Fixes #22

Replace AgentAI(...).run() with router.harness() in all 4 planning

agents: run_product_manager, run_architect, run_tech_lead,

run_sprint_planner.

- Remove swe_af.agent_ai imports

- Map Tool enums to string tool names

- Add provider mapping: claude -> claude-code

- Drop log_file parameter (not supported by harness)

- Preserve all prompts, schemas, and error handling

Fixes #22
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 12, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants