cd-bind

A command for Conductor that links the current coding session to an existing work branch. A branch is a separate line of development with its own task brief.

In plain words
What is it for?
Use it inside a branch session to bind that session to a branch, mark the branch active, and read its brief.
Why use it?
It ensures the session works against the intended branch and loads the instructions prepared for that branch.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jinghao67/conductor/cd-bind
Clone the repo
git clone --depth 1 https://github.com/Jinghao67/conductor
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 474 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00015 $0.00474
Opus 5 $0.00008 $0.00237
Sonnet 5 $0.00003 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 2d ago against content hash ea66abc4484d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cd-bind 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 2d ago.

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.

claude-code/commands/cd-bind.md · 16 lines

What it actually says

Binding result (runs before you act): !SID="${CLAUDE_SESSION_ID}"; B="$ARGUMENTS"; D=".conductor"; if [ ! -f "$D/branches/$B/brief.md" ]; then echo "No brief for $B — create it from the master with /cd-branch first."; else printf '{"session_id":"%s","role":"branch","branch_id":"%s"}\n' "$SID" "$B" > "$D/bindings/$SID.json"; tmp="$(mktemp)"; jq --arg b "$B" --arg s "$SID" '(.branches[$b].bound_session_id)=$s | (.branches[$b].status)="active"' "$D/registry.json" > "$tmp" 2>/dev/null && mv "$tmp" "$D/registry.json"; echo "bound this session to $B (role=branch)"; fi

Your brief (your ONLY context — you cannot see the master session or sibling branches): !cat ".conductor/branches/$ARGUMENTS/brief.md" 2>/dev/null

If the binding result above did NOT print bound this session to $ARGUMENTS (e.g. it was empty or showed an error), bind manually now: write .conductor/bindings/${CLAUDE_SESSION_ID}.json with content {"session_id":"${CLAUDE_SESSION_ID}","role":"branch","branch_id":"$ARGUMENTS"}, then set .branches["$ARGUMENTS"].status to active and .bound_session_id to ${CLAUDE_SESSION_ID} in .conductor/registry.json. (This session is still unbound, so these writes are allowed.)

You are now branch $ARGUMENTS. Work directly with the user here. Reads are not firewalled in a branch — get as dirty as you need. Decisions you make are not globally binding until the master confirms them; record any cross-branch decisions to surface in your completion report. When the user confirms the work is done, run /cd-complete.

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. 2d ago First seen · 16 lines · 15 tokens per session scan A ea66abc4484d

Subscribe to this mod's changes

cd-bind is a command published in the GitHub repository Jinghao67/conductor (106 stars, last pushed 2mo ago), licensed MIT. It adds 15 tokens to every session and 474 once invoked, about $0.0001 per session on Opus 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-08-30.