beacon
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@beaconcheck if anyone is editing src/app.ts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π°οΈ Beacon
Real-time presence & collision-avoidance for parallel AI coding agents
Run two, five, ten Claude Code sessions on the same repo at once β and never let them clobber each other's work again.
The problem
Running multiple AI coding agents in parallel is the new normal β one session refactors the API, another writes tests, a third bumps configs. It's a huge speedup, until two of them edit the same file, or one runs git checkout / git stash and silently yanks the files out from under the others. You discover the collision only after work is lost.
Agents are flying blind. They can't see each other.
Related MCP server: ACDP
What Beacon does
Beacon is a tiny local service that gives every agent a shared, real-time picture of who is touching what β and warns them the instant two of them overlap.
π Mutual awareness β every session reports what it's editing; others can see it live.
β‘ Collision warnings, in-context β when an agent is about to edit a file another agent is already in, Beacon injects a one-line heads-up into that agent's own context, before the edit.
πͺ Guards risky shared-tree ops β
checkout/reset --hard/stash/rebase/clean, andgit add -A/commit -a(which sweep up another agent's uncommitted work), while another session is editing the tree β the agent is warned (or asked to confirm).π Flags redundant builds/deploys β if a build or deploy is already running in a directory, a second agent kicking off another one is warned that it's just burning CPU/Docker. Parallel is fine; redundant is wasteful.
π Live dashboard β every active agent in real time, color-coded per session, with per-row details, a light/dark toggle, optional grouping of edits by session or conversation turn, and a Settings panel (update checks, start-on-login, per-day log viewer).
πͺΆ Weightless & invisible β zero dependencies, 100% local, and it never blocks your work. No conflict? You never notice it's there.
Safe by design: Beacon is advisory. It fails open β if the daemon is down or anything errors, your session behaves exactly as if Beacon weren't installed. It never denies an edit by default, and in the common (no-overlap) case it adds zero tokens to your agent's context.
Quick start
# 1. Get it (Node β₯ 18)
git clone https://github.com/a1473838623/agent-beacon.git && cd agent-beacon
npm link # puts the `beacon` command on your PATH (or: npm i -g agent-beacon)
# 2. Wire up Claude Code + start the daemon
beacon init # GLOBAL by default β every project on this machine is covered
beacon start -d # start the local daemon (background)
# 3. Watch it live
open http://127.0.0.1:4517That's the whole setup. Every new Claude Code session on this machine now reports activity automatically β no per-project steps, no per-session steps, no prompts to remember.
Open a second session, have both edit the same file, and watch the overlap light up on the dashboard while the second agent gets a warning in its context.
Global vs project scope
beacon init installs globally by default (~/.claude/settings.json), so every project is covered with one command. Prefer to scope it to a single repo? Use --project:
beacon init # global β all projects (recommended default)
beacon init --project # this repo only (.claude/settings.json)The two levels are mutually exclusive β switching auto-disables the other. Running beacon init --project removes the global hook; running beacon init again removes the project hook. This guarantees the hook never fires twice for one edit. (It cleans the global level and the current project; if you'd enabled several projects individually, re-run --project in each to switch them off.) Global monitoring is safe: conflict detection is scoped by file path and working tree, so unrelated projects never raise false overlaps β global just means "always on, everywhere."
The daemon and dashboard are already machine-wide, so with global scope the dashboard becomes a single live view of everything you're doing across every repo.
How it works
Claude Code session ββPreToolUse hookβββ
Codex / MCP agent ββMCP toolsβββββββββ€
git / docker / CI ββwith_reportβββββββΌβββΆ beacon daemon βββΆ live dashboard
any editor / human ββfile watcherββββββ (local HTTP, JSONL) + in-context warningsOne idea, all the way down: an activity is { actor, action, target } β "session A is editing orders.ts". Everything is a client that reports activities; the daemon detects overlaps and answers "is anyone else on this?". That's it.
Report and query are the only two operations.
reporteven returns the conflicts in its response, so an agent learns of an overlap in the same call it announces its own work.Reporting is out-of-band (a hook / a shell wrapper), so your agent spends no tokens announcing itself.
Awareness is surfaced only on a real conflict β a short, relevant line, exactly when it matters.
Integrations
Beacon is not locked to Claude Code. The core is a language-agnostic local HTTP bus; each integration is just a way to feed it activities.
Actor | How it reports | Gets in-context warnings? |
Claude Code |
| β yes, injected before the edit |
Codex |
| β can query & report; the model decides how to act |
Any MCP agent (Cursor, Cline, Windsurf, Zed, Claude Agent SDK) | point its MCP config at | β can query & report |
git / docker / CI scripts |
| β |
Any editor or human |
| β |
Anything that speaks HTTP |
| β |
Claude Code gets the richest experience because its hooks let Beacon both auto-report and inject the warning back into the agent mid-task. Every other tool still shows up on the dashboard and in everyone else's warnings.
Codex & other MCP clients
Beacon ships a zero-dependency MCP server, so any MCP-capable agent can report and query activity on the same bus your Claude Code sessions use.
Codex:
beacon init --codex # adds [mcp_servers.beacon] to ~/.codex/config.toml (global)
beacon start -d(Global by default; beacon init --codex --project scopes it to .codex/config.toml, and switching levels disables the other β same as the Claude hook.)
Optionally add one line to your AGENTS.md so Codex uses it proactively:
Before editing a file or running a risky command, call the
beaconget_activity/report_activitytools to avoid colliding with other agents.
Cursor / Cline / Windsurf / Zed / Claude Agent SDK: point the client's MCP config at the server (command: node, args: ["<install>/mcp/server.js"], or just beacon mcp if beacon is on PATH).
What Codex gets today β be clear-eyed:
β Visible to every other agent. Codex's activity shows on the dashboard and in other agents' warnings β via the MCP tools, or with zero Codex config via
beacon watch.β Can check for collisions itself. Codex can call
get_activity/report_activityβ proactively only if you add theAGENTS.mdline above (otherwise it's available but the model won't call it on its own).β No automatic pre-edit warning inside Codex. Unlike Claude Code, Codex can't have a warning injected before an edit: its hooks fire only on Bash (not file writes) and can't add context. This is a Codex platform limitation, not a Beacon one.
π Hard-block destructive git on conflict β planned, via a Codex Bash hook (Codex hooks can deny). See the roadmap.
In short: Claude Code = fully automatic, warned before every edit. Codex = visible to everyone + can query on request, but not auto-warned.
Configuration
All optional β sensible defaults out of the box. Set as environment variables.
Variable | Default | Meaning |
|
| Daemon port (localhost only) |
|
|
|
|
| How long an activity lives without a heartbeat (15 min) β crashed sessions self-clear |
|
|
|
|
| Where the daemon stores its pidfile, |
Troubleshooting & reporting bugs
Beacon fails open silently by design β so if something's off, the trail is in the local log, not your terminal.
beacon logs # last 200 lines + the log path
beacon logs --tail 50 # fewer lines
beacon logs --path # just print the file path (~/.beacon/beacon.log)
beacon logs --clear # wipe itErrors and warnings (including every time the hook fails open because the daemon was unreachable) are always logged. For a full trace while reproducing a problem, restart with more detail:
BEACON_LOG_LEVEL=debug beacon start # logs every report and tool callFound a bug? Please open an issue and paste beacon logs output (review it first β it can contain file paths from your project). The log is 100% local; nothing is ever sent anywhere unless you attach it yourself.
FAQ
Will this slow my agents down or blow up my token usage? No. Reporting happens out-of-band (in the hook, not the model), so it costs zero model tokens. The only thing ever added to an agent's context is a single warning line, and only when there's a genuine overlap. No conflict β nothing added.
Can it break my workflow / block an edit?
Not by default. It's advisory and fails open β daemon down, timeout, bad input, all result in "do nothing, allow." Set BEACON_GUARD=ask only if you want destructive git ops to pause for confirmation on a real conflict.
Does it send my code anywhere?
No code, ever. Everything runs on 127.0.0.1 with settings and daily logs under ~/.beacon. The only network call Beacon can make is an update check against GitHub's public releases API β and only when you click Check for updates or opt into auto-check in Settings (both off by default). No telemetry, no accounts; your code and activity never leave your machine.
Does it replace git / locks / worktrees? No β it's the awareness layer underneath them. It doesn't take locks or move files; it makes agents see each other so they (or you) can coordinate. Pairs perfectly with git worktrees if you use them.
An activity is still showing after I stopped editing?
It clears when your session's turn ends (a Stop hook) and otherwise fades a few minutes after the last edit. You can also hit Clear on the dashboard (with confirmation) to dismiss the board instantly β plus Restart / Quit the daemon right from the header (or beacon restart / beacon stop). Upgrading from an older version? Re-run beacon init to add the Stop hook, then beacon restart.
Is Clear destructive? No durable data is lost β Beacon never touches files, and the history log keeps every event. But it's global: it dismisses live presence for all sessions at once (active ones reappear on their next edit), so it's confirmed before it runs. Use it to wipe a board cluttered with stale entries.
Roadmap
Native MCP server (
report_activity/get_activity) β works with Codex, Cursor, Cline, Windsurf, Zed, and the Claude Agent SDKbeacon init --codexalso installs a Codex Bash hook to hard-block destructive git ops on conflictSessionStarthook: greet each new session with a summary of what peers are doingOptional hard leases for resources that truly need serialization (e.g. one build at a time)
Slack / desktop notification on overlap
npx agent-beaconzero-install runner
Ideas and PRs welcome β see CONTRIBUTING.md.
Contributing
Beacon is intentionally tiny (a few hundred lines, no dependencies). That makes it easy to read, easy to hack on, and easy to trust. Run the tests with npm test. Issues and pull requests are very welcome.
License
MIT Β© Beacon contributors
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/a1473838623/agent-beacon'
If you have feedback or need assistance with the MCP directory API, please join our Discord server