sql-concat-watch

Reviewed at commit 0e4c0dd New version, not yet reviewed

After an edit that builds SQL by joining or interpolating strings, names each line, so the model passes the values as query parameters.

Made by
Kerem Gok
What we checked

After Claude edits or writes a source file, it checks the new lines for SQL built by joining or interpolating strings and tells Claude, and you, to use query parameters instead. By default it only reports. In an optional deny mode it also blocks git commit, push and merge while such lines remain. It stores only its settings.

Review details

Static review of the source at the pinned commit; not run. Hooks: session.start (registers /sql-concat-watch, reads settings, finds the git root), command.run for /sql-concat-watch (status, on, off, mode note|deny), tool.call for Edit and Write (after the edit succeeded, scans the new text with regexes and adds a context note to the result; rereads the edited file with $.fs.read), tool.call for Bash (only in deny mode: a git commit, push or merge command is denied while a reported file still has such lines; a commit is narrowed to staged files via git diff --cached), turn.complete (rechecks open files), prompt.submit (adds a note to the model's next prompt while findings stand). Runtime calls: $.process.run with fixed argv (git rev-parse --show-toplevel, git diff --cached --name-only -z), $.fs.exists and $.fs.read on files the model edited, $.store get and set, $.sidebar.set and clear (optional sidebar mod), $.ui.log. Deny mode is off by default, described in the description of the command and states there is no bypass. No network, no external hosts. Only source file extensions are scanned.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for sql-concat-watch

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/sql-concat-watch.svg)](https://modsforclaude.com/mods/sql-concat-watch/)

← All mods