edit_file tool + code-navigation tools (grep, glob, ls) #936

Closed
opened 2026-06-18 10:56:09 +02:00 by sleepy · 0 comments
Owner

Overview

Add diff-based edit_file tool and code-navigation tools (grep, glob, ls) with line-range read_file. Replaces raw overwrite behavior with safer diff-based editing.

Upstream References

  • PR #1239: Add edit_file tool + file-change diffs
  • PR #1670: Add code-navigation tools (grep, glob, ls) + read_file line ranges
  • Upstream commits: 7443c36, 1f00fff
  • Local paths: ../odysseus_upstream/src/tool_implementations.py, ../odysseus_upstream/src/tool_schemas.py, ../odysseus_upstream/src/agent_tools/filesystem_tools.py

Current State

Our fork has read_file and write_file (full file overwrite). No diff-based editing, no grep/glob/ls.

Implementation

  1. Port edit_file with unified diff output
  2. Port grep tool (regex search with file matching)
  3. Port glob tool (file pattern matching)
  4. Port ls tool (directory listing)
  5. Add line-range support to read_file
  6. Register tools in agent tool index
  7. Port relevant tests

Priority

High — essential for code-heavy workflows.

## Overview Add diff-based `edit_file` tool and code-navigation tools (`grep`, `glob`, `ls`) with line-range `read_file`. Replaces raw overwrite behavior with safer diff-based editing. ## Upstream References - **PR #1239**: Add edit_file tool + file-change diffs - **PR #1670**: Add code-navigation tools (grep, glob, ls) + read_file line ranges - **Upstream commits**: `7443c36`, `1f00fff` - **Local paths**: `../odysseus_upstream/src/tool_implementations.py`, `../odysseus_upstream/src/tool_schemas.py`, `../odysseus_upstream/src/agent_tools/filesystem_tools.py` ## Current State Our fork has `read_file` and `write_file` (full file overwrite). No diff-based editing, no grep/glob/ls. ## Implementation 1. Port `edit_file` with unified diff output 2. Port `grep` tool (regex search with file matching) 3. Port `glob` tool (file pattern matching) 4. Port `ls` tool (directory listing) 5. Add line-range support to `read_file` 6. Register tools in agent tool index 7. Port relevant tests ## Priority High — essential for code-heavy workflows.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sleepy/odysseus#936
No description provided.