狙撃 · sniper

Code written in a chat tab, landing in the right file on disk.

A button on every code block in a browser chat. One click sends it to a small program on your own machine, which stages it for review before anything touches a file.

It comes two ways. Same relay, same console, same rules about what may touch a file — pick by how much you want to install.

The app recommended

One folder, one double-click, nothing else to install. One window with tabs: the chat sites hosted inside it with sniper already on every page, the review console as a tab beside them, your environments as tabs too. The relay sits in the tray.

Download sniperx 1.3.0 sniperx-1.3.0.zip · 76 MB · Windows 10/11 x64 · Mac soon · source included
sign in and agree to the terms once; instructions are inside the zip
Needs: nothing — no Python, no .NET to install no admin rights · no UAC nothing leaves your machine

手順 · How it works

  1. 01

    Unzip it anywhere

    Drag the folder wherever you like. It is 76 MB because it carries its own runtime — that is what "nothing else to install" costs.

  2. 02

    Double-click sniperx.exe

    It makes a key for this machine, starts the relay, sits down in the tray, and asks where you want to be: the sim, the review console, or your own browser.

  3. 03

    Open a chat tab

    Qwen, DeepSeek or Kimi, hosted inside the app, buttons already on every code block. No browser extension. Sign in once and stay signed in. + opens another tab; the console is one of them.

Prefer your own browser? The app hands it the same userscript the Python version does — install Tampermonkey, pick "my browser" at the front door (or the tray menu's install link), click Install when the tab opens, and use the sim or not as you like. Your Chrome extensions can ride along inside the sim too: its "extensions" menu loads any extension from its folder.

The userscript + Python

The original. For people who want it in their own browser, and want to read every line of what is running on their machine — a few Python files, one userscript, and the documentation. Nothing compiled.

Download sniper 0.38.0 sniper-0.36.0.zip · 156 KB · Windows · Mac soon · source included
sign in and agree to the terms once; instructions are inside the zip
Needs: Python 3 and: Tampermonkey no admin rights · no UAC nothing leaves your machine

手順 · How it works

  1. 01

    Unzip it anywhere

    Drag the folder wherever you like. Then double-click START-HERE.bat — it checks what you need and starts everything.

  2. 02

    Click Install

    A tab opens offering a userscript, with your key already in it. Click Install. That is the only setup step you do by hand.

  3. 03

    Open a chat

    Go to chat.qwen.ai or chat.deepseek.com and reload. Every code block now has a → Claude button.

How a thing on the shelf gets made

The pieces on the shelf carrying a red seal were written in a chat tab and placed on disk exactly this way. Nothing reached a file without being looked at first.

Ask

Describe it in a chat tab.

Snipe

One click sends the code block to your own machine.

Review

Staged, backed up, ledgered. You decide where it lands.

Play

Reload. It is on the shelf.

Where the text goes

your chat tab   --click-->   127.0.0.1:7355   (loopback only, on your PC)
   |
   +--> code        --> staged      you review it, then it lands on disk
   +--> whole page  --> deployed    live immediately, and written to the ledger
   +--> prose       --> context     kept as intent, never placed as a file
No credential is ever handled. The relay never logs in to anything and never touches an API. The browser you are already signed into does the reading, and forwards only the text you point at. The same is true of the sim: it is a browser view inside the app, and you sign in to the chat site yourself.

Already installed?

GET 127.0.0.1:7355/health

Runs in your browser, against your own machine. Nothing is sent anywhere. Works for either version — they answer on the same port.

Whose it is

The source ships in the zip so you can read every line, and that is the deal: read it, run it, change it for yourself. Not redistribute it, not put it in another project. Downloading asks you to sign in once and agree to the terms, on the record. Playing and trying things asks nothing.

What's in the box

Either zip is the whole thing — the relay, the userscript, the review console, and the full documentation. INSTALL.txt is the short version; README.md is the real one: why it works this way, what the safety properties are, how to point it at a chat site it has never seen. The Python zip also carries the tests. The app's relay and queue are C#; the judgement about text lives in snipercore.dll, C++ measured against the Python original line for line.

It reads code blocks other tools can't, too — Qwen renders code into a full editor rather than as text, so only the lines on screen exist at all. Sniper asks the editor instead of scraping the screen, and refuses a partial capture rather than handing you a file with holes in it.