Skip to content

Add experimental syntax_range tool - #157

Merged
yottadynamics merged 1 commit into
mainfrom
phase2-syntax-ranges
Jul 30, 2026
Merged

yottadynamics merged 1 commit into
mainfrom
phase2-syntax-ranges

Conversation

@yottadynamics

Copy link
Copy Markdown
Owner

Summary

Add an experimental offline syntax_range tool for structural range selection before anchored edits.

This change introduces a Go parser-backed syntax_range capability behind the new syntax_ranges experimental flag. It returns smallest-to-largest enclosing ranges plus read_file(anchors=true) hints, so the agent can safely flow from local structural targeting into edit_anchored without requiring an LSP server.

It also wires the feature through TUI, oneshot, and dispatch child registries, adds parser/tool/TUI tests, and documents how syntax_range relates to lsp_selection_ranges.

Related issue

None.

How was this tested?

  • go test ./internal/lsp ./internal/agent ./internal/tui
  • go test ./...
  • go vet ./...

Observed:

  • targeted parser/tool/TUI tests passed
  • full test suite passed
  • go vet ./... was clean

Checklist

  • go test ./... passes
  • go vet ./... is clean
  • Tests added or updated — a new capability ships with tests, a bug fix ships with a regression test
  • Docs updated in the same change if behavior or surface changed (relevant docs/ guide)
  • PR is focused on one logical change

@yottadynamics
yottadynamics merged commit 1ef3f58 into main Jul 30, 2026
5 checks passed
@yottadynamics
yottadynamics deleted the phase2-syntax-ranges branch July 30, 2026 01:47
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