Lasik

Developer tools

BLA blinds your agent. LASIK gives it its sight back. Static de-blinding CLI + MCP server that undoes BLA (Blind LLM Agents) hardening so coding agents and REA can read the real code again. Never executes the target.

Your AI app calls the Lasik MCP server, which does the developer tools work and sends the result back to the chat.

About Lasik

Lasik is a community MCP server from pktq, filed in our directory under developer tools. BLA blinds your agent. LASIK gives it its sight back. Static de-blinding CLI + MCP server that undoes BLA (Blind LLM Agents) hardening so coding agents and REA can read the real code again. Never executes the target.

Lasik runs on your own machine: your AI app starts it with the command npx -y lasik-agents and talks to it over standard input and output.

At a glance

Publisher
pktq (community)
Runs
Locally on your machine
Install from
Node.js package on npm: lasik-agents
Written in
TypeScript
License
MIT
GitHub stars
166

How to set up Lasik

  1. Install Node.js on the machine that runs your AI app, because Lasik starts with npx and downloads its package on first run.
  2. Check the Lasik README for keys or settings; the registry lists none that Lasik requires.
  3. Add Lasik to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Lasik tools to confirm the connection.
  5. Run one read-only task with Lasik first, and keep your app asking before each tool call until the results look right.

Lasik compared with similar servers

  • OpenFate Bazi by openfate-ai has fewer GitHub stars than Lasik (166 against 166); both are community servers, and both run locally.
  • Glean Remote by gleanwork has fewer GitHub stars than Lasik (166 against 166); both are community servers, and both run locally.
  • Piia Engram by Patdolitse has fewer GitHub stars than Lasik (166 against 166); both are community servers, and both run locally.

Before you connect Lasik

  • Give Lasik its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Lasik tool call until you trust what it does with them.
  • Treat text that Lasik fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Lasik on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Lasik

How marketing and sales teams put Lasik to work, by company size. Pick the size closest to yours and start Lasik on one use case.

Small business

  • A small business with a developer can use Lasik to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Lasik to explain and fix a marketing site issue without context switching between tools.
  • Lasik runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Lasik to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Lasik to keep scripts and automations documented and versioned as they change.
  • Start Lasik on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Lasik with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Lasik so web and marketing engineering share one reviewed way of working with AI.
  • Lasik is a community server, so have security review the code and pin a version before Lasik touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Lasik README

From pktq/lasik on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

English · 简体中文 · 日本語 · 한국어 · Español

Static deobfuscation for anti-agent hardening.
LASIK removes BLA protection layers so coding agents and analysis tools can read the real program.

0.3: structural detection. Protection is identified by what it does, not by its names, so renamed builds heal too. Benchmark

How it works · Benchmark · Changelog


LASIK reads a protected build, proves which parts are protection (opaque predicates, encrypted strings, decoy code, tamper checks, binary padding, prompt-injection text), removes them, and writes a clean copy. It never runs the input.

Highlights

  • 1,262× fewer tokens on the public BLA CrackMe corpus: about 21 million down to 17 thousand.
  • Proof-based. A transform runs only when LASIK can prove it preserves behaviour. Unprotected files come back byte-identical.
  • Structural detection. Protection is recognised by behaviour, not identifiers; a renamed-build benchmark runs in CI.
  • Static only. No eval, no sandbox, no WebAssembly instantiation; safe on hostile input.
  • Prompt-injection firewall for text planted to steer the model.
  • 21 formats: JavaScript and TypeScript bundles, inline HTML, WebAssembly, Electron ASAR and fuses, source maps, Python and .pyc, native ELF/PE/Mach-O, Bun, SQLite, safetensors and GGUF, PCAP, JVM, .NET, BEAM, EVM, PTX, ZIP/APK/DEX, plists, IL2CPP and UF2 firmware.
  • Name recovery where the program still publishes the original name (exports, imports); neutral names elsewhere.
  • Agent integration: CLI, MCP server for Claude Code, Cursor, Codex and seven more, and a library API.

Installation

npm install -g lasik-agents     # or run any command with npx lasik-agents

Requires Node.js 20.19 or later. To build from source: git clone https://github.com/pktq/lasik && cd lasik && npm ci && npm run build.

Usage

Scan a build, then write a cleaned copy:

$ lasik scan bench/bla-crackme
Verdict: BLINDED · blindness 100/100 · 15 file(s) carry BLA artifacts
AI-evasion techniques found: 24
Sight restored: 1.8 MB → 37.5 KB, ~21,104,859 → ~16,718 tokens

$ lasik heal ./dist             # writes a cleaned copy to ./dist.lasik

Point your agent or analysis tool at the healed copy, for example REA:

npx -y rea-agents@latest analyze-javascript-application "$PWD/dist.lasik" --json

Other commands: lasik firewall (redact planted instructions from any text), lasik bench, lasik doctor. Add --json or --md for machine-readable reports and --fail-on blinded to gate CI.

In your coding agent

lasik setup                     # registers the MCP server; --dry-run to preview, --remove to undo
Tool
lasik_scan Protection layers in a file or folder, a 0–100 blindness score and the techniques found
lasik_read One file with protection removed, for the agent to read instead of the original
lasik_heal A cleaned copy of a whole app
lasik_firewall Planted instructions redacted from any text

The repository also ships an agent skill for agents that encounter protected builds.

Benchmark

The public BLA CrackMes, vendored unchanged in bench/bla-crackme:

CrackMe Files Before After Tokens (estimated)
v6 3 303 KB 4.9 KB 6,954,989 → 1,398
v7 5 743 KB 13.6 KB 197,561 → 3,483
v8 3 362 KB 6.7 KB 6,972,491 → 4,748
v9 4 381 KB 7.4 KB 6,977,670 → 4,941

On a project we hardened ourselves with the published bla-agents@3.2.1, one file per format (github.com/pktq/lasik/blob/main/docs):

BLA run Files Original BLA-hardened After LASIK Tokens (estimated) Result
Defaults 21 151.9 KB 31.1 MB 150.9 KB 32,154,076 → 152,102 21/21 healed, 11 byte-identical
All opt-in layers 21 151.9 KB 31.2 MB 151.0 KB 32,178,121 → 152,197 21/21 healed, 10 byte-identical

Per-file numbers, the method and its caveats are in docs/benchmark.md. LASIK makes the CrackMes readable; it does not publish their solutions.

Resilience

npm run bench:renamed heals the same builds twice: as shipped, and with every generated identifier, comment, WASM section, long export name and ASAR path respelled and commutative operands reordered, with behaviour unchanged. Because detection is structural, both heal to nearly the same result. CI fails if the respelled run removes more than one point less.

Format As shipped: removed Respelled: removed
JavaScript / TypeScript 98.78% 98.09%
HTML 99.29% 99.17%
WebAssembly 99.98% 99.98%
Electron ASAR 99.998% 99.96%

How it works

Layer What LASIK does
Opaque predicates Proves constant conditions with a known-bits analysis and drops the dead branches
Anti-strip interlocks Evaluates the check on a closed-subset interpreter and folds it before anything is removed
Encrypted and split literals Decodes string tables with the key shipped beside them; re-joins split strings and integers
Decoys Removes everything unreachable from real entry points
Tamper and domain locks Removes them and reports the lock's terms
Runtime noise Drops state churn and status blocks that nothing reads
Renamed identifiers Restores names the program exports or imports; neutral names for the rest
Padding and planted data Strips padding, trailers and planted entries from binaries, databases, models and archives, and rebuilds offsets and checksums
Planted instructions Redacts them with 40 firewall rules

Details are in docs/how-it-works.md. Two independent soundness reviews searched for inputs where healing changes behaviour or touches an unprotected file; every case found is fixed and pinned in tests/soundness.test.ts.

Format coverage

Pinned to BLA 3.2.2. 59/63 BLA shield files fully healed; 44 more emit nothing into artifacts. Full per-file table: docs/coverage.md.

Surface Status
.NET assembly ✅ healed
Android APK ✅ healed
Android DEX ✅ healed
Apple plist ✅ healed
Bun standalone ✅ healed
Electron ASAR ✅ healed
Erlang BEAM ✅ healed
EVM bytecode ✅ healed
Firmware UF2 ✅ healed
GPU PTX ✅ healed
JavaScript / HTML 🟡 partial
JVM class ✅ healed
Mobile game (DEX / IL2CPP) ✅ healed
Native ELF / PE / Mach-O 🟡 partial
PCAP ✅ healed
Prompt text ✅ healed
Python ✅ healed
Safetensors / GGUF ✅ healed
Sidecar entanglement ✅ healed
Source maps ✅ healed
SQLite ✅ healed
WebAssembly ✅ healed
ZIP / JAR / APK ✅ healed

Limitations

  • Information the protection destroyed (local names, comments, original source maps, overwritten sections) cannot be recovered; LASIK reports it rather than inventing it.
  • Healers are validated on real BLA 3.2.1 output for 21 formats (tests/fixtures/bla-3.2.1); Go, Flutter, Bun, BEAM, APK/DEX and IL2CPP so far on fixtures built from BLA's source.
  • New protection techniques can need an update. Upstream changes are tracked weekly (coverage/bla.json), and builds protected with earlier versions stay supported.

Responsible use

LASIK is a deobfuscator. Use it on your own software, on malware and threat samples, in CTFs, and in audits you are authorised to perform. Removing protection from software you have no rights to can breach its licence or laws such as DMCA §1201. See DISCLAIMER.md.

Contributing

Bug reports with a sample (or lasik scan --json output) are the most useful contribution. See CONTRIBUTING.

Also available in 简体中文 · 日本語 · 한국어 · Español.

License

MIT. The benchmark corpus is © BLA Contributors, MIT. LASIK is not affiliated with BLA or REA.

Questions about Lasik

What is the Lasik MCP server?

BLA blinds your agent. LASIK gives it its sight back. Static de-blinding CLI + MCP server that undoes BLA (Blind LLM Agents) hardening so coding agents and REA can read the real code again. Never executes the target. Lasik is maintained by pktq on GitHub at pktq/lasik, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Lasik MCP server?

Add Lasik to your AI app's MCP config with the command npx -y lasik-agents. In Claude Code, run claude mcp add --transport stdio lasik -- npx -y lasik-agents. To run Lasik this way you need Node.js installed.

Does Lasik need an API key?

The registry lists no required keys for Lasik. Check the Lasik README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Lasik an official MCP server?

No. Lasik is a community server maintained by pktq. Community servers can be excellent; read the code and the open issues before you give Lasik access to company data.

What license is Lasik under?

Lasik is released under the MIT license, according to its GitHub repository. The license covers the code of Lasik; the service it connects to has its own terms.