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.
Required Environment (PowerShell)
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 = "$env:USERPROFILE\Documents\GitHub\<PRIVATE_REPO_B>"
Optional controlled-write limits:
powershell
$env:REPO_B_CONTINUE_WRITE_ALLOWED_ROOTS = "$env:USERPROFILE\Documents\GitHub\<PRIVATE_REPO_B>\repo_b_repo_b_python_shim,$env:USERPROFILE\Documents\GitHub\<PRIVATE_REPO_B>\tests" $env:REPO_B_CONTINUE_APPLY_ENABLED = "0"
API Checks
powershell
Invoke-RestMethod http://127.0.0.1:9000/api/agent/capabilities | ConvertTo-Json -Depth 8
powershell
$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