Repository navigation
Centralize Agent-Bridge as an HTTP hub with CLI/cloud workers and a secure cloud-to-local gateway - #42
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…fallback Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…controls Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
…e UI Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…rkers Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…t substrings Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…quests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…b preferences Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Devin Review found 9 findings. Devin automatically fixed all 9 findings.
Fixed by Devin (9)
- Saved ZCode models block startup — Model pattern allows non-leading backslash (ZCode IDs).
- Callbacks ignore reachable DNS addresses — Callback delivery tries each validated address in order.
- Revoked worker tokens accumulate indefinitely — Revoked worker tokens are removed from the redaction cache.
- Worker cleanup crash blocks callbacks — forget() is surrogate-safe and revocation errors cannot skip task completion.
- Remote DSH skips permission opt-in — DSH approval-disabling mode now counts as unsafe and needs explicit opt-in.
- Workers can use owner signing keys — Worker-token callers can no longer name callback signing keys.
- Deleted callback keys remain usable — Callback key names are read from the keyring, not the cache.
- Expired worker authorization permits mutations — Worker token is re-checked after the body read, before acting.
- Remote DSH tool approval bypass — DSH mode is normalized the same way in validation and launch.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…lections Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turns Agent-Bridge into a long-running central hub so every agent (local or cloud) is an API that any other agent can call, instead of agents calling each other through nested MCP servers.
agent-bridge serve): authenticated REST API on 127.0.0.1 (/v1/tasks,/wait,/result,/v1/agents/{agent}/invoke, sessions, transcripts, cancel). SharedBridgeServicebacks both REST and MCP; MCP auto-proxies to a discovered hub and falls back to the localRegistryotherwise. Workers get hub URL/token/caller session/depth via env, so they can call peers withagent-bridge ask/call; max depth 3, no self-dispatch.protocol = "cli"(headless-p-style per-turn process, resume, model/effort args, parsers; OpenCode/Claude presets, Cursor preset unverified) andprotocol = "cloud"with Cursor v1 and Devin v3 providers (remote session create/follow-up/poll/cancel, PR/branch/ACU metadata; hub restart never terminates remote work).invoke/askwait until terminal by default (no 180s cap);ask --asyncreturns immediately and the hub pushes the result back into the caller's session as a new turn (queued behind busy sessions, ordered, deduped, durable across restarts), or POSTs to a callback URL with HMAC-SHA256.[hub.remote], disabled by default): separate loopback listener (8766) meant to be exposed only via Cloudflare Tunnel (agent-bridge tunnel); admin port never exposed. Per-cloud-taskabr_tokens stored only as SHA-256, scoped to agent/workspace allowlists (empty by default), named workspaces only (rawcwdrejected), call budget, concurrency, rate and body limits, optionalrequire_approval, redacted audit log; results delivered back to the cloud session.keyring, e.g. Windows Credential Manager) with RAM-only fallback;hub.jsonno longer contains the token; legacy plaintext files are migrated and removed.Testing
ruff,mypy,pytest(818 passed).deepseek-v4.1-flash-ecofor REST dispatch, peer calls, MCP proxy, ACP vs CLI benchmarks (scripts/bench_protocols.py).Implemented in session Refactor Agent-Bridge into central API hub
Review with Devin · Open in Devin Desktop