Skip to content

feat: add preview-first workspace_edit tool#1

Open
mattjoyce wants to merge 2 commits into
mainfrom
feat/workspace-edit-tool-preview-first
Open

feat: add preview-first workspace_edit tool#1
mattjoyce wants to merge 2 commits into
mainfrom
feat/workspace-edit-tool-preview-first

Conversation

@mattjoyce
Copy link
Copy Markdown
Owner

Summary

  • add a new workspace-native workspace_edit tool with regex_replace and line_replace modes
  • default edits to preview mode (apply=false) and require expected_original_sha256 when apply=true
  • enforce exactly one regex match for regex edits and validate line range edits
  • apply changes atomically via temp-file + rename and include diff/hash metadata in responses
  • add unit tests for preview/apply flow, single-match enforcement, line replacement, no-change, and apply hash requirement
  • update prompt/docs (config.yaml, default act prompt, README`) and add/close kanban card #106

Testing

  • go test ./...

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.

1 participant