Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Weavatrix Refactor Js

by sergii-ziborovversion 0.1.6i★ 0iRuns on your computerOfficial site ↗
Registry nameio.github.sergii-ziborov/weavatrix-refactor-js

How to install

What it does

Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Other

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness7/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score7/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Weavatrix Refactor Js. Follow https://mcp.popnx.com/i/sergii-ziborov-weavatrix-refactor-js.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Weavatrix Refactor Js for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "weavatrix-refactor-js": { "command": "npx", "args": [ "-y", "weavatrix-refactor-js" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Weavatrix Refactor Js tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "weavatrix-refactor-js": {
          "command": "npx",
          "args": [
            "-y",
            "weavatrix-refactor-js"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Weavatrix Refactor Js and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Weavatrix Refactor Js or shows a Weavatrix Refactor Js tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • WEAVATRIX_ALLOW_SOURCE_EDITS Set to 1 to authorize apply_edit_plan and rollback to write source files; unset, the refactor tools stay preview-only
  • WEAVATRIX_REFACTOR_HOME Optional directory for the rollback snapshot store; defaults to a per-repo location
  • WEAVATRIX_PRECISION Core semantic precision: lsp (default) or off

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Weavatrix Refactor Js yet

Weavatrix Refactor Js runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Weavatrix Refactor Js

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself
  • Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

B · Others in Other that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Weavatrix Refactor Js for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user weavatrix-refactor-js -- npx -y weavatrix-refactor-js 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Weavatrix Refactor Js tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user weavatrix-refactor-js -- npx -y weavatrix-refactor-js
  4. Type /mcp in Claude Code

    You should see Weavatrix Refactor Js listed as connected

  5. Try it

    Use Weavatrix Refactor Js and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Weavatrix Refactor Js or shows a Weavatrix Refactor Js tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • WEAVATRIX_ALLOW_SOURCE_EDITS Set to 1 to authorize apply_edit_plan and rollback to write source files; unset, the refactor tools stay preview-only
  • WEAVATRIX_REFACTOR_HOME Optional directory for the rollback snapshot store; defaults to a per-repo location
  • WEAVATRIX_PRECISION Core semantic precision: lsp (default) or off

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Weavatrix Refactor Js for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "weavatrix-refactor-js": { "command": "npx", "args": [ "-y", "weavatrix-refactor-js" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Weavatrix Refactor Js tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Cursor’s MCP settings file

    ~/.cursor/mcp.json

    Paste these settings, fill in the empty values and save

    {
      "mcpServers": {
        "weavatrix-refactor-js": {
          "command": "npx",
          "args": [
            "-y",
            "weavatrix-refactor-js"
          ]
        }
      }
    }
  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Weavatrix Refactor Js and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Weavatrix Refactor Js or shows a Weavatrix Refactor Js tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • WEAVATRIX_ALLOW_SOURCE_EDITS Set to 1 to authorize apply_edit_plan and rollback to write source files; unset, the refactor tools stay preview-only
  • WEAVATRIX_REFACTOR_HOME Optional directory for the rollback snapshot store; defaults to a per-repo location
  • WEAVATRIX_PRECISION Core semantic precision: lsp (default) or off

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Weavatrix Refactor Js for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "weavatrix-refactor-js": { "type": "stdio", "command": "npx", "args": [ "-y", "weavatrix-refactor-js" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Weavatrix Refactor Js tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open VS Code’s MCP settings file

    MCP: Open User Configuration

    Paste these settings, fill in the empty values and save

    {
      "servers": {
        "weavatrix-refactor-js": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "weavatrix-refactor-js"
          ]
        }
      }
    }
  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Weavatrix Refactor Js and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Weavatrix Refactor Js or shows a Weavatrix Refactor Js tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • WEAVATRIX_ALLOW_SOURCE_EDITS Set to 1 to authorize apply_edit_plan and rollback to write source files; unset, the refactor tools stay preview-only
  • WEAVATRIX_REFACTOR_HOME Optional directory for the rollback snapshot store; defaults to a per-repo location
  • WEAVATRIX_PRECISION Core semantic precision: lsp (default) or off

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Weavatrix Refactor Js💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user weavatrix-refactor-js -- npx -y weavatrix-refactor-js

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "weavatrix-refactor-js": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js"
      ]
    }
  }
}

Values you fill in

  • WEAVATRIX_ALLOW_SOURCE_EDITS env
    Set to 1 to authorize apply_edit_plan and rollback to write source files; unset, the refactor tools stay preview-only
  • WEAVATRIX_REFACTOR_HOME env
    Optional directory for the rollback snapshot store; defaults to a per-repo location
  • WEAVATRIX_PRECISION env
    Core semantic precision: lsp (default) or off

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
39/wk
Connection
Runs on your computer
Latest versioni
0.1.6
Categoryi
Other
Published to registryi
Aug 10, 2026
Code last changedi
Aug 24, 2026
Maker
sergii-ziborov
Packages
npm: weavatrix-refactor-js
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Weavatrix, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 3 months ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for weavatrix-refactor-js@0.1.6

Checks only this package version, not every dependency · checked Nov 16, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/sergii-ziborov-weavatrix-refactor-js.svg)](https://mcp.popnx.com/en/servers/sergii-ziborov-weavatrix-refactor-js)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Otheri

  • More stars than 0% of the other 20653 servers in this category
  • Published to the registry more recently than 16% of the other 20653 servers in this category
  • Basic checks equal to or better than 99% of the other 20653 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Weavatrix Refactor Js safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 3 months ago, and the latest version (0.1.6) reached the registry 3 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

by koala73Widely used★ 90.9KUpdated 3 days ago

Runs in the cloud✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 2 months ago

Runs in the cloud✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 30 days ago

Runs in the cloud✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Runs in the cloudRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Runs in the cloud✓ service owner · jitsu.com
Compared with similar ones
This one
Weavatrix Refactor Js
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/41/44/4
LicenseMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Weavatrix Refactor JS

Part of the Weavatrix ecosystem. This repository preserves the explicit JavaScript refactoring line.

This is the JavaScript refactoring engine of Weavatrix, continued as

weavatrix-refactor-js. The

weavatrix-refactor

package ships the native Rust MCP host built on

weavatrix-rust and the

weavatrix-edit / weavatrix-refactor-plan / weavatrix-worktree crates.

This package continues that version line: weavatrix-refactor@0.1.5 was the

last JavaScript release under the old name, and weavatrix-refactor-js@0.1.6

picks up from it. Install weavatrix-refactor-js, or pin

weavatrix-refactor@0.1.5, to stay on the JavaScript implementation.

Evidence-backed, transactional refactoring for coding agents.

weavatrix-refactor-js is the write-capable member of the JavaScript family. It combines the complete read-only weavatrix-js code-intelligence MCP with 11 refactoring tools that can prove a change, preview it against the current working tree, apply it atomically, refresh the graph, and roll it back.

Engine boundary: this package hosts the weavatrix-js engine. It does not

use the native weavatrix-rust engine, and installing both packages does not

silently upgrade this one's analysis layer. Its state lives in

~/.weavatrix-refactor-js, kept separate from the Rust host's so the two

never share a lock, a token store, or a rollback journal.

It is substantially more than a rename wrapper:

  • semantic JS/TS rename through the bundled language server;
  • SQL table and field rename with schema-aware evidence;
  • strict graph-plus-lexical rename for Python, Rust, Go, Java, C#, and Solidity;
  • several related JS/TS renames merged into one atomic transaction;
  • signature, symbol-body, import, bulk-replace, move, and delete-safety workflows;
  • byte-exact file hashes, before text, provenance, uncertainty, and graph revision in every applyable plan;
  • stale-tree detection, repository locking, rollback bundles, and automatic rollback after a mid-write failure;
  • architecture and cycle projection before structural moves;
  • post-change blast-radius and verification tools inherited from the core.

Why this is a separate package

The MIT weavatrix-js core is physically read-only: its published artifact has no repository source-write path. This package is the explicit write boundary. Installing it and selecting its refactor profile makes the edit capability visible; without this package, the server cannot modify source.

The split is a safety property, not packaging cosmetics:

weavatrix-js core       weavatrix-refactor-js                 repository

read-only evidence -> plan + preview + confirmation -> atomic write graph / LSP / audit hashes / provenance / rollback refreshed graph

Architecture

The implementation is a ports-and-adapters system with one-way boundaries:

edit-plan model  <-  filesystem / lock / token adapters

^ ^ | | plan engines -> preview / apply / rollback workflows -> MCP adapter

  • Model validates the frozen weavatrix.edit-plan.v1 envelope and applies byte-exact edits as pure string transformations.
  • Platform adapters own real-path containment, atomic replacement, repository locks, single-use tokens, and durable rollback bundles.
  • Plan engines compute rename, signature, symbol, import, move, delete, and bulk-replace evidence without owning the write workflow.
  • Application workflows bind a preview to the current repository, issue and consume confirmation tokens, apply under a lock, and restore on failure.
  • MCP adapter composes the 11 refactor tools with the read-only weavatrix-js catalog and exposes one stdio server.

The checked-in strict architecture contract enforces zero runtime cycles, files no longer than 300 lines, and functions no longer than 100 lines. It has no exceptions or ratchet baseline.

What makes the refactor workflow different

An ordinary editor rename answers: "Which text edits should I make now?" Weavatrix Refactor also answers:

QuestionEvidence returned
Is this the exact symbol?Stable graph symbol id plus parser/LSP selection range
Which references are proven?Per-edit provenance: EXACT_LSP, RESOLVED, EXTRACTED, or LEXICAL_EXACT
What was not proven?Explicit uncertainReferences, notModified, warnings, and PARTIAL completeness
Which files were even looked at?The rename session seeds every graph-declared reference plus every indexed file whose text contains the identifier; anything it could not open is named and forces PARTIAL
Did the tree change after preview?File sha256 plus exact before text rechecked under the write lock
Can several renames partially succeed?No. Related renames are conflict-checked and applied as one transaction
What happens after a disk/write failure?Already-written files are restored; a durable rollback bundle remains
Will a move worsen architecture?Projected runtime cycles, boundary violations, improvements, and blast radius
Did the refactor preserve behavior-shaped structure?Refreshed graph plus verified_change caller/import/reference conservation

The system fails closed when proof is insufficient. It never upgrades an INFERRED edge into an applyable edit and never hides an ambiguous reference.

The complete rename workflow

rename_symbol and rename_related_symbols are complete operations, not PLANNED-only helpers. Each method owns both phases.

1. Preview

Call the rename method normally:

{

"symbol": "src/users.ts#getUser@12", "new_name": "getCustomer" }

The method computes the rename, validates every plan file against the working tree, and returns PREVIEW_OK with a short-lived confirmToken. Preview never writes source and does not require the environment write gate.

2. Apply through the same method

Repeat the same operation inputs and add the confirmation:

{

"symbol": "src/users.ts#getUser@12", "new_name": "getCustomer", "mode": "apply", "confirm_token": " " }

The tool recomputes the deterministic plan, verifies that the token belongs to that plan and repository, takes the repository lock, rechecks hashes and before text, writes a rollback bundle, and applies every edit bottom-up.

The same contract applies to a coordinated set:

{

"renames": [ {"symbol": "src/api.ts#getUser@8", "new_name": "getCustomer"}, {"symbol": "src/api.ts#getOrder@20", "new_name": "getPurchase"} ] }

rename_related_symbols detects overlapping edits, chains, swaps, shadowing risk, and per-sub-rename failure before it issues a token. Apply is one atomic multi-file operation.

Refactoring tools

Complete write workflows
ToolWhat it actually does
rename_symbolCross-language preview/confirm/apply rename. Dispatches to exact JS/TS LSP, SQL schema, or strict graph+lexical backends; returns honest backend completeness and every uncovered reference.
rename_related_symbolsCoordinates up to 50 JS/TS symbol renames in one shared language-server session and one atomic edit plan. Detects conflicts, chains, swaps, snapshot drift, and any failed sub-rename before writing.
apply_edit_planGeneric two-phase executor for weavatrix.edit-plan.v1 envelopes from the other tools or weavatrix-online. Preview issues a plan-bound token; apply writes atomically with rollback.
rollback_last_applyRestores the latest pre-apply bundle. Refuses if post-apply files drifted; retries converge after an incomplete restore.
Proven plan producers
ToolWhat it actually does
change_signatureAdds or removes a JS/TS function or method parameter. Performs byte-exact declaration and call-argument surgery; spread calls and value-requiring additions remain explicit uncertainty.
edit_symbolUses the indexed parser range for replace_symbol_body, insert_before_symbol, or insert_after_symbol. JS/TS output is parse-gated; line endings and UTF-16 coordinates are preserved.
bulk_replaceTwo-stage, occurrence-selective replacement over indexed files. First returns stable occurrence ids; the second call accepts chosen ids or an exact expected count and emits a hash-bound plan. Literal mode is the default; regex replacements use real capture expansion.
organize_importsRemoves only provably unused named JS/TS imports. Default and namespace imports stay uncertain; side-effect imports are untouched; sorting is deliberately left to the formatter.

These plans are applied with apply_edit_plan, using the same preview, token, atomic-write, and rollback protocol as rename.

Structural review and safety tools
ToolWhat it actually does
move_fileBuilds a JS/TS relocate review: rewrites importer specifiers and the moved file's own relative imports, then projects architecture effects. File renaming itself remains an explicit editor/agent action, so this is intentionally not an apply envelope.
move_symbolProjects a declaration move without inventing byte edits. Reports introduced/removed runtime cycles, target-file dependencies, architecture violations or improvements, and blast radius.
delete_readinessReturns safe: true, false, or UNPROVEN with known references, dynamic/reflection risks, confidence, and the declaration span. Exported symbols are capped at UNPROVEN; deletion is never automated.

Language and proof matrix

SurfaceBackendApplyable provenanceCompleteness contract
JavaScript / TypeScript renameBundled TypeScript language serverEXACT_LSPCOMPLETE only when every file that could mention the symbol was opened in the rename session and proven; any candidate left out forces PARTIAL
SQL table renameSchema-aware SQL scanner across SQL and host filesEXTRACTED / LEXICAL_EXACTReports every skipped or ambiguous reference
SQL field renameDefinition-safe SQL backendProven definition edits onlyUsages remain UNPROVEN rather than guessed
Python / Rust / Go / Java / C# / Solidity renameIndexed graph references plus exact lexical location on the recorded lineEXTRACTED / LEXICAL_EXACTAlways PARTIAL; ambiguous lines are never edited
JS/TS signature and importsParser plus graph call/reference evidenceEXTRACTED / RESOLVEDExplicitly partial where graph reach cannot prove absence
Symbol-anchored editIndexed parser ranges for every indexed languageEXTRACTEDJS/TS parse gate; other languages retain the parser-range evidence boundary

Edit-plan proof envelope

Every applyable plan uses weavatrix.edit-plan.v1. Its load-bearing fields are:

  • operation and graph revision;
  • repository-relative target paths only;
  • sha256 of every target file;
  • exact 1-based line and UTF-16 character ranges;
  • exact before and after text;
  • per-edit provenance;
  • uncertainReferences, notModified, warnings, and completeness.

The applier additionally protects against:

  • absolute paths, traversal, .git casing/trailing-dot tricks, NTFS streams, and escaping symlinks/junctions;
  • non-UTF-8 or oversized files;
  • overlapping edits, stale ranges, lone surrogates, and edits that split surroga

Only the beginning is shown; read the rest in the repo