git404hub

what is agent-lock fr?

yeet-src/agent-lock — explained in plain English

Analysis updated 2026-05-18

36JavaScriptAudience · developerComplexity · 4/5LicenseSetup · hard

tl;dr

A Linux security tool that uses the kernel itself to confine an AI coding agent to one folder, while showing every file it tries to open live in your terminal.

vibe map

mindmap
  root((agent-lock))
    What it does
      Jails agent to one folder
      Blocks kernel level escapes
      Shows live file opens
    Tech stack
      JavaScript
      eBPF
      Linux kernel LSM
    Use cases
      Confine an agent to a repo
      Audit a new agent's behavior
      Review unattended agent runs
    Audience
      Developers using AI agents
      Security auditors
    Requirements
      Linux only
      BPF LSM kernel support
      Recent kernel with BTF

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Confine an AI coding agent so it can only read and write files inside one project folder

VIBE 2

Watch a live feed of every file an agent tries to open while it works

VIBE 3

Evaluate a new or untrusted AI agent by seeing what it reaches for outside its project

VIBE 4

Review afterward what an unattended agent run tried to access on your machine

what's the stack?

JavaScripteBPFLinuxBPF LSM

how it stacks up fr

yeet-src/agent-lockgaearon/create-react-appagentrhq/webcmd
Stars363635
LanguageJavaScriptJavaScriptJavaScript
Last pushed2019-06-17
MaintenanceDormant
Setup difficultyhardeasyeasy
Complexity4/51/53/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · hard time til it works · 1h+

Requires a Linux kernel with BPF LSM and BTF enabled, and currently expects the agent binary to be named a specific way.

You can use and modify this freely, but if you distribute it or a modified version, you must also release your changes under the same license and share the source code.

in plain english

agent-lock is a security tool for people running AI coding agents, such as Claude Code or Codex, on their own computer. Normally an agent runs with your full user account permissions and decides for itself which files it opens, which means a mistake or a bad instruction could lead it to read something sensitive like your SSH keys or cloud credentials. agent-lock takes that decision away from the agent and hands it to the Linux kernel itself, so the agent and every process it starts can only open files inside one folder you choose, no matter what it tries. It works on Linux using a kernel feature called eBPF LSM, which lets a small program attach directly to the moment the kernel opens a file and either allow it or block it. The same piece of code that enforces the rule also reports every file open, allowed or blocked, to a live dashboard in your terminal, so watching what the agent is doing and stopping it from misbehaving both come from the same source instead of two systems that could fall out of sync. Because the check happens inside the kernel after it has already resolved the real file path, tricks like using dots to climb out of a folder, following a symlink that points elsewhere, or other path games do not work around it. The dashboard shows a live summary of allowed versus blocked file opens, a ranked list of blocked attempts with sensitive targets like credential files flagged, and a running feed of file opens as they happen, all attributed to whichever process caused them. This is meant for developers who want to let an agent work on a real codebase while being confident it cannot wander into their home directory's private files, for anyone evaluating an unfamiliar agent before trusting it, or for anyone who wants to review what an agent reached for after running it unattended. Setup requires a fairly recent Linux kernel with specific BPF features enabled, and currently expects the agent binary to be named a certain way so the tool can recognize it. It is written in JavaScript and released under the GPL-2.0 license.

prompts (copy fr)

prompt 1
Help me check whether my Linux kernel supports the BPF LSM feature agent-lock needs.
prompt 2
Walk me through installing agent-lock and jailing my AI coding agent to a project folder.
prompt 3
Explain how agent-lock's escape attempt dashboard and blocked file list work.
prompt 4
Show me how to run agent-lock in audit mode to see what my agent would have accessed.

Frequently asked questions

what is agent-lock fr?

A Linux security tool that uses the kernel itself to confine an AI coding agent to one folder, while showing every file it tries to open live in your terminal.

What language is agent-lock written in?

Mainly JavaScript. The stack also includes JavaScript, eBPF, Linux.

What license does agent-lock use?

You can use and modify this freely, but if you distribute it or a modified version, you must also release your changes under the same license and share the source code.

How hard is agent-lock to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is agent-lock for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.