agent-lock installs `alock`, a CLI that coding agents (Claude Code, Codex, Cursor, sub-agents of one session, or agents on several machines) can run before they write: `alock acquire ` claims a path, and any overlapping claim is refused with who holds it, since when, and why. Locks are Markdown documents kept in Redis (shared across machines) or in a file store inside .git, keyed by repository and branch. Identity comes from the agent session, crashed holders are reaped or orphaned with their notes, and macOS can freeze files outright with --enforce. Used by OpenLanes to keep concurrent agents from overwriting each other. Since 4.0 every command is also a Ruby method on Agent::Lock::Facade, with a block form of acquire that releases afterwards, and an opt-in async mode that returns futures (it needs the concurrent-ruby gem).
Required Ruby Version
>= 4.0
Authors
Konstantin Gredeskoul
Versions
-
4.0.0
-
source
- 4.0.0 source November 29, 2026 (314 KB)
-
-
3.1.0
-
source
- 3.1.0 source November 24, 2026 (56 KB)
-
-
3.0.0
-
source
- 3.0.0 source October 14, 2026 (52.5 KB)
-
-
2.1.0
-
source
- 2.1.0 source September 30, 2026 (52 KB)
-
-
2.0.0
-
source
- 2.0.0 source September 21, 2026 (50 KB)
-