Your agentproposes.Your phonedecides.
Leash puts a checkpoint for AI coding agents in your pocket. When an agent tries something risky, your phone buzzes, explains why in plain language, and waits for your answer.
of developers distrust the accuracy of AI tools. Only 33% trust it.
Source: Stack Overflow Developer Survey 2025A day with Leash
Start
Run your agent through Leash and set what the task may touch.
Work
Safe actions pass in silence. Risky ones buzz your phone.
Commit
Secrets, hidden text and workflow files are checked first.
Finish
A receipt goes into your pull request. Rewind is one tap away.
🎮 How to Use Leash Before Coding to Get Alerts
Follow this step-by-step developer workflow to ensure your workstation is protected and your phone receives real-time approval alerts before your AI coding agent touches the terminal or files.
Launch the Laptop Daemon
Open a terminal on your development workstation and start the background Leash daemon:
- The daemon launches the local control plane and opens the Leash Security Portal at
http://localhost:8765. - A 6-digit single-use pairing PIN and cryptographic QR code appear on screen.
Forward Daemon Port via ADB
Plug in your Android phone with USB debugging enabled for instant zero-latency link:
Type 6-digit code from laptop screen:
Prefix Agent Launch with daemon.cli run --
Before letting an autonomous agent execute tasks, prefix the launch command to attach the Leash guard:
leash/<session-id> so uncommitted host changes remain safe.
bash, sh, git, curl, npm, pip.
Code Naturally While Leash Guards in Real Time
Commands like
cat file.py, ls -la, git status, or npm test execute at native speed without interruption.
The moment the agent attempts dangerous actions:
- 🛑 Agent process instantly freezes on your laptop.
- 📳 Phone immediately wakes up & vibrates with distinct haptic pulse.
- 🧠 On-Device Gemma-2B AI analyzes the exact command and displays plain English risk summary.
- ⏳ 30-Second Fail-Closed Countdown begins on mobile screen.
npm install evil-preinstall-pkg
Authorize or Block from Your Phone
You have full control with cryptographic verification. Choose an action to simulate the real-time response:
Review & Export Zero-Trust PR Receipts
When your agent finishes its task, inspect the session audit trail or copy the tamper-evident PR receipt into GitHub:
What it catches before it runs
A plain reason, every time
Each risky command becomes one sentence you can act on, not a wall of shell.
It remembers where an action came from
If the agent just read untrusted text, the next risky action is rated higher and shows the source line.
Secrets stay fenced
Reads of .env files, ssh keys and cloud credentials are blocked. Canary files raise an alarm if touched.
Packages are checked first
Look-alike names, brand-new versions and install scripts show up before anything installs.
One tap to rewind
Leash snapshots your repo before a risky approved action. Roll it back from your phone.
A receipt for your pull request
Every command, approval and block, written as Markdown.
It fails closed
If your phone cannot be reached, dangerous actions are denied.
What Leash is not
Leash is a checkpoint at the shell, not a sandbox. A determined attacker needs OS-level isolation too. We test bypass tricks against it and say what gets through.
On the roadmap
- Egress allow-list
- Policy file and learning mode
- Agent-spawn guard
- Pairing with an OS sandbox