Skip to content

Investigate ACP proxy chains for multi-runtime support with consistent security hooks #587

Open

Description

@ralphbean

Context

In fullsend, we currently only support Claude Code as our agent runtime. We use Claude Code's hooks system (pre-tool-use, post-tool-use) to instrument the agent runtime and guard against prompt injection attacks. This is a core security property of fullsend.

However, coupling to a single agent runtime creates vendor lock-in. Other systems like devaipod use the Agent Client Protocol (ACP) to support multiple agent runtimes (Claude Code, Codex, Gemini CLI, etc.). We want that too.

The core tension

We need consistent security instrumentation (hooks) across all agent runtimes, but each runtime implements hooks differently (or not at all).

Claude Code has a well-defined hooks system with pre_tool_use and post_tool_use events. Other runtimes have varying levels of support:

  • Some have their own hook mechanisms with different APIs
  • Some have no hook mechanism at all
  • The semantics, guarantees, and bypass potential differ between implementations

If we adopt ACP to swap runtimes, we risk either:

  1. Losing our security hooks when using non-Claude runtimes
  2. Having inconsistent security posture across runtimes (some instrumented, some not)
  3. Maintaining N different hook integrations for N runtimes

A promising lead: ACP Proxy Chains

ACP has an in-progress RFD called "Agent Extensions via ACP Proxies" (by nikomatsakis) that proposes a proxy/conductor architecture where components sit between the client and the agent, intercepting and transforming messages in both directions. Key properties:

  • Proxies can intercept tool calls before they reach the agent and filter responses before they reach the client
  • A conductor orchestrates a chain of proxies, routing messages between them
  • Proxies are composable — you can stack multiple independent concerns (context injection, tool filtering, response processing)
  • The design explicitly aims to subsume hooks, AGENTS.md, and other per-runtime extension mechanisms into a universal standard

This is almost exactly what we need: a runtime-agnostic interception layer where we could implement our prompt injection guards as an ACP proxy, rather than as Claude Code hooks.

Open questions

  1. Does the ACP proxy chain model provide the same guarantees as Claude Code hooks? Claude hooks run in-process and can block/deny tool execution synchronously. Can ACP proxies do the same, or is there a gap?
  2. What is the status of the proxy-chains RFD? It's still an RFD, not merged into the spec. Timeline and adoption are unclear.
  3. Can we influence the design? If there are gaps for our security use case, can we contribute to the RFD process?
  4. What do we do in the interim? We need a strategy that works today while the ecosystem matures.

Proposed courses of action to investigate

Option A: Bet on ACP proxy chains (best for ecosystem)

  • Contribute to the ACP proxy-chains RFD, specifically advocating for security-critical use cases (synchronous blocking, deny semantics for tool calls)
  • Implement our prompt injection guards as an ACP proxy
  • Wait for / help drive runtime adoption of ACP

Pros: Universal solution, benefits the whole ecosystem, only one integration to maintain
Cons: Depends on an unfinished spec, timeline risk, may not have the exact semantics we need today

Option B: Shim layer with per-runtime adapters (most expedient)

  • Define our own internal HookProvider interface (pre_tool_use, post_tool_use with block/allow semantics)
  • Implement adapters for each runtime: Claude Code hooks → HookProvider, Goose hooks → HookProvider, etc.
  • For runtimes without hooks, either wrap them or skip them with a security warning

Pros: Works today, no external dependencies, full control
Cons: Maintenance burden scales with N runtimes, inconsistent guarantees, we're reinventing what ACP proxies aim to solve

Option C: Hybrid — shim now, migrate to ACP proxies later (best for fullsend long-term)

  • Start with Option B for immediate multi-runtime support
  • Design the shim interface to be structurally compatible with ACP proxy semantics
  • When ACP proxy chains ship, migrate the shim to be an ACP proxy, dropping per-runtime adapters
  • Contribute our security requirements upstream to the ACP RFD process in parallel

Pros: Unblocked today, smooth migration path, influences the ecosystem standard
Cons: Some throwaway work on adapters, need to track ACP development

Option D: Proxy-only approach (runtime-agnostic without ACP)

  • Don't use hooks at all — instead, run all agent runtimes behind a proxy that intercepts their MCP/tool traffic at the transport layer
  • Since agents talk to tools via MCP (or similar), intercept at that boundary regardless of runtime

Pros: Truly runtime-agnostic, one implementation, works today
Cons: May miss agent-internal tool calls that don't go through MCP, harder to get full context (e.g., the LLM's reasoning for the tool call), may not catch all attack vectors

References

Recommendation

Start with Option C (hybrid). It gives us:

  • Immediacy: Multi-runtime support without waiting on ACP
  • Maintainability: A clean migration path to the ecosystem standard
  • Ecosystem influence: A seat at the table to shape ACP proxy security semantics

First concrete steps:

  1. Read the full ACP proxy-chains RFD and assess semantic gaps for our security hooks
  2. Prototype a HookProvider shim for Claude Code + one other runtime (goose?)
  3. Open a discussion on the ACP repo about security-critical proxy use cases

Activity

  1. ralphbean commented on May 1, 2026

    @ralphbean
    MemberAuthor

    Related issues

  2. fullsend-ai-triage commented on May 5, 2026

    @fullsend-ai-triage

    RICE Priority Score: 0.38

    Score breakdown
    Dimension Score Reasoning
    Reach 1.5 Multi-runtime support is a platform-wide architectural concern that would eventually affect all users, but no strategic customer (konflux-ci, openkaiden, guacsec) has specifically requested alternative runtime support. The issue is filed by a contributor (@ralphbean) as forward-looking architecture work. Scoring 1.5 because it benefits the platform broadly but isn't driven by immediate customer demand.
    Impact 1 This is an investigation issue — the immediate deliverable is research and a prototype, not a shipped feature. The current single-runtime (Claude Code) setup works and has functional security hooks. The eventual outcome (multi-runtime support with consistent security) would be significant for reducing vendor lock-in, but the near-term impact on user workflows is medium at best. Scoring 1.0 for a noticeable but non-urgent improvement.
    Confidence 0.5 The issue is exceptionally well-written with clear options, tradeoffs, and a recommendation, which raises confidence. However, it depends heavily on an external unfinished spec (ACP proxy-chains RFD) whose timeline and adoption are uncertain, and it's unclear whether the ACP proxy model can provide the same synchronous blocking guarantees as Claude Code hooks. These unknowns lower confidence to 0.5.
    Effort 2 This is a complex undertaking: reading and evaluating an external RFD, prototyping a HookProvider shim, implementing adapters for at least two runtimes, and potentially contributing upstream to the ACP spec. The issue references multiple related issues (#70, #78, #173, #579) indicating broad architectural surface area. Scoring 2.0 for significant implementation, research, and coordination effort.

    Formula: (1.5 × 1 × 0.5) / 2 = 0.38

  3. added
    research
    security
    on May 14, 2026
  4. added
    component/sandbox
    and removed on May 29, 2026
  5. ralphbean commented on Sep 9, 2026

    @ralphbean
    MemberAuthor

    /fs-triage lots of things have changed between when this was originally filed and now across both the https://github.com/fullsend-ai/fullsend and https://github.com/fullsend-ai/agents repos. Is this still relevant?

  6. fullsend-ai-triage commented on Sep 9, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 5:40 PM UTC · Completed 5:45 PM UTC

    Commit: d5f3692 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.33

  7. added
    triaged
    priority/low
    on Sep 9, 2026
  8. fullsend-ai-triage commented on Sep 9, 2026

    @fullsend-ai-triage

    Following up on the question about continued relevance: a lot has indeed changed since this was filed, but not everything in it is resolved.

    The urgent half of the original recommendation (Option C's shim) has already shipped: ADR 0090 ("Runtime-neutral sandbox tool hooks contract") and issue #6354 introduced a SandboxHooksBootstrap adapter interface that lets non-Claude runtimes reuse the existing Tirith/SSRF/canary/secret-redaction hook scripts. That's now live for the pi and codex runtimes, and docs/runtimes.md explicitly tracks per-runtime hook coverage instead of silently dropping it for new runtimes. In other words, the immediate security-consistency gap this issue raised is closed.

    What's not resolved is the strategic half: ADR 0090 explicitly defers the ACP proxy-chain question back to this issue ("Longer-term hook layers (ACP proxy chains #587, tool proxies #5243) remain open"). The upstream RFD file still exists in the agentclientprotocol repo, but its merge/maturity status wasn't independently verified here, so treat that as unresolved rather than settled.

    Recommend keeping this open but re-scoped and re-prioritized down: the question is now narrowly "should the adapter-shim pattern (ADR 0090) be migrated to ACP proxies, and when," rather than the original green-field investigation. It's related to but distinct from #5243 (tool-proxy ADR), which is also still open. Given the urgent driver is gone, this reads as a lower-priority forward-looking research item rather than active work.


    Labels: The urgent driver behind this research issue has already been addressed by ADR 0090, so it should be re-prioritized as low-priority forward-looking research rather than dropped.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/sandboxpriority/lowresearchsecuritytriaged

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions