07722a6007
Spawn a real worker with 'ccs ltms-local' (profile sets CLAUDE_CONFIG_DIR + off-sub base_url; auto mode preconfigured as defaultMode:auto). bridged appends the bridge MCP mount (--mcp-config, inline JSON) and the reply charter (--append-system-prompt) as launch FLAGS — non-invasive, nothing written to the worker's profile (safer than provisioning its config dir, which would clobber it). Identity is connection-based so the mount is shared. config: worker.mcpUrl. Default bind port 8080 -> 8765. The reply charter is guidance; the send timeout catches a non-cooperative worker. 60 tests green, IDE-clean.
40 lines
1.9 KiB
YAML
40 lines
1.9 KiB
YAML
# bridged configuration (example). Copy to bridged.yaml and adjust.
|
|
#
|
|
# bridged is the sole gateway between primary/worker Claude sessions and herdr.
|
|
# It is NOT a Claude process and must never carry ANTHROPIC_BASE_URL.
|
|
|
|
# REST + MCP listen address. Keep it on loopback — bridged is same-host in Stage-1.
|
|
bind:
|
|
host: 127.0.0.1
|
|
port: 8765
|
|
|
|
# herdr Unix socket. Omit to use the client default
|
|
# (${HERDR_SOCKET_PATH:-~/.config/herdr/herdr.sock}).
|
|
herdrSocket: ~/.config/herdr/herdr.sock
|
|
|
|
# How a worker session is spawned. Stage-1 uses the existing ccs `ltms-local`
|
|
# profile, whose .claude.json routes to the gx00 vLLM below.
|
|
worker:
|
|
profile: ltms-local
|
|
baseUrl: http://gx00.gw:8000 # the gx00 vLLM (models: coder / deepseek-v4-flash)
|
|
model: coder
|
|
# Placement: each worker lands in its OWN tab inside a dedicated worker space, so it
|
|
# never splits or clutters your real work spaces. Use `pane` for the legacy behaviour
|
|
# (split the currently-focused tab).
|
|
placement: tab # tab | pane
|
|
workspace: bridged-workers # the dedicated worker space (found-or-created, shared)
|
|
tabLabel: "worker: {profile} #{n}" # {profile}/{model}/{n} substituted; {n} keeps sibling tabs distinct
|
|
# Step 4 — real worker: launch via ccs (profile sets CLAUDE_CONFIG_DIR + off-sub base_url; put
|
|
# `defaultMode: "auto"` in the profile so it runs autonomously). bridged appends the bridge MCP
|
|
# (--mcp-config, inline) + reply charter (--append-system-prompt) as flags — nothing is written
|
|
# to the profile. Omit mcpUrl (and use a bash argv) for a mechanics-only probe that never replies.
|
|
mcpUrl: http://127.0.0.1:8765/mcp
|
|
argv: ["ccs", "ltms-local"]
|
|
|
|
# Subscription boundary. A worker's base_url host MUST be one of these; the primary
|
|
# must carry none. Grounded in ltms-local's real endpoints.
|
|
guard:
|
|
offSubscriptionHosts:
|
|
- gx00.gw
|
|
- ollama.ltms.dev
|