Skip to content

Conversation

bhouston
Copy link
Member

@bhouston bhouston commented Mar 3, 2025

This PR implements GitHub Issue #59 by creating a new textEditor tool that combines the functionality of readFile and updateFile into a single tool, similar to Anthropic's built-in text editor tool. The new tool provides the following commands:

  • view: Display file content with line numbers or directory listing
  • create: Create a new file with specified content
  • str_replace: Replace specific text in a file (must be unique)
  • insert: Insert text at a specific line number
  • undo_edit: Revert the last edit made to a file

The tool maintains state across calls, allowing for undo functionality. All tests pass and the tool is fully integrated into the agent.

@bhouston bhouston merged commit 4f054ce into main Mar 4, 2025
1 check passed
Copy link

🎉 This PR is included in version mycoder-agent-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bhouston bhouston deleted the feature/text-editor-tool branch March 12, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant