cd-bind

cd-bind is a command for Claude Code from Jinghao67/conductor. It costs 15 tokens per session (474 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-code plugin — 1 skill, 7 commands, 1 agent, 4 hooks shipped together

Good fit Use it inside a branch session to bind that session to a branch, mark the branch active, and read its brief.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jinghao67/conductor/cd-bind
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.

Clone the repo
git clone --depth 1 https://github.com/Jinghao67/conductor

Made for: Claude Code.

Or install claude-code, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 1 agent, 4 hooks.

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 cd-bind

README.md
[![agentmods](https://agentmods.dev/badge/commands/jinghao67/conductor/cd-bind/github.svg)](https://agentmods.dev/commands/jinghao67/conductor/cd-bind)
Your own site
<a href="https://agentmods.dev/commands/jinghao67/conductor/cd-bind"><img src="https://agentmods.dev/badge/commands/jinghao67/conductor/cd-bind/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 cd-bind

Your own site · 80×15
<a href="https://agentmods.dev/commands/jinghao67/conductor/cd-bind"><img src="https://agentmods.dev/badge/commands/jinghao67/conductor/cd-bind.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00015 $0.00474
Opus 5.5 $0.00006 $0.00190
Sonnet 5.5 $0.00003 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 1mo ago against content hash ea66abc4484d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (99 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 474 once invoked, about $0.0001 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-08-30.