Skip to content

Conversation

@b-per
Copy link
Collaborator

@b-per b-per commented Oct 31, 2025

Not sure if we should merge this, but I am keen to start a discussion on adding this kind of tools.

Leveraging the existing scaffolding on how to call the LSP, this PR adds the ability to rename models using the LSP.

What the LSP allows is:

  • renaming the model name
  • renaming all the references to this model name in downstream models

The LSP doesn't rename references to models in the YAML files, but I think that it will do it in the future. So, leveraging the LSP would give us this ability "for free".

What the LSP does is return what parts of which files need to be udpated. This tool takes this information and then do the updates to the files by itself (approach 1).
There is an alternative approach (approach 2) where we just provide the files to be updated as context to the LLM and then let the LLM update the files by itself

The advantage of 1. is that we could technically call it from a MCP server with no text-editing capabilities (like Claude Desktop), but the drawback is that we need a lot of boilerplate code to manage editing the text.

If we are keen to add tools like this one we could also add a similar about renaming columns.

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