What is DriftLock?
DriftLock is a Mac app that keeps AI agents on the task you gave them. It blocks prompt injection, secret leaks and risky actions for Claude Code, GitHub Copilot CLI, Cursor, VS Code, Windsurf, Claude Desktop and AI in Chrome, Edge and Brave. Free to download, with an optional Pro plan. A Windows version and business accounts, managed from the DriftLock Console, are on a waitlist.
What is prompt injection in an AI coding agent?
Prompt injection is text hidden in something an agent reads, such as a library’s documentation, a blog post, a package README or a tool result, that tells the agent to do something you never asked for. Common goals are reading SSH keys or .env files and sending them somewhere. OWASP lists agent goal hijacking as the top risk for agentic applications.
Does DriftLock send my code or prompts anywhere?
No. DriftLock runs on your computer and makes its decisions locally. Your code, prompts and tool output are not sent to a DriftLock server. The AI activity view records which programs talk to which AI services, never what they say.
Is DriftLock only for developers?
No. Development teams get the most protection, because coding agents can run commands and read files. Marketing, design, research and other teams are covered by the browser extension in Chrome, Edge and Brave, which checks what they paste or upload into ChatGPT, Claude, Gemini and other AI sites for keys and secrets, and removes hidden instructions from pages an AI browser reads. IT manages both from the DriftLock Console.
Does DriftLock work offline or with local AI models?
Yes. DriftLock runs entirely on your computer, so blocking, rewriting and the audit trail never depend on the internet or on DriftLock servers. It keeps working on air-gapped networks and with locally hosted models such as Ollama or LM Studio. Each machine keeps its own record in a local database, and with the DriftLock Console a machine that was offline sends its backlog when it reconnects, with nothing lost or duplicated.
Can I let a blocked action through?
Yes, if you turn it on. DriftLock can pause the agent and ask in the DriftLock app: Allow once, Always allow (for that exact command or file, in that project) or Block. Allowing takes your secret passcode, which the guard checks as a signature, so a scripted click or a direct API call can’t approve anything. To allow something once you can also use a Google or Microsoft Authenticator code, and setting that up takes the passcode, so an agent can’t enroll its own. No answer in about two minutes keeps it blocked, a blocked request can’t be asked again that session, and attempts to change DriftLock or the agent’s settings are always blocked. On company plans an admin decides in the Console whether blocks are final, and every allowed action is in the audit log.
Is it safe to let an AI agent run autonomously with DriftLock?
Safer, yes. Auto-approve modes such as Claude Code with permissions bypassed remove the prompts that would normally stop a bad action, but DriftLock still checks every tool call first. That’s tested end to end with Claude Code’s bypass-permissions mode and Copilot CLI’s yolo and autopilot modes, so secret reads, writes outside the project and dangerous commands stay blocked. A session that reads content trying to give orders loses network access for the rest of the run. For unattended work, start it as a locked task: if DriftLock isn’t running, the agent can’t do anything. Company installs switch bypass mode off entirely.
Why not rely on the AI vendor’s own safety features?
Use them, but they protect one product, on the vendor’s terms. AI companies balance safety against keeping their tools capable and convenient, and each vendor’s controls stop at its own product. DriftLock is independent of every AI provider: it applies one set of rules you control across Claude Code, Copilot, MCP tools and AI in the browser, and its only goal is protecting the people and companies using them.
Which AI tools does DriftLock work with?
Claude Code and GitHub Copilot CLI through their hook systems; Claude Desktop, Cursor, VS Code and Windsurf through a guard in front of their local MCP tool servers; and Chrome, Edge and Brave through the DriftLock extension. Any other agent can connect through a documented JSON interface.
How is DriftLock different from Claude Code's built-in protections?
Claude Code's auto mode uses a classifier that Anthropic describes as best-effort, and it covers one agent. DriftLock adds deterministic rules the agent cannot argue with or turn off, removes injected instructions before the model reads them, and works the same way across every agent you use.
Does DriftLock stop all prompt injection?
No tool can. DriftLock stops injected instructions and the actions they try to trigger, such as reading secrets, running dangerous commands or sending data out. A document that simply states something false, without instructing the AI, can still mislead it. We list these limits openly.
Can an AI agent turn DriftLock off?
No. DriftLock denies any attempt by the agent it guards to stop, quit, unload or reconfigure it, or to call its local API. If DriftLock stops unexpectedly during a session, that session’s tools are blocked until you reopen it or quit it yourself. Only the user can turn it off.
How do companies manage DriftLock?
Business accounts are on a waitlist (join on the home page). The DriftLock Console sets security levels per team, adds custom blocks for keywords, file paths, commands, domains and AI services, pushes policy to every machine through MDM, and collects every block in one audit log. In managed mode DriftLock cannot be quit or disconnected.
How do I try DriftLock?
Download it free for Mac from agentdriftlock.com/download. It starts guarding your AI tools right away. For a Windows version or a business account, join the waitlist on the home page.