mergewarden

v0.9.0
io.github.sjh9714/mergewarden Checked 23 hours ago Published 4 months ago

Check whether a coding agent's changes stayed inside the scope it was given.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_change_scope Check whether changes stayed inside their declared scope

Compare the files a change actually touched against the paths it was supposed to touch, and report anything outside them. Also flags edits to agent-instruction files (AGENTS.md, CLAUDE.md, .mcp.json and similar), which change how every future agent run in the repository behaves. Use this before opening a pull request. Get changedPaths from `git diff --name-only` against the branch point. It runs the same engine as the MergeWarden GitHub Action on the same default policy, so a clean result here is what the gate will report. Deterministic and offline: no network, no token, no model call. Only…

ParameterTypeDescription
allowedPaths *arrayGlob paths the change was scoped to, e.g. ['src/auth/**', 'test/auth/**']. Take these from what the user actually asked for.
changedPaths *arrayRepository-relative paths actually changed, from `git diff --name-only`.
blockedPathsarrayGlob paths the change was explicitly told not to touch.
taskstringOne line describing what was asked for. Recorded verbatim, never interpreted.