Repository navigation
Description
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:
- Losing our security hooks when using non-Claude runtimes
- Having inconsistent security posture across runtimes (some instrumented, some not)
- 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
- 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?
- What is the status of the proxy-chains RFD? It's still an RFD, not merged into the spec. Timeline and adoption are unclear.
- Can we influence the design? If there are gaps for our security use case, can we contribute to the RFD process?
- 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
HookProviderinterface (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
- What Even Is The Harness? — definitions of agent runtime vs harness
- alcove-ai/alcove#535 — devaipod's ACP-based multi-runtime approach
- ACP Overview
- ACP Proxy Chains RFD
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:
- Read the full ACP proxy-chains RFD and assess semantic gaps for our security hooks
- Prototype a
HookProvidershim for Claude Code + one other runtime (goose?) - Open a discussion on the ACP repo about security-critical proxy use cases
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
ralphbean commentedon May 1, 2026
Related issues
fullsend-ai-triage commentedon May 5, 2026
RICE Priority Score: 0.38
Score breakdown
Formula: (1.5 × 1 × 0.5) / 2 = 0.38
ralphbean commentedon Sep 9, 2026
/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?
fullsend-ai-triage commentedon Sep 9, 2026
🤖 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
fullsend-ai-triage commentedon Sep 9, 2026
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
SandboxHooksBootstrapadapter interface that lets non-Claude runtimes reuse the existing Tirith/SSRF/canary/secret-redaction hook scripts. That's now live for thepiandcodexruntimes, anddocs/runtimes.mdexplicitly 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