metastazorg

Agentlanes — AI skill for Claude Code

AI community

Run several AI coding agents on one machine without collisions: file leases, job slots, an event log, and kernel-enforced write lanes on Linux (Landlock).

How to install Agentlanes

This entry records only its repository, not the path inside it, so there is no exact command to give. Open metastazorg/agentlanes and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentlanes does

Run several AI coding agents on one machine without collisions: file leases, job slots, an event log, and kernel-enforced write lanes on Linux (Landlock).

Alternatives in AI

  • Agent Kernel — Minimal kernel to make any AI coding agent stateful 334 ★
  • Cplt — Sandbox for AI coding agents 114 ★
  • Slopware Skills — Free, portable AI agent skills and plugins for Codex, Claude Code, and Agent Skills clients by Slopware Engine 34 ★

README

agentlanes

agentlanes demo: three agents share one file and one build slot, then a real Claude Code session is stopped by Landlock

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.

The problem

  • Two agents edit the same file at the same time and one silently overwrites the other.
  • Two agents start a full build or test suite at once and the machine runs out of memory.
  • Nobody, human or agent, can see who is working on what, or tell when another agent has finished.

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`.

60-second quickstart

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-`), and appends the agent instructions to `AGENTS.md` once, between `` markers.