Skip to content

Conversation

@rlancemartin
Copy link
Contributor

Implements Claude's native text editor tool as an alternative to the standard FilesystemMiddleware.

This provides exact compatibility with Claude's text_editor_20250728 --
https://docs.claude.com/en/docs/agents-and-tools/tool-use/text-editor-tool

Key features:

  • Single command-based tool: str_replace_based_edit_tool
  • Four commands: view, str_replace, create, insert
  • Reuses existing backend system (StateBackend, FilesystemBackend, StoreBackend)
  • Configurable via use_claude_native_text_editor parameter
  • Full test coverage with 19 passing tests

rlancemartin and others added 2 commits November 3, 2025 13:23
…support

Implements Claude's native text editor tool as an alternative to the standard
FilesystemMiddleware. This provides exact compatibility with Claude's training
and the official text_editor_20250728 specification.

Key features:
- Single command-based tool: str_replace_based_edit_tool
- Four commands: view, str_replace, create, insert
- Reuses existing backend system (StateBackend, FilesystemBackend, StoreBackend)
- Configurable via use_claude_native_text_editor parameter
- Full test coverage with 19 passing tests

Usage:
  agent = create_deep_agent(use_claude_native_text_editor=True)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@rlancemartin rlancemartin changed the title Add ClaudeTextEditorMiddleware Add middleware to support Claude's native search + text editor tools Nov 4, 2025
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