bridge-attach

bridge-attach is a skill for Claude Code from bks-lab/open-bridge. It costs 115 tokens per session (1,022 once invoked), scanned A, original, MIT.

A skill for attaching a coding-agent session to a Bridge in another repository. It gathers a short summary of the Bridge's instructions, logs, messages, and repository state without writing to the repository.

In plain words
What is it for?
Use it at the start of a session, or later when asked, to load Bridge state for work in another repository.
Why use it?
It gives a session working in one repository the context it needs from a separate Bridge location. This avoids manually copying that context or changing the work repository just to read it.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is "$SKILL_DIR/../../bin/bridge-run" python3 scripts/bridge-attach.py check # NORMAL user/<name>, exit 0.

Good fit Use it at the start of a session, or later when asked, to load Bridge state for work in another repository.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bks-lab/open-bridge
agentmods
npx agentmods add skills/bks-lab/open-bridge/bridge-attach

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bridge-attach

README.md
[![agentmods](https://agentmods.dev/badge/skills/bks-lab/open-bridge/bridge-attach/github.svg)](https://agentmods.dev/skills/bks-lab/open-bridge/bridge-attach)
Your own site
<a href="https://agentmods.dev/skills/bks-lab/open-bridge/bridge-attach"><img src="https://agentmods.dev/badge/skills/bks-lab/open-bridge/bridge-attach/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bridge-attach

Your own site · 80×15
<a href="https://agentmods.dev/skills/bks-lab/open-bridge/bridge-attach"><img src="https://agentmods.dev/badge/skills/bks-lab/open-bridge/bridge-attach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.01022
Opus 5.5 $0.00046 $0.00409
Sonnet 5.5 $0.00023 $0.00204
Haiku 4.5 $0.00012 $0.00102

Measured today against content hash feb9040f2676, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bridge-attach scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bridge-attach/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

bridge-attach

A Bridge session starts in the Bridge folder; the work happens in repos. This skill gives a session in any repo exactly one Bridge, the one this skill lives in, at start or in the middle of the work. Background, measurements and limits: docs/bridge-attach.md.

Paths. $SKILL_DIR is this skill's folder (the Base directory). Run Bridge commands as "$SKILL_DIR/../../bin/bridge-run" <command>, written as a path from the session's own folder: the path resolves through the .claude/skills link to the Bridge's bin/, and bridge-run executes the command in the Bridge root. No cd is needed; a cd into the Bridge moves this session's shell out of its repo, and spelled out by hand $SKILL_DIR/../.. can end in .claude/. The attach text names the root.

When the skill runs

  1. If BRIDGE_ATTACH is 1 in the environment, the session was started with the shortcut below and is attached already. Run step 2 only when the user asks for a fresh state.
  2. Run "$SKILL_DIR/../../bin/bridge-run" python3 scripts/bridge-attach.py slice --cwd "$PWD" and take its output as this session's attach text. It names the Bridge, the context tag of this repo, the manual, how Bridge commands and log rows are written, the memory folder, and the state of the repo's context: matching inbox items (all others only counted), board counts, recent log rows. Exit 3 means the Bridge is not attachable (not on a user/* branch, no bridge-config.yaml, or the folder is the Bridge itself): say why and stop.
  3. Say in one line what this way does not attach: the Bridge's project hooks (log check, time tracking) and its memory as auto memory. The shortcut at start brings both.

Three ways in

Way How What comes along
1 · in the session, any time /bridge-attach. The skill must be listed: the session was started with --add-dir <root>, or the user types /add-dir <root> first attach text as conversation content; /compact re-attaches this skill's own text, not the attach text, which is summarized with the rest of the conversation
2 · at start claude --add-dir <root> "/bridge-attach", or the shortcut <root>/bin/bridge-attach claude the shortcut puts the attach text into the system prompt (no size cap, survives compaction), replays the Bridge's own hooks and sets its memory; also codex (with the Bridge skills as bridge:<name>) and copilot
3 · automatic not built: a SessionStart hook cuts its text at 10,000 characters and a hook in the user's global settings fires in every headless run on the machine a terminal app that starts agents can call bridge-attach.py plan instead

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed feb9040f2676
  2. yesterday First seen · 61 lines · 115 tokens per session scan A 983ea47fdfd6

Subscribe to this mod's changes

bridge-attach is a skill published in the GitHub repository bks-lab/open-bridge (16 stars, last pushed today), licensed MIT. It adds 115 tokens to every session and 1,022 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

bridge-attach compared with skills from other repositories

bridge-attach next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bridge-attachbks-lab/open-bridgeSkill16todayMITA115Claude Code
agent-quorum-managerruvnet/rufloSkill83ktodayMITA18Claude Code
agent-agentruvnet/rufloSkill83ktodayMITA13Claude Code
agent-crdt-synchronizerruvnet/rufloSkill83ktodayMITA25Claude Code
agent-performance-benchmarkerruvnet/rufloSkill83ktodayMITA22Claude Code
agent-topology-optimizerruvnet/rufloSkill83ktodayMITA21Claude Code
flow-nexus-platformruvnet/rufloSkill83ktodayMITA24Claude Code