REPO_B Shim Agent Bridge Safety
Use this skill for Agent Bridge setup and safety enforcement.
Workflow
- Configure bridge environment variables for session mode.
- Validate capabilities endpoint and a read-only task.
- Keep
read_onlyas default; enablecontrolled_writeonly when required. - Enforce
allow_writeand apply gating rules.
Scope Boundary
Use this skill for /api/agent/* bridge-mode and write-safety controls.
Do not use this skill for:
- MCP adapter or Comfy resource diagnostics lanes.
- Windows-host vs WSL reachability checks.
- General PR preflight/doc lockstep lanes.
Required Environment (PowerShell)
$env:REPO_B_CONTINUE_BRIDGE_ENABLED = "1"
$env:REPO_B_CONTINUE_BRIDGE_URL = "http://127.0.0.1:11420"
$env:REPO_B_CONTINUE_MODE = "read_only"
$env:REPO_B_CONTINUE_ALLOWED_ROOTS = "G:\GitHub\<PRIVATE_REPO_B>"
Optional controlled-write limits:
$env:REPO_B_CONTINUE_WRITE_ALLOWED_ROOTS = "G:\GitHub\<PRIVATE_REPO_B>\repo_b_repo_b_python_shim,G:\GitHub\<PRIVATE_REPO_B>\tests"
$env:REPO_B_CONTINUE_APPLY_ENABLED = "0"
Model-plane note:
- Treat
http://127.0.0.1:9000/v1andhttp://127.0.0.1:2337/v1as authoritative. - Treat
http://127.0.0.1:1234/v1only as a non-authoritative operator surface when debugging connector drift.
API Checks
Invoke-RestMethod http://127.0.0.1:9000/api/agent/capabilities | ConvertTo-Json -Depth 8
$body = @{
task_type = "analyze_files"
prompt = "Summarize required docs changes."
paths = @("README.md", "docs/PROJECT_SCOPE.md", "docs/SCOPE_TRACKER.md")
allow_write = $false
dry_run = $true
} | ConvertTo-Json -Depth 8
Invoke-RestMethod -Method Post -Uri "http://127.0.0.1:9000/api/agent/tasks" -ContentType "application/json" -Body $body
Reference
references/bridge-safety-checklist.md
Loopback
If this lane is unresolved, blocked, or ambiguous:
- Capture current evidence and failure context.
- Route back through
$skill-hubfor chain recalculation. - Resume only after the updated chain returns a deterministic next step.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.