Summary
Add the file-modification tools to codeframe/core/tools.py: edit_file (search-replace via editor.py) and create_file (whole-file for new files only).
Acceptance Criteria
Implementation Notes
Dependencies
Reference
docs/AGENT_V3_UNIFIED_PLAN.md (Tool Set → edit_file, create_file)
docs/AGENT_ARCHITECTURE_CRITIQUE.md (Section 2.1 — greenfield vs brownfield)
Summary
Add the file-modification tools to
codeframe/core/tools.py:edit_file(search-replace viaeditor.py) andcreate_file(whole-file for new files only).Acceptance Criteria
edit_filetool:{ path, edits: [{ search, replace }] }SearchReplaceEditor.apply_edits()fromeditor.pycreate_filetool:{ path, content }edit_fileinsteadAGENT_TOOLSlist andexecute_tooldispatchertests/core/test_tools.pycovering:Implementation Notes
edit_filewrapsSearchReplaceEditorfrom Phase A issue [Phase 2.5-A] Implement SearchReplaceEditor with fuzzy matching #343create_filereuses logic fromexecutor.py:_execute_file_create()(simplified)Dependencies
Reference
docs/AGENT_V3_UNIFIED_PLAN.md(Tool Set → edit_file, create_file)docs/AGENT_ARCHITECTURE_CRITIQUE.md(Section 2.1 — greenfield vs brownfield)