Scan your whole stack
Are you using agentlanes-cli?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.1
agentlanes-cli was last scanned on 24 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.1 LATEST | 24 Nov 2026 | No rules fired |
| 0.1.0 | 23 Nov 2026 | No rules fired |
Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A recorded run of ./demo.sh (real timing), then a replay of a real Claude Code session under agentlanes run. Regenerate with tools/make_demo_svg.py; video: docs/demo.mp4.
Coordination for several AI coding agents (Claude Code, Codex, Cursor, Aider, ...) working on one Linux or macOS machine.
agentlanes gives agents four small primitives for this: claims (leases on topics and paths), slots (an N-slot queue
for heavy commands), an event log that agents can block on, and a job queue. It is one Python package,
standard library only, no daemon. State is a directory of JSON files guarded by flock.
pip install agentlanes-cli # Python >= 3.9, no dependencies; the command is `agentlanes`
cd your-project
agentlanes init --claude-code --agents-md
agentlanes doctor # every line should say ok/info; anything else comes with a fix
init is safe to run again. It creates .agentlanes/ (this project's state, git-ignored by a .gitignore inside it),
merges a PreToolUse hook into .claude/settings.json without touching your other settings or hooks (the previous file
is kept as settings.json.agentlanes-backup-<time>), and appends the agent instructions to AGENTS.md once, between
<!-- agentlanes:begin/end --> markers. Other targets: --claude-md, --cursor (.cursor/rules/agentlanes.mdc),
--strict (see Fail-open or fail-closed).
From then on your agents (and you) work like this:
agentlanes claim login-page --paths src/login.py --pid self --desc "add OAuth button"
agentlanes who src/login.py # -> HELD by claude-4242 (login-page, since 14:02:11) ...
agentlanes slot heavy 1 -- make -j8 # waits its turn if another agent is already building
agentlanes release login-page
agentlanes status # agents, claims, slots, jobs, recent events on one screen
In Claude Code the hook refuses an edit to a path another agent has claimed, even if the agent forgot to check
(a real session). Run ./demo.sh to see three agents compete for one file and
one build slot (transcript: demo-output.txt); on Linux with Landlock it ends with a kernel-lane step.
On Linux, start an agent under agentlanes run and the kernel itself refuses writes outside its claimed paths, including
writes made through shell commands that no hook sees (a real Claude Code session):
agentlanes claim login-page --paths src/auth/ --desc "add OAuth button"
agentlanes run --allow-tmp --allow-common -- claude # writes only in src/auth/, its temp dir, its own config
| Command | What it does |
|---|---|
claim TOPIC [--paths a,b] [--pid self\|PID] [--desc T] [--ttl MIN] [--share] |
Take a named claim. Fails (exit 1) if another agent holds TOPIC or any overlapping path. A directory claim covers everything under it. --share allows overlap on purpose. |
release TOPIC |
Drop your claim. --force drops someone else's. |
renew TOPIC [--ttl MIN] |
Extend your claim. |
who PATH... |
Which claim covers these paths (exit 1 if any). |
check TOPIC / list [--json] / reap |
Is a topic held; list live claims; drop dead and expired ones now. |
Every claim expires after --ttl minutes (default 120). With --pid, the claim is a lease: it ends as soon as that
process exits, including on kill -9 or an OOM kill. --pid self means the coding-agent process this command runs
under (found by walking up the process tree to a known agent executable: claude, codex, cursor-agent, aider,
gemini, ...; add names with AGENTLANES_AGENT_NAMES=a,b). A recycled pid is detected by process start time.
Who you are (--by) defaults to $AGENTLANES_AGENT, else <agent>-<pid> of the enclosing agent, else $USER.
agentlanes slot NAME N [--wait SEC] [--mem-free MB] [--max-mem MB] -- COMMAND...
Runs COMMAND once one of N slots named NAME is free. Waiters are served in arrival order (FIFO); a waiter that dies
leaves the queue. The slot is a flock that COMMAND inherits, so it stays taken while COMMAND runs and the kernel frees
it when COMMAND dies, even if everything was SIGKILLed. A leftover holder record is shown as stale and cleaned.
--wait SEC: give up after SEC seconds (default 1800) with exit code 75.--mem-free MB: after getting the slot, wait until this much memory is available.--max-mem MB: kill COMMAND above this size. Uses a systemd user scope (MemoryMax) when one is available,
otherwise a watchdog that sums the RSS of the process tree every second and kills the group.COMMAND gets AGENTLANES_SLOT=<slot number> in its environment. Exit code is COMMAND's.agentlanes slots [NAME] [--json] shows holders, stale holders and waiters.
| Command | What it does |
|---|---|
events emit KIND [--topic T] [--msg TEXT] [key=value...] |
Append an event. Use dotted lower-case kinds, e.g. build.done. |
events tail [-n N] [--kind PREFIX] [--since 2h] [-f] [--json] |
Show recent events; -f follows. |
events wait --kind PREFIX [--topic T] [--by W] [--timeout SEC] |
Block until a new matching event; exit 124 on timeout. Use this instead of sleep loops. |
events stats [--since 24h] |
Counts per kind and per agent. |
agentlanes itself writes claim.add/renew/done/conflict/expire/reap/blocked, slot.acquire/release/timeout/stale/oom/mem_wait
and job.add/take/done/drop/requeue. The log is append-only JSON lines and rotates at 4 MB (AGENTLANES_EVENTS_MAX_BYTES).
jobs add TITLE [--prio N], jobs list [--all], jobs take [ID] [--pid self|PID|none], jobs done ID [--result T],
jobs drop ID [--why T]. Lower --prio is taken first. A taken job is tied to the taker's process; if it dies, the job
returns to the queue (job.requeue).
agentlanes status: running agents, claims, slots, jobs, last events and available memory.agentlanes agents [--all] [--json]: coding-agent processes with memory (process tree RSS), age and the claims they hold.AGENTLANES_NOTIFY_CMD (or --notify-cmd, or "notify_cmd" in <state>/config.json) to any shell
command. It receives the event as JSON on stdin for claim.conflict, claim.blocked, claim.reap, slot.stale,
slot.timeout, slot.oom and job.requeue (change with AGENTLANES_NOTIFY_KINDS=kind1,kind2). Example:
AGENTLANES_NOTIFY_CMD='jq -r .kind | xargs notify-send agentlanes'.agentlanes runagentlanes run [--claim NAME]... [--write PATH]... [--allow-tmp] [--allow-common]
[--no-net] [--allow-port N]... [--allow-bind N]... [--isolate] [--best-effort] [--dry-run] -- COMMAND...
Starts COMMAND (an agent such as claude or codex, a shell, a build) under a
Landlock ruleset that applies to it and to every process it
starts. No root, no container, no daemon: Landlock is an unprivileged Linux security module (Linux 5.13+).
--claim NAME, repeatable; default: every live claim held
by --by / $AGENTLANES_AGENT), the agentlanes state directory (so the agent can still claim, release and emit
events), --write PATH (repeatable), and with --allow-tmp a private temp dir exported as TMPDIR and deleted when
the command exits. Devices in /dev (terminal, /dev/null) stay writable but nothing can be created there;
/dev/shm is not writable.--allow-common also allows the per-user places agents and build tools write to, if they exist: ~/.cache,
~/.claude, ~/.claude.json, ~/.codex, ~/.cursor, ~/.gemini, ~/.aider, ~/.npm, ~/.local/state, ...
(extend with AGENTLANES_RUN_COMMON=path1:path2). It is a flag, not the default, because it is a wider lane than the
claim. claude -p also runs without it (it then cannot save its session history).--no-net denies TCP connect and bind; --allow-port 443 (repeatable) allows connecting to that port and implies
--no-net; --allow-bind N allows listening on N. Needs Landlock ABI 4 (Linux 6.7+); on older kernels run warns
and the network is not restricted. Landlock covers TCP only: UDP (including DNS) is not restricted.--isolate (ABI 6, Linux 6.12+): processes in the run cannot signal or connect to abstract unix sockets of processes
outside it.run refuses and says why.
--best-effort runs the command unconfined with a warning instead. agentlanes doctor prints the kernel's Landlock ABI.run asks for the ABI version and uses every right that
version knows (ABI 1 file writes, 2 cross-directory rename/link, 3 truncate, 4 TCP, 5 device ioctl, 6 scoping) and
warns about what an older ABI leaves open. --dry-run prints the exact rules.run.start (command, ABI, writable paths, network rule) and run.stop (exit code, duration). The exit
code is the command's.The lanes are fixed when the command starts. A claim the agent takes later does not widen a running agent's
sandbox: restart it, or run that sub-task under its own agentlanes run --claim NEW -- .... A nested run can only
narrow (a path must be allowed by every layer). A file (not directory) claim allows writing that file in place, but not
tools that replace it through a temp file and rename (sed -i, most editors); claim the directory for those.
First match wins: --state-dir DIR, $AGENTLANES_STATE_DIR, the nearest .agentlanes/ directory above the current directory
(create one with agentlanes init for per-project state), then $XDG_STATE_HOME/agentlanes (default ~/.local/state/agentlanes).
All agents that should see each other must use the same directory. Do not put it on a network filesystem: flock there
is not reliable.
| Agent | How agentlanes is enforced | Set up |
|---|---|---|
| Claude Code | Hook (PreToolUse on Edit/Write/MultiEdit/NotebookEdit). Tested with a real session. |
agentlanes init --claude-code |
| Codex | Hook (PreToolUse on apply_patch; file paths are read from the patch). Written to the Codex hooks documentation and unit-tested with sample payloads; not yet run in a real Codex session. |
examples/codex/config.toml + init --agents-md |
| Cursor | Hook, experimental (preToolUse with matcher Write). Cursor documents the event and the permission: allow/deny answer, but not the field that carries the file path, so the adapter looks for file_path, path or target_file. Not yet run in real Cursor. |
examples/cursor/hooks.json + init --cursor |
| Aider, other shell agents | Instruction-only. No pre-edit hook to attach to. | init --agents-md, then e.g. aider --read AGENTS.md |
Instruction-only means the agent is told to claim before editing and usually does, but nothing stops it if it does not.
agentlanes hook claude-code reads the hook JSON on stdin. When the target file is covered by a claim held by a
different agent it answers permissionDecision: "deny" with the holder and the claim's description as the reason, which
Claude sees and can act on. Unclaimed paths and the agent's own claims produce no output, so the normal permission flow
is unchanged. "Own claim" means the claim was made from the same Claude Code process (or with the same
$AGENTLANES_AGENT). The hook can go in .claude/settings.json (project, what init writes) or ~/.claude/settings.json
(user); see examples/claude-code/settings.json.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.